:root {
  --ink: #17322f;
  --deep: #143f3a;
  --deep-2: #0f312d;
  --sage: #7f9b8c;
  --mint: #dce9e2;
  --mist: #eff5f2;
  --cream: #f8f4ec;
  --white: #ffffff;
  --muted: #5f706b;
  --line: rgba(20, 63, 58, .14);
  --shadow: 0 24px 70px rgba(20, 63, 58, .12);
  --radius-lg: 34px;
  --radius-md: 24px;
  --radius-sm: 16px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.skip-link {
  position: fixed;
  left: 14px;
  top: -100px;
  z-index: 1000;
  background: var(--deep);
  color: white;
  padding: 12px 16px;
  border-radius: 10px;
}
.skip-link:focus { top: 14px; }

.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section { position: relative; padding: 110px 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.9);
  border-bottom: 1px solid rgba(20,63,58,.08);
  backdrop-filter: blur(18px);
}
.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -.03em; font-size: 1.08rem; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--mint); color: var(--deep); }
.brand-mark svg { width: 24px; fill: currentColor; }
.primary-nav { display: flex; align-items: center; gap: 26px; font-size: .94rem; font-weight: 650; }
.primary-nav > a:not(.nav-cta) { position: relative; color: #36514c; }
.primary-nav > a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px; background: var(--deep); transition: right .25s ease; }
.primary-nav > a:not(.nav-cta):hover::after { right: 0; }
.nav-cta { padding: 12px 18px; color: #fff; background: var(--deep); border-radius: 999px; box-shadow: 0 10px 26px rgba(20,63,58,.18); }
.menu-toggle { display: none; width: 46px; height: 46px; padding: 11px; border: 0; border-radius: 14px; background: var(--mist); cursor: pointer; }
.menu-toggle span { display: block; height: 2px; background: var(--deep); margin: 5px 0; transition: .25s ease; }

.hero { min-height: 760px; display: grid; align-items: center; background: linear-gradient(135deg, #f8fbf9 0%, #eef5f1 48%, #f9f5ed 100%); isolation: isolate; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 70px; align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--deep); font-size: .79rem; font-weight: 800; text-transform: uppercase; letter-spacing: .16em; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.eyebrow.light { color: #d9ece3; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 24px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.4rem, 6.6vw, 6.65rem); line-height: .96; letter-spacing: -.055em; font-weight: 500; color: var(--deep-2); }
.hero-lead { max-width: 670px; margin-bottom: 28px; color: #51645f; font-size: clamp(1.06rem, 1.5vw, 1.25rem); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.hero-badges span { padding: 9px 13px; border: 1px solid rgba(20,63,58,.14); border-radius: 999px; background: rgba(255,255,255,.6); font-size: .84rem; font-weight: 700; color: #49625c; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border-radius: 999px; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--deep); color: #fff; box-shadow: 0 16px 36px rgba(20,63,58,.22); }
.button-primary:hover { background: #0f332f; box-shadow: 0 20px 40px rgba(20,63,58,.26); }
.button-secondary { color: var(--deep); background: rgba(255,255,255,.72); border: 1px solid rgba(20,63,58,.16); }

.hero-visual { position: relative; min-height: 560px; display: grid; place-items: center; }
.main-card { position: relative; width: min(100%, 430px); min-height: 485px; padding: 58px 44px; border-radius: 44px; background: var(--deep); color: #fff; box-shadow: 0 36px 80px rgba(20,63,58,.24); overflow: hidden; }
.main-card::after { content: ""; position: absolute; width: 270px; height: 270px; right: -100px; bottom: -120px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; box-shadow: 0 0 0 42px rgba(255,255,255,.04), 0 0 0 84px rgba(255,255,255,.025); }
.visual-icon { width: 90px; height: 90px; display: grid; place-items: center; margin-bottom: 54px; border-radius: 50%; background: #d8e7df; color: var(--deep); }
.visual-icon svg { width: 55px; fill: currentColor; }
.visual-kicker { margin-bottom: 10px; color: #bfd4ca; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.main-card h2 { margin-bottom: 25px; font-family: Georgia, serif; font-size: clamp(2.2rem, 4vw, 3.3rem); line-height: 1.02; font-weight: 500; }
.main-card p:last-child { max-width: 230px; margin: 20px 0 0; color: #dce8e2; }
.visual-rule { width: 100%; height: 1px; background: rgba(255,255,255,.2); }
.floating-card { position: absolute; z-index: 3; min-width: 205px; padding: 18px 20px; border: 1px solid rgba(255,255,255,.7); border-radius: 18px; background: rgba(255,255,255,.86); box-shadow: 0 18px 50px rgba(20,63,58,.15); backdrop-filter: blur(12px); }
.floating-card strong, .floating-card small { display: block; }
.floating-card strong { margin-bottom: 4px; color: var(--deep); font-size: .9rem; }
.floating-card small { color: var(--muted); font-size: .75rem; }
.floating-card-a { top: 42px; right: -40px; }
.floating-card-b { left: -34px; bottom: 42px; }
.mini-dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--sage); }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(2px); z-index: -1; }
.hero-orb-one { width: 440px; height: 440px; right: -160px; top: -140px; background: rgba(166,193,178,.23); }
.hero-orb-two { width: 300px; height: 300px; left: -130px; bottom: -130px; background: rgba(232,215,188,.25); }

.intro-section { background: #fff; }
.intro-grid { display: grid; grid-template-columns: .86fr 1.14fr; gap: 100px; align-items: start; }
.section-heading h2, .schedule-heading h2, .contact-card h2 { margin-bottom: 20px; font-family: Georgia, serif; font-size: clamp(2.5rem, 4.5vw, 4.7rem); line-height: 1.03; letter-spacing: -.04em; font-weight: 500; color: var(--deep-2); }
.section-heading p { max-width: 620px; color: var(--muted); font-size: 1.05rem; }
.section-heading.centered { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-heading.centered .eyebrow { justify-content: center; }
.intro-copy > p { max-width: 650px; margin-bottom: 34px; color: #51645f; font-size: 1.12rem; }
.audience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.audience-card { min-height: 170px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--mist); }
.audience-card .number { display: block; margin-bottom: 38px; color: var(--sage); font-size: .78rem; font-weight: 800; letter-spacing: .16em; }
.audience-card h3 { margin: 0; font-size: 1.35rem; }

.services-section { background: var(--cream); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card { position: relative; min-height: 330px; padding: 32px; border: 1px solid rgba(20,63,58,.1); border-radius: var(--radius-lg); background: rgba(255,255,255,.8); box-shadow: 0 10px 34px rgba(20,63,58,.04); transition: transform .28s ease, box-shadow .28s ease, background .28s ease; overflow: hidden; }
.service-card:hover { transform: translateY(-8px); background: #fff; box-shadow: var(--shadow); }
.service-icon { width: 68px; height: 68px; display: grid; place-items: center; margin-bottom: 95px; border-radius: 22px; background: var(--mint); color: var(--deep); }
.service-icon svg { width: 37px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.service-index { position: absolute; top: 35px; right: 32px; color: #8ba297; font-size: .78rem; font-weight: 800; letter-spacing: .14em; }
.service-card h3 { max-width: 250px; margin: 0; font-family: Georgia, serif; font-size: 2rem; line-height: 1.08; font-weight: 500; }

.approach-section { padding: 0; background: var(--deep); color: #fff; }
.approach-grid { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 600px; }
.approach-panel { padding: 100px 7vw 100px 0; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid rgba(255,255,255,.14); }
.approach-panel h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(3.5rem, 7vw, 7rem); line-height: .92; letter-spacing: -.055em; font-weight: 500; }
.approach-info { padding: 100px 0 100px 7vw; display: flex; flex-direction: column; justify-content: center; }
.approach-line { width: 70px; height: 1px; margin-bottom: 32px; background: #d9ece3; }
.approach-info > p { max-width: 520px; margin-bottom: 60px; color: #d7e5df; font-size: 1.2rem; }
.modality-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.modality-row div { padding: 22px 0; border-top: 1px solid rgba(255,255,255,.18); }
.modality-row span, .modality-row strong { display: block; }
.modality-row span { margin-bottom: 7px; color: #a9c1b6; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; }
.modality-row strong { font-size: 1.1rem; }

.formation-section { background: #fff; }
.timeline { margin-top: 60px; border-top: 1px solid var(--line); }
.timeline-item { display: grid; grid-template-columns: 90px 1fr; gap: 30px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.timeline-marker { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--mint); color: var(--deep); font-size: .8rem; font-weight: 800; }
.timeline-content span { display: block; margin-bottom: 7px; color: var(--sage); font-size: .77rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.timeline-content h3 { max-width: 900px; margin: 0; font-family: Georgia, serif; font-size: clamp(1.55rem, 2.8vw, 2.6rem); line-height: 1.16; font-weight: 500; }

.schedule-section { background: #1d4d47; color: #fff; }
.schedule-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 90px; align-items: start; }
.schedule-heading { position: sticky; top: 122px; }
.schedule-heading h2 { color: #fff; }
.schedule-heading p { color: #bed1c8; }
.schedule-list { border-top: 1px solid rgba(255,255,255,.18); }
.schedule-row { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid rgba(255,255,255,.18); align-items: center; }
.schedule-row span { color: #c4d7ce; font-size: 1rem; }
.schedule-row strong { font-family: Georgia, serif; font-size: clamp(1.35rem, 2.3vw, 2rem); font-weight: 500; line-height: 1.35; }

.contact-section { background: var(--mist); }
.contact-card { display: grid; grid-template-columns: 1fr .82fr; gap: 70px; padding: 60px; border-radius: 38px; background: #fff; box-shadow: var(--shadow); }
.contact-details { display: grid; gap: 16px; }
.contact-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-item span, .contact-item strong, .contact-item a { display: block; }
.contact-item span { margin-bottom: 5px; color: var(--sage); font-size: .77rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.contact-item strong, .contact-item a { color: var(--deep); font-size: 1.35rem; font-weight: 800; }
.button-wide { margin-top: 8px; width: 100%; }

.site-footer { padding: 42px 0; background: #0f2e2b; color: #fff; }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.footer-brand { margin-bottom: 14px; }
.footer-brand .brand-mark { background: rgba(255,255,255,.1); color: #d8e7df; }
.site-footer p { margin: 0; color: #abc1b7; }
.footer-contact { text-align: right; }
.footer-contact span, .footer-contact a { display: block; }
.footer-contact span { color: #8fab9f; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; }
.footer-contact a { margin-top: 5px; font-weight: 800; }

.whatsapp-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: #1e6f5d; color: #fff; box-shadow: 0 16px 38px rgba(16,74,61,.28); transition: transform .2s ease, box-shadow .2s ease; }
.whatsapp-float:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 20px 44px rgba(16,74,61,.34); }
.whatsapp-float svg { width: 30px; fill: currentColor; }

/* El contenido es visible por defecto. Las animaciones solo se activan si JavaScript funciona. */
.reveal { opacity: 1; transform: none; }
.animations-ready .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.animations-ready .reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .animations-ready .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1040px) {
  .hero-grid { gap: 38px; }
  .floating-card-a { right: -10px; }
  .floating-card-b { left: -10px; }
  .intro-grid, .schedule-grid { gap: 60px; }
  .contact-card { gap: 44px; }
}

@media (max-width: 860px) {
  .section { padding: 86px 0; }
  .menu-toggle { display: block; }
  .primary-nav {
    position: fixed;
    inset: 82px 16px auto 16px;
    display: grid;
    gap: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255,255,255,.98);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: .25s ease;
  }
  .primary-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .primary-nav a { padding: 14px 12px; }
  .primary-nav > a:not(.nav-cta)::after { display: none; }
  .nav-cta { margin-top: 8px; text-align: center; }
  .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); }

  .hero { min-height: auto; padding-top: 70px; }
  .hero-grid, .intro-grid, .approach-grid, .schedule-grid, .contact-card { grid-template-columns: 1fr; }
  .hero-visual { min-height: 500px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 260px; }
  .service-icon { margin-bottom: 55px; }
  .intro-grid { gap: 34px; }
  .approach-grid { min-height: auto; }
  .approach-panel { padding: 86px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .approach-info { padding: 70px 0 86px; }
  .schedule-heading { position: static; }
  .contact-card { padding: 42px; }
  .footer-grid { align-items: flex-start; }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .section { padding: 72px 0; }
  .nav-wrap { min-height: 74px; }
  .primary-nav { inset: 74px 12px auto 12px; }
  h1 { font-size: clamp(3rem, 15vw, 4.6rem); }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .hero-visual { min-height: 455px; }
  .main-card { min-height: 420px; padding: 42px 28px; border-radius: 32px; }
  .visual-icon { width: 74px; height: 74px; margin-bottom: 42px; }
  .floating-card { min-width: 180px; padding: 14px 16px; }
  .floating-card-a { top: 10px; right: -4px; }
  .floating-card-b { left: -2px; bottom: 10px; }
  .audience-grid, .modality-row { grid-template-columns: 1fr; }
  .section-heading.centered { margin-bottom: 36px; text-align: left; }
  .section-heading.centered .eyebrow { justify-content: flex-start; }
  .timeline-item { grid-template-columns: 54px 1fr; gap: 18px; }
  .timeline-marker { width: 46px; height: 46px; }
  .schedule-row { grid-template-columns: 1fr; gap: 6px; }
  .contact-card { padding: 30px 24px; border-radius: 28px; }
  .footer-grid { display: grid; }
  .footer-contact { text-align: left; }
  .whatsapp-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}
