/* =====================
   RESET & TOKENS
===================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Green — identidad de marca Shield Centre */
  --g900: #05160c;
  --g800: #0b2518;
  --g700: #103520;
  --g600: #175c31;
  --g500: #1f7a41;
  --g400: #2d9458;
  --g300: #4cb070;

  /* Red — de Cutasa */
  --red:      #C8102E;
  --red-dark: #9E0D24;
  --red-mid:  #E31B3D;
  --red-bg:   rgba(200,16,46,.07);

  /* Aliases para no romper referencias antiguas */
  --o600: var(--red-dark);
  --o500: var(--red);
  --o400: var(--red-mid);
  --o300: var(--red);
  --o100: var(--red-bg);

  /* Cream — de Cutasa */
  --cream:      #F4EFE7;
  --cream-mid:  #ECE6D9;
  --cream-deep: #E4DDD0;

  /* Text */
  --text:       #1A1A1A;
  --muted:      #57514A;

  /* Bandas de color y dorado del escudo, para el texto sobre las bandas */
  --banda: #0F6B4A;
  --oro:   #EBD490;
  --sombra: 0 1px 2px rgba(70,45,20,.05), 0 10px 26px -14px rgba(70,45,20,.18);

  /* Cream claro (para secciones oscuras como footer/marquee) */
  --cr100: #fef9f2;
  --cr200: #f3e9d8;
  --cr300: #e4d4be;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'DM Sans', system-ui, sans-serif;

  --r-section: clamp(72px, 10vw, 130px);
  --r-side:    clamp(20px, 6vw, 90px);
  --nav-h: 72px;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
}

/* =====================
   TYPOGRAPHY HELPERS
===================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before {
  content: '';
  display: block;
  width: 28px; height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

h2.display {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 600;
  line-height: 1.02;
  color: var(--text);
}
h2.display em { font-style: italic; color: var(--red); }

.body-text {
  font-size: clamp(.9rem, 1.3vw, 1rem);
  font-weight: 300;
  line-height: 1.75;
  color: var(--muted);
}

/* =====================
   BUTTONS
===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 2px;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }

.btn-solid {
  background: var(--red);
  color: var(--cream);
  box-shadow: 0 4px 24px rgba(200,16,46,.22);
}
.btn-solid:hover {
  background: var(--red-dark);
  box-shadow: 0 8px 32px rgba(200,16,46,.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(26,26,26,.2);
}
.btn-ghost:hover { border-color: rgba(26,26,26,.4); background: rgba(26,26,26,.04); }

.btn-wa {
  background: #22c55e;
  color: #fff;
  box-shadow: 0 4px 24px rgba(34,197,94,.25);
}
.btn-wa:hover {
  background: #16a34a;
  box-shadow: 0 8px 32px rgba(34,197,94,.35);
}

/* =====================
   NAVIGATION
===================== */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--r-side);
  transition: background .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
#nav.stuck {
  background: rgba(245,240,232,.94);
  backdrop-filter: blur(18px) saturate(1.2);
  border-bottom-color: rgba(23,92,49,.18);
  box-shadow: 0 1px 24px rgba(26,26,26,.07);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}
.nav-brand img { height: 42px; width: auto; }
.nav-brand-text { line-height: 1; }
.nav-brand-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  display: block;
}
.nav-brand-sub {
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-top: 3px;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(26,26,26,.55);
  text-decoration: none;
  position: relative;
  transition: color .2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--red);
  transition: width .3s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.btn-solid,
.nav-links a.btn-solid:hover { color: var(--cream); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(26,26,26,.55);
  text-decoration: none;
  cursor: pointer;
  transition: color .2s;
  background: none;
  border: none;
  font-family: var(--sans);
  padding: 0;
}
.nav-dropdown-toggle svg { transition: transform .25s; }
.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown.open .nav-dropdown-toggle { color: var(--text); }
.nav-dropdown:hover .nav-dropdown-toggle svg,
.nav-dropdown.open .nav-dropdown-toggle svg { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  background: transparent;
  min-width: 170px;
  padding-top: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity .2s, transform .2s;
  z-index: 300;
}
.nav-dropdown-menu-inner {
  background: rgba(245,240,232,.97);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(23,92,49,.15);
  border-radius: 3px;
  box-shadow: 0 8px 32px rgba(26,26,26,.12);
  padding: 6px 0;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(26,26,26,.6);
  text-decoration: none;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav-dropdown-menu a::after { display: none; }
.nav-dropdown-menu a:hover { color: var(--red); background: rgba(200,16,46,.04); }
.nav-dropdown-menu a .dd-arrow { margin-left: auto; font-size: .65rem; opacity: .4; }
.nav-dropdown-menu .dd-badge { font-size: .55rem; font-weight: 700; letter-spacing: .1em; background: var(--red-bg); color: var(--red); border: 1px solid rgba(200,16,46,.2); padding: 2px 7px; border-radius: 99px; margin-left: 4px; }
.nav-dropdown-menu .dd-badge.green { background: rgba(23,92,49,.08); color: var(--g600); border-color: rgba(23,92,49,.2); }
.mobile-menu .mob-section { font-size: .6rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }

.nav-cta-wrap { display: flex; gap: 0; }

.ham {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.ham span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  transition: all .3s;
}

/* mobile nav overlay */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 190;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  opacity: 0;
  transition: opacity .3s;
}
.mobile-menu.open { display: flex; opacity: 1; }
.mobile-menu a {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: .02em;
  transition: color .2s;
}
.mobile-menu a:hover { color: var(--red); }

/* =====================
   HERO — split screen
===================== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

/* Left half */
.hero-left {
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 60px) var(--r-side) 80px;
  position: relative;
  z-index: 2;
}

/* Ambient glow */
.hero-glow {
  position: absolute;
  left: 0; top: 20%;
  width: 80%; height: 70%;
  background: radial-gradient(ellipse, rgba(23,92,49,.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Watermark shield */
.hero-watermark {
  position: absolute;
  left: var(--r-side);
  bottom: 6%;
  width: clamp(180px, 24vw, 340px);
  opacity: .03;
  pointer-events: none;
  color: var(--g400);
}

.hero-copy { position: relative; z-index: 2; max-width: 540px; }

.hero-eyebrow {
  margin-bottom: 22px;
  opacity: 0;
  animation: up .7s .15s ease forwards;
}

.hero-heading {
  font-family: var(--serif);
  font-size: clamp(3.6rem, 5.5vw, 7rem);
  font-weight: 600;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 26px;
  opacity: 0;
  animation: up .8s .3s ease forwards;
}
.hero-heading em { font-style: italic; color: var(--red); }

.hero-sub {
  max-width: 440px;
  margin-bottom: 44px;
  opacity: 0;
  animation: up .8s .5s ease forwards;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  animation: up .8s .65s ease forwards;
}

/* Right half — full-bleed image */
.hero-right {
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: fadeIn 1.2s .3s ease forwards;
}

.hero-split-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* Soft cream fade on left edge to blend with left half */
.hero-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--cream) 0%, transparent 24%);
  z-index: 1;
  pointer-events: none;
}

/* Badge overlaid on photo */
.hero-badge {
  position: absolute;
  bottom: 36px;
  left: 28px;
  background: rgba(245,240,232,.92);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(23,92,49,.2);
  border-radius: 4px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 11px;
  box-shadow: 0 4px 20px rgba(26,26,26,.14);
  z-index: 2;
}
.hero-badge img { height: 36px; width: auto; }
.hero-badge-text strong {
  font-family: var(--serif);
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  display: block;
  line-height: 1.1;
}
.hero-badge-text span {
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
}

.hero-rule {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(23,92,49,.2), transparent);
  z-index: 3;
}

/* =====================
   MARQUEE
===================== */
.marquee-wrap {
  background: var(--o500);
  padding: 13px 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: scroll 28s linear infinite;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 0 30px;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #fff;
}
.dot {
  width: 3px; height: 3px;
  background: rgba(255,255,255,.5);
  border-radius: 50%;
  flex-shrink: 0;
}

/* =====================
   ABOUT
===================== */
.about {
  padding: var(--r-section) var(--r-side);
  background: var(--cream-mid);
}

.about-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-left .eyebrow { margin-bottom: 18px; }
.about-left h2 { margin-bottom: 20px; }
.about-left .body-text { margin-bottom: 44px; }

.pillars { display: flex; flex-direction: column; }

.pillar {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid rgba(45,148,88,.12);
}
.pillar:last-child { border-bottom: 1px solid rgba(45,148,88,.12); }

.pillar-ico {
  width: 42px; height: 42px;
  flex-shrink: 0;
  background: var(--red-bg);
  border: 1px solid rgba(200,16,46,.18);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 1.1rem;
}

.pillar h4 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.pillar p {
  font-size: .83rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.6;
}

/* About team photo */
.about-team-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 4px;
  display: block;
  margin-bottom: 4px;
  box-shadow: 0 4px 20px rgba(26,26,26,.1);
}

/* About card */
.about-right { position: relative; }

.about-card {
  background: #fff;
  border: 1px solid rgba(23,92,49,.15);
  border-radius: 3px;
  padding: 44px 40px 48px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(26,26,26,.07);
}
.about-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), rgba(200,16,46,.4) 60%, transparent);
}
.about-card blockquote {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-style: italic;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 28px;
}
.about-card blockquote span { color: var(--red); }
.about-card cite {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  font-style: normal;
}

.about-card-deco {
  position: absolute;
  right: -1px;
  bottom: 36px;
  background: var(--red);
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 7px 14px 7px 18px;
}

/* Shield watermark in card */
.about-card-shield {
  position: absolute;
  right: 24px;
  top: 24px;
  width: 64px;
  opacity: .05;
  color: var(--g500);
}

/* Extra stats strip below card */
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 1px;
  background: rgba(23,92,49,.05);
  border: 1px solid rgba(23,92,49,.12);
  border-top: none;
  border-radius: 0 0 3px 3px;
}
.about-stat {
  padding: 20px 22px;
  border-right: 1px solid rgba(23,92,49,.1);
}
.about-stat:last-child { border-right: none; }
.about-stat strong {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--red);
  display: block;
  line-height: 1;
  margin-bottom: 3px;
}
.about-stat span {
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* =====================
   GALLERY
===================== */
.gallery {
  padding: 0 var(--r-side) var(--r-section);
  background: var(--cream);
}

.gallery-inner { max-width: 1280px; margin: 0 auto; }

.gallery-header {
  padding-top: var(--r-section);
  padding-bottom: 44px;
}
.gallery-header .eyebrow { margin-bottom: 14px; }
.gallery-header h2 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 600;
  line-height: 1.02;
  color: var(--text);
}
.gallery-header h2 em { font-style: italic; color: var(--red); }

.gallery-mosaic {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: 280px 280px;
  gap: 8px;
}

.g-item {
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.g-item.tall { grid-row: span 2; }

.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.g-item:hover img { transform: scale(1.04); }


@media (max-width: 700px) {
  .gallery-mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .g-item.tall { grid-row: span 1; height: 260px; }
  .g-item { height: 220px; }
}

/* =====================
   COURSES
===================== */
.courses {
  padding: var(--r-section) var(--r-side);
  background: var(--cream);
}

.courses-inner { max-width: 1280px; margin: 0 auto; }

.courses-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
  gap: 20px;
  flex-wrap: wrap;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  background: rgba(200,16,46,.12);
  border: 3px solid rgba(200,16,46,.12);
  border-radius: 3px;
  overflow: hidden;
}

.c-card {
  background: var(--cream);
  padding: 34px 28px 32px;
  position: relative;
  overflow: hidden;
  transition: background .25s;
}
.c-card:hover { background: var(--cream-mid); }

.c-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s;
}
.c-card:hover::after { transform: scaleX(1); }

.c-tag {
  display: inline-block;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-bg);
  border: 1px solid rgba(200,16,46,.18);
  padding: 3px 9px;
  border-radius: 2px;
  margin-bottom: 18px;
}

.pillar-emoji {
  font-size: 2.8rem;
  line-height: 1;
  margin-bottom: 20px;
  display: block;
}

.c-title {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 10px;
}

.c-desc {
  font-size: .82rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 22px;
}

.c-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
  transition: gap .2s;
}
.c-link:hover { gap: 14px; }

.c-card.featured { background: var(--cream-mid); }
.c-card.featured:hover { background: var(--cream-deep); }

/* =====================
   STATS BAR
===================== */
.stats-bar {
  background: var(--red);
  padding: 64px var(--r-side);
  position: relative;
  overflow: hidden;
}
.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.1) 0%, transparent 60%);
}

.stats-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.s-item {
  text-align: center;
  padding: 16px 20px;
  border-right: 1px solid rgba(255,255,255,.15);
  position: relative;
}
.s-item:last-child { border-right: none; }

.s-num {
  font-family: var(--serif);
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 700;
  color: #fff;
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}
.s-label {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
}

/* =====================
   LOCATION
===================== */
.location {
  padding: var(--r-section) var(--r-side);
  background: var(--cream-mid);
}

.location-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.location-inner .eyebrow { margin-bottom: 18px; }
.location-inner h2 { margin-bottom: 52px; }

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.loc-items { display: flex; flex-direction: column; gap: 0; }

.loc-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 0;
  border-top: 1px solid rgba(45,148,88,.12);
}
.loc-item:last-child { border-bottom: 1px solid rgba(45,148,88,.12); }

.loc-ico {
  width: 38px; height: 38px;
  flex-shrink: 0;
  background: var(--red-bg);
  border: 1px solid rgba(200,16,46,.18);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: .95rem;
}

.loc-label {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 4px;
}
.loc-value {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.55;
}
.loc-value a { color: var(--red); text-decoration: none; }
.loc-value a:hover { text-decoration: underline; }

.transport-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}
.tp {
  background: rgba(23,92,49,.1);
  border: 1px solid rgba(23,92,49,.2);
  color: var(--g600);
  font-size: .7rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 2px;
}

.loc-actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }

.map-frame {
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(23,92,49,.18);
  height: 380px;
  box-shadow: 0 2px 16px rgba(26,26,26,.08);
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: saturate(.85) brightness(1.02);
}

/* =====================
   CTA
===================== */
.cta {
  padding: var(--r-section) var(--r-side);
  background: var(--cream);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 640px; height: 640px;
  background: radial-gradient(ellipse, rgba(23,92,49,.07), transparent 70%);
  pointer-events: none;
}

.cta-inner {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}

.cta .eyebrow { justify-content: center; margin-bottom: 20px; }
.cta h2 { margin-bottom: 18px; }
.cta .body-text { margin: 0 auto 48px; }
.cta-btns { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* =====================
   FOOTER
===================== */
footer {
  background: var(--red-dark);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 40px var(--r-side);
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.footer-brand img { height: 34px; width: auto; }
.footer-brand span {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--cr100);
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 22px;
}
.footer-links a {
  font-size: .74rem;
  color: rgba(254,249,242,.42);
  text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: var(--cr100); }

.footer-copy {
  font-size: .68rem;
  color: rgba(254,249,242,.28);
  letter-spacing: .06em;
}

/* =====================
   SCROLL REVEAL
===================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible { opacity: 1; transform: none; }

.reveal-left {
  opacity: 0;
  transform: translateX(-18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal-left.visible { opacity: 1; transform: none; }

/* =====================
   KEYFRAMES
===================== */
@keyframes up {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-18px); }
}
@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =====================
   PROBLEM
===================== */
.problem {
  padding: var(--r-section) var(--r-side);
  background: var(--cream-mid);
}
.problem-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.problem-inner > .eyebrow { margin-bottom: 24px; }
.problem-intro { max-width: 640px; margin-bottom: 52px; }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 52px;
}
.p-card {
  background: var(--cream);
  border: 1px solid var(--cream-deep);
  border-radius: 3px;
  padding: 24px 28px;
  font-size: .9rem;
  line-height: 1.55;
  color: var(--text);
}
.p-x { color: var(--red); font-weight: 700; margin-right: 6px; }
.problem-close {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 600;
  color: var(--text);
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.problem-close em { color: var(--red); font-style: italic; }

/* =====================
   TESTIMONIOS
===================== */
.testimonios {
  padding: var(--r-section) var(--r-side);
  background: var(--cream-mid);
}
.testimonios-inner { max-width: 1280px; margin: 0 auto; }
.testimonios-head { text-align: center; margin-bottom: 56px; }
.testimonios-head .eyebrow { justify-content: center; margin-bottom: 20px; }
.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.t-card {
  background: #F4EFE7;
  border: 1px solid var(--cream-deep);
  border-radius: 3px;
  padding: 32px;
}
.t-stars { color: var(--red); font-size: .85rem; letter-spacing: 2px; margin-bottom: 18px; }
.t-text {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 24px;
}
.t-author { display: flex; align-items: center; gap: 12px; }
.t-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--cream-deep);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 600;
  color: var(--red); font-size: .95rem; flex-shrink: 0;
}
.t-name { font-weight: 600; font-size: .8rem; color: var(--text); display: block; }
.t-detail { font-size: .72rem; color: var(--muted); display: block; margin-top: 2px; }

/* =====================
   FAQ
===================== */
.faq {
  padding: var(--r-section) var(--r-side);
  background: var(--cream);
}
.faq-inner { max-width: 780px; margin: 0 auto; }
.faq-head { text-align: center; margin-bottom: 52px; }
.faq-head .eyebrow { justify-content: center; margin-bottom: 20px; }
.faq-list { border-top: 1px solid var(--cream-deep); }
.faq-item { border-bottom: 1px solid var(--cream-deep); }
.faq-q {
  width: 100%; background: none; border: none;
  padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--sans); font-size: .9rem; font-weight: 600;
  color: var(--text); cursor: pointer; text-align: left; gap: 16px;
}
.faq-q svg { flex-shrink: 0; transition: transform .3s; color: var(--red); }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease, padding-bottom .3s; }
.faq-item.open .faq-a { max-height: 640px; padding-bottom: 22px; }
.faq-a p { font-size: .88rem; line-height: 1.75; color: var(--muted); }

/* =====================
   EQUIPO
===================== */
.equipo {
  padding: var(--r-section) var(--r-side);
  background: var(--cream);
}
.equipo-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.equipo-text .eyebrow { margin-bottom: 24px; }
.equipo-text h2 { margin-bottom: 24px; }
.equipo-text p { margin-bottom: 36px; }
.equipo-photo { border-radius: 3px; overflow: hidden; }
.equipo-photo img {
  width: 100%; height: 480px;
  object-fit: cover; object-position: center top; display: block;
}

/* =====================
   CURSOS
===================== */
.cursos-section {
  padding: var(--r-section) var(--r-side);
  background: var(--cream-mid);
}
.cursos-inner { max-width: 1280px; margin: 0 auto; }
.cursos-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
  gap: 20px;
  flex-wrap: wrap;
}
.cursos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.curso-card {
  background: var(--cream);
  border: 1px solid var(--cream-deep);
  border-radius: 3px;
  padding: 36px 30px 32px;
  position: relative;
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}
.curso-card:hover {
  box-shadow: 0 8px 32px rgba(26,26,26,.09);
  transform: translateY(-3px);
}
.curso-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s;
}
.curso-card:hover::before { transform: scaleX(1); }
.curso-icon {
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 20px;
  display: block;
}
.curso-nivel {
  display: inline-block;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-bg);
  border: 1px solid rgba(200,16,46,.18);
  padding: 3px 9px;
  border-radius: 2px;
  margin-bottom: 16px;
}
.curso-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 12px;
}
.curso-desc {
  font-size: .83rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 24px;
}
.curso-list {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.curso-list li {
  font-size: .78rem;
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}
.curso-list li::before {
  content: '→';
  color: var(--red);
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 1px;
}
.curso-cta {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .2s;
}
.curso-cta:hover { gap: 10px; }

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: 52vw 1fr;
  }
  .hero-left {
    order: 2;
    padding: 40px var(--r-side) 64px;
  }
  .hero-right {
    order: 1;
    min-height: 52vw;
  }
  .hero-right::before { display: none; }
  .hero-badge { bottom: 16px; left: 16px; }

  .about-inner,
  .location-grid { grid-template-columns: 1fr; }

  .about-inner { gap: 44px; }
  .location-grid { gap: 40px; }

  .courses-grid { grid-template-columns: 1fr !important; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .s-item:nth-child(2) { border-right: none; }
  .s-item:nth-child(3) { border-right: 1px solid rgba(255,255,255,.15); }
  .s-item:nth-child(3),
  .s-item:nth-child(4) { border-top: 1px solid rgba(255,255,255,.15); }

  .testimonios-grid { grid-template-columns: 1fr 1fr; }
  .problem-grid { grid-template-columns: 1fr; }
  .equipo-inner { grid-template-columns: 1fr; gap: 40px; }
  .equipo-photo img { height: 320px; }
  .cursos-grid { grid-template-columns: repeat(2, 1fr); }

  .nav-links { display: none; }
  .ham { display: flex; }
}

@media (max-width: 600px) {
  .courses-grid { grid-template-columns: 1fr !important; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .about-stats { grid-template-columns: repeat(3, 1fr); }
  .about-card { margin-top: 0; }
  .about-card-deco { display: none; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { justify-content: center; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; }

  .testimonios-grid { grid-template-columns: 1fr; }
  .problem-grid { grid-template-columns: 1fr; }
  .equipo-inner { grid-template-columns: 1fr; }
  .equipo-photo { order: -1; }
  .equipo-photo img { height: 260px; }
  .problem-close { text-align: left; }
  .faq-inner { max-width: 100%; }
  .testimonios-head .eyebrow,
  .faq-head .eyebrow { justify-content: flex-start; }
  .courses-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .cursos-grid { grid-template-columns: 1fr; }
  .cursos-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .cta-btns { flex-direction: column; }
  .cta-btns .btn { justify-content: center; }
}
  
/* ===== Componentes agregados (SEO v3) ===== */
.footer-nap { text-align: right; display: flex; flex-direction: column; gap: 6px; }
.footer-nap a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.18); }
.footer-nap a:hover { color: #fff; }
@media (max-width: 900px) { .footer-nap { text-align: center; align-items: center; } }
.sc-sec { padding: var(--r-section) var(--r-side); background: var(--cream); }
.sc-sec.alt { background: var(--cream-mid); }
.sc-sec.dark { background: var(--g800); color: var(--cr100, #fef9f2); }
.sc-inner { max-width: 1100px; margin: 0 auto; }
.sc-head { max-width: 760px; margin-bottom: 44px; }
.sc-head h2 { margin-top: 14px; }
.sc-head p { margin-top: 16px; }
.sc-text { font-size: 1rem; line-height: 1.75; color: var(--text); max-width: 760px; }
.sc-sec.dark .sc-text, .sc-sec.dark .sc-head p { color: rgba(255,255,255,.78); }
.sc-text a, .sc-link { color: var(--red); text-decoration: none; border-bottom: 1px solid rgba(200,16,46,.35); }
.sc-text a:hover, .sc-link:hover { border-bottom-color: var(--red); }
.sc-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: st; }
.sc-step { background: #fff; border: 1px solid var(--cream-deep); border-radius: 14px; padding: 26px 22px; position: relative; }
.sc-step::before { counter-increment: st; content: counter(st); font-family: var(--serif); font-size: 2.4rem; font-weight: 700; color: var(--red); line-height: 1; display: block; margin-bottom: 12px; }
.sc-step h3 { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; color: var(--g800); }
.sc-step p { font-size: .92rem; line-height: 1.6; color: var(--muted); }
.sc-hours { margin-top: 28px; background: #fff; border: 1px solid var(--cream-deep); border-radius: 14px; padding: 22px 24px; display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.sc-hours strong { font-family: var(--serif); font-size: 1.2rem; color: var(--g800); }
.sc-hours ul { list-style: none; display: grid; gap: 4px; font-size: .95rem; color: var(--text); }
.sc-hours small { display: block; color: var(--muted); font-size: .85rem; margin-top: 6px; }
.sc-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--cream-deep); font-size: .95rem; }
.sc-table th { background: var(--g800); color: #fff; text-align: left; padding: 14px 16px; font-weight: 500; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.sc-table td { padding: 14px 16px; border-top: 1px solid var(--cream-deep); vertical-align: top; line-height: 1.55; }
.sc-table td:first-child { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--g800); white-space: nowrap; }
.sc-table a { color: var(--red); text-decoration: none; font-weight: 500; }
.sc-table-wrap { overflow-x: auto; }
.sc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.sc-card { display: block; background: #fff; border: 1px solid var(--cream-deep); border-radius: 14px; padding: 24px 22px; text-decoration: none; color: var(--text); transition: transform .2s, box-shadow .2s; }
.sc-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(11,37,24,.08); }
.sc-card span { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red); font-weight: 600; }
.sc-card h3 { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; margin: 8px 0 6px; color: var(--g800); }
.sc-card p { font-size: .9rem; line-height: 1.55; color: var(--muted); }
.sc-list { list-style: none; display: grid; gap: 10px; margin-top: 18px; }
.sc-list li { padding-left: 22px; position: relative; line-height: 1.6; }
.sc-list li::before { content: '→'; position: absolute; left: 0; color: var(--red); }
.sc-note { font-size: .85rem; color: var(--muted); margin-top: 14px; }
@media (max-width: 900px) { .sc-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .sc-steps { grid-template-columns: 1fr; } }


/* ══════════════════════════════════════════════════════════
   Reconstrucción de octubre de 2026
   Lo que antes iba escrito dentro de cada etiqueta, y los bloques nuevos.
   ══════════════════════════════════════════════════════════ */

/* Accesos de teclado */
.saltar { position: absolute; left: -9999px; top: 0; background: var(--red); color: #fff; padding: 12px 18px; z-index: 1000; font-size: .85rem; text-decoration: none; }
.saltar:focus { left: 12px; top: 12px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* Menú */
.btn-nav { padding: 10px 22px; font-size: .72rem; }
.dd-nivel { font-family: var(--serif); font-size: 1rem; font-weight: 700; color: var(--muted); width: 20px; flex-shrink: 0; }
.mobile-menu a.mob-sub { font-size: 1.8rem; }
.mobile-menu a.mob-rojo { color: var(--red); }
.mobile-menu a.mob-btn { font-family: var(--sans); font-size: .76rem; margin-top: 18px; color: var(--cream); }

/* Títulos de sección */
.cursos-head .display, .courses-head .display, .testimonios-head .display, .faq-head .display { margin-top: 16px; }
.problem-intro { margin-top: 16px; margin-bottom: 48px; }
.problem-adultos { text-align: center; margin-top: 18px; }
.about-segundo { margin-top: 16px; }
.about-left .btn { margin-top: 8px; }
.location-intro { max-width: 640px; margin-top: 14px; }
.sc-cta { margin-top: 28px; }

/* Entrada escalonada de las tarjetas */
:is(.problem-grid, .cursos-grid, .courses-grid, .testimonios-grid) > .reveal:nth-child(2) { transition-delay: .08s; }
:is(.problem-grid, .cursos-grid, .courses-grid, .testimonios-grid) > .reveal:nth-child(3) { transition-delay: .16s; }
:is(.problem-grid, .cursos-grid, .courses-grid, .testimonios-grid) > .reveal:nth-child(4) { transition-delay: .24s; }
:is(.problem-grid, .cursos-grid, .courses-grid, .testimonios-grid) > .reveal:nth-child(5) { transition-delay: .32s; }

/* Cómo es una clase: tres tarjetas */
.courses-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .courses-grid-3 { grid-template-columns: 1fr; } }

/* Fotos */
.g-foto-1 { object-position: center 30%; }
.g-foto-2 { object-position: center 55%; }

/* Opiniones: nota de Google y botones */
.t-stars svg { display: inline-block; vertical-align: middle; margin-left: 8px; }
.opiniones-pie { margin-top: 44px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.opiniones-nota { font-size: 1rem; color: var(--muted); }
.opiniones-nota strong { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: var(--text); }
.opiniones-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Lo que no hacemos */
.no-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.no-list li { background: #fff; border: 1px solid var(--cream-deep); border-radius: 3px; padding: 18px 22px 18px 52px; position: relative; font-size: .95rem; line-height: 1.5; color: var(--text); }
.no-list li::before { content: '✕'; position: absolute; left: 22px; top: 17px; color: var(--red); font-weight: 700; }
@media (max-width: 700px) { .no-list { grid-template-columns: 1fr; } }

/* Cómo llegar */
.loc-llegar { list-style: none; display: grid; gap: 6px; font-size: .88rem; color: var(--muted); line-height: 1.55; margin-top: 4px; }
.loc-llegar b { color: var(--text); font-weight: 500; }

/* Quien pidió menos movimiento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal-left, .hero-btns { opacity: 1 !important; transform: none !important; }
}

/* La foto del equipo respeta su proporción (las medidas de la etiqueta la estiraban) */
.about-team-photo { height: auto; }

/* Tablas en celular: cada fila pasa a ser una ficha, para no tener que deslizar de costado */
@media (max-width: 700px) {
  .sc-table.apilar thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sc-table.apilar, .sc-table.apilar tbody, .sc-table.apilar tr, .sc-table.apilar td { display: block; }
  .sc-table.apilar tr { padding: 16px 18px; border-top: 1px solid var(--cream-deep); }
  .sc-table.apilar tr:first-child { border-top: none; }
  .sc-table.apilar td { padding: 0; border: none; }
  .sc-table.apilar td:first-child { display: inline; white-space: normal; }
  .sc-table.apilar td:nth-child(2) { display: inline; font-size: .82rem; color: var(--muted); margin-left: 8px; }
  .sc-table.apilar td:nth-child(2)::before { content: '· '; }
  .sc-table.apilar td:nth-child(3) { margin-top: 6px; font-size: .92rem; color: var(--muted); }
}

/* Pie de página: el texto se leía muy poco sobre el rojo */
.footer-links a { color: rgba(254,249,242,.82); }
.footer-copy, .footer-copy a { color: rgba(254,249,242,.72); font-size: .74rem; }

/* Saltos de línea de los títulos que solo sirven en pantallas anchas */
@media (max-width: 700px) { br.ancho { display: none; } }


/* ══════════════════════════════════════════════════════════
   Ritmo de color (aprobado el 11/10/2026)
   Crema y blanco se alternan, el recorrido y las opiniones van en bandas verdes
   y el cierre en rojo. Antes toda la página era del mismo beige.
   ══════════════════════════════════════════════════════════ */

/* Texto un poco más firme */
.body-text, .curso-desc, .c-desc { font-weight: 400; }

/* Etiquetas y bordes siguen al color de acento */
.curso-nivel, .c-tag { border-color: color-mix(in srgb, var(--red) 22%, transparent); background: color-mix(in srgb, var(--red) 8%, transparent); }
.courses-grid { background: color-mix(in srgb, var(--red) 14%, transparent); border-color: color-mix(in srgb, var(--red) 14%, transparent); }
.btn-solid { box-shadow: 0 4px 24px color-mix(in srgb, var(--red) 24%, transparent); }

/* Cierre de la página en color pleno */
.cta { background: var(--red); }
.cta::before { background: radial-gradient(ellipse, rgba(255,255,255,.13), transparent 70%); }
.cta h2.display, .cta h2.display em { color: #fff; }
.cta .eyebrow { color: rgba(255,255,255,.88); }
.cta .body-text { color: rgba(255,255,255,.9); }
.cta .btn-wa { background: #fff; color: #0f7a3d; box-shadow: 0 6px 24px rgba(0,0,0,.2); }
.cta .btn-wa:hover { background: var(--cream); }
.cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.cta .btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
footer { background: var(--red-dark); }

/* En celular, el nombre del menú se apoya sobre la foto: un velo claro arriba para que se lea */
@media (max-width: 960px) {
  .hero-right::after { content: ''; position: absolute; inset: 0 0 auto 0; height: 110px; background: linear-gradient(to bottom, var(--cream) 20%, transparent); z-index: 1; pointer-events: none; }
}

.problem         { background: #fff; }
.cursos-section  { background: var(--cream); }
.courses         { background: var(--cream); }
#niveles         { background: #fff; }
#inscripcion     { background: var(--cream); }
.about           { background: #fff; }
.gallery         { background: var(--cream); }
#no-hacemos      { background: #fff; }
.faq             { background: var(--cream); }
.location        { background: #fff; }

/* Tarjetas: blancas sobre crema, crema sobre blanco */
.curso-card, .c-card { background: #fff; }
.curso-card { box-shadow: var(--sombra); }
.c-card:hover { background: #fff; }
.problem .p-card { background: var(--cream); }
#no-hacemos .no-list li { background: var(--cream); }
#inscripcion .sc-step, #inscripcion .sc-hours { box-shadow: var(--sombra); }

/* Bandas oscuras: el recorrido y las opiniones */
#recorrido, .testimonios {
  background: radial-gradient(110% 90% at 88% 0%, color-mix(in srgb, var(--banda) 82%, #fff) 0%, var(--banda) 58%);
}
#recorrido h2.display, .testimonios h2.display { color: #fff; }
#recorrido h2.display em, .testimonios h2.display em { color: var(--oro); }
#recorrido .eyebrow, .testimonios .eyebrow { color: var(--oro); }
#recorrido .body-text { color: rgba(255,255,255,.84); }
#recorrido .btn-ghost, .testimonios .btn-ghost { color: #fff; border-color: rgba(255,255,255,.45); }
#recorrido .btn-ghost:hover, .testimonios .btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
#recorrido .sc-step { border-color: transparent; box-shadow: 0 14px 34px -16px rgba(0,0,0,.45); }
.testimonios .t-card { background: #fff; border-color: transparent; box-shadow: 0 14px 34px -16px rgba(0,0,0,.45); }
.testimonios .opiniones-nota { color: rgba(255,255,255,.84); }
.testimonios .opiniones-nota strong { color: #fff; }


/* ══════════════════════════════════════════════════════════
   Páginas internas (octubre de 2026)
   Mismas piezas que la Home; acá van solo las que la Home no usa.
   ══════════════════════════════════════════════════════════ */

/* Fondos de sección: crema por defecto, blanco y banda verde */
.sc-sec.blanco { background: #fff; }
.sc-sec.blanco .sc-step, .sc-sec.blanco .sc-hours, .sc-sec.blanco .sc-card, .sc-sec.blanco .no-list li, .sc-sec.blanco .hito { background: var(--cream); }
.sc-sec.banda { background: radial-gradient(110% 90% at 88% 0%, color-mix(in srgb, var(--banda) 82%, #fff) 0%, var(--banda) 58%); }
.sc-sec.banda h2.display { color: #fff; }
.sc-sec.banda h2.display em, .sc-sec.banda .eyebrow { color: var(--oro); }
.sc-sec.banda .body-text { color: rgba(255,255,255,.86); }
.sc-sec.banda .btn-ghost { color: #fff; border-color: rgba(255,255,255,.45); }
.sc-sec.banda .btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.sc-sec.banda .sc-step, .sc-sec.banda .sc-card { border-color: transparent; box-shadow: 0 14px 34px -16px rgba(0,0,0,.45); }
.banda-centro { text-align: center; max-width: 760px; }
.banda-centro .eyebrow { justify-content: center; }
.banda-centro .display { margin-top: 14px; }
.banda-centro .body-text { margin-top: 18px; }
.banda-centro .sc-btns { justify-content: center; }

/* Encabezado de página interna */
.hero-int { min-height: min(100vh, 780px); }
.hero-int .hero-heading { font-size: clamp(2.5rem, 4.3vw, 4.6rem); }
.migas { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .74rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.migas a { color: var(--red); text-decoration: none; }
.migas a:hover { text-decoration: underline; }
.migas span { opacity: .5; }

/* Piezas sueltas */
.sc-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.sc-head.ancho { max-width: 900px; }
.sc-sub { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--g800); margin: 34px 0 10px; }
div.sc-card:hover { transform: none; box-shadow: none; }
.sc-cards.tres { grid-template-columns: repeat(3, 1fr); }
.sc-cards.dos { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .sc-cards.tres { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .sc-cards.tres, .sc-cards.dos { grid-template-columns: 1fr; } }
.sc-card ul { list-style: none; display: grid; gap: 6px; margin-top: 12px; font-size: .88rem; color: var(--muted); }
.sc-card ul li { padding-left: 18px; position: relative; line-height: 1.5; }
.sc-card ul li::before { content: '→'; position: absolute; left: 0; color: var(--red); }
.sc-card p a { color: var(--red); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--red) 35%, transparent); }
.sc-text + .sc-text { margin-top: 16px; }
.sc-text + .sc-list { margin-top: 18px; }
.sc-list { max-width: 760px; }

/* Texto y foto lado a lado */
.sc-dos { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.sc-dos .display { margin-top: 14px; }
.sc-dos .body-text { margin-top: 16px; }
.sc-foto { width: 100%; height: auto; border-radius: 14px; display: block; box-shadow: 0 2px 6px rgba(70,45,20,.08), 0 24px 50px -24px rgba(70,45,20,.35); }
.sc-foto.certificado { max-width: 380px; margin: 0 auto; border: 1px solid var(--cream-deep); }
@media (max-width: 860px) { .sc-dos { grid-template-columns: 1fr; } }

/* Fotos del instituto */
.fotos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fotos img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; display: block; }
@media (max-width: 700px) { .fotos { grid-template-columns: 1fr; } }

/* Cómo llegar, resumido */
.llegar-lista { list-style: none; display: grid; gap: 10px; max-width: 760px; }
.llegar-lista li { background: var(--cream); border: 1px solid var(--cream-deep); border-radius: 3px; padding: 16px 20px; font-size: .95rem; line-height: 1.55; color: var(--muted); }
.llegar-lista b { color: var(--text); font-weight: 600; }

/* Del A1 al B2: el nivel de la página queda marcado */
.en-a1 .n-a1, .en-a2 .n-a2, .en-b1 .n-b1, .en-b2 .n-b2 { border-color: var(--banda); box-shadow: inset 0 4px 0 var(--banda); }
.en-a1 .n-a1 span, .en-a2 .n-a2 span, .en-b1 .n-b1 span, .en-b2 .n-b2 span { color: var(--banda); }

/* Historia: los hitos, año por año */
.hitos { display: grid; gap: 12px; max-width: 860px; }
.hito { display: grid; grid-template-columns: 110px 1fr; gap: 22px; align-items: start; background: #fff; border: 1px solid var(--cream-deep); border-radius: 14px; padding: 24px 26px; }
.hito b { font-family: var(--serif); font-size: 2.2rem; font-weight: 700; line-height: 1; color: var(--red); }
.hito h3 { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: var(--g800); margin-bottom: 6px; }
.hito p { font-size: .95rem; line-height: 1.65; color: var(--muted); }
.hito p a { color: var(--red); }
@media (max-width: 600px) { .hito { grid-template-columns: 1fr; gap: 8px; } }

/* Tablas de varias columnas: en celular cada fila es una ficha con el nombre de cada dato */
.sc-table td b { font-weight: 600; }
@media (max-width: 700px) {
  .sc-table.fichas thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sc-table.fichas, .sc-table.fichas tbody, .sc-table.fichas tr, .sc-table.fichas td { display: block; }
  .sc-table.fichas tr { padding: 16px 18px; border-top: 1px solid var(--cream-deep); }
  .sc-table.fichas tr:first-child { border-top: none; }
  .sc-table.fichas td { padding: 0; border: none; }
  .sc-table.fichas td:first-child { white-space: normal; margin-bottom: 4px; }
  .sc-table.fichas td[data-t] { margin-top: 6px; font-size: .92rem; color: var(--muted); }
  .sc-table.fichas td[data-t]::before { content: attr(data-t) ': '; font-weight: 600; color: var(--g800); }
}

/* Página 404 */
.no-existe { min-height: 80vh; display: flex; align-items: center; padding: calc(var(--nav-h) + 60px) var(--r-side) var(--r-section); }
.no-existe .sc-inner { width: 100%; }
.no-existe h1 { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 4.4rem); font-weight: 600; line-height: 1.05; margin: 16px 0 18px; }
.no-existe h1 em { font-style: italic; color: var(--red); }
.no-existe .sc-cards { margin-top: 44px; }

/* Variantes de fondo de las piezas compartidas */
#inscripcion.blanco, .faq.blanco { background: #fff; }
.faq-a a { color: var(--red); }
.sc-sec.banda .sc-note { color: rgba(255,255,255,.82); }
.sc-sec.banda .sc-link, .sc-sec.banda .sc-text a { color: var(--oro); border-bottom-color: rgba(235,212,144,.45); }
.sc-sec.banda .sc-list { color: #fff; }
.sc-sec.banda .sc-list li::before { color: var(--oro); }
.sc-steps.seis { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .sc-steps.seis { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .sc-steps.seis { grid-template-columns: 1fr; } }
.sc-dos .body-text + .body-text { margin-top: 14px; }
.sc-list + .sc-note, .sc-cards + .sc-note, .sc-cards + .sc-list { margin-top: 22px; }
.sc-hours + .sc-btns { margin-top: 22px; }

/* Nosotros: una foto por profe */
.profes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.profe img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; display: block; }
.profe figcaption { margin-top: 10px; font-size: .88rem; line-height: 1.4; color: var(--muted); }
.profe figcaption b { display: block; font-family: var(--serif); font-size: 1.2rem; font-weight: 700; color: var(--g800); }
.profes + .sc-note { margin-top: 26px; }
@media (max-width: 800px) { .profes { grid-template-columns: repeat(2, 1fr); } }

/* Pie de página en columnas (octubre de 2026): reemplaza la fila única de enlaces */
footer { padding: 64px var(--r-side) 26px; }
.pie { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.5fr; gap: 40px 36px; }
.pie-marca p { color: rgba(254,249,242,.82); font-size: .9rem; line-height: 1.65; margin: 16px 0 22px; max-width: 320px; }
.pie-btns { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.pie-btns .btn { padding: 14px 24px; }
.btn-ig { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); }
.btn-ig:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.pie h3 { font-family: var(--sans); font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--oro); margin-bottom: 16px; }
.pie ul { list-style: none; display: grid; gap: 10px; }
.pie ul a { color: rgba(254,249,242,.9); font-size: .9rem; line-height: 1.5; text-decoration: none; }
.pie ul a:hover { color: #fff; text-decoration: underline; }
.pie-dato { color: rgba(254,249,242,.78); font-size: .86rem; line-height: 1.5; }
.pie-base { max-width: 1280px; margin: 44px auto 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.16); color: rgba(254,249,242,.7); font-size: .78rem; }
@media (max-width: 1000px) { .pie { grid-template-columns: 1fr 1fr; } .pie-marca { grid-column: 1 / -1; } }
@media (max-width: 520px) { .pie { grid-template-columns: 1fr; } .pie-btns { align-items: stretch; } .pie-btns .btn { justify-content: center; } }
.no-existe .sc-sub { margin-top: 44px; }
.no-existe .sc-sub + .sc-cards { margin-top: 18px; }
