:root {
  --green-950: #0b2e20;
  --green-900: #103b29;
  --green-800: #174d36;
  --green-700: #256047;
  --gold-600: #a78333;
  --gold-500: #bd9845;
  --gold-300: #d9bd77;
  --ivory: #f7f4ed;
  --paper: #fbfaf6;
  --warm-gray: #d9d2c4;
  --ink: #18231d;
  --muted: #5d655f;
  --white: #ffffff;
  --header-height: 136px;
  --content: min(1180px, calc(100vw - 48px));
  --sans: "Manrope", "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  --display: "Manrope", "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
section { scroll-margin-top: calc(var(--header-height) + 18px); }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 2000;
  background: var(--white);
  color: var(--green-950);
  padding: 10px 14px;
  border: 2px solid var(--gold-500);
  transition: top .2s ease;
}
.skip-link:focus { top: 14px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: var(--header-height);
  overflow: visible;
  background: rgba(251, 250, 246, .96);
  border-bottom: 1px solid rgba(167, 131, 51, .20);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.header-inner {
  width: var(--content);
  min-height: var(--header-height);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 198px minmax(0, 1fr);
  align-items: center;
  gap: 30px;
}
.brand {
  --brand-logo-width: 168px;
  --brand-logo-height: 118px;
  width: 186px;
  height: 124px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
  text-decoration: none;
}
.brand-mark {
  position: relative;
  display: block;
  width: var(--brand-logo-width);
  height: var(--brand-logo-height);
  flex: 0 0 auto;
}
.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    108deg,
    transparent 29%,
    rgba(255,255,255,.12) 39%,
    rgba(255,236,162,.72) 46%,
    rgba(255,255,255,.98) 51%,
    rgba(255,226,124,.68) 57%,
    rgba(255,255,255,.14) 64%,
    transparent 72%
  );
  background-size: 225% 100%;
  background-position: 150% 0;
  -webkit-mask: url("assets/logo-letras-mask.png") center / contain no-repeat;
  mask: url("assets/logo-letras-mask.png") center / contain no-repeat;
  mix-blend-mode: screen;
  opacity: 0;
  filter: drop-shadow(0 0 5px rgba(255,225,132,.62));
  animation: logo-letter-shine 5.4s cubic-bezier(.42, 0, .24, 1) infinite;
  will-change: background-position, opacity;
}
@keyframes logo-letter-shine {
  0%, 12% {
    background-position: 150% 0;
    opacity: 0;
  }
  18% { opacity: 1; }
  49% {
    background-position: -150% 0;
    opacity: 1;
  }
  56%, 100% {
    background-position: -150% 0;
    opacity: 0;
  }
}

.main-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  position: relative;
  padding: 12px 0 10px;
  text-decoration: none;
  font-size: .91rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 5px;
  height: 1px;
  background: var(--gold-500);
  transition: right .25s ease;
}
.main-nav a:hover::after,
.main-nav a:focus-visible::after { right: 0; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 18px;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: .91rem;
  font-weight: 800;
  letter-spacing: .01em;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.button-primary {
  color: var(--white);
  background: var(--green-900);
  box-shadow: 0 10px 22px rgba(11,46,32,.12);
}
.button-primary:hover { background: var(--green-800); transform: translateY(-1px); }
.button svg,
.floating-whatsapp svg { width: 21px; height: 21px; fill: currentColor; flex: 0 0 auto; }
.menu-toggle { display: none; }

.hero {
  position: relative;
  min-height: 670px;
  display: grid;
  grid-template-columns: minmax(0, 48%) minmax(0, 52%);
  overflow: hidden;
  background: var(--ivory);
}
.hero-copy {
  width: min(650px, calc(100% - 48px));
  align-self: center;
  justify-self: end;
  padding: 92px 56px 100px 0;
  position: relative;
  z-index: 2;
}
.eyebrow {
  margin: 0 0 16px;
  color: var(--gold-600);
  font-size: .79rem;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow-light { color: var(--gold-300); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--green-950); font-family: var(--display); font-weight: 700; }
h1 {
  max-width: 700px;
  margin-bottom: 18px;
  font-size: clamp(3.25rem, 4.9vw, 5.15rem);
  line-height: .98;
  letter-spacing: -.04em;
}
.hero-lead { max-width: 560px; margin: 0 0 18px; color: var(--green-900); font-size: clamp(1.16rem, 1.42vw, 1.36rem); font-weight: 700; line-height: 1.36; }
.hero-intro { max-width: 520px; margin-bottom: 12px; color: #39433d; font-size: 1rem; line-height: 1.7; }
.hero-emphasis { margin-bottom: 32px; color: var(--green-950); font-size: .98rem; font-weight: 850; letter-spacing: .02em; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--green-900);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid var(--gold-500);
  padding-bottom: 4px;
}
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(3px); }

.hero-image {
  min-height: 670px;
  background-image: linear-gradient(90deg, rgba(247,244,237,.16), rgba(247,244,237,0) 24%), url("assets/hero-agro.jpg");
  background-size: cover;
  background-position: center;
  clip-path: ellipse(96% 83% at 100% 48%);
}
.section { width: var(--content); margin: 0 auto; padding: 110px 0; }
.section-heading { display: grid; grid-template-columns: .78fr 1.22fr; column-gap: 80px; align-items: end; margin-bottom: 60px; }
.section-heading .eyebrow { grid-column: 1 / -1; }
.section-heading h2,
.training h2,
.about h2,
.contact h2,
.commitment h2 {
  margin-bottom: 0;
  font-size: clamp(2.05rem, 3.15vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -.024em;
}
.section-heading > p:last-child { max-width: 520px; margin: 0 0 7px; color: var(--muted); }

.service-groups {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 28px;
  align-items: start;
}
.service-group {
  padding: 42px;
  background: #f1ede4;
  border: 1px solid var(--warm-gray);
}
.service-group-featured {
  background: var(--white);
  border-top: 5px solid var(--gold-500);
  box-shadow: 0 22px 55px rgba(11,46,32,.08);
}
.service-group-heading {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--warm-gray);
}
.service-kicker {
  margin-bottom: 10px;
  color: var(--gold-600);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.service-group h3 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 3vw, 3.15rem);
  line-height: 1.05;
}
.service-group-heading > p:last-child {
  max-width: 570px;
  margin-bottom: 0;
  color: var(--muted);
}
.service-list {
  margin: 0;
  padding: 18px 0 0;
  list-style: none;
}
.service-list li {
  position: relative;
  padding: 13px 0 13px 24px;
  border-bottom: 1px solid rgba(217,210,196,.78);
  color: #354039;
}
.service-list li:last-child { border-bottom: 0; }
.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.45em;
  width: 7px;
  height: 7px;
  background: var(--gold-500);
}


.commitment {
  width: 100%;
  padding: 92px max(24px, calc((100vw - 1180px) / 2));
  color: rgba(255,255,255,.82);
  background: var(--green-950);
  border-top: 5px solid var(--gold-500);
}
.commitment-intro { display: grid; grid-template-columns: .75fr 1.25fr; column-gap: 80px; align-items: end; margin-bottom: 56px; }
.commitment-intro .eyebrow { align-self: start; }
.commitment h2 { color: var(--white); }
.commitment-list { display: grid; grid-template-columns: repeat(4, 1fr); }
.commitment-list > div { min-height: 170px; padding: 4px 30px 0; border-left: 1px solid rgba(217,189,119,.42); }
.commitment-list > div:first-child { padding-left: 0; border-left: 0; }
.commitment-label {
  min-height: 2.6em;
  margin: 0;
  color: var(--gold-300);
  font-size: .73rem !important;
  font-weight: 850;
  line-height: 1.3;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.commitment-list h3 { margin: 14px 0 9px; color: var(--white); font-family: var(--sans); font-size: 1rem; font-weight: 800; }
.commitment-list p:not(.commitment-label) { margin: 0; font-size: .94rem; }

.about { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 92px; align-items: center; }
.about-media {
  position: relative;
  min-height: 570px;
  isolation: isolate;
}
.about-media::before {
  content: "";
  position: absolute;
  inset: 8% 2% 3%;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(189,152,69,.13), transparent 72%);
  filter: blur(24px);
}
.about-media::after {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to right, var(--paper) 0%, rgba(251,250,246,.72) 4%, transparent 17%, transparent 83%, rgba(251,250,246,.72) 96%, var(--paper) 100%),
    linear-gradient(to bottom, var(--paper) 0%, rgba(251,250,246,.46) 5%, transparent 17%, transparent 82%, rgba(251,250,246,.76) 96%, var(--paper) 100%);
}
.about-portrait {
  width: 100%;
  height: 570px;
  object-fit: cover;
  object-position: center 38%;
  filter: saturate(.92) contrast(1.025);
  -webkit-mask-image: radial-gradient(ellipse 96% 95% at 50% 49%, #000 63%, rgba(0,0,0,.96) 72%, rgba(0,0,0,.72) 83%, rgba(0,0,0,.24) 94%, transparent 100%);
  mask-image: radial-gradient(ellipse 96% 95% at 50% 49%, #000 63%, rgba(0,0,0,.96) 72%, rgba(0,0,0,.72) 83%, rgba(0,0,0,.24) 94%, transparent 100%);
}
.about-copy > p:not(.eyebrow) { margin-bottom: 17px; color: #3d4640; font-size: 1.03rem; }
.about-copy h2 { margin-bottom: 30px; }
.about-principle {
  margin: 30px 0 !important;
  padding: 20px 0 20px 26px;
  color: var(--green-900) !important;
  border-left: 3px solid var(--gold-500);
  font-family: var(--sans);
  font-size: 1.14rem !important;
  font-weight: 650;
  line-height: 1.55;
}

.contact {
  width: var(--content);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 86px;
  padding: 72px;
  color: rgba(255,255,255,.84);
  background: var(--green-900);
  box-shadow: 0 24px 70px rgba(11,46,32,.14);
}
.contact h2 { color: var(--white); }
.contact-copy p:last-child { max-width: 600px; margin: 22px 0 0; }
.contact-action { padding-left: 60px; border-left: 1px solid rgba(217,189,119,.5); }
.contact-label { display: block; color: var(--gold-300); font-size: .78rem; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
.contact-number { display: block; margin: 8px 0 24px; color: var(--white); font-family: var(--display); font-size: clamp(2.1rem, 3.6vw, 3.7rem); font-weight: 700; line-height: 1.05; letter-spacing: -.035em; text-decoration: none; white-space: nowrap; }
.button-gold { color: var(--green-950); background: var(--gold-300); }
.button-gold:hover { background: #e5cb8a; transform: translateY(-1px); }

.site-footer { padding: 42px 24px 26px; border-top: 1px solid var(--warm-gray); background: var(--ivory); }
.footer-inner {
  width: var(--content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(230px, auto);
  align-items: center;
  gap: 54px;
}
.footer-brand { display: grid; grid-template-columns: 172px minmax(180px, 330px); align-items: center; gap: 28px; }
.footer-brand > img { width: 172px; height: auto; object-fit: contain; }
.footer-brand p { max-width: 330px; margin: 0; color: var(--muted); }
.footer-inner nav { display: flex; gap: 24px; }
.footer-inner nav a { text-decoration: none; font-weight: 700; }
.fiscal-data {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) 118px;
  align-items: center;
  gap: 18px;
  padding-left: 34px;
  border-left: 1px solid rgba(217,210,196,.9);
}
.fiscal-data-copy p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.fiscal-data-copy .fiscal-data-title {
  margin-bottom: 5px;
  color: var(--green-950);
  font-size: .8rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.fiscal-qr-link {
  display: block;
  width: 118px;
  padding: 7px;
  background: #fff;
  border: 1px solid rgba(16,59,41,.18);
  box-shadow: 0 7px 22px rgba(11,46,32,.08);
}
.fiscal-qr-link img { display: block; width: 100%; height: auto; }
.fiscal-qr-link:hover { border-color: var(--gold-500); }
.footer-legal { width: var(--content); margin: 28px auto 0; padding-top: 18px; color: #747b76; border-top: 1px solid rgba(217,210,196,.7); font-size: .82rem; text-align: center; }

.floating-whatsapp {
  position: fixed;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 12px 18px 12px 13px;
  color: var(--white);
  background: #1c9b51;
  border: 2px solid var(--white);
  border-radius: 30px;
  box-shadow: 0 12px 34px rgba(0,0,0,.24);
  font-weight: 850;
  text-decoration: none;
  transition: transform .2s ease, background-color .2s ease;
}
.floating-whatsapp svg { width: 29px; height: 29px; }
.floating-whatsapp:hover { transform: translateY(-2px); background: #178646; }

:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 4px; }

@media (max-width: 1060px) {
  :root { --content: min(100% - 36px, 920px); }
  :root { --header-height: 124px; }
  .header-inner { grid-template-columns: 174px minmax(0, 1fr); gap: 18px; }
  .brand { --brand-logo-width: 151px; --brand-logo-height: 106px; width: 164px; height: 112px; }
  .main-nav { gap: 18px; }
  .hero { min-height: 610px; grid-template-columns: 53% 47%; }
  .hero-copy { padding-right: 34px; }
  .hero-image { min-height: 610px; clip-path: ellipse(105% 82% at 112% 48%); }
  .commitment-list { grid-template-columns: repeat(2, 1fr); gap: 34px 0; }
  .commitment-list > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .about { gap: 60px; }
  .contact { padding: 58px; gap: 50px; }
  .contact-action { padding-left: 40px; }
  .footer-inner { grid-template-columns: 1fr auto; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  :root { --header-height: 94px; --content: min(100% - 30px, 680px); }
  body { padding-bottom: 76px; }
  .site-header { min-height: var(--header-height); }
  .header-inner { min-height: var(--header-height); grid-template-columns: 1fr auto; }
  .brand { --brand-logo-width: 114px; --brand-logo-height: 80px; width: 126px; height: 84px; }
  .menu-toggle {
    width: 44px; height: 44px;
    display: grid; place-content: center; gap: 5px;
    padding: 0;
    color: var(--green-950);
    background: transparent;
    border: 1px solid rgba(16,59,41,.25);
    border-radius: 3px;
    cursor: pointer;
  }
  .menu-toggle span { width: 20px; height: 2px; background: currentColor; transition: transform .22s ease, opacity .22s ease; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0;
    display: grid;
    gap: 0;
    padding: 10px 22px 22px;
    background: rgba(251,250,246,.98);
    border-bottom: 1px solid var(--warm-gray);
    box-shadow: 0 20px 34px rgba(11,46,32,.10);
    transform: translateY(-130%);
    opacity: 0;
    visibility: hidden;
    transition: transform .25s ease, opacity .2s ease, visibility .25s;
  }
  .main-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .main-nav a { padding: 14px 3px; border-bottom: 1px solid rgba(217,210,196,.65); }
  .main-nav a:last-child { border-bottom: 0; }
  .hero { min-height: auto; display: flex; flex-direction: column; }
  .hero-copy { width: var(--content); padding: 58px 0 48px; order: 2; }
  .hero-image { min-height: 390px; order: 1; clip-path: none; background-position: center 43%; }
  h1 { font-size: clamp(2.65rem, 9.8vw, 3.95rem); }
  .hero-lead { font-size: 1.08rem; margin-bottom: 16px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 15px; }
  .hero-actions .button { width: 100%; }
  .hero-actions .text-link { align-self: flex-start; }

  .section { padding: 82px 0; }
  .section-heading { display: block; margin-bottom: 40px; }
  .section-heading h2 { margin-bottom: 22px; }
  .service-groups { grid-template-columns: 1fr; }
  .service-group { padding: 34px; }

  .commitment { padding: 76px 24px; }
  .commitment-intro { display: block; margin-bottom: 44px; }
  .commitment-intro .eyebrow { margin-bottom: 16px; }
  .commitment-list { grid-template-columns: 1fr; }
  .commitment-list > div,
  .commitment-list > div:nth-child(3) { min-height: 0; padding: 24px 0; border-left: 0; border-top: 1px solid rgba(217,189,119,.35); }
  .commitment-list > div:first-child { border-top: 0; }

  .about { grid-template-columns: 1fr; gap: 58px; }
  .about-media { min-height: 440px; }
  .about-portrait { height: 440px; object-position: center 34%; }

  .contact { width: var(--content); grid-template-columns: 1fr; gap: 42px; padding: 46px 28px; margin-bottom: 64px; }
  .contact-action { padding: 34px 0 0; border-left: 0; border-top: 1px solid rgba(217,189,119,.5); }
  .contact-number { font-size: clamp(2.45rem, 12vw, 3.8rem); }

  .footer-inner { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .footer-brand { grid-template-columns: 1fr; gap: 18px; }
  .footer-brand > img { width: 172px; height: auto; margin: 0 auto; }
  .footer-brand p { margin: 0 auto; }
  .footer-inner nav { justify-content: center; flex-wrap: wrap; }
  .fiscal-data {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 14px;
    padding: 26px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(217,210,196,.9);
  }
  .fiscal-qr-link { width: 138px; }
  .floating-whatsapp { left: 14px; right: 14px; bottom: max(12px, env(safe-area-inset-bottom)); justify-content: center; border-radius: 4px; }
}

@media (max-width: 460px) {
  .hero-image { min-height: 310px; }
  .hero-copy { padding-top: 46px; }
  .service-group { padding: 28px 22px; }
  .service-list li { padding-left: 20px; }
  .about-media { min-height: 370px; }
  .about-portrait { min-height: 370px; height: 370px; object-position: center 30%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .brand-mark::after { animation: none !important; opacity: 0; }
}


/* Página independiente de Capacitaciones */
.main-nav a[aria-current="page"] {
  color: var(--gold-600);
  font-weight: 800;
}
.main-nav a[aria-current="page"]::after { display: none; }

.training-page-main {
  background: var(--ivory);
}
.training-page-hero {
  width: min(1240px, calc(100% - 96px));
  min-height: clamp(590px, calc(100svh - var(--header-height)), 760px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(42px, 4.5vw, 64px);
  padding: 56px 0 72px;
}
.training-page-copy {
  min-width: 0;
  position: relative;
  z-index: 1;
}
.training-page-copy h1 {
  max-width: 100%;
  margin: 0;
  color: var(--green-950);
  font-size: clamp(3.35rem, 4.4vw, 4.65rem);
  line-height: 1;
  letter-spacing: -.045em;
  white-space: nowrap;
}
.training-page-copy h1::after { display: none; }
.training-page-media {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 0;
  justify-self: end;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #e8e2d7;
}
.training-page-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(247,244,237,.20), transparent 18%);
}
.training-page-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.training-page .floating-whatsapp {
  width: 58px;
  height: 58px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
}
.training-page .floating-whatsapp span { display: none; }
.training-page .floating-whatsapp svg { width: 28px; height: 28px; }

@media (max-width: 1040px) {
  .training-page-hero {
    width: min(920px, calc(100% - 64px));
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.16fr);
    gap: 38px;
  }
  .training-page-copy h1 { font-size: clamp(3rem, 4.8vw, 3.75rem); }
}

@media (max-width: 820px) {
  .training-page-hero {
    width: var(--content);
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 44px 0 72px;
  }
  .training-page-copy {
    order: 1;
    text-align: center;
  }
  .training-page-media {
    order: 2;
    width: min(100%, 680px);
    justify-self: center;
    aspect-ratio: 4 / 3;
  }
  .training-page-copy h1 {
    font-size: clamp(2.9rem, 12.5vw, 4.6rem);
    white-space: normal;
  }
  .training-page .floating-whatsapp {
    left: auto;
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
    width: 56px;
    height: 56px;
  }
}

@media (max-width: 460px) {
  .training-page-hero { padding: 32px 0 58px; }
  .training-page-media { aspect-ratio: 1 / 1; }
  .training-page-copy h1 { font-size: clamp(2.7rem, 13.5vw, 3.7rem); }
}

/* Apariciones progresivas al hacer scroll. El contenido solo se oculta cuando
   JavaScript confirmó que IntersectionObserver está disponible. */
.reveal-enabled .scroll-reveal {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition:
    opacity 680ms cubic-bezier(.22, 1, .36, 1),
    transform 680ms cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal-enabled .scroll-reveal-left {
  transform: translate3d(-26px, 0, 0);
}

.reveal-enabled .scroll-reveal-right {
  transform: translate3d(26px, 0, 0);
}

.reveal-enabled .scroll-reveal.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

@media (max-width: 820px) {
  .reveal-enabled .scroll-reveal,
  .reveal-enabled .scroll-reveal-left,
  .reveal-enabled .scroll-reveal-right {
    transform: translate3d(0, 20px, 0);
  }

  .reveal-enabled .scroll-reveal.is-revealed {
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-enabled .scroll-reveal,
  .reveal-enabled .scroll-reveal-left,
  .reveal-enabled .scroll-reveal-right {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
