:root {
  --green: #778b74;
  --green-deep: #4c6c58;
  --green-dark: #365946;
  --green-soft: #dfe8dd;
  --gold: #c0b291;
  --gold-soft: #e6d5b7;
  --cream: #f8f7f2;
  --cream-2: #f1efe7;
  --white: #fff;
  --ink: #2e4337;
  --text: #4e5a52;
  --line: rgba(76,108,88,.18);
  --shadow: 0 18px 50px rgba(56, 66, 58, .08);
  --radius-lg: 34px;
  --radius-md: 22px;
  --max: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "DM Sans", Arial, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.55;
}
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

h1,h2,h3 {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--green-deep);
  font-weight: 500;
  margin-top: 0;
}
h1 { font-size: clamp(3.35rem, 6vw, 6rem); line-height: .96; letter-spacing: -.04em; }
h2 { font-size: clamp(2.25rem, 4vw, 4rem); line-height: 1.06; letter-spacing: -.025em; }
h3 { font-size: 1.5rem; line-height: 1.2; }
p { margin: 0; }

.section-shell { max-width: var(--max); margin: 0 auto; }
.section { padding: 92px 72px; }
.centered { text-align: center; display: block; }
.narrow { max-width: 720px; margin-left: auto !important; margin-right: auto !important; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 999px;
  background: #ece8dc;
  color: var(--green-deep);
  font-size: 1.56rem;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.15;
  margin-bottom: 22px;
}
.eyebrow.light { background: rgba(255,255,255,.75); }
.section-title { margin-bottom: 18px; }
.section-intro { margin-bottom: 46px; }

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  font-weight: 600;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green-deep); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }

/* Header */
.site-header {
  max-width: var(--max);
  min-height: 158px;
  margin: 0 auto;
  padding: 12px 36px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr) max-content;
  align-items: center;
  gap: 26px;
  background: rgba(248,247,242,.96);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(76,108,88,.07);
  backdrop-filter: blur(12px);
}
.brand img { width: 308px; height: 146px; object-fit: contain; object-position: left center; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 30px; font-size: 1rem; color: var(--ink); }
.main-nav a { position: relative; white-space: nowrap; flex: 0 0 auto; }
.main-nav a::after { content:""; position:absolute; left:0; right:100%; bottom:-5px; height:1px; background:var(--green); transition:right .2s ease; }
.main-nav a:hover::after { right:0; }
.header-cta {
  min-height: 44px;
  padding-inline: 24px;
  white-space: nowrap;
  width: max-content;
  min-width: max-content;
  flex: 0 0 auto;
  line-height: 1;
}
.menu-toggle { display:none; border:0; background:transparent; }
.menu-toggle span { width:24px; height:2px; background:var(--green-deep); display:block; margin:5px; }

/* Hero */
.hero { min-height: 510px; position: relative; overflow: hidden; background: #ddd; }
.hero-photo {
  position: absolute; inset: 0;
  background-image: linear-gradient(90deg, rgba(248,247,242,.18), rgba(248,247,242,0) 45%), url('assets/hero-updated.png');
  background-size: cover;
  background-position: center center;
  transform: scale(1.02);
}
.hero-card {
  position: relative;
  z-index: 2;
  width: min(48%, 565px);
  min-height: 445px;
  margin: 34px 0 34px 55px;
  padding: 50px 54px 44px;
  border-radius: var(--radius-lg) var(--radius-lg) 88px var(--radius-lg);
  background: rgba(249,248,243,.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  overflow: hidden;
}
.hero-card h1 { margin-bottom: 16px; font-size: clamp(2.5rem, 4.2vw, 4.2rem); }
.hero-lead { max-width: 430px; color: var(--ink); font-size: 1.05rem; margin-bottom: 12px; }
.hero-copy { max-width: 455px; font-size: .9rem; margin-bottom: 26px; }
.hero-actions { display:flex; align-items:center; gap:18px; flex-wrap:wrap; position:relative; z-index:2; }
.video-link { border:0; background:transparent; color:var(--green-deep); display:flex; align-items:center; gap:9px; font-weight:600; }
.play { width:27px; height:27px; border:1px solid var(--green); border-radius:50%; display:grid; place-items:center; font-size:.65rem; padding-left:2px; }
.hero-arc { position:absolute; width:370px; height:260px; border:10px solid var(--gold-soft); border-left-color:transparent; border-top-color:transparent; border-radius:50%; right:-75px; bottom:-96px; transform:rotate(8deg); opacity:.9; }
.hero-orbit { position:absolute; border-radius:50%; background:var(--gold-soft); }
.orbit-one { width:18px; height:18px; right:35px; top:115px; }
.orbit-two { width:14px; height:14px; right:61px; top:157px; background:#b7c2b4; }
.orbit-three { width:28px; height:28px; right:66px; bottom:68px; }

/* Value */
.value { background: var(--cream); display:grid; grid-template-columns: 34% 1fr; gap:60px; }
.value-intro { padding-top: 28px; }
.value-intro h2 { font-size: clamp(2.2rem,3.5vw,3.55rem); margin-bottom:18px; }
.value-intro p { max-width: 420px; }
.value-grid { display:grid; grid-template-columns: repeat(3,1fr); gap:28px; }
.value-card { position:relative; }
.value-card img { height:150px; object-fit:cover; border-radius:18px; margin-bottom:17px; }
.value-card h3 { font-size:1.35rem; margin:0 0 7px; }
.value-card p { font-size:.88rem; }
.value-icon { position:absolute; top:120px; left:-10px; width:48px; height:48px; display:grid; place-items:center; border-radius:50%; background:var(--cream); border:1px solid var(--line); color:var(--green-deep); font-size:1.4rem; }

/* About */
.about { background: linear-gradient(180deg, #e8eee5 0%, #f8f7f2 100%); }
.pillars { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; margin-top:44px; }
.pillar { background:rgba(255,255,255,.72); border:1px solid var(--line); border-radius:var(--radius-md); padding:34px; min-height:245px; }
.pillar.featured {
  background: var(--gold-soft);
  color: var(--green-deep);
  border-color: rgba(192,178,145,.58);
  transform: translateY(-10px);
}
.pillar.featured h3,
.pillar.featured .pillar-number,
.pillar.featured p { color: var(--green-deep); }
.pillar h3 { margin-bottom:12px; }
.pillar-number { color:var(--gold); font-weight:600; font-size:.8rem; letter-spacing:.1em; }

/* Programs */
.programs { background: #fbfaf6; }
.program-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:32px; margin-top:38px; }
.program-card { border:1px solid rgba(192,178,145,.45); border-radius:22px; overflow:hidden; background:#f9f7f1; box-shadow:0 12px 28px rgba(60,65,60,.04); }
.program-card img { height:210px; object-fit:cover; }
.program-body { padding:20px 22px 24px; }
.program-body h3 { margin-bottom:9px; }
.program-body p { font-size:.91rem; }
.program-more-wrap { display:flex; justify-content:center; margin:28px auto 0; }
.program-more-btn { min-height:48px; padding-inline:30px; }
.program-note { margin:28px auto 0; text-align:center; max-width:1120px; padding:20px 30px; border-radius:999px; background:#edf1eb; color:var(--green-deep); font-size:1.8rem; line-height:1.3; font-weight:500; }

/* Teachers */
.instructors { background: linear-gradient(180deg, #eef2ec 0%, #f8f7f2 100%); }
.teacher-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:28px; margin-top:38px; }
.teacher-card { text-align:center; }
.teacher-card img { height:245px; object-fit:cover; object-position:center 18%; border-radius:22px; margin-bottom:15px; display:block; width:100%; background:#f4f3ee; }
.teacher-card h3 { font-size:1.25rem; margin-bottom:5px; }
.teacher-card p { font-size:.88rem; }
.teacher-card span { color:var(--green-deep); }

/* Testimonials */
.testimonials { background:#fbfaf6; }
.testimonial-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-top:38px; }
.testimonial-card { margin:0; min-height:220px; padding:34px; border-radius:24px; background:#f0ede4; position:relative; }
.quote-mark { position:absolute; top:14px; left:20px; font-family:Georgia,serif; color:var(--gold); font-size:3rem; line-height:1; }
.testimonial-card p { padding-top:20px; }
.testimonial-card footer { margin-top:24px; color:var(--green-deep); font-weight:600; }

/* Contact */
.contact { padding:0; background:#d8d1c2; }
.contact-bg { position:relative; min-height:410px; padding:58px 70px; display:grid; grid-template-columns: 34% 1fr; gap:48px; align-items:center; overflow:hidden; }
.contact-bg::before {
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(circle at 8% 30%, rgba(103,132,101,.45), transparent 23%),
    radial-gradient(circle at 88% 62%, rgba(115,137,103,.50), transparent 24%),
    linear-gradient(90deg, rgba(80,73,58,.64), rgba(192,178,145,.22));
}
.contact-bg::after { content:""; position:absolute; left:0; right:0; bottom:0; height:90px; background:linear-gradient(180deg, transparent, rgba(65,75,62,.16)); }
.contact-copy, .contact-form { position:relative; z-index:2; }
.contact-copy { color:#fff; }
.contact-copy h2 { color:#fff; font-size:3.3rem; margin-bottom:18px; }
.contact-copy p { max-width:360px; color:rgba(255,255,255,.9); }
.contact-form { background:rgba(249,248,243,.97); border-radius:22px; padding:28px; box-shadow:var(--shadow); }
.form-row { display:grid; gap:16px; margin-bottom:16px; }
.form-row.three { grid-template-columns:repeat(3,1fr); }
.form-row.two { grid-template-columns:.8fr 1.2fr; }
label { display:grid; gap:7px; font-size:.78rem; color:var(--ink); font-weight:600; }
input, textarea, select { width:100%; border:1px solid rgba(76,108,88,.24); background:#fff; border-radius:10px; padding:12px 13px; color:var(--ink); outline:none; }
input:focus, textarea:focus, select:focus { border-color:var(--green); box-shadow:0 0 0 3px rgba(119,139,116,.12); }
textarea { min-height:86px; resize:vertical; }
.form-submit { width:100%; }
.form-status, .newsletter-status { margin-top:10px; font-size:.8rem; color:var(--green-deep); min-height:1.2em; }

/* Footer */
.footer { background:var(--cream); }
.footer-main { display:grid; grid-template-columns:1.1fr 1fr .6fr; gap:44px; padding:34px 45px; align-items:center; }
.footer-brand img { width:200px; height:88px; object-fit:contain; object-position:left center; margin-bottom:10px; }
.footer-brand p { font-size:.82rem; max-width:330px; }
.footer-brand strong { display:block; margin-top:8px; color:var(--green-deep); font-size:.82rem; }
.footer h3 { font-family:"DM Sans",sans-serif; font-size:.93rem; font-weight:600; margin-bottom:8px; }
.footer-newsletter p { font-size:.8rem; margin-bottom:11px; }
.newsletter-form { display:flex; border:1px solid var(--line); border-radius:999px; overflow:hidden; background:#fff; }
.newsletter-form input { border:0; border-radius:0; }
.newsletter-form button { width:44px; border:0; background:var(--green-deep); color:#fff; }
.socials { display:flex; gap:10px; }
.socials a { width:34px; height:34px; display:grid; place-items:center; border-radius:50%; background:var(--green-deep); color:#fff; font-size:.75rem; font-weight:600; }
.footer-bottom { background:var(--green-deep); color:rgba(255,255,255,.85); padding:14px 34px; display:flex; justify-content:space-between; font-size:.7rem; }
.footer-bottom div { display:flex; gap:24px; }

/* Modal */
.modal { position:fixed; inset:0; z-index:100; display:none; place-items:center; padding:20px; }
.modal.open { display:grid; }
.modal-backdrop { position:absolute; inset:0; background:rgba(31,45,37,.66); backdrop-filter:blur(6px); }
.modal-panel { position:relative; width:min(700px,100%); background:var(--cream); border-radius:24px; padding:34px; z-index:2; box-shadow:0 30px 80px rgba(0,0,0,.22); }
.modal-close { position:absolute; right:18px; top:12px; width:38px; height:38px; border-radius:50%; border:0; background:#ece8dc; color:var(--green-deep); font-size:1.5rem; }
.video-placeholder { min-height:300px; border-radius:18px; background:linear-gradient(135deg,#d9e1d7,#efe5d4); display:grid; place-items:center; text-align:center; padding:30px; color:var(--green-deep); }
.video-placeholder span { font-size:2.5rem; }
.video-placeholder p { max-width:420px; }

@media (max-width: 1240px) {
  .site-header {
    grid-template-columns: 250px minmax(0, 1fr) max-content;
    gap: 16px;
    padding-inline: 22px;
  }
  .brand img { width: 250px; height: 119px; }
  .main-nav { gap: 14px; font-size: .88rem; }
  .header-actions-bar { gap: 8px; }
  .header-cta { padding-inline: 18px; font-size: .9rem; }
}

@media (max-width: 1050px) {
  .site-header { grid-template-columns: 195px minmax(0, 1fr) max-content; min-height: 118px; padding-inline: 18px; gap: 12px; }
  .main-nav { gap: 9px; font-size: .78rem; }
  .brand img { width: 195px; height: 93px; }
  .section { padding-inline:42px; }
  .hero-card { width:54%; margin-left:34px; padding:46px 42px 38px; }
  .value { grid-template-columns:1fr; }
  .value-grid { grid-template-columns:repeat(3,1fr); }
}

@media (max-width: 900px) {
  .site-header { grid-template-columns:1fr auto; min-height:96px; }
  .header-cta { display:none; }
  .menu-toggle { display:block; }
  .main-nav { position:absolute; left:20px; right:20px; top:94px; display:none; flex-direction:column; align-items:stretch; background:var(--cream); padding:18px; border-radius:18px; box-shadow:var(--shadow); }
  .main-nav.open { display:flex; }
  .hero { min-height:720px; background:var(--cream); }
  .hero-photo { height:380px; bottom:auto; background-position:center; }
  .hero-card { width:auto; min-height:unset; margin:295px 20px 26px; padding:36px 28px 44px; }
  .section { padding:68px 22px; }
  .value-grid, .pillars, .program-grid, .testimonial-grid { grid-template-columns:1fr; }
  .teacher-grid { grid-template-columns:repeat(2,1fr); }
  .pillar.featured { transform:none; }
  .contact-bg { grid-template-columns:1fr; padding:54px 22px; }
  .form-row.three, .form-row.two { grid-template-columns:1fr; }
  .footer-main { grid-template-columns:1fr; padding:34px 22px; }
  .footer-bottom { flex-direction:column; gap:10px; }
}

@media (max-width: 520px) {
  h1 { font-size:3.35rem; }
  .brand img { width:180px; height:86px; }
  .hero-card { margin-top:315px; }
  .teacher-grid { grid-template-columns:1fr; }
  .teacher-card img { height:320px; }
  .program-note { border-radius:18px; font-size:1.25rem; padding:18px 20px; }
}

/* Language toggle */
.header-actions-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: nowrap;
  white-space: nowrap;
  flex: 0 0 auto;
}
.language-toggle {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: #eee5d4;
  border: 1px solid rgba(157, 135, 93, .22);
  box-shadow: inset 0 1px 2px rgba(66, 57, 39, .05);
}
.lang-option {
  min-width: 38px;
  height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: #eee5d4;
  color: #655f52;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.lang-option:hover { transform: translateY(-1px); }
.lang-option.active,
.lang-option[aria-pressed="true"] {
  background: #bca77d;
  color: #fffdf8;
  box-shadow: 0 2px 8px rgba(102, 87, 58, .16);
}

@media (max-width: 1050px) {
  .site-header { grid-template-columns: 195px minmax(0, 1fr) max-content; }
  .header-cta { padding-inline: 14px; font-size: .84rem; }
  .header-actions-bar { gap: 6px; }
  .language-toggle { transform: scale(.96); transform-origin: right center; }
}

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto auto; gap: 10px; }
  .header-actions-bar { grid-column: 2; grid-row: 1; }
  .header-cta { display: none; }
  .menu-toggle { grid-column: 3; grid-row: 1; }
  .language-toggle { transform: none; }
}

@media (max-width: 520px) {
  .site-header { padding-inline: 14px; }
  .lang-option { min-width: 34px; height: 32px; padding-inline: 8px; font-size: .76rem; }
}

/* =========================================================
   Header collision-safety overrides
   Keep nav, language selector and CTA in separate space.
   ========================================================= */
.site-header {
  max-width: 1440px;
}

.main-nav {
  min-width: 0;
  justify-content: flex-start;
}

.header-actions-bar {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.header-cta {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Compact desktop / landscape tablet:
   preserve the visible desktop navigation without overlaps. */
@media (min-width: 1181px) and (max-width: 1500px) {
  .site-header {
    max-width: 100%;
    grid-template-columns: 230px minmax(0, 1fr) max-content;
    column-gap: 12px;
    padding-inline: 18px;
    min-height: 124px;
  }

  .brand img {
    width: 230px;
    height: 110px;
  }

  .main-nav {
    justify-content: flex-start;
    gap: 10px;
    font-size: .80rem;
  }

  .header-actions-bar {
    gap: 7px;
  }

  .language-toggle {
    transform: scale(.92);
    transform-origin: right center;
  }

  .header-cta {
    padding-inline: 16px;
    font-size: .84rem;
  }
}

/* Once the full header can no longer fit comfortably,
   switch to the menu button instead of allowing any overlap. */
@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
    min-height: 104px;
    padding-inline: 18px;
    gap: 12px;
  }

  .brand img {
    width: 190px;
    height: 91px;
  }

  .main-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 102px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    font-size: 1rem;
    background: var(--cream);
    padding: 20px;
    border-radius: 18px;
    box-shadow: var(--shadow);
    z-index: 60;
  }

  .main-nav.open {
    display: flex;
  }

  .header-actions-bar {
    grid-column: 2;
    grid-row: 1;
    gap: 8px;
  }

  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
    grid-column: 3;
    grid-row: 1;
  }

  .language-toggle {
    transform: none;
  }
}

@media (max-width: 520px) {
  .site-header {
    min-height: 92px;
    padding-inline: 12px;
    gap: 8px;
  }

  .brand img {
    width: 160px;
    height: 76px;
  }

  .main-nav {
    top: 90px;
    left: 12px;
    right: 12px;
  }
}

/* =========================================================
   Header social media links
   Desktop: second row beneath language + CTA.
   Compact/tablet/mobile: live inside the hamburger menu.
   ========================================================= */
.header-actions-bar {
  flex-wrap: wrap;
  row-gap: 8px;
}

.header-socials {
  flex: 0 0 100%;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding-right: 4px;
}

.header-socials a,
.mobile-header-socials a {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-deep);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1;
  flex: 0 0 32px;
  transition: transform .18s ease, background .18s ease;
}

.header-socials a:hover,
.mobile-header-socials a:hover {
  transform: translateY(-2px);
  background: var(--green-dark);
}

.header-socials a:focus-visible,
.mobile-header-socials a:focus-visible {
  outline: 3px solid rgba(188, 167, 125, .48);
  outline-offset: 3px;
}

.mobile-header-socials {
  display: none;
}

/* The social row needs a little extra vertical breathing room at medium desktop sizes. */
@media (min-width: 1181px) and (max-width: 1500px) {
  .site-header {
    min-height: 146px;
  }

  .header-actions-bar {
    row-gap: 7px;
  }

  .header-socials a {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    font-size: .68rem;
  }
}

/* On tablet and phone layouts the social links move into the hamburger menu,
   preventing any header collisions or horizontal overflow. */
@media (max-width: 1180px) {
  .header-socials {
    display: none;
  }

  .mobile-header-socials {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(76,108,88,.14);
  }

  .mobile-header-socials a {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    font-size: .8rem;
  }
}

/* =========================================================
   FINAL HEADER READABILITY OVERRIDE
   Keep desktop/tablet-landscape navigation readable.
   Do NOT shrink menu text excessively; collapse earlier instead.
   ========================================================= */

/* Medium desktop / large landscape tablet */
@media (min-width: 1281px) and (max-width: 1500px) {
  .site-header {
    grid-template-columns: 205px minmax(0, 1fr) max-content;
    column-gap: 14px;
    padding-inline: 20px;
    min-height: 148px;
  }

  .brand img {
    width: 205px;
    height: 98px;
  }

  .main-nav {
    justify-content: flex-start;
    gap: 14px;
    font-size: .96rem;
    line-height: 1.2;
  }

  .header-actions-bar {
    gap: 8px;
    row-gap: 7px;
  }

  .language-toggle {
    transform: scale(.96);
    transform-origin: right center;
  }

  .header-cta {
    padding-inline: 17px;
    font-size: .90rem;
  }
}

/* At narrower widths, use the hamburger menu rather than shrinking labels.
   This keeps the navigation comfortably readable on iPad landscape and smaller. */
@media (max-width: 1280px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
    min-height: 104px;
    padding-inline: 18px;
    gap: 12px;
  }

  .brand img {
    width: 190px;
    height: 91px;
  }

  .main-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 102px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    font-size: 1rem;
    line-height: 1.35;
    background: var(--cream);
    padding: 20px;
    border-radius: 18px;
    box-shadow: var(--shadow);
    z-index: 60;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    font-size: 1rem;
    padding: 5px 2px;
  }

  .header-actions-bar {
    grid-column: 2;
    grid-row: 1;
    gap: 8px;
  }

  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
    grid-column: 3;
    grid-row: 1;
  }

  .language-toggle {
    transform: none;
  }

  .header-socials {
    display: none;
  }

  .mobile-header-socials {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(76,108,88,.14);
  }
}

@media (max-width: 520px) {
  .site-header {
    min-height: 92px;
    padding-inline: 12px;
    gap: 8px;
  }

  .brand img {
    width: 160px;
    height: 76px;
  }

  .main-nav {
    top: 90px;
    left: 12px;
    right: 12px;
    font-size: 1rem;
  }
}

/* =========================================================
   Transparent sticky header on scroll
   At the top: existing near-solid header.
   After scrolling: ~70% transparent with blur for readability.
   ========================================================= */
.site-header {
  transition:
    background-color .28s ease,
    backdrop-filter .28s ease,
    -webkit-backdrop-filter .28s ease,
    border-color .28s ease,
    box-shadow .28s ease;
}

.site-header.is-scrolled {
  background: rgba(248, 247, 242, .30);
  border-bottom-color: rgba(76, 108, 88, .12);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  box-shadow: 0 8px 28px rgba(31, 45, 37, .06);
}

/* Slightly more opacity on small screens so controls remain easy to read,
   while still clearly showing content underneath the sticky header. */
@media (max-width: 820px) {
  .site-header.is-scrolled {
    background: rgba(248, 247, 242, .38);
  }
}

/* =========================================================
   FINAL HEADER SOCIAL ICON TREATMENT
   Outline icons, no circular button fills.
   Desktop icons sit ABOVE the language / CTA row.
   ========================================================= */
.header-actions-bar {
  display: grid;
  grid-template-columns: max-content;
  justify-items: end;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.header-primary-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  white-space: nowrap;
}

.header-socials {
  width: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 13px;
  padding: 0 5px 1px 0;
}

.header-socials a,
.mobile-header-socials a {
  width: 27px;
  height: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green-deep);
  background: transparent;
  border: 0;
  border-radius: 0;
  flex: 0 0 auto;
  line-height: 1;
  transition: color .18s ease, transform .18s ease, opacity .18s ease;
}

.header-socials svg,
.mobile-header-socials svg {
  width: 23px;
  height: 23px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-socials .icon-fill,
.mobile-header-socials .icon-fill,
.header-socials .icon-dot,
.mobile-header-socials .icon-dot {
  fill: currentColor;
  stroke: none;
}

@media (hover: hover) and (pointer: fine) {
  .header-socials a:hover,
  .mobile-header-socials a:hover {
    color: var(--green-dark);
    transform: translateY(-2px);
    background: transparent;
  }
}

.header-socials a:focus-visible,
.mobile-header-socials a:focus-visible {
  outline: 2px solid var(--green-deep);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Keep the social/CTA group compact enough for medium desktop widths. */
@media (min-width: 1281px) and (max-width: 1500px) {
  .header-actions-bar {
    gap: 7px;
  }

  .header-primary-actions {
    gap: 8px;
  }

  .header-socials {
    gap: 11px;
    padding-right: 4px;
  }

  .header-socials a {
    width: 25px;
    height: 25px;
  }

  .header-socials svg {
    width: 21px;
    height: 21px;
  }
}

/* Tablet/mobile:
   keep only the language toggle in the compact header.
   Social icons move into the hamburger menu, still outline style. */
@media (max-width: 1280px) {
  .header-actions-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
  }

  .header-primary-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .header-socials {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .mobile-header-socials {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    margin-top: 10px;
    padding-top: 16px;
    border-top: 1px solid rgba(76,108,88,.14);
  }

  .mobile-header-socials a {
    width: 30px;
    height: 30px;
  }

  .mobile-header-socials svg {
    width: 25px;
    height: 25px;
  }
}

/* =========================================================
   Programs complementary-training callout
   Includes local green Canva wordmark and emphasized copy.
   ========================================================= */
.program-note {
  margin: 28px auto 0;
  max-width: 1180px;
  padding: 22px 34px;
  border-radius: 44px;
  background: #edf1eb;
  color: var(--green-deep);
}

.program-note-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-width: 0;
}

.canva-mark {
  width: 132px;
  height: auto;
  flex: 0 0 132px;
  object-fit: contain;
}

.program-note-copy {
  margin: 0;
  max-width: 940px;
  text-align: left;
  color: var(--green-deep);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.28;
  font-weight: 500;
}

.program-note-copy strong {
  font-weight: 800;
  color: var(--green-dark);
}

@media (max-width: 820px) {
  .program-note {
    border-radius: 28px;
    padding: 24px 22px;
  }

  .program-note-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .canva-mark {
    width: 118px;
    flex-basis: auto;
  }

  .program-note-copy {
    text-align: center;
    font-size: 1.18rem;
  }
}

@media (max-width: 520px) {
  .program-note {
    border-radius: 22px;
    padding: 20px 18px;
  }

  .canva-mark {
    width: 104px;
  }

  .program-note-copy {
    font-size: 1.05rem;
    line-height: 1.34;
  }
}



/* Exact user-supplied Canva logo */
.canva-mark {
  object-fit: contain;
  object-position: center;
  max-width: 100%;
  height: auto;
}


/* Enhanced About / Quienes somos cards */
.enhanced-about-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:28px;
  margin-top:36px;
  align-items:stretch;
}

.interactive-card{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(111,128,111,.18);
  background:#ffffff;
  border-radius:28px;
  padding:40px 34px 34px;
  min-height:320px;
  box-shadow:0 8px 24px rgba(45,68,52,.05);
  transition:transform .28s ease, box-shadow .28s ease, border-color .28s ease, background-color .28s ease;
}

.interactive-card::after{
  content:"";
  position:absolute;
  inset:auto -35% -55% auto;
  width:180px;
  height:180px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(212,190,142,.18) 0%, rgba(212,190,142,0) 70%);
  opacity:0;
  transition:opacity .28s ease, transform .28s ease;
  transform:translate3d(0,14px,0);
  pointer-events:none;
}

.interactive-card:hover{
  transform:translateY(-8px) scale(1.01);
  box-shadow:0 18px 42px rgba(45,68,52,.12);
  border-color:rgba(111,128,111,.3);
}

.interactive-card:hover::after{
  opacity:1;
  transform:translate3d(-8px,0,0);
}

.interactive-card.featured{
  background:#e8d8b8;
  border-color:rgba(200,177,130,.45);
  box-shadow:0 10px 28px rgba(212,190,142,.12);
}

.interactive-card.featured:hover{
  background:#ecddbf;
  box-shadow:0 18px 46px rgba(177,148,92,.18);
}

.about-icon-wrap{
  width:58px;
  height:58px;
  border-radius:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-bottom:22px;
  color:#5d7a63;
  background:#f3f6f0;
  border:1px solid rgba(111,128,111,.14);
  transition:transform .28s ease, background-color .28s ease, color .28s ease, border-color .28s ease;
}

.interactive-card:hover .about-icon-wrap{
  transform:translateY(-2px) scale(1.06);
  background:#5d7a63;
  color:#fff;
  border-color:#5d7a63;
}

.interactive-card.featured .about-icon-wrap{
  background:rgba(255,255,255,.45);
  border-color:rgba(93,122,99,.15);
}

.interactive-card.featured:hover .about-icon-wrap{
  background:#fff7ea;
  color:#5d7a63;
  border-color:rgba(93,122,99,.28);
}

.about-icon{
  width:28px;
  height:28px;
}

#nosotros .about-card h3{
  margin:0 0 16px;
}

#nosotros .about-card p{
  margin:0;
}

@media (max-width: 1080px){
  .enhanced-about-grid{
    grid-template-columns:1fr;
    gap:20px;
  }
  .interactive-card{
    min-height:auto;
    padding:30px 26px 28px;
  }
}

/* =========================================================
   Contact form alignment + refined field sizing
   - Keep labels at current size
   - Make field text match label size
   - Align "Programa de interés" field upward with "Mensaje"
   ========================================================= */
.contact-form .form-row.two {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.contact-form .form-row.two > label:first-child {
  grid-column: span 1;
}

.contact-form .form-row.two > label:last-child {
  grid-column: span 2;
}

.contact-form label {
  font-size: .91rem;
  gap: 8px;
  align-self: start;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  font-size: .91rem;
  line-height: 1.35;
}

.contact-form input,
.contact-form select {
  height: 54px;
  min-height: 54px;
  padding: 0 15px;
}

.contact-form select {
  appearance: auto;
  -webkit-appearance: menulist;
}

.contact-form textarea {
  min-height: 110px;
  padding: 14px 15px;
}

@media (max-width: 900px) {
  .contact-form .form-row.two {
    grid-template-columns: 1fr;
  }

  .contact-form .form-row.two > label:first-child,
  .contact-form .form-row.two > label:last-child {
    grid-column: auto;
  }
}

/* =========================================================
   Functional contact form
   ========================================================= */
.form-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-submit:disabled {
  cursor: wait;
  opacity: .72;
  transform: none;
}

.form-status {
  color: #8a3f35;
  font-weight: 600;
}

.form-success-panel {
  max-width: 560px;
  text-align: center;
  padding: 46px 42px 38px;
}

.form-success-icon {
  width: 66px;
  height: 66px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: 2rem;
  font-weight: 800;
}

.form-success-panel .eyebrow {
  margin-bottom: 18px;
}

.form-success-panel h3 {
  margin-bottom: 14px;
  font-size: 2rem;
}

.form-success-panel p {
  max-width: 430px;
  margin: 0 auto 26px;
  font-size: 1rem;
  line-height: 1.6;
}

.form-success-button {
  min-width: 150px;
}

@media (max-width: 520px) {
  .form-success-panel {
    padding: 40px 24px 30px;
  }

  .form-success-panel h3 {
    font-size: 1.7rem;
  }
}

/* =========================================================
   Newsletter CSV collection + inline confirmation
   ========================================================= */
.newsletter-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.newsletter-form button:disabled {
  cursor: wait;
  opacity: .7;
}

.newsletter-status {
  margin-top: 10px;
  max-width: 620px;
  min-height: 1.35em;
  font-size: .88rem;
  line-height: 1.45;
  font-weight: 600;
}

.newsletter-status.is-success {
  color: var(--green-deep);
}

.newsletter-status.is-error {
  color: #8a3f35;
}

/* =========================================================
   Final header social arrangement + refreshed hero image
   Desktop: outline social icons above language + CTA.
   Tablet/mobile: social icons stay in the hamburger menu.
   ========================================================= */
@media (min-width: 1281px) {
  .header-actions-bar {
    display: grid;
    grid-template-columns: max-content;
    justify-items: end;
    align-items: center;
    gap: 8px;
  }

  .header-socials {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 13px;
    padding-right: 5px;
  }

  .header-primary-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
  }
}

/* Keep the woman well-framed in the refreshed hero image. */
.hero-photo {
  background-position: center 48%;
}

@media (max-width: 900px) {
  .hero-photo {
    background-position: 66% center;
  }
}

/* =========================================================
   Healy Biology introduction video popup
   Spanish video is active now; English version remains pending.
   ========================================================= */
#video-modal .modal-panel {
  width: min(940px, 100%);
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: #111;
  box-shadow: 0 16px 42px rgba(31,45,37,.14);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.video-spanish,
.video-english-placeholder {
  display: none;
}

html[lang="es"] .video-spanish {
  display: block;
}

html[lang="en"] .video-english-placeholder {
  display: block;
}

@media (max-width: 640px) {
  #video-modal {
    padding: 12px;
  }

  #video-modal .modal-panel {
    padding: 28px 18px 22px;
    border-radius: 20px;
  }

  #video-modal h2 {
    font-size: 2rem;
    padding-right: 28px;
  }

  .video-embed {
    border-radius: 14px;
  }
}

/* =========================================================
   YouTube intro video — hard implementation
   The Spanish popup contains the actual YouTube player, not a placeholder.
   ========================================================= */
#video-modal .video-modal-panel {
  width: min(960px, calc(100vw - 40px));
}

#video-modal .video-spanish,
#video-modal .video-english {
  display: none;
}

html[lang="es"] #video-modal .video-spanish {
  display: block !important;
}

html[lang="en"] #video-modal .video-english {
  display: block !important;
}

.youtube-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: #000;
}

.youtube-video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
  display: block;
}


@media (max-width: 640px) {
  #video-modal .video-modal-panel {
    width: min(100%, calc(100vw - 24px));
    padding: 28px 18px 20px;
  }

  .youtube-video-wrapper {
    border-radius: 14px;
  }
}

/* =========================================================
   YouTube Error 153 protection
   YouTube now requires an HTTP Referer/client identity.
   The production http/https page loads an origin-aware embed.
   Local file:// previews show a clean fallback instead of Error 153.
   ========================================================= */
.video-embed-fallback {
  padding: 34px;
  border-radius: 18px;
  background: linear-gradient(135deg, #d9e1d7, #efe5d4);
  color: var(--green-deep);
  text-align: center;
}

.video-embed-fallback[hidden] {
  display: none !important;
}

.video-embed-fallback p {
  max-width: 620px;
  margin: 0 auto 20px;
  line-height: 1.55;
}

.youtube-video-wrapper[hidden] {
  display: none !important;
}

/* =========================================================
   Direct YouTube player in presentation popup
   ========================================================= */
#video-modal .video-modal-panel {
  width: min(960px, calc(100vw - 40px));
}

#video-modal .video-spanish,
#video-modal .video-english {
  display: none;
}

html[lang="es"] #video-modal .video-spanish {
  display: block !important;
}

html[lang="en"] #video-modal .video-english {
  display: block !important;
}

.youtube-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: #000;
  box-shadow: 0 16px 42px rgba(31,45,37,.16);
}

.youtube-video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  border: 0;
}

.english-video-pending {
  min-height: 220px;
  display: grid;
  place-items: center;
  margin: 0;
  border-radius: 18px;
  background: linear-gradient(135deg,#d9e1d7,#efe5d4);
  color: var(--green-deep);
  font-weight: 600;
}

@media (max-width: 640px) {
  #video-modal .video-modal-panel {
    width: min(100%, calc(100vw - 24px));
    padding: 28px 18px 20px;
  }

  .youtube-video-wrapper {
    border-radius: 14px;
  }
}


.video-embed-fallback { display:none !important; }
.youtube-video-wrapper[hidden] { display:block !important; }

/* =========================================================
   Program-card course buttons
   Beige/gold treatment aligned with the ES/EN brand toggle.
   ========================================================= */
.program-card {
  display: flex;
  flex-direction: column;
}

.program-card > img {
  flex: 0 0 auto;
}

.program-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.program-body p {
  margin-bottom: 20px;
}

.program-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 42px;
  margin-top: auto;
  padding: 0 22px;
  border-radius: 999px;
  background: #bca77d;
  color: #fffdf8;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: 0 2px 8px rgba(102,87,58,.14);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.program-card-link:hover {
  transform: translateY(-2px);
  background: #ad986f;
  box-shadow: 0 7px 18px rgba(102,87,58,.18);
}

.program-card-link:focus-visible {
  outline: 2px solid var(--green-deep);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .program-card-link {
    min-width: 132px;
  }
}

/* =========================================================
   Instructor profiles
   Three centered cards with beige biography reveal on hover/focus.
   ========================================================= */
.teacher-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  gap: 34px;
}

.instructor-profile {
  text-align: center;
  min-width: 0;
}

.instructor-photo-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 330px;
  margin-bottom: 18px;
  border-radius: 24px;
  background: #ece6d9;
  box-shadow: 0 12px 30px rgba(54, 72, 59, .07);
  outline: none;
  cursor: default;
  isolation: isolate;
}

.instructor-photo-wrap > img {
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center 18%;
  transition: opacity .32s ease, transform .38s ease, filter .32s ease;
}

.instructor-bio-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 28px;
  background: rgba(206, 188, 148, .88);
  color: #324b3d;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease;
}

.instructor-bio-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.03));
  pointer-events: none;
}

.instructor-bio-overlay p {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 290px;
  font-size: .96rem;
  line-height: 1.62;
  font-weight: 600;
  color: #2f4639;
}

.instructor-photo-wrap:hover > img,
.instructor-photo-wrap:focus > img,
.instructor-photo-wrap:focus-visible > img {
  opacity: .30;
  transform: scale(1.035);
  filter: saturate(.72);
}

.instructor-photo-wrap:hover .instructor-bio-overlay,
.instructor-photo-wrap:focus .instructor-bio-overlay,
.instructor-photo-wrap:focus-visible .instructor-bio-overlay {
  opacity: 1;
  transform: translateY(0);
}

.instructor-photo-wrap:focus-visible {
  box-shadow: 0 0 0 3px rgba(188,167,125,.55), 0 12px 30px rgba(54,72,59,.07);
}

.instructor-profile h3 {
  margin: 0 0 7px;
  font-size: 1.34rem;
}

.instructor-specialty {
  max-width: 300px;
  margin: 0 auto;
  color: var(--green-deep);
  font-size: .89rem !important;
  line-height: 1.45;
  font-weight: 600;
}

@media (max-width: 980px) {
  .teacher-grid-three {
    gap: 24px;
  }

  .instructor-photo-wrap {
    height: 300px;
  }

  .instructor-bio-overlay {
    padding: 24px 22px;
  }

  .instructor-bio-overlay p {
    font-size: .9rem;
  }
}

@media (max-width: 760px) {
  .teacher-grid-three {
    grid-template-columns: 1fr;
    max-width: 430px;
    gap: 34px;
  }

  .instructor-photo-wrap {
    height: 420px;
  }
}

@media (max-width: 520px) {
  .instructor-photo-wrap {
    height: 365px;
  }

  .instructor-bio-overlay {
    padding: 26px 24px;
  }

  .instructor-bio-overlay p {
    font-size: .92rem;
    line-height: 1.58;
  }
}

/* =========================================================
   Testimonials carousel
   Desktop: 3 cards on page 1, 2 centered cards on page 2.
   ========================================================= */
.testimonial-carousel {
  position: relative;
  margin-top: 38px;
  padding: 0 52px 42px;
}

.testimonial-viewport {
  position: relative;
}

.testimonial-slide {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  animation: testimonialFade .28s ease;
}

.testimonial-slide.is-active {
  display: grid;
}

.testimonial-slide-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 860px;
  margin: 0 auto;
}

@keyframes testimonialFade {
  from { opacity: .2; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.testimonial-card {
  min-height: 285px;
  margin: 0;
  padding: 34px 32px 28px;
  border-radius: 24px;
  background: #f0ede4;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 28px rgba(60,65,60,.04);
}

.testimonial-card .quote-mark {
  color: var(--green-deep);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 3rem;
  line-height: .8;
  margin-bottom: 14px;
}

.testimonial-card > p {
  margin: 0 0 26px;
  font-size: .96rem;
  line-height: 1.62;
  color: var(--text);
}

.testimonial-person {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 13px;
}

.testimonial-person img {
  width: 64px;
  height: 64px;
  flex: 0 0 58px;
  object-fit: cover;
  border-radius: 13px;
  border: 2px solid rgba(188,167,125,.40);
  box-shadow: 0 4px 12px rgba(54,72,59,.08);
}

.testimonial-person div {
  min-width: 0;
}

.testimonial-person strong {
  display: block;
  margin-bottom: 2px;
  color: var(--green-deep);
  font-size: .92rem;
  line-height: 1.25;
}

.testimonial-person span {
  display: block;
  color: #68756c;
  font-size: .78rem;
  line-height: 1.35;
}

.testimonial-arrow {
  position: absolute;
  top: calc(50% - 23px);
  z-index: 3;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(188,167,125,.45);
  border-radius: 50%;
  background: #eee5d4;
  color: var(--green-deep);
  font-size: 1.25rem;
  box-shadow: 0 6px 18px rgba(54,72,59,.08);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.testimonial-arrow:hover {
  transform: translateY(-2px);
  background: #e3d6bf;
  box-shadow: 0 9px 22px rgba(54,72,59,.11);
}

.testimonial-arrow-prev {
  left: 0;
}

.testimonial-arrow-next {
  right: 0;
}

.testimonial-pagination {
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c8c4b9;
  transition: width .18s ease, border-radius .18s ease, background .18s ease, transform .18s ease;
}

.testimonial-dot:hover {
  transform: scale(1.12);
}

.testimonial-dot.is-active {
  width: 25px;
  border-radius: 999px;
  background: var(--green-deep);
}

.testimonial-arrow:focus-visible,
.testimonial-dot:focus-visible {
  outline: 2px solid var(--green-deep);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .testimonial-carousel {
    padding-inline: 46px;
  }

  .testimonial-slide,
  .testimonial-slide-two {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  .testimonial-card {
    min-height: 0;
  }
}

@media (max-width: 620px) {
  .testimonial-carousel {
    padding: 0 0 46px;
  }

  .testimonial-arrow {
    top: auto;
    bottom: 0;
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .testimonial-arrow-prev {
    left: calc(50% - 86px);
  }

  .testimonial-arrow-next {
    right: calc(50% - 86px);
  }

  .testimonial-pagination {
    bottom: 14px;
  }

  .testimonial-card {
    padding: 30px 26px 26px;
  }

  .testimonial-person img {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
  }
}

/* =========================================================
   Featured Healy Biology video
   Inline section between the hero and "Nuestro enfoque".
   ========================================================= */
.hero-actions {
  gap: 0;
}

.featured-video {
  padding: 34px 72px 54px;
  background: var(--cream);
}

.featured-video-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .85fr);
  align-items: center;
  gap: 44px;
  overflow: hidden;
  padding: 34px;
  border: 1px solid rgba(192,178,145,.32);
  border-radius: 30px;
  background:
    radial-gradient(circle at 92% 12%, rgba(192,178,145,.23), transparent 28%),
    linear-gradient(135deg, #f4f0e6 0%, #fbfaf6 56%, #eef2ec 100%);
  box-shadow: 0 18px 44px rgba(54,72,59,.07);
}

.featured-video-shell::after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  right: -86px;
  bottom: -110px;
  border: 18px solid rgba(192,178,145,.22);
  border-radius: 50%;
  pointer-events: none;
}

.featured-video-player,
.featured-video-copy {
  position: relative;
  z-index: 1;
}

.featured-video-language {
  display: none;
}

html[lang="es"] .featured-video-es {
  display: block;
}

html[lang="en"] .featured-video-en {
  display: block;
}

.featured-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 22px;
  background: #111;
  box-shadow: 0 18px 38px rgba(31,45,37,.16);
}

.featured-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.featured-video-copy {
  max-width: 390px;
}

.featured-video-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #bca77d;
  color: #fffdf8;
  box-shadow: 0 8px 22px rgba(102,87,58,.16);
}

.featured-video-icon span {
  transform: translateX(2px);
  font-size: 1rem;
}

.featured-video-kicker {
  display: block;
  margin-bottom: 10px;
  color: #7a705d;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.featured-video-copy h2 {
  margin-bottom: 15px;
  font-size: clamp(2.1rem, 3.6vw, 3.45rem);
  line-height: 1.02;
}

.featured-video-copy p {
  max-width: 360px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.65;
}

@media (max-width: 980px) {
  .featured-video {
    padding: 30px 36px 48px;
  }

  .featured-video-shell {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 28px;
  }

  .featured-video-copy {
    max-width: 650px;
  }

  .featured-video-copy p {
    max-width: 620px;
  }
}

@media (max-width: 620px) {
  .featured-video {
    padding: 22px 20px 42px;
  }

  .featured-video-shell {
    padding: 18px;
    border-radius: 24px;
  }

  .featured-video-frame {
    border-radius: 16px;
  }

  .featured-video-copy {
    padding: 4px 4px 8px;
  }

  .featured-video-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
  }
}

/* =========================================================
   Footer social platform marks
   ========================================================= */
.footer-social-icons a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-deep);
  color: #fff;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.footer-social-icons a:hover {
  transform: translateY(-2px);
  background: var(--green);
  box-shadow: 0 7px 16px rgba(45,68,54,.16);
}

.footer-social-icons svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-social-icons .social-fill,
.footer-social-icons .social-dot {
  fill: currentColor;
  stroke: none;
}

.footer-social-icons .social-fill-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  stroke: none;
}

/* =========================================================
   Floating WhatsApp contact
   Based on fixed-position behavior described in the supplied guide.
   ========================================================= */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 9999;
  width: 72px;
  height: 72px;
  display: block;
  border-radius: 50%;
  transition: transform .2s ease, bottom .24s ease, filter .2s ease;
}

.whatsapp-float img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.035);
  filter: brightness(1.02);
}

.whatsapp-float:focus-visible {
  outline: 3px solid rgba(37,211,102,.35);
  outline-offset: 4px;
}

.whatsapp-float.near-footer {
  bottom: calc(82px + env(safe-area-inset-bottom, 0px));
}

/* =========================================================
   Footer legal links + bilingual legal popups
   ========================================================= */
.footer-legal-links {
  display: flex;
  gap: 24px;
}

.footer-legal-links button {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.footer-legal-links button:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-legal-links button:focus-visible {
  outline: 2px solid rgba(255,255,255,.78);
  outline-offset: 4px;
  border-radius: 3px;
}

.legal-modal {
  z-index: 10020;
}

.legal-modal-panel {
  width: min(820px, 100%);
  max-height: min(82vh, 760px);
  overflow: hidden;
  padding: 36px 38px 32px;
}

.legal-modal-panel h2 {
  padding-right: 46px;
  margin-bottom: 20px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.legal-content {
  max-height: calc(min(82vh, 760px) - 150px);
  overflow-y: auto;
  padding-right: 12px;
  scrollbar-width: thin;
  scrollbar-color: #bca77d transparent;
}

.legal-content p {
  margin: 0 0 15px;
  line-height: 1.65;
  font-size: .93rem;
}

.legal-content h4 {
  margin: 21px 0 7px;
  color: var(--green-deep);
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.legal-content .legal-updated {
  color: #6b746d;
  font-size: .82rem;
  margin-bottom: 20px;
}

@media (max-width: 700px) {
  .whatsapp-float {
    width: 64px;
    height: 64px;
    right: 16px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  }

  .whatsapp-float.near-footer {
    bottom: calc(112px + env(safe-area-inset-bottom, 0px));
  }

  .footer-legal-links {
    flex-wrap: wrap;
    gap: 10px 18px;
  }

  .legal-modal {
    padding: 12px;
  }

  .legal-modal-panel {
    max-height: 88vh;
    padding: 30px 20px 24px;
    border-radius: 20px;
  }

  .legal-content {
    max-height: calc(88vh - 135px);
    padding-right: 7px;
  }
}



/* Final WhatsApp icon refinement */
.whatsapp-float {
  width: 66px !important;
  height: 66px !important;
  border-radius: 50% !important;
  overflow: visible !important;
}
.whatsapp-float img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
}
@media (max-width: 700px) {
  .whatsapp-float {
    width: 60px !important;
    height: 60px !important;
  }
}
