/* SECCIONES: estilos específicos de cada bloque */
.section { padding-block: var(--s5); }
.section--light { background: var(--bg-2); }
.section--dark { background: var(--dark); color: #fff; }
.section--dark .lead { margin-bottom: var(--s3); color: #E3E5E9; }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--dark-2); color: #fff; padding-block: 6rem; --hero-overlay: .82; /* 0 = se ve toda la imagen, 1 = solo color */ }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("../img/hero/hero-bg.jpg?v=4") 70% center / cover no-repeat; }
/* Degradé oscuro a la izquierda (texto legible) que deja ver la foto a la derecha */
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(28,30,33,.95) 0%, rgba(28,30,33,.88) 45%, rgba(28,30,33,.5) 72%, rgba(28,30,33,.12) 100%); }
.hero h1, .hero .lead { text-shadow: 0 2px 14px rgba(0,0,0,.45); }
@media (max-width: 800px) { .hero::after { background: rgba(28,30,33,.8); } }
.hero__grid { display: grid; grid-template-columns: minmax(0, 760px); }
.kicker { display: inline-block; justify-self: start; background: var(--yellow); color: var(--ink); font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; padding: .35rem .8rem; border-radius: 4px; margin-bottom: var(--s3); animation: fade-up .6s ease-out both; }
.hero .lead { margin-block: var(--s3); color: #E3E5E9; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s1); margin-top: var(--s3); }
.chips li { border: 1px solid var(--yellow); color: var(--yellow); padding: .3rem .8rem; border-radius: 99px; font-size: .85rem; font-weight: 600; }
.hero h1 .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; }
.hero h1 .word__inner { display: inline-block; animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i) * .05s + .1s); }
.hero .lead, .hero__cta, .chips, .hero__proof { animation: fade-up .7s ease-out both; }
.hero .lead { animation-delay: .05s; }
.hero__cta { animation-delay: .15s; }
.hero__proof { animation-delay: .2s; }
.chips { animation-delay: .28s; }
.hero__proof { margin-top: var(--s3); font-weight: 700; font-size: .9rem; color: var(--yellow); letter-spacing: .01em; }
.hero__proof span { margin-inline: .3rem; color: #C9CCD1; }
@media (max-width: 520px) { .hero h1 { font-size: clamp(1.6rem, 8vw, 2.2rem); } }
@keyframes rise { from { transform: translateY(105%); opacity: 0; } }
@keyframes fade-up { from { transform: translateY(14px); opacity: 0; } }

/* Franja de confianza */
.trust { background: var(--yellow); color: var(--ink); padding-block: var(--s3); }
.trust__list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); }
.trust__list li { display: grid; gap: .15rem; align-content: start; border-left: 4px solid var(--ink); padding-left: var(--s2); font-size: .9rem; line-height: 1.4; }
.trust__list strong { font-size: 1rem; font-weight: 800; }
@media (max-width: 900px) { .trust__list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .trust__list { grid-template-columns: 1fr; } }

/* Video */
.video { aspect-ratio: 16/9; background: var(--dark-2); border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; color: #fff; text-align: center; border: 4px solid var(--ink); }
.video iframe, .video video { width: 100%; height: 100%; border: 0; }
.video__play { background: var(--yellow); color: var(--ink); border: 0; border-radius: 50%; width: 84px; height: 84px; font-size: 2rem; cursor: pointer; }

/* Reel vertical */
.reel-wrap { display: grid; grid-template-columns: 1.25fr .75fr; gap: var(--s4); align-items: center; }
.reel-list { list-style: none; padding: 0; margin: 0 0 var(--s3); display: grid; gap: .5rem; }
.reel-list li { position: relative; padding-left: 1.6rem; font-weight: 600; }
.reel-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: .7rem; height: .7rem; background: var(--red); border-radius: 2px; }
.reel { justify-self: center; width: min(320px, 100%); aspect-ratio: 9 / 16; background: var(--dark-2); border: 6px solid var(--ink); border-radius: 18px; overflow: hidden; box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.reel video { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 800px) { .reel-wrap { grid-template-columns: 1fr; } .reel { margin-top: var(--s3); } }

/* Servicios */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
.service { background: var(--ink); color: #fff; border-top: 5px solid var(--yellow); border-radius: var(--radius); padding: var(--s3); display: grid; gap: var(--s1); align-content: start; }
.service p { color: #D5D7DB; }
.service__list { list-style: none; padding: 0; display: grid; gap: .35rem; font-size: .9rem; color: #D5D7DB; }
.service__list strong { color: var(--yellow); }
.service .link { color: var(--yellow); text-decoration-color: var(--yellow); margin-top: var(--s1); justify-self: start; }
.services__note { margin-top: var(--s3); font-size: .9rem; color: var(--muted); max-width: 78ch; }
@media (max-width: 700px) { .services { grid-template-columns: 1fr; } }

/* Tipos de membrana */
.types { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
.type { background: #fff; border-radius: var(--radius); border-top: 5px solid var(--red); padding: var(--s3); display: grid; gap: var(--s1); align-content: start; }
.tag { justify-self: start; background: var(--ink); color: var(--yellow); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .25rem .65rem; border-radius: 4px; }
.callout { grid-column: 1 / -1; background: var(--ink); color: #fff; border-radius: var(--radius); padding: var(--s3); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2); }
.callout p { max-width: 62ch; }
@media (max-width: 700px) { .types { grid-template-columns: 1fr; } }

/* Proceso y FAQ */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); counter-reset: s; }
.steps li { display: grid; gap: .4rem; align-content: start; counter-increment: s; background: #fff; border-radius: var(--radius); border-top: 4px solid var(--ink); padding: var(--s3) var(--s2); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; background: var(--red); color: #fff; border-radius: 6px; font-weight: 800; font-size: 1.2rem; }
.steps span { color: var(--muted); }
.faq { margin-top: var(--s4); display: grid; gap: var(--s1); max-width: 760px; }
.faq details { background: #fff; border-left: 5px solid var(--yellow); border-radius: var(--radius); padding: var(--s2) var(--s3); }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin-top: var(--s1); color: var(--muted); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr 1fr; } }

/* Confianza y reseñas */
.proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); }
.proof__card { background: var(--ink); color: #fff; border-radius: var(--radius); padding: var(--s3); border-top: 5px solid var(--yellow); }
.proof__num { display: block; font-size: 2.6rem; font-weight: 800; color: var(--yellow); line-height: 1; }
.proof__card h3 { margin: .35rem 0 .5rem; }
.proof__card p { color: #D5D7DB; font-size: .95rem; }
.reviews { margin-top: var(--s3); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2); background: #fff; border-radius: var(--radius); padding: var(--s3); border-left: 6px solid var(--yellow); }
.reviews__rating { font-size: 1.15rem; font-weight: 700; }
.reviews__rating strong { font-size: 2rem; }
.reviews__text { color: var(--muted); max-width: 62ch; }
@media (max-width: 800px) { .proof { grid-template-columns: 1fr; } }

/* Zonas */
.zones { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s1); margin-bottom: var(--s3); }
.zones li { background: var(--ink); color: var(--yellow); font-weight: 700; padding: .5rem 1.1rem; border-radius: 99px; }
.zones__lead { margin-bottom: var(--s3); }

/* Instagram */
.ig iframe { width: 100%; height: 560px; border: 0; border-radius: var(--radius); }
.ig-facade { background: #fff; border-radius: var(--radius); border-top: 5px solid var(--red); padding: var(--s4); display: grid; gap: var(--s2); justify-items: start; }
.ig-facade__title { font-weight: 800; font-size: 1.2rem; }
.ig-facade__text { color: var(--muted); }
.ig-facade__link { margin-top: .25rem; }
@media (max-width: 600px) { .ig iframe { height: 480px; } }

/* Formulario y mapa: apilan en móvil */
.form-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); align-items: start; }
.map-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: var(--s4); }
.form-wrap > *, .map-wrap > * { min-width: 0; }
@media (max-width: 800px) { .form-wrap, .map-wrap { grid-template-columns: minmax(0, 1fr); } }
.form-points { list-style: none; padding: 0; margin: var(--s3) 0; display: grid; gap: .4rem; color: #E3E5E9; }
.form-points li::before { content: "✓"; color: var(--yellow); font-weight: 800; margin-right: .5rem; }
.contact { list-style: none; padding: 0; display: grid; gap: var(--s2); font-weight: 600; }
.contact a { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 4px; overflow-wrap: anywhere; }
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 4px solid var(--ink); border-radius: var(--radius); }

/* CTA debajo del carrusel */
.carousel__cta { margin-top: var(--s3); text-align: center; }
.carousel__cta .link { color: var(--yellow); text-decoration-color: var(--yellow); justify-self: auto; }

/* Footer */
.footer { background: var(--dark-2); color: #C9CCD1; padding-block: var(--s4) var(--s3); font-size: .9rem; border-top: 4px solid var(--yellow); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s3); }
.footer__brand { color: #fff; font-weight: 800; font-size: 1.15rem; margin-bottom: .4rem; }
.footer__title { color: var(--yellow); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; margin-bottom: .5rem; }
.footer__list { list-style: none; padding: 0; display: grid; gap: .35rem; }
.footer__list a { text-decoration: none; overflow-wrap: anywhere; }
.footer__list a:hover { color: #fff; text-decoration: underline; }
.footer__legal { margin-top: var(--s3); padding-top: var(--s2); border-top: 1px solid rgba(255,255,255,.15); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* Botones de redes en Contacto */
.social { display: flex; flex-wrap: wrap; gap: var(--s1); margin-top: var(--s3); }

/* Localidades (páginas de zona) */
.breadcrumb { font-size: .85rem; margin-bottom: var(--s2); color: #C9CCD1; }
.breadcrumb a { color: var(--yellow); }
.loc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); }
.loc { background: #fff; border-radius: var(--radius); border-top: 5px solid var(--red); overflow: hidden; display: grid; grid-template-rows: auto 1fr; box-shadow: 0 2px 0 rgba(0,0,0,.06); }
.loc__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--dark-2); }
.loc__body { padding: var(--s2) var(--s3) var(--s3); display: grid; gap: .3rem; align-content: start; }
.loc small { color: var(--muted); font-weight: 600; }
.loc .btn { justify-self: start; margin-top: var(--s1); }
@media (max-width: 900px) { .loc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .loc-grid { grid-template-columns: 1fr; } }
.footer a { color: var(--yellow); }

/* Página de gracias */
.thanks .kicker { margin-bottom: var(--s2); }
.thanks h1 { margin-bottom: var(--s2); }
.thanks__box { background: #fff; border-radius: var(--radius); border-top: 5px solid var(--yellow); padding: var(--s3); margin: var(--s3) 0; }
.thanks__box h2 { font-size: 1.3rem; margin-bottom: var(--s2); }
.thanks__box h2::after { display: none; }
.steps--stack { grid-template-columns: 1fr; }
.steps--stack li { border-top: 0; border-left: 4px solid var(--ink); }
.thanks__cta { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s2); }
.thanks__back { margin-top: var(--s3); }

/* Páginas legales */
.legal h1 { margin-bottom: var(--s2); }
.legal__date { color: var(--muted); font-size: .9rem; margin-bottom: var(--s3); }
.legal h2 { font-size: 1.25rem; margin: var(--s3) 0 var(--s1); }
.legal h2::after { display: none; }
.legal p, .legal ul { margin-bottom: var(--s2); color: var(--muted); }
.legal ul { padding-left: 1.2rem; display: grid; gap: .35rem; }
.legal a { color: var(--ink); }
.legal__back { margin-top: var(--s3); }

/* Landing de reseñas (/resena/) */
.review-page h1 { margin-bottom: var(--s2); }
.review-page .lead { margin-bottom: var(--s3); }
.review-steps { list-style: none; padding: 0; display: grid; gap: var(--s1); margin-bottom: var(--s3); counter-reset: review-step; }
.review-steps li { background: #fff; border-radius: var(--radius); border-left: 5px solid var(--yellow); padding: var(--s2); display: grid; gap: .2rem; counter-increment: review-step; box-shadow: 0 2px 0 rgba(0,0,0,.05); }
.review-steps strong { display: flex; align-items: center; gap: .6rem; font-size: 1.05rem; }
.review-steps strong::before { content: counter(review-step); flex: 0 0 auto; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--ink); color: #fff; font-size: .85rem; display: grid; place-items: center; }
.review-steps span { color: var(--muted); font-size: .92rem; padding-left: 2.2rem; }
.review-cta { background: var(--dark-2); color: #E3E5E9; border-radius: var(--radius); padding: var(--s3); text-align: center; }
.review-cta .btn { width: 100%; }
.review-note { font-size: .82rem; color: #C9CCD1; margin-top: var(--s1); }
.review-help { margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--line); }
.review-help h2 { font-size: 1.15rem; margin-bottom: .4rem; }
.review-help h2::after { display: none; }
.review-help p { color: var(--muted); margin-bottom: var(--s2); }
.review-back { margin-top: var(--s3); }
