/* =============================================================

   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Exo:wght@400;500;600;650;700;750;800&display=swap');

:root {
  color-scheme: light !important;
  --brand: #00a5a0;
  --brand-2: #39cfc3;
  --brand-dark: #078c89;
  --ink: #171a1b;
  --muted: #626a67;
  --line: #e2e6e2;
  --soft: #f7f8f6;
  --white: #ffffff;
  --radius: 2px;
  --shadow: none;
  --shadow-soft: none;
  --max: 1360px;
  --page-bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f7f8f6;
  --surface-card: #ffffff;
  --text-main: #171a1b;
  --text-muted: #626a67;
  --border-soft: #e2e6e2;
  --section-soft-bg: #f7f8f6;
  --card-shadow: none;
  --teal: #00a5a0;
  --teal-dark: #078c89;
}

html { scroll-padding-top: 100px; }
html, body {
  background: #ffffff !important;
  color: #171a1b !important;
  color-scheme: light !important;
}
body, button, input, select, textarea {
  font-family: 'Exo', sans-serif !important;
}
body { line-height: 1.6; }
a { text-decoration: none; }
.container {
  width: calc(100% - 80px);
  max-width: 1360px;
  margin-right: auto;
  margin-left: auto;
}

/* 01 — CABECERA: como el pre-header y menú de Coberdec */
.topbar {
  background: #171a1b !important;
  border-top: 2px solid #00a5a0;
  border-bottom: 1px solid rgba(255,255,255,.12);
  color: #f0f1f1 !important;
  font-size: 13px;
  background: linear-gradient(90deg, var(--blue-2), var(--brand-dark)) !important;
  text-align: center;
}
.topbar__inner {
  justify-content: flex-start;
  min-height: 41px;
  text-align: center;
}
.topbar__inner span{
text-align: center;
margin: 0 auto;
display: block;
}
.topbar strong { font-weight: 600; }
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,.12) !important;
  background: #171a1b !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
.header__inner { height: 94px; gap: 25px; }
.header .logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0;
}
.header .logo img {
  display: block;
  width: min(230px, 24vw);
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.header .header__nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 32px);
  color: #f5f7f6 !important;
  font-weight: 500;
  font-size: 15px;
}
.header .header__nav a {
  color: #f5f7f6 !important;
  letter-spacing: .015em;
  transition: color .2s ease;
}
.header .header__nav a::after {
  bottom: -8px;
  height: 2px;
  background: #00a5a0 !important;
}
.header .header__nav a:hover,
.header .header__nav a:focus-visible { color: #39cfc3 !important; }

/* 02 — BOTONES: esquinas rectas, un solo color, sin halo */
.btn, .btn.btn--primary, .btn.btn--dark,
.btn.btn--ghost, .btn.btn-primary {
  border-radius: 2px !important;
  box-shadow: none !important;
  letter-spacing: 0;
  font-family: 'Exo', sans-serif !important;
  font-weight: 650;
  font-size: 14px;
  min-height: 52px;
  padding: 13px 21px;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn.btn--primary, .btn.btn-primary {
  background: #00a5a0 !important;
  border: 1px solid #00a5a0 !important;
  color: #ffffff !important;
}
.btn.btn--primary:hover, .btn.btn-primary:hover {
  background: #078c89 !important;
  border-color: #078c89 !important;
  color: #ffffff !important;
  transform: none;
}
.btn.btn--dark {
  background: #171a1b !important;
  border: 1px solid #171a1b !important;
  color: #ffffff !important;
}
.btn.btn--dark:hover { background: #00a5a0 !important; border-color: #00a5a0 !important; }
.btn.btn--ghost { background: transparent !important; border: 1px solid currentColor !important; color: inherit !important; }
.header .btn.btn--primary {
  background: #00a5a0 !important;
  color: #fff !important;
  min-height: 48px;
  white-space: nowrap;
}
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid #00a5a0;
  outline-offset: 3px;
}

/* 03 — HERO: fotografía protagonista, velo oscuro solo a la izquierda */
.hero {
  min-height: 650px;
  color: #fff !important;
  background: #092e2d !important;
}
.hero::before {
  inset: 0;
  height: auto;
  background-image:
    linear-gradient(90deg,
      rgba(4,33,34,.96) 0%,
      rgba(5,37,38,.91) 27%,
      rgba(5,37,38,.69) 49%,
      rgba(5,37,38,.20) 76%,
      rgba(5,37,38,0) 100%),
    url('../../cubrepiscinas/assets/hero-cubrepiscina-horizontal.jpg') !important;
  background-size: cover !important;
  background-position: center right !important;
  transform: none;
}
.hero::after { display: none !important; }
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 800px);
  min-height: 650px;
  align-items: center;
  gap: 0;
  padding: 76px 0 82px;
}
.hero__content { max-width: 800px; }
.hero .eyebrow,
.contact .eyebrow {
  display: inline-block;
  width: auto;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #39cfc3;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.hero .eyebrow::before,
.contact .eyebrow::before { display: none; }
.hero h1 {
  max-width: 760px;
  margin: 0 0 23px;
  font-family: 'Exo', sans-serif;
  font-size: clamp(42px, 4.4vw, 66px);
  line-height: 1.06;
  font-weight: 450;
  letter-spacing: -.035em;
  color: #ffffff !important;
  text-transform: none;
  text-shadow: none;
}
.hero h1 span { color: #39cfc3 !important; }
.hero__lead {
  max-width: 650px;
  color: rgba(255,255,255,.86) !important;
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 400;
  line-height: 1.55;
}
.hero__trust {
  max-width: 770px;
  gap: 0;
  margin-top: 28px;
}
.trust-pill {
  min-height: 64px;
  gap: 11px;
  padding: 9px 16px;
  border: 0;
  border-right: 1px solid rgba(255,255,255,.32);
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none;
  color: #fff;
}
.trust-pill:first-child { padding-left: 0; }
.trust-pill:last-child { border-right: 0; }
.trust-pill svg { width: 24px; height: 24px; color: #39cfc3; }
.trust-pill strong {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
}

/* 04 — SECCIONES, TITULOS Y ESPACIADOS */
.section {
  padding: 84px 0;
  background: #ffffff !important;
  color: #171a1b !important;
}
.section.section--soft {
  background: #f7f8f6 !important;
  color: #171a1b !important;
}
.section__head {
  align-items: flex-end;
  gap: 35px;
  margin-bottom: 36px;
}
.kicker, .section .kicker {
  margin: 0 0 13px;
  color: #626a67 !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.5;
  text-transform: uppercase;
}
.section h2,
.contact-copy h2,
.cta-band h2 {
  margin: 0;
  font-family: 'Exo', sans-serif;
  font-size: clamp(29px, 2.9vw, 40px);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -.03em;
}
.section h2,
.section .benefit h3,
.section .feature-item h3,
.section .faq-q,
.section .form-card h3,
.section .contact-copy h2 {
  color: #171a1b !important;
}
.section__text, .benefit p, .feature-item p, .faq-a p, .form-note {
  color: #626a67 !important;
  font-size: 15px;
  line-height: 1.7;
}

/* 05 — BENEFICIOS: cards planas como Productos */
.benefits { gap: 18px; }
.benefit {
  padding: 26px 23px;
  border: 1px solid #e2e6e2 !important;
  border-radius: 0;
  background: #ffffff !important;
  box-shadow: none !important;
}
.benefit__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 0;
  background: #edf6f4 !important;
  color: #00a5a0 !important;
}
.benefit__icon svg { width: 25px; height: 25px; }
.benefit h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -.02em;
}
.benefit p { margin: 0; }

/* 06 — IMAGEN Y DESCRIPCIONES */
.split { gap: clamp(30px, 4vw, 64px); }
.feature-image {
  min-height: 550px;
  border-radius: 0;
  background: #e8eae7 !important;
  box-shadow: none;
}
.feature-image img { object-fit: cover; }
.feature-image__tag {
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  font-weight: 650;
}
.feature-list { gap: 12px; margin-top: 25px; }
.feature-item {
  grid-template-columns: 20px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  border: 1px solid #e2e6e2 !important;
  border-radius: 0;
  background: #fff !important;
  box-shadow: none !important;
}
.feature-item span {
  width: 15px;
  height: 15px;
  border-radius: 0;
  background: #00a5a0 !important;
  font-weight: 650;
  margin-top: 7px;
}
.feature-item h3 { font-size: 18px; font-weight: 650; }

/* 07 — GALERÍA: cuadrados, overlay turquesa y signo + */
.gallery { gap: 18px; }
.gallery figure {
  position: relative;
  border: 0;
  border-radius: 0;
  background: #e8eae7 !important;
  box-shadow: none !important;
}
.gallery__item { overflow: hidden; }
.gallery img { transition: transform .4s ease; }
.gallery figcaption {
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 15px 17px;
  border-radius: 0;
  background: rgba(23,26,27,.78) !important;
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  backdrop-filter: none;
}
.gallery__item::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  background: rgba(0,165,160,.78);
  pointer-events: none;
  transition: opacity .3s ease;
}
.gallery__item::after {
  content: '+';
  position: absolute;
  top: 48%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%,-50%) scale(.7);
  opacity: 0;
  color: #fff;
  font-family: 'Exo', sans-serif;
  font-size: 76px;
  font-weight: 100;
  line-height: 1;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
@media (hover: hover) {
  .gallery__item:hover::before { opacity: 1; }
  .gallery__item:hover::after { opacity: 1; transform: translate(-50%,-50%) scale(1); }
  .gallery__item:hover img { transform: scale(1.04); }
}
.gallery__item:focus-visible::before,
.gallery__item:focus-visible::after { opacity: 1; }
.gallery-lightbox { background: rgba(12,18,19,.94) !important; }
.gallery-lightbox img { border-radius: 0; }
.gallery-lightbox__close {
  border-radius: 0;
  background: rgba(255,255,255,.16) !important;
}

/* 08 — BANDA COMERCIAL */
.cta-band {
  gap: 25px;
  padding: 37px 42px;
  border: 0;
  border-radius: 0;
  background: #171a1b !important;
  box-shadow: none !important;
  color: #fff !important;
}
.cta-band h2 {
  max-width: 700px;
  margin: 0 0 10px;
  color: #fff !important;
  font-weight: 600;
}
.cta-band p { max-width: 730px; color: #d3d9d7 !important; font-size: 16px; line-height: 1.6; }
.cta-band .btn { min-width: 190px; }

/* 09 — PREGUNTAS FRECUENTES */
.faq { gap: clamp(28px, 4vw, 55px); }
.accordion { gap: 10px; }
.faq-item {
  border: 1px solid #e2e6e2 !important;
  border-radius: 0;
  background: #fff !important;
  box-shadow: none !important;
}
.faq-q {
  min-height: 65px;
  padding: 20px 22px;
  color: #171a1b !important;
  background: #fff !important;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.45;
}
.faq-q svg { color: #00a5a0 !important; }
.faq-a p { padding: 0 22px 22px; }

/* 10 — CONTACTO: fondo claro, formulario limpio y CTA */
.contact { padding: 84px 0 !important; }
.contact-panel {
  gap: 40px;
  padding: clamp(28px,4vw,58px);
  border: 1px solid #e2e6e2;
  border-radius: 0;
  background: #f7f8f6 !important;
  color: #171a1b !important;
  box-shadow: none !important;
}
.contact-copy { padding: 16px 0; }
.contact .eyebrow {
  color: #008f8a;
  font-size: 12px;
  margin-bottom: 15px;
}
.contact-copy h2 {
  max-width: 560px;
  margin: 0;
  color: #171a1b !important;
  font-size: clamp(29px, 2.9vw, 40px);
  text-shadow: none;
}
.contact-copy p {
  max-width: 550px;
  margin-top: 19px;
  color: #626a67 !important;
  font-size: 16px;
  line-height: 1.65;
}
.contact-facts { gap: 18px; margin-top: 30px; }
.contact-fact {
  align-items: flex-start;
  color: #323a38 !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
}
.contact-fact .dot {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border: 1px solid #dce9e5;
  border-radius: 0;
  background: #fff !important;
  color: #00a5a0;
  font-size: 15px;
}
.form-card {
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid #e2e6e2 !important;
  border-radius: 0;
  background: #fff !important;
  color: #171a1b !important;
  box-shadow: none !important;
}
.form-card h3 {
  margin: 0 0 22px;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -.02em;
}
.form-grid { gap: 16px; }
.field { gap: 7px; }
.field label,
label {
  color: #454c4d !important;
  font-size: 13px;
  font-weight: 600;
}
.field input, .field select, .field textarea,
.form-card input, .form-card select, .form-card textarea {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #d9dedd !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  color: #171a1b !important;
  box-shadow: none !important;
}
.field textarea, .form-card textarea { min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: #858e8a !important; }
.field input:focus, .field select:focus, .field textarea:focus,
.form-card input:focus, .form-card select:focus, .form-card textarea:focus {
  border-color: #00a5a0 !important;
  box-shadow: 0 0 0 2px rgba(0,165,160,.13) !important;
}
.form-note { font-size: 12px; }

/* 11 — FOOTER: misma familia visual que el pie principal */
.footer {
  padding: 65px 0 76px;
  border-top: 0;
  background: #171a1b !important;
  color: #b6c0bf !important;
}
.footer__inner { gap: 42px; }
.footer .logo {
  color: #f8faf9 !important;
  font-family: 'Exo', sans-serif;
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -.04em;
}
.footer p,
.footer span,
.footer a,
.footer__links a {
  color: #b6c0bf !important;
  font-size: 14px;
  line-height: 1.75;
}
.footer .logo span { color: #fff !important; font-size: inherit; }
.footer__links strong { color: #f8faf9 !important; font-weight: 600; }
.footer__links a:hover { color: #39cfc3 !important; }

/* 12 — ELEMENTOS FIJOS / ANIMACIÓN SIN HALOS */
.sticky-cta {
  border-radius: 0;
  border: 1px solid #e2e6e2;
  background: #fff;
  box-shadow: 0 5px 28px rgba(0,0,0,.11);
  backdrop-filter: none;
}
.whatsapp-float { border-radius: 2px; box-shadow: none; }
.reveal { transition: opacity .45s ease, transform .45s ease; }

/* 13 — RESPONSIVE */
@media (max-width: 1100px) {
  .header__inner { gap: 14px; }
  .header .header__nav { gap: 14px; font-size: 13px; }
  .header .logo img { width: 195px; }
  .header .btn.btn--primary { padding-inline: 14px; font-size: 13px; }
  .benefits { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 980px) {
  .container { width: calc(100% - 48px); }
  .header__inner { height: 78px; }
  .header .header__nav { display: none; }
  .hero, .hero__inner { min-height: 590px; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); padding: 65px 0; }
  .hero h1 { font-size: clamp(40px, 5.8vw, 57px); }
  .split, .faq, .contact-panel { grid-template-columns: 1fr; }
  .feature-image { min-height: 420px; }
  .contact-copy { padding: 5px 0; }
  .form-card { max-width: none; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery figure:first-child { grid-column: span 2; grid-row: auto; }
  .cta-band { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 70px; }
  .container { width: calc(100% - 36px); }
  .topbar__inner { min-height: 38px; justify-content: center; text-align: center; font-size: 11px; }
  .header__inner { height: 68px; gap: 12px; }
  .header .logo img { width: clamp(132px, 40vw, 185px); }
  /* El CSS original ocultaba el CTA móvil: mantenerlo accesible. */
  .header .btn.btn--primary {
    display: inline-flex;
    min-height: 41px;
    padding: 9px 11px;
    font-size: 11px;
    white-space: normal;
    text-align: center;
  }
  .hero {
    min-height: auto;
    background: #f7f8f6 !important;
    color: #171a1b !important;
  }
  .hero::before {
    inset: 0 0 auto;
    height: 410px;
    background-image:
      linear-gradient(180deg,
        rgba(4,33,34,.12) 0%,
        rgba(4,33,34,.25) 45%,
        rgba(4,33,34,.80) 100%),
      url('../../cubrepiscinas/assets/hero-cubrepiscina-mobile.jpg') !important;
    background-position: center center !important;
  }
  .hero__inner {
    display: block;
    min-height: 0;
    padding: 0 0 48px;
  }
  .hero__content {
    display: flex;
    flex-direction: column;
    padding-top: 210px;
  }
  .hero h1 {
    order: 1;
    margin: 0 0 132px;
    color: #ffffff !important;
    font-size: clamp(36px, 9vw, 48px);
    line-height: 1.07;
    letter-spacing: -.035em;
    text-align: left;
    text-shadow: none;
  }
  .hero .eyebrow {
    order: 2;
    margin: 0 0 16px;
    color: #008f8a;
  }
  .hero__lead {
    order: 3;
    max-width: 100%;
    margin: 0;
    color: #454c4d !important;
    font-size: 16px;
    line-height: 1.6;
  }
  .hero__trust {
    order: 4;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 27px;
  }
  .trust-pill, .trust-pill:first-child {
    min-height: 50px;
    padding: 10px 0;
    border: 0;
    border-top: 1px solid #d9dedd;
    color: #171a1b;
    background: transparent !important;
    box-shadow: none !important;
  }
  .trust-pill svg { color: #00a5a0; }
  .section { padding: 58px 0; }
  .section__head { display: block; margin-bottom: 28px; }
  .section h2, .cta-band h2, .contact-copy h2 {
    font-size: clamp(28px, 7.8vw, 36px);
    line-height: 1.2;
  }
  .section__text { margin-top: 14px; font-size: 15px; }
  .benefits { grid-template-columns: 1fr; gap: 14px; }
  .benefit { padding: 22px; }
  .feature-image { min-height: 0; }
  .feature-image img { position: static; width: 100%; height: auto; object-fit: contain; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 15px; }
  .gallery figure:first-child { grid-column: auto; grid-row: auto; }
  .gallery__item { height: auto; }
  .gallery img { height: auto; object-fit: contain; }
  .gallery figcaption {
    position: static;
    padding: 12px 15px;
    color: #fff !important;
    background: #171a1b !important;
    text-transform: none;
    text-align: left;
    font-size: 13px;
  }
  .gallery__item::after { top: 42%; }
  .cta-band { padding: 26px 23px; gap: 20px; }
  .cta-band p { font-size: 15px; }
  .cta-band .btn { width: 100%; }
  .contact { padding: 58px 0 !important; }
  .contact-panel { padding: 23px; gap: 22px; }
  .contact-copy { padding: 0; }
  .contact-copy p { font-size: 15px; }
  .form-card { padding: 23px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .field.full { grid-column: auto; }
  .submit-row { display: grid; grid-template-columns: 1fr; }
  .submit-row button { width: 100%; }
  .footer { padding: 50px 0 90px; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .footer__links { text-align: left; }
  .sticky-cta { bottom: 8px; left: 8px; right: 8px; padding: 7px; }
}
@media (max-width: 380px) {
  .container { width: calc(100% - 28px); }
  .header .logo img { width: 125px; }
  .header .btn.btn--primary { padding-inline: 8px; font-size: 10px; }
  .hero__content { padding-top: 195px; }
  .hero h1 { margin-bottom: 148px; font-size: 35px; }
  .contact-panel { padding: 16px; }
  .form-card { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .gallery img, .gallery__item::before, .gallery__item::after,
  .reveal { transition: none !important; }
}
