/* ============================================================
   CBSOFT — Academia de Informática
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  --primary:      #342a53;
  --primary-dark: #261f3e;
  --primary-light:#4a3d72;
  --secondary:    #6ac0ae;
  --secondary-dk: #4fa897;
  --white:        #ffffff;
  --off-white:    #f7f6fb;
  --text:         #1e1a2e;
  --text-muted:   #6b6380;
  --border:       #e4e0f0;
  --radius-sm:    8px;
  --radius:       14px;
  --radius-lg:    24px;
  --shadow:       0 4px 24px rgba(52, 42, 83, .10);
  --shadow-lg:    0 12px 48px rgba(52, 42, 83, .18);
  --transition:   .25s cubic-bezier(.4,0,.2,1);
  --ease-out:     .65s cubic-bezier(.22,1,.36,1);
  --max-w:        1200px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3 {
  font-family: 'Copperplate', 'Copperplate Gothic Bold', 'Copperplate Gothic', Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
}

/* ---------- LAYOUT ---------- */
.container {
  width: min(var(--max-w), 100% - 2.5rem);
  margin-inline: auto;
}

.section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.section > .container { position: relative; z-index: 1; }

.section--alt {
  background: var(--off-white);
}
.section--alt::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(52,42,83,.07) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  pointer-events: none;
  z-index: 0;
}

/* ---- DECORACIÓN GEOMÉTRICA DE SECCIONES ---- */
.sec-geo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.geo            { position: absolute; }
.geo--tr        { top: 0;    right: 0;  }
.geo--tl        { top: 0;    left: 0;   }
.geo--br        { bottom: 0; right: 0;  }
.geo--bl        { bottom: 0; left: 0;   }

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--primary);
  margin: 12px 0 16px;
  padding-bottom: 20px;
  position: relative;
}
.section__title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 44px; height: 3px;
  background: var(--secondary);
  border-radius: 2px;
}
.section__header .section__title::after {
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
}

.section__sub {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ---------- BADGE ---------- */
.badge {
  display: inline-block;
  background: rgba(106,192,174,.15);
  color: var(--secondary-dk);
  border: 1px solid rgba(106,192,174,.35);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
}

.badge--summer {
  background: rgba(255, 196, 0, .1);
  color: #d4a017;
  border-color: rgba(255, 196, 0, .3);
  font-size: .82rem;
  text-transform: none;
  letter-spacing: .03em;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  padding: 14px 30px;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--secondary);
  color: var(--primary);
  border-color: var(--secondary);
}
.btn--primary:hover {
  background: var(--secondary-dk);
  border-color: var(--secondary-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(106,192,174,.35);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn--outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--ghost {
  background: rgba(255,255,255,.12);
  color: var(--white);
  border-color: rgba(255,255,255,.35);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.6);
  transform: translateY(-2px);
}

.btn--secondary {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}
.btn--secondary:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(106,192,174,.3);
}

.btn--sm { padding: 10px 20px; font-size: .875rem; }
.btn--full { width: 100%; }

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(52, 42, 83, .95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}

.nav__logo {
  font-family: 'Copperplate', 'Copperplate Gothic Bold', Georgia, serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--white);
  letter-spacing: .04em;
  flex-shrink: 0;
}
.nav__logo span { color: var(--secondary); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav__links a {
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
}
.nav__links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--secondary);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav__links a:not(.btn):hover { color: var(--white); }
.nav__links a:not(.btn):hover::after,
.nav__links a.nav--active::after { transform: scaleX(1); }
.nav__links a.nav--active { color: var(--white); }
.nav__links .btn {
  padding: 9px 22px;
  background: var(--secondary);
  color: var(--primary);
  border-color: var(--secondary);
  border-radius: 50px;
}
.nav__links .btn:hover {
  background: var(--secondary-dk);
  border-color: var(--secondary-dk);
  color: var(--primary);
  transform: translateY(-2px);
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 8px;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  background: var(--white);
  color: var(--text);
  padding: 100px 0 48px;
  overflow: hidden;
}

.hero__bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__geo-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__text { display: flex; flex-direction: column; gap: 24px; }

.hero__title {
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  color: var(--primary);
  line-height: 1.05;
}
.hero__title br { content: ''; display: block; }

.hero__sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
  line-height: 1.7;
}

.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__stats {
  display: flex;
  gap: 36px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.stat strong {
  display: block;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--secondary-dk);
  font-family: 'Copperplate', Georgia, serif;
}
.stat span { font-size: .82rem; color: var(--text-muted); }

/* Code card */
.hero__visual { position: relative; }

.code-card {
  background: var(--primary-dark);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(52,42,83,.22), 0 4px 16px rgba(52,42,83,.12);
}

.code-card__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(0,0,0,.25);
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.dot {
  width: 11px; height: 11px;
  border-radius: 50%;
}
.dot--red    { background: #ff5f57; }
.dot--yellow { background: #ffbd2e; }
.dot--green  { background: #28c940; }

.code-card__label {
  margin-left: 8px;
  font-size: .8rem;
  color: rgba(255,255,255,.45);
  font-family: 'Inter', monospace;
}

.code-card__body {
  padding: 24px;
  font-family: 'SF Mono', 'Fira Code', 'Fira Mono', monospace;
  font-size: .87rem;
  line-height: 1.8;
  color: rgba(255,255,255,.85);
  white-space: pre-wrap;
}

.kw  { color: #c792ea; }
.fn  { color: var(--secondary); }
.str { color: #c3e88d; }
.cm  { color: rgba(255,255,255,.35); font-style: italic; }
.op  { color: rgba(255,255,255,.55); }

.floating-pill {
  position: absolute;
  background: var(--primary);
  color: var(--white);
  font-size: .8rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(52,42,83,.25);
  pointer-events: none;
}
.pill--1 { top: -16px; left: 20px;   animation: float 3.5s ease-in-out infinite;      background: var(--secondary); color: var(--primary); box-shadow: 0 8px 24px rgba(106,192,174,.35); }
.pill--2 { top: 30px;  right: -20px; animation: float 4s   ease-in-out infinite .6s;  }
.pill--3 { bottom: 60px; right: -24px; animation: float 3.8s ease-in-out infinite 1.2s; background: var(--secondary); color: var(--primary); box-shadow: 0 8px 24px rgba(106,192,174,.35); }
.pill--4 { bottom: -14px; left: 50px; animation: float 4.2s ease-in-out infinite .3s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- MODALIDADES BAR ---------- */
.trust {
  background: var(--primary);
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}
.trust::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(106,192,174,.06) 0%, transparent 70%);
  top: -200px; right: -100px;
  pointer-events: none;
}

.trust__label {
  text-align: center;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.4);
  margin-bottom: 28px;
}

.trust__logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.trust__logos span {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: .88rem;
  color: rgba(255,255,255,.7);
  letter-spacing: .02em;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 14px 28px;
  transition: all var(--transition);
  cursor: default;
}
.trust__logos span:hover {
  background: rgba(106,192,174,.15);
  border-color: rgba(106,192,174,.4);
  color: var(--secondary);
  transform: translateY(-3px);
}

/* ---------- CURSOS ---------- */
.cursos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.curso-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.curso-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--primary-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
}
.curso-card:hover::before { transform: scaleX(1); }

.curso-card:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.curso-card--featured {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}
.curso-card.curso-card--featured h3 { color: var(--white); }
.curso-card.curso-card--featured p  { color: var(--white); }
.curso-card--featured .curso-card__list li { color: rgba(255,255,255,.7); }
.curso-card--featured .curso-card__list li::before { color: var(--secondary); }
.curso-card--featured:hover { border-color: var(--secondary); }

.curso-card__tag {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--secondary);
  color: var(--primary);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
}

.curso-card__icon {
  width: 48px; height: 48px;
  background: rgba(106,192,174,.12);
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.curso-card__icon svg { width: 24px; height: 24px; stroke: var(--secondary); }

.curso-card h3 {
  font-size: 1.2rem;
  color: var(--primary);
}

.curso-card p { font-size: .92rem; color: var(--text-muted); }

.curso-card__list { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; flex: 1; }
.curso-card__list li {
  font-size: .87rem;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
}
.curso-card__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: 700;
}

/* ---------- NOSOTROS ---------- */
.nosotros__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  text-align: center;
}

.nosotros__header { display: flex; flex-direction: column; gap: 16px; align-items: center; }
.nosotros__header p { color: var(--text-muted); line-height: 1.75; max-width: 640px; }

.nosotros__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
  max-width: 700px;
}
.nosotros__stat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}
.nosotros__stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--secondary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
}
.nosotros__stat:hover::before { transform: scaleX(1); }
.nosotros__stat:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}
.nosotros__stat strong {
  font-size: 2.2rem;
  font-family: 'Copperplate', Georgia, serif;
  color: var(--secondary);
  line-height: 1;
}
.nosotros__stat span { font-size: .85rem; color: var(--text-muted); font-weight: 500; }

.nosotros__pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
}

.pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: rgba(52,42,83,.4);
  border: 1px solid rgba(106,192,174,.1);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
}
.pillar__icon {
  width: 48px; height: 48px;
  background: rgba(106,192,174,.15);
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.pillar__icon svg { width: 22px; height: 22px; stroke: var(--secondary); }
.pillar strong { display: block; color: var(--primary); font-size: .95rem; margin-bottom: 2px; }
.pillar p { font-size: .87rem; color: var(--text-muted); margin: 0; }

/* ---------- METODOLOGÍA ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step-counter;
}
.step__connector { display: none; }

.step {
  counter-increment: step-counter;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px 52px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}
.step::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--secondary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
}
.step::after {
  content: counter(step-counter, decimal-leading-zero);
  position: absolute;
  bottom: -10px; right: 12px;
  font-family: 'Copperplate', Georgia, serif;
  font-size: 5.5rem;
  font-weight: 700;
  color: rgba(52,42,83,.055);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.step:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}
.step:hover::before { transform: scaleX(1); }

.step__number {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(106,192,174,.12);
  color: var(--secondary-dk);
  font-family: 'Copperplate', Georgia, serif;
  font-size: .95rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.step__content { position: relative; z-index: 1; }
.step__content h3 { font-size: 1.05rem; color: var(--primary); margin-bottom: 8px; }
.step__content p  { font-size: .88rem; color: var(--text-muted); line-height: 1.65; }

/* ---------- TESTIMONIOS ---------- */
.testimonios__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.testimonio {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all var(--transition);
}

.testimonio:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.testimonio--featured {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  margin-top: -20px;
}
.testimonio--featured p { color: rgba(255,255,255,.8); }

.testimonio__stars { color: var(--secondary); font-size: 1rem; letter-spacing: 2px; }
.testimonio--featured .testimonio__stars { color: var(--secondary); }

.testimonio p { font-size: .93rem; color: var(--text-muted); font-style: italic; line-height: 1.7; }

.testimonio__author { display: flex; align-items: center; gap: 12px; }

.testimonio__avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--primary);
  font-weight: 700;
  font-size: .85rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.testimonio__author strong { display: block; font-size: .9rem; color: var(--primary); }
.testimonio--featured .testimonio__author strong { color: var(--white); }
.testimonio__author span  { font-size: .8rem; color: var(--text-muted); }
.testimonio--featured .testimonio__author span { color: rgba(255,255,255,.55); }

/* ---------- CTA BANNER ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dk) 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.cta-banner__shapes { position: absolute; inset: 0; pointer-events: none; }
.shape--a {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  top: -200px; right: -100px;
}
.shape--b {
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(52,42,83,.12);
  bottom: -100px; left: 5%;
}

.cta-banner__inner {
  text-align: center;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cta-banner h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--primary);
}

.cta-banner p { color: rgba(52,42,83,.7); font-size: 1.05rem; max-width: 480px; }

/* ---------- CONTACTO ---------- */
.contacto__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contacto__info { display: flex; flex-direction: column; gap: 20px; }
.contacto__info p { color: var(--text-muted); line-height: 1.75; }

.contacto__datos { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }

.dato {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .93rem;
  color: var(--text-muted);
}
.dato svg { width: 20px; height: 20px; stroke: var(--secondary); flex-shrink: 0; }

/* FORM */
.contacto__form {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-group label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'Inter', sans-serif;
  font-size: .93rem;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(106,192,174,.2);
}

.form-group textarea { resize: vertical; min-height: 110px; }

.form__thanks {
  text-align: center;
  color: var(--secondary-dk);
  font-weight: 600;
  font-size: .9rem;
  display: none;
}
.form__thanks.visible { display: block; }

/* ---------- MAPA ---------- */
.mapa {
  display: flex;
  flex-direction: column;
}

.mapa__iframe-wrap {
  width: 100%;
  height: 420px;
  position: relative;
  background: var(--off-white);
}

.mapa__iframe-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.mapa__cta {
  background: var(--primary);
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.mapa__info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mapa__info svg {
  width: 22px;
  height: 22px;
  stroke: var(--secondary);
  flex-shrink: 0;
}

.mapa__info strong {
  display: block;
  color: var(--white);
  font-size: .95rem;
}

.mapa__info span {
  font-size: .85rem;
  color: rgba(255,255,255,.55);
}

@media (max-width: 600px) {
  .mapa__iframe-wrap { height: 300px; }
  .mapa__cta { padding: 20px 24px; justify-content: center; text-align: center; }
  .mapa__info { flex-direction: column; align-items: center; }
}

/* ---------- HORARIOS ---------- */
.horarios {
  margin-top: 28px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.horarios__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.horarios__title {
  font-family: 'Copperplate', Georgia, serif;
  font-size: .9rem;
  color: var(--primary);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.horarios__badge {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: rgba(106,192,174,.15);
  color: var(--secondary-dk);
  border: 1px solid rgba(106,192,174,.35);
  padding: 3px 10px;
  border-radius: 50px;
}

.horarios__nota {
  margin-top: 14px;
  font-size: .82rem;
  color: var(--text-muted);
  font-style: italic;
}

.horarios__grid { display: flex; flex-direction: column; gap: 10px; }

.horario-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.horario-row:last-child { border-bottom: none; padding-bottom: 0; }

.horario-dia {
  font-weight: 600;
  font-size: .87rem;
  color: var(--primary);
  min-width: 90px;
}

.horario-hora {
  font-size: .84rem;
  color: var(--text-muted);
  text-align: right;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.65);
  padding: 72px 0 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 64px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer__brand { display: flex; flex-direction: column; gap: 16px; }
.footer__brand p { font-size: .88rem; line-height: 1.7; max-width: 280px; }

.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.footer__social a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  display: grid;
  place-items: center;
  transition: all var(--transition);
}
.footer__social a:hover {
  border-color: var(--secondary);
  background: rgba(106,192,174,.12);
}
.footer__social svg { width: 16px; height: 16px; stroke: rgba(255,255,255,.65); }

.footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col h4 {
  font-family: 'Copperplate', Georgia, serif;
  font-size: .85rem;
  color: var(--white);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.footer__col a {
  font-size: .875rem;
  color: rgba(255,255,255,.5);
  transition: color var(--transition);
}
.footer__col a:hover { color: var(--secondary); }

.footer__bottom {
  padding: 20px 0;
}
.footer__bottom p {
  font-size: .82rem;
  color: rgba(255,255,255,.3);
  text-align: center;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .cursos__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { gap: 40px; }
}

@media (max-width: 768px) {
  /* ── FULLSCREEN MOBILE NAV ── */

  /* El header ocupa toda la pantalla cuando el menú está abierto */
  .nav.nav--open {
    position: fixed;
    inset: 0;
    background: var(--primary);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
  }

  /* nav__inner: barra superior — debe ser static para que nav sea el bloque contenedor */
  .nav.nav--open .nav__inner {
    position: static;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }

  /* Links: ocultos por defecto en móvil */
  .nav__links {
    display: none;
  }

  /* Links: pantalla completa bajo la barra, posicionados respecto al nav */
  .nav__links.open {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0; bottom: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 40px;
  }

  /* Links grandes centrados */
  .nav__links a:not(.btn) {
    font-size: 1.8rem;
    font-weight: 600;
    color: rgba(255,255,255,.65);
    padding: 14px 40px;
    width: 100%;
    text-align: center;
    border-radius: var(--radius);
    transition: color var(--transition), background var(--transition);
  }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__links a:not(.btn):hover { color: var(--white); background: rgba(255,255,255,.06); }
  .nav__links a.nav--active     { color: var(--white); background: rgba(255,255,255,.08); }
  .nav__links .btn {
    margin-top: 16px;
    padding: 15px 56px;
    font-size: 1rem;
  }

  /* Animación escalonada de los enlaces */
  .nav__links.open a {
    animation: navLinkIn .4s cubic-bezier(.22,1,.36,1) both;
  }
  .nav__links.open a:nth-child(1) { animation-delay: .05s; }
  .nav__links.open a:nth-child(2) { animation-delay: .12s; }
  .nav__links.open a:nth-child(3) { animation-delay: .19s; }
  .nav__links.open a:nth-child(4) { animation-delay: .26s; }
  @keyframes navLinkIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: none; }
  }

  /* Burger visible + se convierte en X */
  .nav__burger { display: flex; }
  .nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding: 60px 0; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .hero__stats { gap: 20px; }

  .cursos__grid { grid-template-columns: 1fr; }

  .nosotros__inner { gap: 36px; }
  .nosotros__stats {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 12px;
  }
  .nosotros__stat {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    text-align: left;
  }
  .nosotros__stat strong { font-size: 1.8rem; min-width: 64px; }
  .nosotros__pillars { grid-template-columns: 1fr; gap: 12px; }

  .steps { grid-template-columns: 1fr 1fr; }
  .step__connector { display: none; }

  .testimonios__grid { grid-template-columns: 1fr; }
  .testimonio--featured { margin-top: 0; }

  .contacto__inner { grid-template-columns: 1fr; }

  .footer__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__links { grid-template-columns: repeat(2, 1fr); }

  .section { padding: 60px 0; }
}

@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .hero__title { font-size: 2.4rem; }
  .hero__stats { flex-direction: column; gap: 12px; }
  .trust__logos { gap: 10px; }
  .footer__links { grid-template-columns: 1fr; }
  .contacto__form { padding: 24px; }
}

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transition:
    opacity var(--ease-out) var(--reveal-delay, 0s),
    transform var(--ease-out) var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.reveal--up    { transform: translateY(52px); }
.reveal--left  { transform: translateX(-56px); }
.reveal--right { transform: translateX(56px); }
.reveal--scale { transform: scale(.88) translateY(20px); }
.reveal--fade  { transform: none; }
.is-revealed   { opacity: 1 !important; transform: none !important; }
