html, body{
  overflow-x:hidden;
}

*{margin:0;padding:0;box-sizing:border-box}

:root{
  --primary:#123e8a;
  --accent:#2fa4a1;
  --bg:#eef2f7;
  --text:#2a3040;
}

body{
  font-family:'Open Sans',sans-serif;
  background:var(--bg);
}

/* ================= HEADER ================= */
header{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  z-index:9999;
  box-shadow:0 2px 10px rgba(0,0,0,.05);
  background:linear-gradient(
    90deg,
    #ffffff,
    #ffffff
  );
  border-bottom:1px solid rgba(0,0,0,0.05);
}

header .inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:2px 5%; /* mejor que 0.01rem */
}

.logo img{
  height:140px;
  width:auto;
  display:block;
}

@media(max-width:768px){

  .logo img{
  height:clamp(90px, 8vw, 120px);
}

}

nav a{
  margin-left:2rem;
  text-decoration:none;
  font-weight:600;
  color:var(--text);
}

nav a:hover{
  color:var(--primary);
}


/* ================= FOOTER ================= */
footer{
  background:#2a2f3a;
  color:#e4e7ec;
  padding:40px 20px 20px;
}

.footer-main{
  max-width:1200px;
  margin:auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:40px;
}

/* IZQUIERDA */
.footer-left{
  display:flex;
  align-items:center;
}

.footer-left img{
  width:250px;
  height:auto;
}

/* DERECHA */
.footer-right{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
}

/* ICONOS */
.social{
  display:flex;
  gap:15px;
  margin-bottom:10px;
}

.social a{
  width:38px;
  height:38px;
  background:rgba(255,255,255,0.1);
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:.2s;
}

.social a:hover{
  background:#3b6edc;
  transform:translateY(-3px);
}

.social i{
  font-size:16px;
  color:white;
}

/* TEXTO */
.footer-right p{
  font-size:14px;
  margin:3px 0;
}

/* BOTTOM */
.footer-bottom{
  max-width:1200px;
  margin:30px auto 0;
  padding-top:15px;
  border-top:1px solid rgba(255,255,255,.2);
  display:flex;
  justify-content:space-between;
}

.footer-bottom a{
  color:white;
  text-decoration:none;
}

.footer-bottom a:hover{
  opacity:1;
}

.telefonos{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:flex-end;
  margin:10px 0;
}

.telefonos a{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:13px;
  color:#e4e7ec;
  text-decoration:none;
  background:rgba(255,255,255,0.08);
  padding:6px 10px;
  border-radius:20px;
  transition:.2s;
}

.telefonos a:hover{
  background:#3b6edc;
  transform:translateY(-2px);
}



/* ================= RESPONSIVE ================= */
@media(max-width:768px){

  .footer-main{
    flex-direction:column;
    gap:30px;
  }

  .footer-right{
    align-items:center;
    text-align:center;
  }

  .footer-bottom{
    flex-direction:column;
    text-align:center;
    gap:10px;
  }

}

@media(max-width:768px){

  .telefonos{
    flex-wrap:nowrap;       
    justify-content:center;  
    gap:6px;                
  }

  .telefonos a{
    font-size:11px;        
    padding:5px 8px;         
    white-space:nowrap;      
  }

}


/* ================= ESPACIADO HEADER ================= */
main{
  padding-top:90px;
}

@media(max-width:768px){
  main{
    padding-top:80px;
  }
}

/* ================= HERO COMPANY ================= */
.hero-company{
  height:60vh;
  min-height:300px;
  max-height:500px;

  background:url("nosotros.webp") center/cover no-repeat;
  background-position:center;

  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  text-align:center;
}

.hero-company::after{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.45);
  z-index:1;
}

.hero-company h1{
  position:relative;
  z-index:2;
  color:#ffffff;
  font-size:clamp(22px, 5vw, 42px);
  padding:0 20px;
  line-height:1.2;
  text-shadow:0 2px 10px rgba(0, 0, 0, 0.5);
  animation:fadeUp 1s ease;
}

@keyframes fadeUp{
  from{
    opacity:0;
    transform:translateY(20px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

/* ================= FEATURES ================= */
@media(max-width:768px){
  .features{
    grid-template-columns:1fr;
    padding:50px 20px;
    gap:30px;
    text-align:center;
  }
}

/* ================= BLOQUES ================= */
@media(max-width:768px){
  .bloque{
    flex-direction:column;
    padding:60px 20px;
    gap:25px;
    text-align:center;
  }

  .bloque img,
  .bloque div{
    width:100%;
  }
}

/* ================= HERO MOBILE ================= */
@media(max-width:768px){
  .hero-company{
    height:280px;
  }

  .hero-company h1{
    font-size:24px;
    padding:0 15px;
  }
}

/* ================= IMÁGENES ================= */
img{
  max-width:100%;
  height:auto;
}

[data-aos]{
  opacity:0;
  transition: all 0.6s ease;
}

[data-aos].aos-animate{
  opacity:1;
}


/* ================= FORMULARIO ================= */
.contacto{
  background:linear-gradient(135deg, #1f4ea3, #2f6fd1);
  color:white;
  text-align:center;
  padding:160px 20px 100px; /* 🔥 CAMBIO AQUÍ */
}

.contacto h1{
  font-size:42px;
  margin-bottom:10px;
}

.sub{
  margin-bottom:40px;
  opacity:.9;
}

/* GRID */
.form-grid{
  max-width:900px;
  margin:auto;
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:15px;

  background:rgba(255,255,255,0.08);
  padding:40px;
  border-radius:12px;
  backdrop-filter:blur(12px);

  box-shadow:0 20px 50px rgba(0,0,0,0.15);
}

/* INPUTS */
.form-grid input,
.form-grid textarea{
  padding:14px;
  border:none;
  background:#ffffff;
  border-radius:6px;
  font-size:14px;
  transition:.2s;
}

.form-grid input:focus,
.form-grid textarea:focus{
  outline:none;
  box-shadow:0 0 0 2px #2fa4a1;
}

/* FULL WIDTH */
.full{
  grid-column:1/3;
}

/* TEXTAREA */
textarea{
  min-height:120px;
  resize:none;
}

/* CHECKBOX */
.check{
  grid-column:1/3;
  font-size:13px;
  text-align:left;
}

/* BOTÓN */
.submit{
  grid-column:1/3;
  width:180px;
  padding:14px;
  border:none;
  border-radius:6px;
  background:#2fa4a1;
  color:white;
  font-weight:600;
  cursor:pointer;
  transition:.2s;
  justify-self:start;
}

.submit:hover{
  background:#248f8c;
  transform:translateY(-2px);
}

/* ================= LOCALIZACIONES ================= */
.localizaciones{
  text-align:center;
  padding:60px 20px;
  background:white;
}

.localizaciones h2{
  font-size:36px;
  color:#1f4ea3;
}

.oficinas{
  display:flex;
  justify-content:center;
  gap:60px;
  margin-top:40px;
  flex-wrap:wrap;
}

.oficina{
  max-width:250px;
}

.oficina h3{
  color:var(--accent);
  margin-bottom:10px;
}

.oficina p{
  font-size:14px;
  margin:5px 0;
}

/* ================= MAPA ================= */
.mapa iframe{
  width:100%;
  height:400px;
  border:none;
}

.mensaje-exito{
  margin-top:20px;
  background:#2fa4a1;
  color:white;
  padding:15px;
  border-radius:8px;
  display:none;
  font-weight:600;
  animation:fadeIn .4s ease;
}

@keyframes fadeIn{
  from{opacity:0;transform:translateY(10px)}
  to{opacity:1;transform:translateY(0)}
}

/* ================= HAMBURGUESA ================= */

.menu-toggle{
  display:none;
  font-size:26px;
  cursor:pointer;
}

/* 🔥 MOBILE */
@media(max-width:768px){

  .menu-toggle{
    display:block;
  }

  nav{
    position:absolute;
    top:100%;
    left:0;
    width:100%;
    background:white;

    display:flex;
    flex-direction:column;
    align-items:center;
    gap:15px;
    padding:20px 0;

    /* 🔥 IMPORTANTE */
    transform:translateY(-20px);
    opacity:0;
    pointer-events:none;

    transition:.3s;
  }

  nav.active{
    transform:translateY(0);
    opacity:1;
    pointer-events:auto;
  }

  header .inner{
    position:relative;
  }
}

@media(max-width:768px){

  .form-grid{
    grid-template-columns:1fr;
    padding:25px;
  }

  .full,
  .check,
  .submit{
    grid-column:1;
  }

  .submit{
    width:100%;
    justify-self:center;
  }

}



/* ================= SERVICIOS.HTML ================= */

/* ================= RESET ================= */

body{
  font-family:'Open Sans',sans-serif;
  background:linear-gradient(to bottom,#eef2f7,#e6ecf3);
  color:var(--text);
  overflow-x:hidden; /* 🔥 evita scroll lateral */
}

h1,h2,h3{
  font-family:'Playfair Display',serif;
}

/* ================= HERO SERVICIOS ================= */
/* 🔥 NO tocamos .hero global */
.hero-servicios{
  height:60vh;
  min-height:300px;
  max-height:500px;

  background:url("https://images.unsplash.com/photo-1556742049-0cfed4f6a45d") center/cover no-repeat;

  display:flex;
  align-items:center;
  position:relative;
}

.hero-servicios::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
    to right,
    rgba(248,246,242,0.95) 35%,
    rgba(248,246,242,0.6) 45%,
    rgba(248,246,242,0.2) 55%
  );
}

.hero-servicios .hero-content{
  position:relative;
  max-width:1200px;
  margin:auto;
  padding:0 20px;
}

.hero-servicios h1{
  color:var(--primary);
  font-size:clamp(24px,5vw,42px);
}

.hero-servicios p{
  margin-top:10px;
  color:var(--muted);
}

/* ================= SERVICIOS ================= */
.servicios{
  padding:80px 20px;
}

.grid{
  max-width:1200px;
  margin:auto;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:30px;
}

/* ================= CARD ================= */
.card{
  background:#fff;
  padding:30px;
  border-radius:8px;
  box-shadow:0 8px 25px rgba(0,0,0,.06);
  transition:.25s;
}

.card:hover{
  transform:translateY(-8px);
  box-shadow:0 15px 40px rgba(0,0,0,.1);
}

.card .icon{
  margin-bottom:15px;
}

.icon svg{
  width:42px;
  height:42px;
  stroke:#2fa4a1;
  stroke-width:1.6;
  fill:none;
  transition:.3s;
}

.card:hover .icon svg{
  stroke:var(--primary);
  transform:scale(1.1);
}

.card h3{
  color:var(--primary);
  margin-bottom:10px;
}

.card p{
  font-size:14px;
  color:var(--muted);
  line-height:1.6;
}

.card a{
  display:inline-block;
  margin-top:12px;
  color:var(--primary);
  font-weight:600;
  text-decoration:none;
}

/* ================= CTA ================= */
.cta{
  text-align:center;
  padding:60px 20px;
  
}

.cta a{
  background:var(--primary);
  color:white;
  padding:15px 30px;
  border:none;
  border-radius:6px;
  cursor:pointer;
  box-shadow:0 10px 20px rgba(0,0,0,.1);
}

/* ================= INFO ================= */
.info-pro{
  max-width:1100px;
  margin:120px auto;
  display:flex;
  flex-direction:column;
  gap:60px;
  padding:0 20px;
}

.info-card{
  background:#fff;
  padding:30px;
  border-radius:10px;
  box-shadow:0 20px 50px rgba(0,0,0,0.1);
  border-left:4px solid #2fa4a1;
}

.info-card h3{
  color:#2fa4a1;
  margin-bottom:10px;
}

.info-card p{
  color:var(--muted);
  font-size:14px;
  line-height:1.6;
}

.info-card li{
  color:#2fa4a1;
  font-size:14px;
  margin-bottom:5px;
}

/* CTA AZUL */
.info-cta{
  background:linear-gradient(135deg,#1f4ea3,#163a7a);
  color:#fff;
  padding:25px;
  border-radius:8px;
  font-weight:600;
  text-align:center;
}

/* ================= DECORATIVO ================= */
.separador{
  height:150px;
  background:#1f4ea3;
}

.contact-bar{
  background:#f2f4f7;
  text-align:center;
  padding:30px 20px;
}

.contact-bar a{
  font-size:22px;
  font-weight:700;
  color:var(--primary);
  text-decoration:none;
}

.telefonos-servicios{
  display:flex;
  justify-content:center;
  gap:25px;
  flex-wrap:wrap;
  margin-top:15px;
}

.telefonos-servicios a{
  display:flex;
  align-items:center;
  gap:8px; /* espacio icono-texto */
  padding:10px 18px; /* 🔥 más aire dentro */
}

/* ================= HAMBURGUESA ================= */
.menu-toggle{
  display:none;
  font-size:26px;
  cursor:pointer;
}

@media(max-width:768px){

  .menu-toggle{
    display:block;
  }

  nav{
    position:absolute;
    top:100%;
    left:0;
    width:100%;
    background:white;

    display:flex;
    flex-direction:column;
    align-items:center;
    gap:15px;
    padding:20px 0;

    transform:translateY(-20px);
    opacity:0;
    pointer-events:none;
    transition:.3s;
  }

  nav.active{
    transform:translateY(0);
    opacity:1;
    pointer-events:auto;
  }

  header .inner{
    position:relative;
  }
}

/* ================= RESPONSIVE ================= */

/* TABLET */
@media(max-width:1024px){
  .grid{
    grid-template-columns:repeat(2,1fr);
  }
}

/* MOBILE */
@media(max-width:768px){

  .grid{
    grid-template-columns:1fr;
  }

  .servicios{
    padding:50px 20px;
  }

  .hero-servicios{
    height:300px;
  }

}


/* HERO LEGAL */
.hero-legal{
  height:40vh;
  min-height:250px;
  background:linear-gradient(135deg, #0b1c2c, #123a5a);
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:#fff;
}

.hero-legal h1{
  font-size:42px;
  font-weight:600;
}

/* CONTENIDO */
.legal-container{
  max-width:1000px;
  margin:60px auto;
  padding:0 20px;
  line-height:1.7;
}

.legal-container h2{
  margin-top:40px;
  color:#0b1c2c;
}

.legal-container p{
  margin:15px 0;
}

.check a{
  color:#fff;
  text-decoration:underline;
}


.cookie-banner{
  position:fixed;
  bottom:0;
  width:100%;
  background:#0b1c2c;
  padding:15px;
  z-index:9999;
  box-shadow:0 -2px 10px rgba(0,0,0,0.3);
  display:none;
}

.cookie-box{
  max-width:1100px;
  margin:auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  color:#fff;
}

.cookie-box p{
  font-size:14px;
}

.cookie-box a{
  color:#4da6ff;
  text-decoration:underline;
}

.cookie-buttons{
  display:flex;
  gap:10px;
}

.btn-accept{
  background:#c00;
  color:#fff;
  border:none;
  padding:8px 16px;
  border-radius:5px;
  cursor:pointer;
}

.btn-reject{
  background:#444;
  color:#fff;
  border:none;
  padding:8px 16px;
  border-radius:5px;
  cursor:pointer;
}


.cookie-banner{
  position:fixed;
  bottom:0;
  left:0;
  width:100%;
  background:#0b1f33;
  color:#fff;
  padding:15px;
  display:none;

  transform:translateY(100%);
  opacity:0;
  transition:all 0.4s ease;
  z-index:9999;
}

/* Cuando aparece */
.cookie-banner.show{
  transform:translateY(0);
  opacity:1;
}

/* Cuando desaparece */
.cookie-banner.hide{
  transform:translateY(100%);
  opacity:0;
}



.horario{
  margin-top:10px;
  font-size:13px;
  color:#aab3c0;
}

.horario .fila{
  display:flex;
  justify-content:space-between;
  gap:20px;
  margin-bottom:6px;
}

.horario .horas{
  display:flex;
  flex-direction:column;
  text-align:right;
}

/* Destacar títulos */
.horario .fila span:first-child{
  color:#fff;
  font-weight:500;
}

.footer-bottom span{
  font-size:13px;
  color:#aab3c0;
}

.whatsapp-container{
  position:fixed;
  bottom:25px;
  right:25px;
  z-index:9999;
}

/* BOTÓN */
.whatsapp-float{
  width:60px;
  height:60px;
  background:#25D366;
  color:white;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:28px;
  box-shadow:0 10px 25px rgba(0,0,0,0.25);
  animation:pulse 2s infinite;
  transition:.3s;
  text-decoration:none !important;
  border:none;
}

.whatsapp-float:hover{
  transform:scale(1.1);
  background:#1ebe5d;
}

/* ANIMACIÓN LATIDO */
@keyframes pulse{
  0%{box-shadow:0 0 0 0 rgba(37,211,102,0.7);}
  70%{box-shadow:0 0 0 15px rgba(37,211,102,0);}
  100%{box-shadow:0 0 0 0 rgba(37,211,102,0);}
}

/* TOOLTIP */
.whatsapp-tooltip{
  position:absolute;
  bottom:75px;
  right:0;
  background:white;
  color:#333;
  padding:10px 15px;
  border-radius:10px;
  box-shadow:0 10px 25px rgba(0,0,0,0.1);
  font-size:14px;
  display:flex;
  align-items:center;
  gap:10px;
  opacity:0;
  transform:translateY(10px);
  transition:.4s;
}

.whatsapp-tooltip.show{
  opacity:1;
  transform:translateY(0);
}

/* BOTÓN CERRAR */
.whatsapp-tooltip button{
  background:none;
  border:none;
  cursor:pointer;
  font-size:14px;
}

/* MOBILE */
@media(max-width:768px){
  .whatsapp-float{
    width:55px;
    height:55px;
    font-size:24px;
    text-decoration:none !important;
    border:none;
  }

  .whatsapp-tooltip{
    font-size:13px;
    padding:8px 12px;
  }
}

[data-aos]{
  opacity:0;
  transform:translateY(15px);
  transition: all 0.8s ease;
}

[data-aos].aos-animate{
  opacity:1;
  transform:translateY(0);
}

/* ================= OPINIONES ================= */

.opiniones{
  padding:80px 20px;
  text-align:center;
  background:linear-gradient(135deg,#0f2e66,#123e8a);
  color:white;
}

.opiniones h2{
  font-size:36px;
  margin-bottom:10px;
}

.opiniones p{
  opacity:.8;
  margin-bottom:40px;
}

.opiniones-grid{
  max-width:1100px;
  margin:auto;
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:25px;
}

/* CARD */
.opinion{
  background:rgba(255,255,255,0.06);
  padding:25px;
  border-radius:12px;
  backdrop-filter:blur(10px);
  text-align:left;
  transition:.3s;
}

.opinion:hover{
  transform:translateY(-5px);
  background:rgba(255,255,255,0.1);
}

/* ESTRELLAS */
.stars{
  color:#FFD700;
  margin-bottom:10px;
  font-size:14px;
}

/* TEXTO */
.opinion p{
  font-size:14px;
  line-height:1.5;
  margin-bottom:10px;
}

.opinion span{
  font-size:13px;
  opacity:.7;
}

/* BOTÓN */
.btn-opiniones{
  display:inline-block;
  margin-top:40px;
  padding:14px 28px;
  background:white;
  color:#123e8a;
  border-radius:30px;
  font-weight:600;
  text-decoration:none;
  transition:.3s;
}

.btn-opiniones:hover{
  transform:scale(1.05);
  background:#e6e6e6;
}

/* RESPONSIVE */
@media(max-width:768px){
  .opiniones-grid{
    grid-template-columns:1fr;
  }
}

.store-icons{
  display:flex;
  gap:12px;
  margin-top:14px;
}

.store-icons a{
  width:40px;
  height:40px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  background:#f1f3f5;
  color:#1d3557;
  font-size:18px;
  transition:0.25s;
  box-shadow:0 2px 6px rgba(0,0,0,0.08);
}

.store-icons a:hover{
  background:#1d3557;
  color:#fff;
}