/* REBIPLAST E.I.R.L. — Plantilla Cinema (#636) basada en clon-41 (Room21)
   Verde bosque cinematográfico (#0b2b1d) + crema leche evaporada (#f4ecdc / #ece1cc) — cero #ffffff */

:root {
  --reb-cream: #f4ecdc;
  --reb-cream-warm: #ece1cc;
  --reb-cream-input: #f8f3e8;
  --reb-cream-text: #f7f1e3;
  --reb-sage: #d9ead3;
  --reb-sage-soft: #a8d5b3;
  --reb-forest-deep: #071d13;
  --reb-forest: #0b2b1d;
  --reb-forest-card: #113a28;
  --reb-forest-ink: #355140;
  --reb-green: #1f6e43;
  --reb-green-hover: #155231;
  --reb-border-light: rgba(247, 241, 227, 0.22);
  --reb-border-dark: rgba(11, 43, 29, 0.18);
  --heading: "Playfair Display", Georgia, serif;
  --body-font: "Raleway", system-ui, -apple-system, sans-serif;
  --321-studio-wa-enabled: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--reb-forest-deep);
  overflow-x: clip;
}

main,
.horizontal-scroll,
.review-section,
.instagram-section {
  overflow-x: clip;
}

[id="321-floating-wa"],
.wa-float {
  display: none !important;
}

body {
  margin: 0;
  background-color: var(--reb-cream);
  color: var(--reb-cream-text);
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: clip !important;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

section[id],
footer[id] {
  scroll-margin-top: 86px;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  font-size: 1rem;
}

.wrap {
  width: 100%;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* =========================
   NAVBAR Y DRAWER MÓVIL/PC
   ========================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background-color: rgba(7, 29, 19, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(168, 213, 179, 0.14);
}

.nav-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0.85rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo {
  width: 195px;
  height: auto;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.nav-cta-pill {
  border: 1px solid rgba(168, 213, 179, 0.55);
  background-color: var(--reb-green);
  color: var(--reb-cream-text);
  padding: 0.52rem 1.2rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background-color 0.22s ease, transform 0.22s ease;
}

.nav-cta-pill:hover,
.nav-cta-pill:focus-visible {
  background-color: var(--reb-green-hover);
  transform: translateY(-1px);
}

.menu-toggle-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(168, 213, 179, 0.28);
  background: rgba(244, 236, 220, 0.06);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}

.menu-bar {
  width: 22px;
  height: 1.5px;
  background-color: var(--reb-cream-text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: linear-gradient(155deg, rgba(7, 29, 19, 0.98) 0%, rgba(11, 43, 29, 0.98) 100%);
  color: var(--reb-cream-text);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.drawer-top {
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-close {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(168, 213, 179, 0.4);
  background: transparent;
  color: var(--reb-cream-text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.drawer-grid {
  max-width: 1320px;
  width: 100%;
  margin: auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: center;
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.drawer-link {
  font-family: var(--heading);
  font-size: clamp(1.75rem, 3.6vw, 2.9rem);
  font-weight: 500;
  color: var(--reb-cream-text);
  padding: 0.25rem 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.drawer-link:hover,
.drawer-link:focus-visible {
  color: var(--reb-sage-soft);
  transform: translateX(8px);
}

.drawer-meta {
  border-left: 1px solid rgba(168, 213, 179, 0.28);
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--reb-sage);
  font-size: 0.95rem;
}

.drawer-meta-title {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--reb-sage-soft);
}

/* =========================
   SECCIÓN 0: HERO CON VIDEO
   ========================= */
.hero-wrap {
  position: relative;
  height: 290vh;
  background-color: var(--reb-forest-deep);
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: var(--reb-forest-deep);
}

.hero-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  filter: saturate(0.95) contrast(1.06);
}

.hero-video-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(7, 29, 19, 0.72) 0%,
    rgba(11, 43, 29, 0.48) 45%,
    rgba(7, 29, 19, 0.84) 100%
  );
}

.hero-stage {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1320px;
  padding: 5.5rem 2rem 2rem;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-scene {
  position: absolute;
  left: 2rem;
  right: 2rem;
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-scene.is-active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

/* Escena 0 fiel a Room21: línea central dividida */
.hero-split-rule {
  border-top: 1px solid rgba(217, 234, 211, 0.42);
  padding-top: 2.25rem;
  display: grid;
  grid-template-columns: 1.2fr 0.85fr;
  gap: 2.5rem;
  align-items: start;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 2.4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--reb-sage-soft);
  margin-bottom: 1rem;
}

.main-heading {
  font-family: var(--heading);
  margin: 0;
  font-weight: 400;
  line-height: 1.08;
  color: var(--reb-cream-text);
}

.main-heading--hero {
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  font-weight: 400;
}

.main-heading--hero strong {
  font-weight: 700;
  display: block;
}

.hero-right-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.4rem;
}

.hero-sub {
  margin: 0;
  font-size: clamp(1.1rem, 1.8vw, 1.55rem);
  font-weight: 300;
  line-height: 1.45;
  color: var(--reb-cream-text);
}

.hero-sub em {
  font-family: var(--heading);
  font-style: italic;
  font-weight: 600;
  color: var(--reb-sage);
}

.btn-editorial {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--reb-sage-soft);
  background-color: var(--reb-green);
  color: var(--reb-cream-text);
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.btn-editorial:hover,
.btn-editorial:focus-visible {
  background-color: var(--reb-green-hover);
  transform: translateY(-2px);
}

.hero-story-card {
  max-width: 720px;
}

.hero-story-title {
  font-family: var(--heading);
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--reb-cream-text);
  margin: 0 0 1rem;
}

.hero-story-desc {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--reb-sage);
  margin: 0 0 1.5rem;
}

.hero-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-badge {
  border: 1px solid rgba(168, 213, 179, 0.45);
  background: rgba(11, 43, 29, 0.65);
  color: var(--reb-cream-text);
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 1.75rem;
  left: 2rem;
  right: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 6;
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--reb-sage-soft);
}

.hero-dots {
  display: flex;
  gap: 0.5rem;
}

.hero-dot {
  width: 24px;
  height: 3px;
  border-radius: 99px;
  background: rgba(247, 241, 227, 0.28);
  transition: background-color 0.25s ease, width 0.25s ease;
}

.hero-dot.is-active {
  width: 38px;
  background: var(--reb-sage-soft);
}

.hero-mobile-credentials {
  display: none;
}

/* =========================
   SECCIÓN 1: DESPLAZAMIENTO HORIZONTAL (#areas)
   ========================= */
.horizontal-scroll {
  position: relative;
  height: 250vh;
  background-color: var(--reb-forest);
  border-top: 1px solid rgba(168, 213, 179, 0.14);
}

.horizontal-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5.5rem 0 2.5rem;
}

.horizontal-header {
  max-width: 1320px;
  width: 100%;
  margin: 0 auto 2rem;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
}

.section-eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 2.2px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--reb-sage-soft);
  margin-bottom: 0.5rem;
}

.section-eyebrow--dark {
  color: var(--reb-green);
}

.heading-section {
  font-family: var(--heading);
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.35rem);
  font-weight: 500;
  line-height: 1.12;
  color: var(--reb-cream-text);
}

.heading-section--dark {
  color: var(--reb-forest);
}

.horizontal-progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.horizontal-nav-btns {
  display: none;
  gap: 0.5rem;
}

.circle-arrow-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(168, 213, 179, 0.45);
  background: rgba(11, 43, 29, 0.85);
  color: var(--reb-cream-text);
  font-size: 1.1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.horizontal-progress-bar {
  width: 140px;
  height: 2px;
  background: rgba(247, 241, 227, 0.2);
  border-radius: 99px;
  overflow: hidden;
}

.horizontal-progress-fill {
  height: 100%;
  width: 25%;
  background: var(--reb-sage-soft);
  transition: width 0.12s linear;
}

.horizontal-viewport {
  width: 100%;
  overflow: hidden;
  padding: 0 2rem;
}

.horizontal-track {
  display: flex;
  gap: 2.25rem;
  will-change: transform;
  padding-right: 4rem;
}

.area-card {
  flex: 0 0 clamp(300px, 34vw, 440px);
  display: grid;
  grid-template-columns: 1fr;
  background: linear-gradient(160deg, rgba(17, 58, 40, 0.88) 0%, rgba(7, 29, 19, 0.94) 100%);
  border: 1px solid rgba(168, 213, 179, 0.22);
  border-radius: 14px;
  overflow: hidden;
}

.area-card-img-box {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--reb-forest-deep);
}

.area-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.area-card:hover .area-card-img {
  transform: scale(1.05);
}

.area-card-body {
  padding: 1.5rem 1.65rem 1.75rem;
}

.area-card-num {
  font-size: 0.78rem;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--reb-sage-soft);
  margin-bottom: 0.4rem;
}

.area-card-title {
  font-family: var(--heading);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--reb-cream-text);
  margin: 0 0 0.55rem;
}

.area-card-desc {
  margin: 0;
  color: var(--reb-sage);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* =========================
   SECCIÓN 2: SERVICIOS 1..5 + MODALES
   ========================= */
.services-section {
  background-color: var(--reb-forest-deep);
  padding: 5.5rem 0;
  border-top: 1px solid rgba(168, 213, 179, 0.14);
}

.services-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 3rem;
}

.services-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--reb-border-light);
}

.service-row {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--reb-border-light);
  padding: 1.75rem 0.5rem;
  color: var(--reb-cream-text);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
  cursor: pointer;
  transition: background-color 0.25s ease, padding-left 0.25s ease;
}

.service-row:hover,
.service-row:focus-visible {
  background-color: rgba(168, 213, 179, 0.08);
  padding-left: 1.25rem;
  outline: none;
}

.service-row-title {
  font-family: var(--heading);
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 500;
  color: var(--reb-cream-text);
  margin: 0 0 0.35rem;
}

.service-row-sub {
  margin: 0;
  color: var(--reb-sage);
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.service-row-link {
  color: var(--reb-sage-soft);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.service-row-num {
  font-family: var(--heading);
  font-size: clamp(2.4rem, 4.2vw, 3.8rem);
  font-weight: 400;
  line-height: 1;
  color: rgba(168, 213, 179, 0.5);
  transition: color 0.25s ease, transform 0.25s ease;
}

.service-row:hover .service-row-num {
  color: var(--reb-sage-soft);
  transform: translateX(-6px);
}

/* Modal detalle servicio + Lightbox certificado */
.cinema-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(7, 29, 19, 0.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.cinema-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cinema-modal-card {
  width: 100%;
  max-width: 600px;
  max-height: 90dvh;
  overflow-y: auto;
  background-color: var(--reb-cream);
  color: var(--reb-forest);
  border-radius: 16px;
  border: 1px solid var(--reb-border-dark);
  padding: 2.25rem;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
  position: relative;
}

.cinema-modal-card--wide {
  max-width: 960px;
  padding: 1.25rem;
}

.cinema-modal-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--reb-border-dark);
  background: var(--reb-cream-warm);
  color: var(--reb-forest);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.modal-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--reb-green);
  margin-bottom: 0.65rem;
}

.modal-title {
  font-family: var(--heading);
  font-size: 1.85rem;
  color: var(--reb-forest);
  margin: 0 0 0.85rem;
}

.modal-desc {
  color: var(--reb-forest-ink);
  margin: 0 0 1.15rem;
  line-height: 1.7;
}

.modal-bullets {
  margin: 0 0 1.65rem;
  padding-left: 1.15rem;
  color: var(--reb-forest-ink);
}

.modal-bullets li {
  margin-bottom: 0.4rem;
}

/* =========================
   SECCIÓN 3: FONDO DINÁMICO + CORTINAS EN IMÁGENES (#proceso)
   ========================= */
.change-bg-wrap {
  background-color: var(--reb-cream);
  color: var(--reb-forest);
  padding: 6rem 0;
  transition: background-color 0.6s ease, color 0.5s ease;
}

.change-bg-wrap.is-dark {
  background-color: var(--reb-forest);
  color: var(--reb-cream-text);
}

.change-bg-wrap.is-dark .heading-section--dark,
.change-bg-wrap.is-dark .process-lead {
  color: var(--reb-cream-text);
}

.change-bg-wrap.is-dark .section-eyebrow--dark {
  color: var(--reb-sage-soft);
}

.process-header {
  max-width: 780px;
  margin-bottom: 3.5rem;
}

.process-lead {
  margin: 1rem 0 0;
  font-size: 1.125rem;
  color: var(--reb-forest-ink);
  line-height: 1.7;
}

.curtain-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem;
  margin-bottom: 3rem;
}

.curtain-box {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--reb-border-dark);
  background-color: var(--reb-cream-warm);
}

.curtain-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.curtain-shutter {
  position: absolute;
  inset: 0;
  background-color: var(--reb-forest);
  transform: translate3d(0, 0, 0);
  will-change: transform;
  pointer-events: none;
}

.curtain-caption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--reb-forest-ink);
}

.change-bg-wrap.is-dark .curtain-caption {
  color: var(--reb-sage);
}

.parallax-frame {
  position: relative;
  height: clamp(240px, 38vw, 440px);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--reb-border-dark);
}

.parallax-img {
  width: 100%;
  height: 122%;
  object-fit: cover;
  will-change: transform;
  transform: translate3d(0, -8%, 0);
}

/* =========================
   SECCIÓN 4: CÓMO TRABAJAMOS (#como-trabajamos)
   ========================= */
.how-it-work-section {
  background-color: var(--reb-cream);
  color: var(--reb-forest);
  padding: 5.5rem 0;
  border-top: 1px solid var(--reb-border-dark);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.step-card {
  position: relative;
  background-color: var(--reb-cream-warm);
  border: 1px solid var(--reb-border-dark);
  border-radius: 14px;
  padding: 2rem;
  overflow: hidden;
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity 0.55s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.step-card.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.step-num {
  font-family: var(--heading);
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--reb-green);
  line-height: 1;
  margin-bottom: 0.85rem;
}

.step-title {
  font-family: var(--heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--reb-forest);
  margin: 0 0 0.6rem;
}

.step-desc {
  margin: 0;
  color: var(--reb-forest-ink);
  font-size: 0.98rem;
}

.enjoy-banner {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--reb-border-dark);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.heading-enjoy {
  font-family: var(--heading);
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  font-style: italic;
  font-weight: 600;
  color: var(--reb-forest);
  margin: 0;
}

/* =========================
   SECCIÓN 5: CERTIFICADO CESVI + CLEAS (#certificacion)
   ========================= */
.featured-section {
  background-color: var(--reb-cream-warm);
  color: var(--reb-forest);
  padding: 5.5rem 0;
  border-top: 1px solid var(--reb-border-dark);
}

.cert-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 3rem;
  align-items: center;
}

.cert-frame-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--reb-border-dark);
  border-radius: 14px;
  overflow: hidden;
  background: var(--reb-cream);
  cursor: zoom-in;
  box-shadow: 0 20px 44px rgba(11, 43, 29, 0.14);
  transition: transform 0.3s ease;
  position: relative;
}

.cert-frame-btn picture {
  display: block;
  width: 100%;
}

.cert-frame-btn img {
  width: 100%;
  height: auto !important;
  display: block;
}

.cinema-modal-card--wide img {
  width: 100%;
  height: auto !important;
  display: block;
}

.cert-frame-btn:hover {
  transform: translateY(-3px);
}

.cert-zoom-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: var(--reb-forest);
  color: var(--reb-cream-text);
  border-top: 1px solid var(--reb-border-dark);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.72rem 1rem;
}

.cert-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin: 1.5rem 0 2rem;
}

.cert-item {
  border-left: 2px solid var(--reb-green);
  padding-left: 1rem;
  color: var(--reb-forest-ink);
  font-size: 0.97rem;
}

.cert-item strong {
  color: var(--reb-forest);
}

/* =========================
   SECCIÓN 6: BARAJA APILADA + CITAS (#valores)
   ========================= */
.review-section {
  background-color: var(--reb-forest-deep);
  color: var(--reb-cream-text);
  padding: 6rem 0;
}

.deck-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  margin-top: 2.5rem;
}

.deck-stack {
  position: relative;
  height: clamp(320px, 34vw, 430px);
  max-width: 470px;
  width: 100%;
  margin: 0 auto;
}

.deck-card {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(168, 213, 179, 0.28);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.48);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
  background: var(--reb-forest);
  cursor: pointer;
}

.deck-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote-panel {
  border-left: 1px solid rgba(168, 213, 179, 0.35);
  padding-left: 2.25rem;
}

.quote-mark {
  font-family: var(--heading);
  font-size: 3.5rem;
  line-height: 0.8;
  color: var(--reb-sage-soft);
  margin-bottom: 0.75rem;
}

.quote-slide {
  display: none;
  animation: fadeSlide 0.35s ease;
}

.quote-slide.is-active {
  display: block;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.quote-text {
  font-family: var(--heading);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--reb-cream-text);
  margin: 0 0 1.15rem;
}

.quote-author {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--reb-sage-soft);
}

.deck-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.deck-dots {
  display: flex;
  gap: 0.5rem;
}

.deck-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(247, 241, 227, 0.25);
  cursor: pointer;
  padding: 0;
}

.deck-dot.is-active {
  width: 26px;
  background: var(--reb-sage-soft);
}

/* =========================
   SECCIÓN 7: GALERÍA DESLIZABLE (#galeria)
   ========================= */
.instagram-section {
  background-color: var(--reb-forest);
  color: var(--reb-cream-text);
  padding: 5.5rem 0;
  border-top: 1px solid rgba(168, 213, 179, 0.14);
}

.gallery-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 2.25rem;
}

.gallery-arrows {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.long-arrow-btn {
  background: transparent;
  border: 1px solid rgba(168, 213, 179, 0.3);
  border-radius: 999px;
  padding: 0.65rem 1.15rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.long-arrow-btn:hover,
.long-arrow-btn:focus-visible {
  background-color: rgba(168, 213, 179, 0.12);
  border-color: var(--reb-sage-soft);
}

.long-arrow-btn img {
  width: 48px;
  height: 14px;
}

.gallery-rail {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0 2rem 0.75rem;
  scrollbar-width: none;
}

.gallery-rail::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  flex: 0 0 clamp(250px, 26vw, 340px);
  scroll-snap-align: start;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(168, 213, 179, 0.2);
  background: var(--reb-forest-deep);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* =========================
   SECCIÓN 8: FORMULARIO RESEND (#cotizar)
   ========================= */
.contact-section {
  background-color: var(--reb-cream);
  color: var(--reb-forest);
  padding: 5.5rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 2.25rem;
  align-items: stretch;
}

.contact-info-card {
  background-color: var(--reb-forest);
  color: var(--reb-cream-text);
  border-radius: 14px;
  padding: 2.75rem 2.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}

.contact-info-card .heading-section {
  color: var(--reb-cream-text);
}

.contact-info-sub {
  margin: 0.85rem 0 0;
  color: var(--reb-sage);
  font-size: 0.98rem;
}

.contact-meta-list {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  border-top: 1px solid rgba(168, 213, 179, 0.24);
  padding-top: 1.25rem;
}

.contact-meta-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.94rem;
  color: var(--reb-cream-text);
}

.contact-meta-row img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.contact-form-card {
  background-color: var(--reb-cream-warm);
  border: 1px solid var(--reb-border-dark);
  border-radius: 14px;
  padding: 2.75rem 2.5rem;
}

.form-grid-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.field-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--reb-forest);
}

.text-field,
.textarea {
  width: 100%;
  background-color: var(--reb-cream-input);
  border: 1px solid rgba(11, 43, 29, 0.25);
  border-radius: 8px;
  color: var(--reb-forest);
  font-family: var(--body-font);
  font-size: 0.95rem;
  padding: 0.8rem 0.95rem;
}

.text-field:focus,
.textarea:focus {
  outline: none;
  border-color: var(--reb-green);
  box-shadow: 0 0 0 3px rgba(31, 110, 67, 0.16);
}

.textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.submit-button {
  background-color: var(--reb-green);
  color: var(--reb-cream-text);
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.submit-button:hover,
.submit-button:focus-visible {
  background-color: var(--reb-green-hover);
  transform: translateY(-1px);
}

.form-feedback {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  background-color: var(--reb-sage);
  border: 1px solid var(--reb-green);
  color: var(--reb-forest);
  font-size: 0.92rem;
  font-weight: 500;
}

.form-feedback a {
  display: inline;
  text-decoration: underline;
  font-weight: 700;
  color: var(--reb-green-hover);
}

/* =========================
   FOOTER
   ========================= */
.footer {
  background-color: var(--reb-forest-deep);
  color: var(--reb-cream-text);
  padding: 3.75rem 0 2.25rem;
  border-top: 1px solid rgba(168, 213, 179, 0.14);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(168, 213, 179, 0.16);
}

.footer-summary {
  margin: 1rem 0 0;
  color: var(--reb-sage);
  font-size: 0.92rem;
  max-width: 38ch;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-nav a {
  color: var(--reb-cream-text);
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-nav a:hover {
  color: var(--reb-sage-soft);
}

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  font-size: 0.85rem;
  color: var(--reb-sage);
}

/* =========================
   RESPONSIVE MÓVIL & TABLET
   ========================= */
@media screen and (max-width: 991px) {
  .wrap {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  .nav-inner {
    padding: 0.75rem 1.15rem;
  }

  .nav-logo {
    width: 184px;
    max-width: calc(100vw - 88px);
  }

  .menu-toggle-btn {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
  }

  .nav-cta-pill {
    display: none;
  }

  .drawer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .drawer-meta {
    border-left: 0;
    border-top: 1px solid rgba(168, 213, 179, 0.24);
    padding-left: 0;
    padding-top: 1.25rem;
    font-size: 1rem;
  }

  .drawer-meta-title,
  .modal-badge,
  .hero-kicker,
  .section-eyebrow,
  .area-card-num,
  .service-row-link,
  .quote-author,
  .cert-zoom-chip {
    font-size: 0.875rem;
    letter-spacing: 1.4px;
  }

  .hero-wrap {
    height: auto;
  }

  .hero-sticky {
    position: relative;
    height: auto;
    min-height: 92svh;
  }

  .hero-video-scrim {
    background: linear-gradient(
      180deg,
      rgba(7, 29, 19, 0.82) 0%,
      rgba(11, 43, 29, 0.6) 48%,
      rgba(7, 29, 19, 0.88) 100%
    );
  }

  .hero-stage {
    height: auto;
    padding: 6rem 1.15rem 3.25rem;
  }

  .hero-scene[data-hero-scene="0"] {
    position: relative;
    left: auto;
    right: auto;
    width: 100%;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .hero-scene[data-hero-scene="1"],
  .hero-scene[data-hero-scene="2"],
  .hero-scroll-hint {
    display: none;
  }

  .hero-split-rule {
    grid-template-columns: 1fr;
    gap: 1.35rem;
    padding-top: 1.6rem;
  }

  .main-heading--hero {
    font-size: clamp(2.05rem, 8.2vw, 3.15rem);
    overflow-wrap: break-word;
  }

  .hero-sub {
    font-size: 1.0625rem;
  }

  .btn-editorial {
    max-width: 100%;
    padding: 0.9rem 1.35rem;
    font-size: 0.95rem;
    justify-content: center;
    text-align: center;
  }

  .hero-mobile-credentials {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    background-color: var(--reb-forest);
    padding: 2rem 1.15rem 2.5rem;
    border-top: 1px solid rgba(168, 213, 179, 0.16);
  }

  .mobile-cred-card {
    background: rgba(17, 58, 40, 0.78);
    border: 1px solid rgba(168, 213, 179, 0.22);
    border-radius: 12px;
    padding: 1.25rem;
  }

  .mobile-cred-card h2 {
    font-family: var(--heading);
    font-size: 1.32rem;
    color: var(--reb-cream-text);
    margin: 0 0 0.45rem;
  }

  .mobile-cred-card p {
    margin: 0;
    color: var(--reb-sage);
    font-size: 0.98rem;
    line-height: 1.6;
  }

  /* Horizontal track táctil real en móvil */
  .horizontal-scroll {
    height: auto;
    padding: 4rem 0;
  }

  .horizontal-sticky {
    position: relative;
    height: auto;
    padding: 0;
    overflow: visible;
  }

  .horizontal-header {
    padding: 0 1.15rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .horizontal-nav-btns {
    display: flex;
  }

  .circle-arrow-btn {
    width: 44px;
    height: 44px;
  }

  .horizontal-progress-bar {
    display: none;
  }

  .horizontal-viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 1.15rem 0.75rem;
    scrollbar-width: none;
  }

  .horizontal-viewport::-webkit-scrollbar {
    display: none;
  }

  .horizontal-track {
    transform: none !important;
    gap: 1rem;
    padding-right: 1.15rem;
  }

  .area-card {
    flex: 0 0 82vw;
    scroll-snap-align: start;
  }

  .area-card-desc,
  .curtain-caption,
  .step-desc,
  .cert-item,
  .contact-info-sub,
  .contact-meta-row,
  .modal-desc,
  .modal-bullets {
    font-size: 1rem;
  }

  .services-intro {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.15rem;
    margin-bottom: 2rem;
  }

  .service-row {
    padding: 1.35rem 0.25rem;
    gap: 1rem;
  }

  .service-row-title {
    font-size: 1.32rem;
  }

  .service-row-sub {
    font-size: 0.96rem;
  }

  .services-section,
  .change-bg-wrap,
  .how-it-work-section,
  .featured-section,
  .review-section,
  .instagram-section,
  .contact-section {
    padding: 3.75rem 0;
  }

  .curtain-duo,
  .steps-grid,
  .cert-grid,
  .deck-layout,
  .contact-grid,
  .footer-grid,
  .form-grid-row {
    grid-template-columns: 1fr;
    gap: 1.65rem;
  }

  .step-card {
    padding: 1.5rem;
  }

  .deck-stack {
    width: calc(100% - 20px);
    max-width: 340px;
    height: clamp(260px, 76vw, 355px);
    margin: 14px auto 8px 0;
  }

  .quote-panel {
    border-left: 0;
    border-top: 1px solid rgba(168, 213, 179, 0.3);
    padding-left: 0;
    padding-top: 1.75rem;
  }

  .deck-dot {
    width: 14px;
    height: 14px;
  }

  .deck-dot.is-active {
    width: 30px;
  }

  .gallery-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .long-arrow-btn {
    min-width: 52px;
    min-height: 44px;
  }

  .gallery-rail {
    padding: 0 1.15rem 0.5rem;
  }

  .gallery-item {
    flex: 0 0 76vw;
  }

  .contact-info-card,
  .contact-form-card {
    padding: 1.85rem 1.25rem;
  }

  .field-label {
    font-size: 0.94rem;
  }

  .text-field,
  .textarea {
    font-size: 1rem;
    padding: 0.85rem 0.95rem;
  }

  .form-feedback {
    font-size: 0.95rem;
  }

  .submit-button {
    width: 100%;
    font-size: 1rem;
  }

  .footer-summary,
  .footer-nav a,
  .footer-bottom {
    font-size: 0.94rem;
  }

  .footer-nav a {
    padding: 0.25rem 0;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media screen and (max-width: 380px) {
  .wrap {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .nav-inner {
    padding: 0.65rem 1rem;
  }

  .nav-logo {
    width: 168px;
  }

  .hero-stage {
    padding: 5.5rem 1rem 2.75rem;
  }

  .btn-editorial {
    width: 100%;
    padding: 0.88rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .curtain-shutter {
    display: none !important;
  }
  .step-card {
    opacity: 1 !important;
    transform: none !important;
  }
  .parallax-img {
    transform: none !important;
    height: 100%;
  }
}
