/* ==========================================================
   TOKENS
   ========================================================== */
:root{
  --navy: #0B1E3F;
  --navy-deep: #071530;
  --navy-soft: #4A5A7A;
  --accent: #2E6DB4;
  --accent-deep: #1F4D82;
  --accent-light: #5FA1DE;
  --whatsapp: #25D366;
  --whatsapp-deep: #1DA851;
  --bg: #F5F7FB;
  --white: #FFFFFF;
  --ink: #101828;
  --ink-soft: #5B6478;
  --border: #E6E9F2;

  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(11,30,63,0.10);
  --shadow-lg: 0 20px 50px rgba(11,30,63,0.18);
}

*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--bg);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%; display:block;}
a{color:inherit; text-decoration:none;}
ul{list-style:none;}
button{font-family:inherit; cursor:pointer; border:none;}

.container{
  width:100%;
  max-width:1180px;
  margin:0 auto;
  padding:0 24px;
}

h1,h2,h3,h4{font-family:var(--font-display); font-weight:700; color:var(--navy); line-height:1.15;}
.text-accent{color:var(--accent-deep);}

.eyebrow{
  font-family:var(--font-body);
  font-weight:700;
  font-size:13px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--accent-deep);
  margin-bottom:8px;
}
.eyebrow--light{color:var(--accent);}

/* ==========================================================
   BUTTONS
   ========================================================== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  font-family:var(--font-body);
  font-weight:700;
  font-size:15px;
  padding:12px 22px;
  border-radius:10px;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space:nowrap;
}
.btn:hover{transform:translateY(-2px);}

.btn--call{
  background:var(--accent);
  color:var(--white);
  font-size:14px;
  padding:10px 18px;
}
.btn--accent{
  background:var(--accent);
  color:var(--white);
  box-shadow:0 8px 20px rgba(46,109,180,0.35);
}
.btn--accent:hover{background:var(--accent-deep);}

.btn--whatsapp{
  background:var(--whatsapp);
  color:var(--white);
  box-shadow:0 8px 20px rgba(37,211,102,0.35);
}
.btn--whatsapp:hover{background:var(--whatsapp-deep);}

.btn--navy{
  background:var(--navy);
  color:var(--white);
}
.btn--navy:hover{background:var(--navy-deep);}

.btn--lg{
  padding:14px 22px;
  font-size:15px;
  line-height:1.25;
}
.btn--lg span strong{font-size:17px;}

.btn--block{width:100%;}

/* ==========================================================
   HEADER
   ========================================================== */
.header{
  position:sticky;
  top:0;
  z-index:100;
  background:var(--white);
  border-bottom:1px solid var(--border);
}
.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  height:76px;
}

.logo{display:flex; align-items:center; gap:10px;}
.logo__img{
  height:40px;
  width:auto;
  display:block;
}
.logo__icon{
  width:38px; height:38px;
  border-radius:9px;
  background:var(--navy);
  color:var(--accent);
  display:flex; align-items:center; justify-content:center;
  font-size:19px;
  flex-shrink:0;
}
.logo__text{display:flex; flex-direction:column; line-height:1.1;}
.logo__text strong{font-family:var(--font-display); font-weight:800; color:var(--navy); font-size:17px;}
.logo__text span{font-family:var(--font-display); font-weight:800; color:var(--accent-deep); font-size:17px; margin-left:2px;}
.logo__text small{font-size:10px; color:var(--ink-soft); letter-spacing:.03em;}

.nav{display:flex; gap:28px;}
.nav a{
  font-size:14px;
  font-weight:600;
  color:var(--navy-soft);
  position:relative;
  padding:6px 0;
}
.nav a:hover{color:var(--navy);}

.nav__toggle{
  display:none;
  flex-direction:column;
  gap:5px;
  background:none;
  width:26px;
}
.nav__toggle span{display:block; height:2px; background:var(--navy); border-radius:2px;}

/* ==========================================================
   HERO
   ========================================================== */
.hero{
  position:relative;
  background:linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 65%);
  overflow:hidden;
  padding:64px 0 80px;
}
.hero__bg-grid{
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size:44px 44px;
  mask-image:radial-gradient(ellipse at 30% 30%, black, transparent 70%);
}
.hero__inner{
  position:relative;
  display:grid;
  grid-template-columns:1.15fr 0.85fr;
  gap:40px;
  align-items:center;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:rgba(95,161,222,0.14);
  border:1px solid rgba(95,161,222,0.4);
  color:var(--accent-light);
  font-size:13px;
  font-weight:700;
  letter-spacing:.04em;
  padding:7px 14px;
  border-radius:100px;
  margin-bottom:22px;
}
.badge__dot{
  width:8px; height:8px;
  border-radius:50%;
  background:var(--accent-light);
  box-shadow:0 0 0 0 rgba(95,161,222,0.6);
  animation:pulse 1.8s infinite;
}
@keyframes pulse{
  0%{box-shadow:0 0 0 0 rgba(95,161,222,0.55);}
  70%{box-shadow:0 0 0 9px rgba(95,161,222,0);}
  100%{box-shadow:0 0 0 0 rgba(95,161,222,0);}
}

.hero h1{
  color:var(--white);
  font-size:clamp(32px, 4.4vw, 50px);
  margin-bottom:18px;
}
.hero__lead{
  color:rgba(255,255,255,0.72);
  font-size:16px;
  max-width:480px;
  margin-bottom:30px;
}
.hero__ctas{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:36px;
}
.hero__trust{
  display:flex;
  flex-wrap:wrap;
  gap:20px 28px;
}
.hero__trust li{
  display:flex;
  align-items:center;
  gap:8px;
  color:rgba(255,255,255,0.78);
  font-size:13.5px;
  font-weight:500;
}
.hero__trust svg{color:var(--accent-light); flex-shrink:0;}

.hero__disclaimer{
  margin-top:16px;
  font-size:12px;
  line-height:1.5;
  color:rgba(255,255,255,0.5);
  max-width:520px;
}
.hero__disclaimer strong{color:rgba(255,255,255,0.7);}

.hero__visual{
  position:relative;
  height:420px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.hero__pulse-ring{
  position:absolute;
  width:280px; height:280px;
  border-radius:50%;
  border:1px dashed rgba(95,161,222,0.35);
  animation:spin 30s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg);}}

.tool-card{
  position:absolute;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  width:128px;
  padding:22px 14px;
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.12);
  border-radius:16px;
  color:var(--accent);
  font-size:12.5px;
  font-weight:700;
  color:var(--white);
  backdrop-filter:blur(6px);
}
.tool-card svg{color:var(--accent-light);}
.tool-card--1{top:2%; left:0;}
.tool-card--2{top:6%; right:0;}
.tool-card--3{bottom:6%; left:2%;}
.tool-card--4{bottom:2%; right:4%;}

/* ==========================================================
   SERVICIOS
   ========================================================== */
.services{padding:88px 0 70px; text-align:center;}
.services h2{font-size:clamp(26px,3vw,36px); margin-bottom:44px;}

.services__grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:22px;
  text-align:left;
}
.service-card{
  background:var(--white);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:30px 26px 26px;
  box-shadow:var(--shadow);
  transition:transform .2s ease, box-shadow .2s ease;
}
.service-card:hover{transform:translateY(-6px); box-shadow:var(--shadow-lg);}

.service-card__icon{
  width:54px; height:54px;
  border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  margin-bottom:18px;
}
.service-card__icon--blue{background:#E7EDFB; color:#2A4CD6;}
.service-card__icon--steel{background:#E3ECF8; color:#2F5D8F;}
.service-card__icon--cyan{background:#DFF6F6; color:#0FA8A8;}
.service-card__icon--slate{background:#E9ECF3; color:#2C3E5C;}

.service-card h3{font-size:19px; margin-bottom:14px;}
.service-card ul{margin-bottom:18px;}
.service-card li{
  font-size:14px;
  color:var(--ink-soft);
  padding:5px 0 5px 20px;
  position:relative;
}
.service-card li::before{
  content:"";
  position:absolute;
  left:0; top:13px;
  width:6px; height:6px;
  border-radius:50%;
  background:var(--accent);
}
.service-card__link{
  font-size:14px;
  font-weight:700;
  color:var(--navy);
}
.service-card__link:hover{color:var(--accent-deep);}

.services__cta{margin-top:44px;}

/* Botón blanco (para usar sobre fondos de color, p.ej. el banner de urgencias) */
.btn--white{
  background:var(--white);
  color:var(--navy);
}
.btn--white:hover{background:#EAF1FB;}

/* ==========================================================
   BANNER DE URGENCIAS 24H
   ========================================================== */
.urgent-banner{
  display:flex;
  align-items:center;
  gap:26px;
  flex-wrap:wrap;
  text-align:left;
  background:linear-gradient(120deg, var(--navy) 0%, var(--accent-deep) 100%);
  border-radius:var(--radius);
  padding:28px 32px;
  margin-bottom:40px;
  box-shadow:var(--shadow-lg);
}
.urgent-banner__icon{
  width:58px; height:58px;
  border-radius:50%;
  background:rgba(255,255,255,0.14);
  color:var(--accent-light);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.urgent-banner__content{flex:1; min-width:240px;}
.urgent-banner__content h3{color:var(--white); font-size:20px; margin-bottom:12px;}
.urgent-banner__tags{display:flex; flex-wrap:wrap; gap:8px;}
.urgent-banner__tags span{
  font-size:12.5px;
  font-weight:600;
  color:var(--white);
  background:rgba(255,255,255,0.12);
  border:1px solid rgba(255,255,255,0.2);
  padding:5px 12px;
  border-radius:100px;
  white-space:nowrap;
}
.urgent-banner__cta{flex-shrink:0;}

/* ==========================================================
   B2B — PARTICULARES / EMPRESAS / COMUNIDADES
   ========================================================== */
.b2b{
  margin-top:70px;
  background:var(--bg);
  border-radius:var(--radius);
  padding:40px 34px;
  text-align:left;
}
.b2b__text{text-align:center; margin-bottom:28px;}
.b2b__text h3{font-size:clamp(20px,2.4vw,26px); max-width:640px; margin:0 auto;}
.b2b__grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:14px;
}
.b2b__grid li{
  display:flex;
  align-items:center;
  gap:10px;
  background:var(--white);
  border:1px solid var(--border);
  border-radius:10px;
  padding:14px 16px;
  font-size:13.5px;
  font-weight:600;
  color:var(--navy-soft);
}
.b2b__grid svg{color:var(--accent); flex-shrink:0;}

/* ==========================================================
   POR QUÉ ELEGIRNOS
   ========================================================== */
.why{background:var(--navy-deep); padding:60px 0; color:var(--white);}
.why__title{color:var(--white); text-align:center; font-size:clamp(24px,3vw,32px); margin-bottom:44px;}
.why__grid{
  display:grid;
  grid-template-columns:repeat(5, 1fr);
  gap:20px;
  text-align:center;
}
.why__item{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  padding:20px 10px;
}
.why__item svg{color:var(--accent-light);}
.why__item h4{color:var(--white); font-size:14.5px;}
.why__item p{color:rgba(255,255,255,0.6); font-size:12.5px;}

/* ==========================================================
   ZONA DE ACTUACIÓN
   ========================================================== */
.zone{padding:80px 0; background:var(--white);}
.zone__inner{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:50px;
  align-items:center;
}
.zone__text h2{font-size:clamp(24px,3vw,32px); margin-bottom:16px;}
.zone__text p{color:var(--ink-soft); margin-bottom:24px; max-width:420px;}
.zone__towns{
  color:var(--ink-soft);
  font-size:14.5px;
  line-height:1.8;
  max-width:480px;
  margin-bottom:14px !important;
}
.zone__extra{
  font-weight:700;
  color:var(--navy);
  font-size:14.5px;
  margin-bottom:24px !important;
}
.zone__map{
  background:#EAF1FB;
  border-radius:var(--radius);
  overflow:hidden;
  aspect-ratio:4/3;
}

/* ==========================================================
   OPINIONES
   ========================================================== */
.reviews{padding:80px 0; text-align:center;}
.reviews h2{font-size:clamp(24px,3vw,32px); margin-bottom:28px;}

.rating-badge{
  display:inline-flex;
  align-items:center;
  gap:14px;
  background:var(--white);
  border:1px solid var(--border);
  border-radius:100px;
  padding:14px 26px;
  margin-bottom:44px;
  box-shadow:var(--shadow);
  transition:transform .15s ease, box-shadow .15s ease;
}
.rating-badge:hover{transform:translateY(-2px); box-shadow:var(--shadow-lg);}
.rating-badge__stars{color:var(--accent); font-size:18px; letter-spacing:2px;}
.rating-badge__score{font-family:var(--font-display); font-weight:700; font-size:18px; color:var(--navy);}
.rating-badge__meta{font-size:13px; color:var(--ink-soft); border-left:1px solid var(--border); padding-left:14px;}

.reviews__grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
  text-align:left;
}
.review-card{
  background:var(--white);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:26px;
  box-shadow:var(--shadow);
}
.review-card__stars{color:var(--accent); font-size:16px; margin-bottom:12px; letter-spacing:2px;}
.review-card p{font-size:14.5px; color:var(--ink); margin-bottom:14px;}
.review-card span{font-size:13px; font-weight:700; color:var(--navy-soft);}

/* ==========================================================
   GALERÍA DE TRABAJOS
   ========================================================== */
.gallery{padding:80px 0; text-align:center; background:var(--bg);}
.gallery h2{font-size:clamp(24px,3vw,32px); margin-bottom:32px;}

.gallery__tabs{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px;
  margin-bottom:34px;
}
.gallery__tab{
  background:var(--white);
  border:1px solid var(--border);
  color:var(--navy-soft);
  font-family:var(--font-body);
  font-weight:600;
  font-size:13.5px;
  padding:9px 18px;
  border-radius:100px;
  transition:background .15s ease, color .15s ease, border-color .15s ease;
}
.gallery__tab:hover{border-color:var(--accent);}
.gallery__tab.is-active{
  background:var(--navy);
  border-color:var(--navy);
  color:var(--white);
}

.gallery__grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:16px;
  text-align:left;
}
.gallery__item{
  border-radius:12px;
  overflow:hidden;
  aspect-ratio:4/3;
  background:var(--white);
  border:1px solid var(--border);
}
.gallery__item img{width:100%; height:100%; object-fit:cover; display:block;}

.gallery__empty{
  grid-column:1/-1;
  padding:50px 20px;
  color:var(--ink-soft);
  font-size:14.5px;
  background:var(--white);
  border:1px dashed var(--border);
  border-radius:var(--radius);
}

/* ==========================================================
   CONTACTO
   ========================================================== */
.contact{background:var(--navy); padding:90px 0; color:var(--white);}
.contact__inner{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:60px;
  align-items:start;
}
.contact__info h2{color:var(--white); font-size:clamp(26px,3vw,36px); margin-bottom:16px;}
.contact__lead{color:rgba(255,255,255,0.7); margin-bottom:30px; max-width:420px;}

.contact__item{
  display:flex;
  align-items:center;
  gap:14px;
  padding:14px 0;
  border-bottom:1px solid rgba(255,255,255,0.1);
}
.contact__item div small{display:block; color:rgba(255,255,255,0.55); font-size:12.5px; margin-top:2px;}
.contact__item div strong{font-size:15.5px;}
.contact__icon{
  width:42px; height:42px;
  border-radius:50%;
  background:rgba(95,161,222,0.16);
  color:var(--accent-light);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.contact__icon--whatsapp{background:rgba(37,211,102,0.16); color:var(--whatsapp);}
.contact__item--static{cursor:default;}

.contact__pricing-note{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin-top:22px;
  padding:16px 18px;
  background:rgba(95,161,222,0.1);
  border:1px solid rgba(95,161,222,0.25);
  border-radius:10px;
}
.contact__pricing-note svg{color:var(--accent-light); flex-shrink:0; margin-top:2px;}
.contact__pricing-note p{font-size:13.5px; line-height:1.6; color:rgba(255,255,255,0.8);}
.contact__pricing-note strong{color:var(--white);}

.contact__form{
  background:var(--white);
  border-radius:var(--radius);
  padding:34px;
  box-shadow:var(--shadow-lg);
}
.contact__form h3{color:var(--navy); font-size:19px; margin-bottom:20px;}
.form__row{margin-bottom:16px;}
.form__row label{
  display:block;
  font-size:13px;
  font-weight:700;
  color:var(--navy-soft);
  margin-bottom:6px;
}
.form__row input,
.form__row select,
.form__row textarea{
  width:100%;
  font-family:var(--font-body);
  font-size:14.5px;
  padding:11px 13px;
  border:1px solid var(--border);
  border-radius:9px;
  background:var(--bg);
  color:var(--ink);
}
.form__row input:focus,
.form__row select:focus,
.form__row textarea:focus{
  outline:2px solid var(--accent);
  outline-offset:1px;
  background:var(--white);
}
.form__row textarea{resize:vertical;}
.form__note{
  font-size:11.5px;
  color:var(--ink-soft);
  margin-top:12px;
  text-align:center;
}
.form__success{
  margin-top:16px;
  background:#E9F9EE;
  color:#1B7A3C;
  font-size:14px;
  font-weight:600;
  padding:12px 14px;
  border-radius:9px;
  text-align:center;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.footer{background:var(--navy-deep); padding:36px 0 100px;}
.footer__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:20px;
}
.logo--footer .logo__text strong,
.logo--footer .logo__text span{color:var(--white);}
.footer__brand{display:flex; flex-direction:column; gap:6px; align-items:flex-start;}
.footer__tagline{color:rgba(255,255,255,0.6); font-size:13px; margin-top:2px;}
.footer__meta{color:rgba(255,255,255,0.4); font-size:12.5px;}
.footer__phone{
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:var(--accent-light);
  font-weight:700;
  font-size:13.5px;
  margin-top:4px;
}
.footer__phone:hover{color:var(--white);}
.footer__nav{display:flex; gap:22px; flex-wrap:wrap;}
.footer__nav a{color:rgba(255,255,255,0.65); font-size:13.5px; font-weight:500;}
.footer__nav a:hover{color:var(--accent);}
.footer__legal{color:rgba(255,255,255,0.4); font-size:12.5px; width:100%; text-align:center; margin-top:8px;}

/* ==========================================================
   BARRA FIJA MÓVIL
   ========================================================== */
.mobile-bar{
  display:none;
  position:fixed;
  bottom:0; left:0; right:0;
  z-index:200;
  background:var(--navy-deep);
  box-shadow:0 -6px 20px rgba(0,0,0,0.25);
}
.mobile-bar__btn{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:14px 0;
  font-weight:700;
  font-size:14px;
}
.mobile-bar__btn--call{background:var(--accent); color:var(--white);}
.mobile-bar__btn--whatsapp{background:var(--whatsapp); color:var(--white);}

/* ==========================================================
   WHATSAPP FLOTANTE
   ========================================================== */
.fab-whatsapp{
  position:fixed;
  bottom:26px; right:26px;
  width:58px; height:58px;
  border-radius:50%;
  background:var(--whatsapp);
  color:var(--white);
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 10px 25px rgba(37,211,102,0.45);
  z-index:150;
  transition:transform .15s ease;
}
.fab-whatsapp:hover{transform:scale(1.08);}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 980px){
  .hero__inner{grid-template-columns:1fr;}
  .hero__visual{height:280px; order:-1;}
  .why__grid{grid-template-columns:repeat(3,1fr);}
  .zone__inner{grid-template-columns:1fr;}
  .contact__inner{grid-template-columns:1fr;}
  .services__grid{grid-template-columns:repeat(2,1fr);}
  .reviews__grid{grid-template-columns:1fr;}
  .b2b__grid{grid-template-columns:repeat(2,1fr);}
  .gallery__grid{grid-template-columns:repeat(2,1fr);}
  .urgent-banner{flex-direction:column; align-items:flex-start;}
  .urgent-banner__cta{width:100%; text-align:center;}
}

@media (max-width: 600px){
  .services__grid{grid-template-columns:1fr;}
  .b2b__grid{grid-template-columns:1fr;}
  .gallery__grid{grid-template-columns:1fr;}
  .rating-badge{flex-wrap:wrap; justify-content:center; text-align:center;}
  .rating-badge__meta{border-left:none; padding-left:0; width:100%;}
}

@media (max-width: 760px){
  .nav{
    position:absolute;
    top:76px; left:0; right:0;
    background:var(--white);
    flex-direction:column;
    padding:16px 24px 20px;
    border-bottom:1px solid var(--border);
    display:none;
    gap:14px;
  }
  .nav.is-open{display:flex;}
  .nav__toggle{display:flex;}
  .header__call{display:none;}
  .why__grid{grid-template-columns:repeat(2,1fr);}
  .mobile-bar{display:flex;}
  .fab-whatsapp{display:none;}
  .footer{padding-bottom:110px;}
  body{padding-bottom:0;}
  .hero{padding-bottom:56px;}
  .tool-card{width:104px; padding:16px 10px; font-size:11px;}
  .footer__inner{flex-direction:column; text-align:center;}
  .footer__brand{align-items:center;}
}

@media (max-width: 480px){
  .hero__ctas{flex-direction:column;}
  .btn--lg{width:100%;}
}

/* Respeta preferencia de reducir movimiento */
@media (prefers-reduced-motion: reduce){
  *{animation:none !important; transition:none !important;}
}

/* Foco visible accesible */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:2px;
}

/* ==========================================================
   GALERÍA — miniaturas clicables
   ========================================================== */
.gallery__item{
  cursor:pointer;
  padding:0;
  border:1px solid var(--border);
  background:var(--white);
}
.gallery__item:hover img{opacity:0.88;}
.gallery__item img{transition:opacity .15s ease;}

/* ==========================================================
   VISOR / CARRUSEL (LIGHTBOX)
   ========================================================== */
.lightbox{
  position:fixed;
  inset:0;
  z-index:1000;
  background:rgba(7,15,30,0.94);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:70px 90px;
}
.lightbox[hidden]{display:none;}

.lightbox__figure{
  max-width:100%;
  max-height:100%;
  margin:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
}
.lightbox__figure img{
  max-width:100%;
  max-height:78vh;
  object-fit:contain;
  border-radius:8px;
  box-shadow:0 20px 60px rgba(0,0,0,0.5);
  background:#0000;
}
.lightbox__figure figcaption{
  color:rgba(255,255,255,0.85);
  font-size:14.5px;
  text-align:center;
  max-width:640px;
}

.lightbox__close{
  position:absolute;
  top:22px; right:22px;
  width:44px; height:44px;
  border-radius:50%;
  background:rgba(255,255,255,0.1);
  color:var(--white);
  display:flex; align-items:center; justify-content:center;
  transition:background .15s ease;
}
.lightbox__close:hover{background:rgba(255,255,255,0.2);}

.lightbox__nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:52px; height:52px;
  border-radius:50%;
  background:rgba(255,255,255,0.1);
  color:var(--white);
  display:flex; align-items:center; justify-content:center;
  transition:background .15s ease;
}
.lightbox__nav:hover{background:rgba(255,255,255,0.2);}
.lightbox__nav--prev{left:22px;}
.lightbox__nav--next{right:22px;}

.lightbox__counter{
  position:absolute;
  bottom:22px; left:50%;
  transform:translateX(-50%);
  color:rgba(255,255,255,0.6);
  font-size:13px;
  font-weight:600;
  letter-spacing:.03em;
}

@media (max-width: 760px){
  .lightbox{padding:90px 16px 60px;}
  .lightbox__nav{width:44px; height:44px;}
  .lightbox__nav--prev{left:8px;}
  .lightbox__nav--next{right:8px;}
  .lightbox__close{top:14px; right:14px;}
}

/* ==========================================================
   FORMULARIO — honeypot (campo trampa antibots) y error
   ========================================================== */
.form__honeypot{
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.form__success--error{
  background:#FDECEC;
  color:#B42318;
}

/* ==========================================================
   PIE DE PÁGINA — teléfonos y enlaces legales
   ========================================================== */
.footer__phone-label{
  color:rgba(255,255,255,0.45);
  font-weight:500;
}
.footer__bottom{
  width:100%;
  margin-top:18px;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,0.08);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
}
.footer__legal{margin-top:0;}
.footer__legal-nav{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:6px 18px;
}
.footer__legal-nav a,
.footer__legal-link-btn{
  color:rgba(255,255,255,0.5);
  font-size:12.5px;
  background:none;
  border:none;
  padding:0;
  cursor:pointer;
  font-family:inherit;
}
.footer__legal-nav a:hover,
.footer__legal-link-btn:hover{color:var(--accent-light);}

/* ==========================================================
   AVISO DE COOKIES
   ========================================================== */
.cookie-banner{
  position:fixed;
  left:0; right:0; bottom:0;
  z-index:900;
  background:var(--navy-deep);
  border-top:1px solid rgba(255,255,255,0.1);
  box-shadow:0 -8px 30px rgba(0,0,0,0.3);
}
.cookie-banner[hidden]{display:none;}
.cookie-banner__inner{
  max-width:1180px;
  margin:0 auto;
  padding:20px 24px;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:18px 24px;
}
.cookie-banner__text{
  flex:1;
  min-width:260px;
  color:rgba(255,255,255,0.75);
  font-size:13.5px;
  line-height:1.55;
}
.cookie-banner__text a{color:var(--accent-light); text-decoration:underline;}
.cookie-banner__actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.cookie-banner__btn{
  font-size:13.5px;
  padding:10px 16px;
  white-space:nowrap;
}

.cookie-modal{
  position:fixed;
  inset:0;
  z-index:950;
  background:rgba(7,15,30,0.7);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
}
.cookie-modal[hidden]{display:none;}
.cookie-modal__panel{
  background:var(--white);
  border-radius:var(--radius);
  max-width:560px;
  width:100%;
  max-height:85vh;
  overflow-y:auto;
  padding:30px;
  box-shadow:var(--shadow-lg);
}
.cookie-modal__panel h3{font-size:20px; margin-bottom:10px;}
.cookie-modal__panel > p{color:var(--ink-soft); font-size:14px; margin-bottom:20px;}
.cookie-modal__option{
  border-top:1px solid var(--border);
  padding:16px 0;
}
.cookie-modal__option-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  cursor:pointer;
}
.cookie-modal__option-head strong{font-size:14.5px; color:var(--navy);}
.cookie-modal__option-head input[type="checkbox"]{width:18px; height:18px; accent-color:var(--accent);}
.cookie-modal__always{
  font-size:12px;
  font-weight:600;
  color:var(--ink-soft);
  background:var(--bg);
  padding:3px 10px;
  border-radius:100px;
}
.cookie-modal__option p{font-size:13px; color:var(--ink-soft); margin-top:6px;}
.cookie-modal__actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:22px;
  flex-wrap:wrap;
}

@media (max-width: 600px){
  .cookie-banner__inner{flex-direction:column; align-items:stretch;}
  .cookie-banner__actions{flex-direction:column;}
  .cookie-banner__btn{width:100%;}
  .cookie-modal__actions{flex-direction:column-reverse;}
  .cookie-modal__actions .btn{width:100%;}
}

/* En móvil, la barra fija de llamada/WhatsApp también vive abajo:
   subimos el aviso de cookies para que no se solapen. */
@media (max-width: 760px){
  .cookie-banner{bottom:62px;}
}

/* ==========================================================
   PÁGINAS LEGALES (aviso legal, privacidad, cookies)
   ========================================================== */
.legal{
  padding:60px 0 90px;
  background:var(--white);
}
.legal .container{max-width:860px;}
.legal h1{font-size:clamp(26px,3.4vw,36px); margin-bottom:8px;}
.legal__updated{color:var(--ink-soft); font-size:13.5px; margin-bottom:36px;}
.legal h2{
  font-size:19px;
  color:var(--navy);
  margin:34px 0 12px;
  padding-top:6px;
}
.legal h2:first-of-type{margin-top:0;}
.legal p{color:var(--ink-soft); font-size:15px; line-height:1.7; margin-bottom:14px;}
.legal ul{margin:0 0 14px; padding-left:22px;}
.legal li{color:var(--ink-soft); font-size:15px; line-height:1.7; margin-bottom:6px; list-style:disc;}
.legal strong{color:var(--ink);}
.legal a{color:var(--accent); text-decoration:underline;}
.legal table{
  width:100%;
  border-collapse:collapse;
  margin:16px 0 22px;
  font-size:14px;
}
.legal th, .legal td{
  text-align:left;
  padding:10px 12px;
  border:1px solid var(--border);
  vertical-align:top;
}
.legal th{background:var(--bg); color:var(--navy); font-weight:700;}
.legal__back{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-bottom:30px;
  font-size:14px;
  font-weight:600;
  color:var(--navy-soft);
}
.legal__back:hover{color:var(--accent);}
