
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  list-style: none;
}

html{ scroll-behavior: smooth; }

body{
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  background-color: hwb(34 75% 11%);
  overflow-x: hidden;
}

/* Container */
.container{
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Imágenes / video base */
img{ max-width: 100%; height: auto; display: block; }
video{ max-width: 100%; height: auto; display: block; }

/* =========================
   HEADER
========================= */
.header{
  background-image: url(images/imagen\ working.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
}

/* Para que el contenido no quede tapado por el menú fijo */
.header-content{
  width: 100%;
  padding-top: 110px;
}

.header-txt{
  text-align: center;
}

.header-txt h1{
  font-size: 85px;
  color: white;
  text-transform: uppercase;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  margin-bottom: 20px;
}

.header-txt p{
  color: white;
  font-size: 20px;
  margin-bottom: 45px;
}

.cuadro{
  border: 2px solid #000;
  padding: 20px;
  background-color: hsl(240, 81%, 6%);
  border-radius: 20px;
  opacity: 0.8;
  margin: 90px auto 100px;
  max-width: 900px;
}

.btn-1{
  display: inline-block;
  padding: 12px 45px;
  border: 1px solid white;
  color: black;
  background-color: white;
  font-size: 16px;
  text-transform: uppercase;
  font-weight: 600;
}

.btn-1:hover{
  background-color: gray;
  color: black;
}

/* =========================
   MENU / NAVBAR (DESKTOP + MOBILE)
========================= */
#menu{ display:none; }

/* Barra fija arriba */
.menu{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
}

/* Logo */
.menu-icono{
  width: 100px;
}

/* Botón hamburguesa (solo móvil) */
.menu-btn{
  display: none;
  color: white;
  font-size: 34px;
  padding: 8px 10px;
  cursor: pointer;
  user-select: none;
}

/* Navbar desktop */
.navbar{ display:block; }

.menu .navbar ul{
  display: flex;
  align-items: center;
  gap: 14px;
}

.menu .navbar ul li{ float:none; }

.menu .navbar ul li a{
  font-size: 18px;
  padding: 10px 14px;
  color: white;
  display: inline-block;
  font-weight: 600;
  border-radius: 10px;
  transition: background-color .2s ease, transform .2s ease;
}

/* Hover escritorio (sí funciona) */
.menu .navbar ul li a:hover{
  background-color: rgba(255,255,255,0.22);
  outline: 2px solid rgba(255,255,255,0.35);
  outline-offset: 2px;
  transform: translateY(-1px);
}

/* Redes: no dejes que el img global (display:block) rompa la línea */
.menu .navbar ul li a img{
  display: inline-block;
  vertical-align: middle;
}

/* Texto de redes + title: solo móvil (por defecto oculto) */
.social-title,
.social-text{
  display: none;
}

/* =========================
   SECTIONS: SERVICES
========================= */
.general{
  padding: 100px 0;
  text-align: center;
  background-color: oklab(85.962% 0.00233 0.01906);
}

h2{
  font-size: 70px;
  text-transform: uppercase;
  color: black;
  text-shadow: 4px 4px 6px rgba(0,0,0,0.3);
  text-align: center;
}

.general-1, .general-2, .general-3{
  display: inline-block;
  text-align: center;
  width: 300px;
  padding: 10px;
  vertical-align: top;
}

.general-1{ margin-right: 10%; }
.general-2{ margin-right: 10%; }

.general-1 p,
.general-2 p,
.general-3 p{
  color: lab(11.78% 6.8 16.04);
}

/* =========================
   WHY CHOOSE US
========================= */
.info-1{
  padding: 250px 0;
  background-image: url(images/working\ piso.jpg);
  background-position: center;
  background-size: cover;
}

.info-content{
  text-align: center;
}

.info-content h2{
  color: rgb(0,0,0);
  text-shadow: 2px 2px 4px rgba(245,242,242,0.989);
}

.info-circle{
  display: flex;
  justify-content: space-between;
  margin-top: 55px;
  flex-wrap: nowrap;
}

.circle-txt{
  width: 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 10px;
}

.circle-1{
  height: 160px;
  width: 160px;
  border: 2px solid white;
  border-radius: 50%;
  padding-top: 65px;
  background-color: #1b293a;
}

.circle-1 h3{
  color: white;
  font-size: 16px;
}

/* =========================
   GALLERY
========================= */
.g2 h2{ margin-top: 15px; }

.video-slider{
   display: flex;
  gap: 10px;
  justify-content: center;
  align-items: stretch;
}

.slider-container{
  width: 40%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 32px black;
  position: relative;
  margin-bottom: 60px;
}
.video video{
  width: 610px;
  height: 610px;
  object-fit: cover;       /* se ve pro, sin deformarse */
  border-radius: 10px;
}

.slider{
  display: flex;
  transition: transform 0.5s;
}

.slide{ min-width: 100%; }

.dots-container{
  position: absolute;
  left: 40%;
  bottom: 12px;
  transform: translateY(-50%);
  display: flex;
}

.dot{
  width: 7px;
  height: 7px;
  background-color: white;
  border-radius: 50%;
  cursor: pointer;
  margin: 0 3px;
  user-select: none;
  transition: background 0.3s;
}

.dot.active{ background: blue; }

/* Video */
.slider-container, .video{
  width: 40%px;
  max-width: none;
}

/* =========================
   TESTIMONIES
========================= */
.info-2{
  padding: 50px 0;
  background-color: hwb(32 44% 41%);
  text-align: center;
}

h4{
  color: #000;
  font-size: 70px;
  text-shadow: 4px 4px 6px rgba(0,0,0,0.3);
}

.testi{
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: stretch; 
}

.testi-1, .testi-2, .testi-3{
  max-width: 380px;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.testi-1 img, .testi-2 img, .testi-3 img{
  width: 400px;
  height: 320px;           /* MISMA altura */
  object-fit:fill;       /* recorta sin deformar */
  border-radius: 10px;
  margin-bottom: 12px;
}

.testi h3{
  font-size: 20px;
  color: #1f1a05;
    min-height: 48px;        /* alinea los nombres */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.testi p{
  color: #fff5de;
  font-size: 16px;
  text-align: center;
  line-height: 1.5;
  flex-grow: 1;
}

/* =========================
   CONTACT
========================= */
h5{
  color: #000;
  font-size: 70px;
  text-shadow: 4px 4px 6px rgba(0,0,0,0.3);
  text-align: center;
  margin-top: 50px;
}

h6{
  margin-top: 20px;
  font-size: 20px;
  text-align: center;
}

.tel{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 0 30px;
}

.phone, .mail{
  width: 40px;
  height: 40px;
}

.p1, .p2{
  text-align: center;
  font-size: 18px;
  color: #000;
}

.qr{
  margin-top: 10px;
  width: 200px;
  height: auto;
}

/* =========================
   FOOTER
========================= */
.footer{
  padding: 50px 0 0 0;
  text-align: center;
}

.footer-txt{
  border-top: 1px solid grey;
  padding: 20px 0;
}

.footer-txt p{
  color: black;
  font-size: 16px;
}

/* =========================
   BACK TO TOP (solo escritorio)
========================= */
.back-to-top{
   position: fixed;
  right: 16px;
  bottom: 16px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1b293a;
  color: #fff;
  display: flex;                 /* SIEMPRE flex */
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  z-index: 9999999;

  opacity: 0;                    /* oculto por defecto */
  pointer-events: none;          /* no clickeable */
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease;
}

.back-to-top.show{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover{
  background-color: #243a55;
  transform: translateY(-3px);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px){
  h2, h4, h5{ font-size: 34px; }

  .general{
    padding: 50px 0;
  }

  .general-1, .general-2, .general-3{
    width: 100%;
    max-width: 420px;
    margin: 0 auto 18px;
    display: block;
  }

  .info-1{ padding: 80px 0; }

  .info-circle{
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .circle-txt{
    width: calc(50% - 24px);
    margin: 0;
  }

  .circle-1{
    width: 140px;
    height: 140px;
    padding-top: 55px;
  }

  .video-slider{
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .slider-container{
    width: 100%;
    margin: 0 auto;
  }

  .video{
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
  }

  .testi{
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }

  .testi-1, .testi-2, .testi-3{
    width: 100%;
    max-width: 420px;
  }
}

@media (max-width: 768px){
  /* Header text */
  .header{
    min-height: auto;
    padding: 90px 0 40px;
  }

  .header-txt h1{
    font-size: 34px;
    padding: 0 10px;
  }

  .header-txt p{
    font-size: 16px;
    padding: 0 10px;
  }

  .cuadro{
    margin: 18px auto;
    width: 100%;
    max-width: 520px;
    border-radius: 18px;
  }

  .btn-1{
    padding: 12px 24px;
  }

  /* Menú: mostrar ☰ y ocultar navbar hasta abrir */
  .menu-btn{ display: inline-flex; z-index: 100001; }
  .menu-icono{ width: 60px; }

  .navbar{
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.92);
    padding: 12px 16px;
    z-index: 100000;
  }

  .menu .navbar ul{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .menu .navbar ul li{
    width: 100%;
  }

  .menu .navbar ul li a{
    width: 100%;
    font-size: 18px;
    padding: 10px 8px;
  }

  /* ABRIR MENÚ */
  #menu:checked ~ .navbar{
    display: block;
  }

  /* Redes: texto + title SOLO en móvil */
  .social-title{
    display: block;
    width: 100%;
    text-align: center;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin: 10px 0 6px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.3);
  }

  .social-text{
    display: inline-block;
    color: #fff;
    font-size: 13px;
    line-height: 1;
  }

  .social a{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
  }

  .social a img{
    width: 22px;
    height: 22px;
    display: inline-block;
    flex: 0 0 auto;
  }

  /* Tap/active en móvil */
  .menu .navbar ul li a:active,
  .menu .navbar ul li a:focus{
    background-color: rgba(27,41,58,0.9);
    outline: none;
  }

     /* tu color de marca */
  }
   .back-to-top{
    width: 42px;
    height: 42px;
    font-size: 18px;

   }
