:root {
  --red: #ee121b;
  --red-dark: #b20812;
  --black: #0b0b0f;
  --ink: #17171c;
  --muted: #6d6d78;
  --line: #e8e8ee;
  --soft: #f6f6f8;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(0, 0, 0, .18);
  --radius-lg: 30px;
  --radius-md: 20px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 16px 0;
  transition: background .25s ease, box-shadow .25s ease, padding .25s ease;
}
.site-header.scrolled,
.site-header.menu-open {
  background: rgba(11, 11, 15, .96);
  box-shadow: 0 15px 45px rgba(0,0,0,.18);
  padding: 10px 0;
  backdrop-filter: blur(12px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: .04em;
}
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand span { font-size: 1.1rem; }
.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--white);
  font-size: .88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.main-nav a { opacity: .9; transition: opacity .2s ease, color .2s ease; }
.main-nav a:hover { opacity: 1; color: #ffb7bb; }
.nav-cta {
  padding: 12px 18px;
  background: var(--red);
  border-radius: 999px;
  opacity: 1 !important;
  color: var(--white) !important;
  box-shadow: 0 12px 30px rgba(238,18,27,.32);
}
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255,255,255,.12);
  padding: 11px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: transform .25s ease, opacity .25s ease;
}
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 130px 0 80px;
  color: var(--white);
  isolation: isolate;
}
.hero-bg,
.hero-overlay { position: absolute; inset: 0; z-index: -2; }
.hero-bg {
  background: url('../imagenes/21.jpg') center/cover no-repeat;
  transform: scale(1.02);
}
.hero-overlay {
  z-index: -1;
  background:
    radial-gradient(circle at 74% 28%, rgba(238,18,27,.55), transparent 32%),
    linear-gradient(90deg, rgba(5,5,8,.96) 0%, rgba(13,13,17,.78) 48%, rgba(10,10,13,.38) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 430px;
  gap: 60px;
  align-items: center;
}
.eyebrow,
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before,
.section-tag::before {
  content: '';
  width: 28px;
  height: 3px;
  border-radius: 99px;
  background: currentColor;
}
.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.7rem, 6vw, 6.4rem);
  line-height: .92;
  letter-spacing: -.07em;
  font-weight: 900;
}
.hero h1 span { color: #f4f4f4; }
.hero-lead {
  margin: 24px 0 0;
  font-size: clamp(1.2rem, 2.4vw, 2rem);
  font-weight: 800;
  color: #ffffff;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 15px 22px;
  border-radius: 999px;
  font-weight: 900;
  border: 0;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: var(--white); box-shadow: 0 18px 36px rgba(238,18,27,.32); }
.btn-primary:hover { background: #ff1b25; }
.btn-secondary { background: rgba(255,255,255,.12); color: var(--white); border: 1px solid rgba(255,255,255,.22); }
.hero-card {
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-lg);
  padding: 26px;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}
.hero-card-top { display: flex; align-items: center; gap: 14px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.hero-card-top img { width: 56px; }
.stat-row { display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: center; padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.stat-row strong { color: var(--red); font-size: 2.2rem; line-height: 1; }
.stat-row span { color: rgba(255,255,255,.86); font-weight: 600; line-height: 1.5; }
.mini-gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 20px; }
.mini-gallery img { aspect-ratio: 1; object-fit: cover; border-radius: 16px; }

.section { padding: 96px 0; }
.intro-strip { padding: 56px 0; background: var(--black); color: var(--white); }
.intro-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.intro-grid h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; letter-spacing: -.05em; }
.intro-grid p { margin: 0; color: rgba(255,255,255,.72); font-size: 1.05rem; line-height: 1.8; }
.section-heading { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-heading .section-tag { justify-content: center; }
.section-heading h2,
.about-copy h2,
.cert-grid h2,
.contact-copy h2,
.internal-page h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -.055em;
  font-weight: 900;
}
.section-heading p,
.about-copy p,
.cert-grid p,
.contact-copy p {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.8;
  font-weight: 500;
}
.section-heading.light h2,
.section-heading.light p { color: var(--white); }
.section-heading.light p { opacity: .74; }
.cards { display: grid; gap: 24px; }
.services-grid { grid-template-columns: repeat(3, 1fr); }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  padding: 34px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(0,0,0,.1); border-color: transparent; }
.service-card img { width: 76px; height: 76px; margin-bottom: 24px; }
.service-card h3,
.benefit h3,
.plant-card h3 { margin: 0 0 12px; font-size: 1.25rem; }
.service-card p,
.benefit p { margin: 0; color: var(--muted); line-height: 1.7; }
.dark-section {
  color: var(--white);
  background:
    radial-gradient(circle at 18% 22%, rgba(238,18,27,.28), transparent 36%),
    linear-gradient(135deg, #08080a, #17171d 60%, #0c0c10);
}
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.benefit {
  min-height: 215px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 22px;
  padding: 24px;
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(10px);
}
.benefit img { width: 64px; height: 64px; margin-bottom: 22px; border-radius: 14px; }
.benefit p { color: rgba(255,255,255,.68); }
.plants-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.plant-card {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: end;
  padding: 28px;
  color: var(--white);
  box-shadow: var(--shadow);
  isolation: isolate;
}
.plant-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.78), rgba(0,0,0,.12)); z-index: -1; }
.plant-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s ease; }
.plant-card:hover img { transform: scale(1.06); }
.plant-card span { color: #ff9ca1; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; }
.plant-card h3 { font-size: 2rem; margin: 6px 0 0; }
.about-section { background: var(--soft); }
.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 64px; align-items: center; }
.about-copy .btn { margin-top: 28px; }
.about-media { position: relative; }
.about-media > img { width: 100%; aspect-ratio: 1.05; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.certificate-card {
  position: absolute;
  left: -24px;
  bottom: -30px;
  width: min(340px, calc(100% - 20px));
  padding: 20px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 24px 60px rgba(0,0,0,.16);
}
.certificate-card img { width: 210px; margin-bottom: 8px; }
.certificate-card p { margin: 0; color: var(--muted); font-size: .9rem; font-weight: 700; }
.gallery-section { background: var(--white); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-item {
  border: 0;
  padding: 0;
  background: none;
  border-radius: 18px;
  overflow: hidden;
  cursor: zoom-in;
}
.gallery-item img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .35s ease, filter .35s ease; }
.gallery-item:hover img { transform: scale(1.07); filter: saturate(1.05) contrast(1.04); }
.cert-section { background: var(--soft); }
.cert-grid { display: grid; grid-template-columns: .8fr 1fr; gap: 50px; align-items: center; }
.cert-grid img { width: 100%; max-width: 620px; justify-self: end; }
.contact-section { background: var(--black); color: var(--white); }
.contact-grid { display: grid; grid-template-columns: .9fr 1fr; gap: 60px; align-items: start; }
.contact-copy p { color: rgba(255,255,255,.72); }
.contact-list { display: grid; gap: 14px; margin-top: 34px; }
.contact-list a,
.contact-list div {
  display: grid;
  gap: 5px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.06);
}
.contact-list strong { color: var(--red); }
.contact-list span { color: rgba(255,255,255,.78); line-height: 1.5; }
.contact-form {
  display: grid;
  gap: 18px;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.contact-form label { display: grid; gap: 8px; font-weight: 800; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  outline: none;
  transition: border .2s ease, box-shadow .2s ease;
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(238,18,27,.1); }
.site-footer { padding: 32px 0; background: #050507; color: var(--white); }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-logo { width: 54px; }
.footer-grid p { margin: 10px 0 0; color: rgba(255,255,255,.72); font-weight: 700; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; color: rgba(255,255,255,.74); font-weight: 800; }
.footer-links a:hover { color: var(--white); }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border: 0;
  background: rgba(0,0,0,.88);
  cursor: zoom-out;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: min(100%, 1080px); max-height: 86vh; border-radius: 18px; box-shadow: var(--shadow); }
.whatsapp-float,
.to-top {
  position: fixed;
  right: 18px;
  z-index: 90;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 0;
  font-weight: 900;
  color: var(--white);
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(0,0,0,.2);
}
.whatsapp-float { bottom: 22px; background: #25d366; }
.to-top { bottom: 84px; background: var(--red); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.to-top.visible { opacity: 1; pointer-events: auto; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }
.internal-page { padding-top: 74px; }
.page-hero { min-height: calc(100vh - 74px); display: flex; align-items: center; }

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: 74px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    border-radius: 22px;
    background: rgba(11,11,15,.98);
    box-shadow: var(--shadow);
  }
  .main-nav.active { display: flex; }
  .main-nav a { padding: 15px 12px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .main-nav a:last-child { border-bottom: 0; }
  .nav-cta { text-align: center; margin-top: 10px; }
  .hero { min-height: auto; padding: 126px 0 70px; }
  .hero-grid,
  .intro-grid,
  .about-grid,
  .cert-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-card { max-width: 540px; }
  .services-grid,
  .benefits-grid,
  .plants-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .plant-card { min-height: 280px; }
  .certificate-card { position: relative; left: auto; bottom: auto; margin: -50px 18px 0; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, var(--container)); }
  .brand img { width: 42px; height: 42px; }
  .hero { padding-top: 112px; }
  .hero h1 { font-size: clamp(2.35rem, 14vw, 4rem); }
  .hero-actions .btn { width: 100%; }
  .hero-card { padding: 20px; }
  .stat-row { grid-template-columns: 1fr; gap: 8px; }
  .mini-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .section { padding: 72px 0; }
  .intro-strip { padding: 44px 0; }
  .card, .contact-form { padding: 24px; }
  .benefit { min-height: auto; }
  .gallery-grid { gap: 10px; }
  .footer-grid { align-items: flex-start; flex-direction: column; }
  .whatsapp-float, .to-top { right: 14px; width: 48px; height: 48px; }
}

/* === Ajustes solicitados: hero con video, personaje, plantas con maps y experiencia parallax === */
.hero {
  overflow: hidden;
  min-height: 100svh;
}
.hero-video,
.hero-video-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
}
.hero-video-fallback {
  z-index: -4;
  background: url('../imagenes/21.jpg') center/cover no-repeat;
}
.hero-overlay {
  background:
    radial-gradient(circle at 78% 36%, rgba(238,18,27,.48), transparent 34%),
    linear-gradient(90deg, rgba(2,2,5,.98) 0%, rgba(7,7,11,.82) 47%, rgba(8,8,12,.36) 100%),
    linear-gradient(0deg, rgba(0,0,0,.42), rgba(0,0,0,.18));
}
.hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .78fr);
  gap: 42px;
}
.hero-content {
  position: relative;
  z-index: 2;
}
.hero h1 {
  max-width: 750px;
  font-size: clamp(3rem, 6.7vw, 6.9rem);
  line-height: .9;
  letter-spacing: -.075em;
  text-wrap: balance;
}
.hero-lead {
  max-width: 670px;
  margin-top: 24px;
  font-size: clamp(1.1rem, 1.7vw, 1.55rem);
  line-height: 1.35;
  font-weight: 800;
}
.hero-character {
  position: relative;
  z-index: 2;
  align-self: end;
  display: flex;
  justify-content: center;
  min-height: 560px;
  pointer-events: none;
}
.hero-character::before {
  content: '';
  position: absolute;
  width: min(86%, 440px);
  aspect-ratio: 1;
  left: 50%;
  bottom: 38px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(238,18,27,.34), transparent 68%);
  filter: blur(14px);
  z-index: -1;
}
.hero-character img {
  width: min(100%, 430px);
  max-height: 78vh;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 28px 44px rgba(0,0,0,.48));
}

.plants-section {
  background: linear-gradient(180deg, #fff 0%, #f6f6f8 100%);
}
.plants-map-grid {
  align-items: stretch;
}
.plant-map-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 18px 46px rgba(0,0,0,.09);
}
.plant-map-info {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  padding: 26px 24px 18px;
  align-items: start;
}
.plant-pin {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--red);
  font-size: 0;
  box-shadow: 0 14px 24px rgba(238,18,27,.22);
}
.plant-pin::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--white);
}
.plant-map-info span:not(.plant-pin) {
  display: block;
  color: var(--red);
  font-size: .72rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin-bottom: 9px;
}
.plant-map-info h3 {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: -.04em;
}
.plant-map-info p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 600;
}
.map-frame {
  height: 310px;
  border-top: 1px solid var(--line);
  background: #ececf0;
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.experience-section {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: #050507;
  isolation: isolate;
}
.experience-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5,5,7,.96), rgba(5,5,7,.78) 46%, rgba(5,5,7,.58)),
    url('../imagenes/parallax-experiencia.jpg') center/cover fixed no-repeat;
  transform: scale(1.04);
}
.experience-section::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 18%, rgba(238,18,27,.23), transparent 30%),
    radial-gradient(circle at 82% 78%, rgba(238,18,27,.16), transparent 34%);
}
.experience-grid {
  display: grid;
  grid-template-columns: .98fr 1.02fr;
  gap: 70px;
  align-items: center;
}
.experience-copy h2 {
  margin: 0;
  max-width: 560px;
  font-size: clamp(2.2rem, 4.2vw, 4.3rem);
  line-height: .96;
  letter-spacing: -.06em;
  font-weight: 900;
}
.experience-copy p {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255,255,255,.78);
  line-height: 1.8;
  font-weight: 500;
}
.experience-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 42px;
}
.experience-stats div {
  min-height: 128px;
  padding: 20px 14px;
  border-left: 1px solid rgba(255,255,255,.15);
}
.experience-stats strong {
  display: block;
  color: var(--red);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1;
  letter-spacing: -.05em;
  font-weight: 900;
}
.experience-stats span {
  display: block;
  margin-top: 8px;
  color: rgba(255,255,255,.78);
  font-size: .9rem;
  line-height: 1.45;
  font-weight: 700;
}
.parallax-placeholder {
  min-height: 380px;
  border: 2px dashed rgba(255,255,255,.32);
  border-radius: var(--radius-lg);
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: 42px;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(5px);
  box-shadow: inset 0 0 80px rgba(0,0,0,.26);
}
.parallax-placeholder span {
  color: var(--red);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 900;
}
.parallax-placeholder h3 {
  margin: 14px 0 0;
  max-width: 440px;
  font-size: clamp(1.6rem, 2.8vw, 2.6rem);
  line-height: 1;
  letter-spacing: -.05em;
}
.parallax-placeholder p {
  margin: 16px 0 0;
  color: rgba(255,255,255,.68);
  line-height: 1.6;
}

@media (max-width: 980px) {
  .hero-grid,
  .experience-grid {
    grid-template-columns: 1fr;
  }
  .hero-character {
    min-height: 460px;
    align-self: center;
  }
  .hero-character img {
    width: min(78vw, 360px);
    max-height: 560px;
  }
  .experience-bg {
    background-attachment: scroll;
  }
  .experience-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .map-frame {
    height: 285px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 112px 0 48px;
  }
  .hero h1 {
    font-size: clamp(2.8rem, 15vw, 4.3rem);
  }
  .hero-lead {
    font-size: 1.05rem;
  }
  .hero-character {
    min-height: 390px;
    margin-top: 14px;
  }
  .hero-character img {
    width: min(86vw, 315px);
  }
  .plant-map-info {
    grid-template-columns: 38px 1fr;
    padding: 22px 20px 16px;
  }
  .map-frame {
    height: 260px;
  }
  .experience-stats {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .experience-stats div {
    min-height: auto;
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.13);
    padding: 18px 0;
  }
  .parallax-placeholder {
    min-height: 300px;
    padding: 28px;
  }
}


/* === Intro tipo Apple: video controlado por scroll === */
.scroll-cinematic {
  position: relative;
  height: 360vh;
  min-height: 1500px;
  background: #000;
  color: var(--white);
  isolation: isolate;
}
.scroll-cinematic__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  background: #000;
}
.scroll-cinematic__video,
.scroll-cinematic__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.scroll-cinematic__video {
  z-index: 1;
  opacity: 1;
  filter: contrast(1.08) saturate(1.05);
}
.scroll-cinematic__fallback {
  z-index: 0;
  background: url('../imagenes/21.jpg') center/cover no-repeat;
  transform: scale(1.04);
}
.scroll-cinematic__shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 46%, rgba(238,18,27,.36), transparent 34%),
    linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.55) 46%, rgba(0,0,0,.8) 100%),
    linear-gradient(180deg, rgba(0,0,0,.38) 0%, rgba(0,0,0,.2) 48%, rgba(0,0,0,.86) 100%);
}
.scroll-cinematic__content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
}
.scroll-cinematic__step {
  position: absolute;
  left: 0;
  width: min(780px, calc(100vw - 40px));
  opacity: 0;
  transform: translateY(28px) scale(.985);
  transition: opacity .28s ease, transform .28s ease, filter .28s ease;
  filter: blur(4px);
  pointer-events: none;
  visibility: hidden;
}
.scroll-cinematic__step.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  pointer-events: auto;
  visibility: visible;
}
.scroll-cinematic__step h1,
.scroll-cinematic__step h2 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(3rem, 7.2vw, 7.2rem);
  line-height: .9;
  letter-spacing: -.075em;
  font-weight: 900;
  text-wrap: balance;
}
.scroll-cinematic__step h2 {
  font-size: clamp(2.8rem, 6.4vw, 6.1rem);
}
.scroll-cinematic__step p:not(.eyebrow) {
  max-width: 680px;
  margin: 26px 0 0;
  color: rgba(255,255,255,.88);
  font-size: clamp(1.05rem, 2vw, 1.7rem);
  line-height: 1.34;
  font-weight: 750;
}
.scroll-cinematic__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.scroll-cinematic__progress {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 28px;
  width: min(520px, calc(100% - 40px));
  height: 4px;
  transform: translateX(-50%);
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.2);
}
.scroll-cinematic__progress span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--red);
  box-shadow: 0 0 24px rgba(238,18,27,.6);
}
.scroll-cinematic__skip {
  position: absolute;
  right: 22px;
  bottom: 48px;
  z-index: 5;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(0,0,0,.34);
  color: rgba(255,255,255,.78);
  font-size: .78rem;
  font-weight: 850;
  backdrop-filter: blur(10px);
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.scroll-cinematic__skip:hover {
  color: #fff;
  border-color: rgba(255,255,255,.46);
  background: rgba(238,18,27,.26);
}
.scroll-cinematic__hint {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 48px;
  transform: translateX(-50%);
  color: rgba(255,255,255,.7);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.scroll-cinematic__hint::after {
  content: '';
  display: block;
  width: 1px;
  height: 28px;
  margin: 8px auto 0;
  background: rgba(255,255,255,.42);
  animation: scrollHint 1.4s infinite ease-in-out;
}
@keyframes scrollHint {
  0%, 100% { transform: scaleY(.45); opacity: .35; }
  50% { transform: scaleY(1); opacity: 1; }
}
.scroll-cinematic.video-error .scroll-cinematic__video {
  display: none;
}
.scroll-cinematic.video-error .scroll-cinematic__fallback {
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cinematic {
    height: auto;
    min-height: 100svh;
  }
  .scroll-cinematic__sticky {
    position: relative;
  }
  .scroll-cinematic__step {
    opacity: 1;
    transform: none;
    filter: none;
  }
  .scroll-cinematic__step:not(:first-child),
  .scroll-cinematic__progress,
  .scroll-cinematic__hint {
    display: none;
  }
}

@media (max-width: 980px) {
  .scroll-cinematic {
    height: 330vh;
    min-height: 1250px;
  }
  .scroll-cinematic__sticky {
    min-height: 580px;
  }
  .scroll-cinematic__content {
    align-items: flex-end;
    padding-bottom: 132px;
  }
  .scroll-cinematic__step h1,
  .scroll-cinematic__step h2 {
    font-size: clamp(3.1rem, 12vw, 5.8rem);
  }
  .scroll-cinematic__step p:not(.eyebrow) {
    font-size: 1.08rem;
  }
}

@media (max-width: 640px) {
  .scroll-cinematic {
    height: 300vh;
    min-height: 1050px;
  }
  .scroll-cinematic__sticky {
    min-height: 540px;
  }
  .scroll-cinematic__step {
    width: min(100%, calc(100vw - 28px));
  }
  .scroll-cinematic__step h1,
  .scroll-cinematic__step h2 {
    font-size: clamp(2.65rem, 15vw, 4.2rem);
  }
  .scroll-cinematic__actions .btn {
    width: 100%;
  }
  .scroll-cinematic__skip {
    right: 14px;
    bottom: 34px;
  }
  .scroll-cinematic__hint {
    display: none;
  }
}
