/* ==========================================================
   CNI · Landing premium (responsive real)
   Paleta: Azul #003c59 · Guindo #a91538 · Gris #dae8f1 · Amarillo #ffcf53
   ========================================================== */

/* ---------- RESET ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #0f172a;
  background: #ffffff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }
p, h1, h2, h3, h4, li, span, a {
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

/* ---------- VARIABLES ---------- */
:root {
  --azul: #003c59;
  --azul-dark: #002a3f;
  --azul-soft: #005479;
  --guindo: #a91538;
  --guindo-dark: #8a1230;
  --gris: #dae8f1;
  --gris-soft: #eef5fa;
  --amarillo: #ffcf53;
  --amarillo-dark: #e6b93a;
  --texto: #0f172a;
  --texto-mute: #5b6b78;
  --blanco: #ffffff;
  --radius: 16px;
  --shadow-sm: 0 2px 8px rgba(0,60,89,0.05);
  --shadow-md: 0 8px 24px rgba(0,60,89,0.10);
  --shadow-lg: 0 16px 44px rgba(0,60,89,0.16);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

/* ---------- FONDO DECO (solo desktop) ---------- */
.bg-deco {
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none; overflow: hidden;
}
.bg-deco__orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.35;
}
.bg-deco__orb--1 {
  width: 420px; height: 420px;
  top: -150px; right: -100px;
  background: radial-gradient(circle, rgba(255,207,83,0.35), transparent 70%);
}
.bg-deco__orb--2 {
  width: 520px; height: 520px;
  bottom: -200px; left: -150px;
  background: radial-gradient(circle, rgba(0,60,89,0.22), transparent 70%);
}
.bg-deco__grid { display: none; }

/* ---------- UTILIDADES ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px;
  font-size: 0.7rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.6px;
  border: 1px solid transparent;
  white-space: normal;
  text-align: left;
  line-height: 1.3;
}
.badge--red { background: rgba(169,21,56,0.08); color: var(--guindo); border-color: rgba(169,21,56,0.15); }
.badge--blue { background: rgba(0,60,89,0.08); color: var(--azul); border-color: rgba(0,60,89,0.15); }
.badge--yellow { background: var(--amarillo); color: var(--azul); border-color: var(--amarillo-dark); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.2;
  transition: all .25s ease;
  cursor: pointer;
  border: none;
  text-align: center;
  white-space: normal;
  max-width: 100%;
}
.btn--sm { padding: 9px 16px; font-size: 0.8rem; }
.btn--lg { padding: 14px 28px; font-size: 0.92rem; }
.btn--primary {
  background: linear-gradient(135deg, var(--guindo) 0%, var(--guindo-dark) 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(169,21,56,0.30);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(169,21,56,0.40);
}
.btn--whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #1da851 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(37,211,102,0.30);
}
.btn--whatsapp:hover { transform: translateY(-2px); }
.btn--yellow {
  background: linear-gradient(135deg, var(--amarillo) 0%, var(--amarillo-dark) 100%);
  color: var(--azul);
  box-shadow: 0 6px 18px rgba(255,207,83,0.40);
}
.btn--yellow:hover { transform: translateY(-2px); }
.btn--outline-light {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.5);
  color: #fff;
}
.btn--outline-light:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

/* ---------- HEADER ---------- */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(218,232,241,0.7);
  padding: 12px 0;
  transition: box-shadow .3s, padding .3s;
}
.header.scrolled {
  box-shadow: 0 4px 20px rgba(0,60,89,0.08);
  padding: 9px 0;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  min-width: 0;
  flex: 1;
}
.brand__logo {
  flex-shrink: 0;
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--azul) 0%, var(--azul-soft) 100%);
  color: #fff;
  border-radius: 11px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 0.78rem; letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0,60,89,0.25);
}
.brand__text {
  font-weight: 800;
  font-size: 0.85rem;
  line-height: 1.15;
  color: var(--azul);
  min-width: 0;
}
.brand__text small {
  display: block;
  font-weight: 500;
  color: var(--texto-mute);
  font-size: 0.65rem;
  margin-top: 2px;
}

.nav { display: flex; gap: 2px; }
.nav a {
  padding: 8px 11px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--texto-mute);
  transition: all .2s;
  white-space: nowrap;
}
.nav a:hover { color: var(--guindo); background: rgba(169,21,56,0.05); }

.nav-toggle {
  display: none;
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--gris);
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--azul);
  line-height: 1;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 90% 10%, rgba(255,207,83,0.10) 0%, transparent 50%),
    linear-gradient(135deg, var(--azul) 0%, var(--azul-dark) 100%);
  color: #fff;
  padding: 56px 0 64px;
  overflow: hidden;
}
.hero__pattern {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0);
  background-size: 30px 30px;
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  position: relative;
  z-index: 1;
}
.hero__content { min-width: 0; }
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin: 14px 0 14px;
  word-break: normal;
  overflow-wrap: break-word;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--amarillo) 0%, #ffe28a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero__desc {
  font-size: 0.98rem;
  color: #c8dbe7;
  margin-bottom: 24px;
  line-height: 1.6;
  max-width: 100%;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.hero__meta .chip {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1.3;
  max-width: 100%;
}
.hero__meta .chip strong { color: var(--amarillo); }

.hero__cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.hero__cta .btn { width: 100%; }

.hero__trust {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero__trust-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.hero__trust-item strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--amarillo);
  line-height: 1;
  flex-shrink: 0;
}
.hero__trust-item span {
  font-size: 0.72rem;
  color: #8fabbd;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  line-height: 1.2;
}
.hero__trust-divider { display: none; }

/* Tarjeta inversión */
.hero__card {
  position: relative;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 24px 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
}
.hero__card-glow { display: none; }
.hero__card h3 {
  font-size: 0.75rem;
  margin-bottom: 14px;
  color: #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 800;
}
.price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.price-item:last-child { border-bottom: none; }
.price-item .label {
  color: #b8cddb;
  font-size: 0.85rem;
  font-weight: 500;
}
.price-item .value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  text-align: right;
  line-height: 1.1;
}
.price-item .value small {
  font-size: 0.68rem;
  font-weight: 500;
  color: #94a8b8;
  font-family: var(--font-body);
  display: block;
  margin-top: 2px;
}
.hero__note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.74rem;
  color: #94a8b8;
  line-height: 1.5;
}
.hero__card-seal {
  margin-top: 14px;
  padding: 9px 12px;
  background: rgba(255,207,83,0.12);
  border: 1px dashed rgba(255,207,83,0.4);
  border-radius: 9px;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--amarillo);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  line-height: 1.3;
}

/* ---------- SECCIONES ---------- */
.section { padding: 56px 0; position: relative; }
.section--soft { background: linear-gradient(180deg, var(--gris-soft) 0%, #fff 100%); }
.section--dark {
  background:
    radial-gradient(circle at 80% 20%, rgba(255,207,83,0.08) 0%, transparent 50%),
    linear-gradient(135deg, var(--azul) 0%, var(--azul-dark) 100%);
  color: #fff;
}
.section__header {
  text-align: center;
  max-width: 100%;
  margin: 0 auto 32px;
  padding: 0 4px;
}
.section__header .badge { margin-bottom: 12px; }
.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 5.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--azul);
  line-height: 1.2;
  margin-bottom: 10px;
  overflow-wrap: break-word;
}
.section__title em {
  font-style: italic;
  color: var(--guindo);
}
.section__header--light .section__title { color: #fff; }
.section__header--light .section__title em { color: var(--amarillo); }
.section__header--light p { color: #c8dbe7; }
.section__header p {
  color: var(--texto-mute);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ---------- GRID ---------- */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

/* ---------- CARDS ---------- */
.card {
  background: var(--blanco);
  border: 1px solid rgba(218,232,241,0.8);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: all .3s ease;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--azul);
  margin-bottom: 8px;
  line-height: 1.3;
  overflow-wrap: break-word;
}
.card p {
  font-size: 0.86rem;
  color: var(--texto-mute);
  line-height: 1.55;
}
.card__num {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--gris-soft), var(--gris));
  color: var(--azul);
  border-radius: 12px;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.15rem;
  margin-bottom: 14px;
}

/* ---------- TIMELINE MÓDULOS ---------- */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}
.timeline::before { display: none; }
.timeline-item {
  position: relative;
  padding: 0 0 22px 0;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item__num {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--guindo) 0%, var(--guindo-dark) 100%);
  color: #fff;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.1rem;
  box-shadow: 0 6px 18px rgba(169,21,56,0.30);
  margin-bottom: 12px;
}
.timeline-item__content {
  background: var(--blanco);
  border: 1px solid rgba(218,232,241,0.8);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.timeline-item__tag {
  display: inline-block;
  background: rgba(169,21,56,0.08);
  color: var(--guindo);
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
  border: 1px solid rgba(169,21,56,0.15);
}
.timeline-item__content h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--azul);
  margin-bottom: 12px;
  line-height: 1.3;
  overflow-wrap: break-word;
}
.checklist {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}
.checklist li {
  font-size: 0.84rem;
  color: #3d4f5c;
  padding-left: 22px;
  position: relative;
  line-height: 1.5;
  overflow-wrap: break-word;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 1px;
  width: 15px; height: 15px;
  background: rgba(255,207,83,0.35);
  color: var(--guindo);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.55rem;
  font-weight: 900;
}

/* ---------- DOCENTE ---------- */
.docente-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}
.docente-photo {
  background: linear-gradient(160deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  aspect-ratio: 1/1;
  max-width: 240px;
  margin: 0 auto;
  display: grid; place-items: center;
  text-align: center;
  color: #c8dbe7;
  overflow: hidden;
}
.docente-photo .placeholder {
  padding: 20px;
  display: flex; flex-direction: column;
  gap: 6px;
}
.docente-photo .icon { font-size: 3.5rem; opacity: 0.4; }
.docente-photo strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: #fff;
}
.docente-photo span { font-size: 0.72rem; color: #8fabbd; }
.docente-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.docente-info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 5vw, 1.9rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
  line-height: 1.15;
  margin-bottom: 6px;
  overflow-wrap: break-word;
}
.docente-info .role {
  color: var(--amarillo);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 18px;
  line-height: 1.4;
}
.docente-info .bio {
  color: #c8dbe7;
  font-size: 0.88rem;
  margin-bottom: 14px;
  line-height: 1.65;
}
.docente-info .bio strong { color: var(--amarillo); font-weight: 700; }

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 20px;
}
.stat {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #c8dbe7;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1.3;
}
.stat span {
  font-family: var(--font-display);
  color: var(--amarillo);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
}

/* ---------- CRONOGRAMA ---------- */
.schedule {
  background: var(--blanco);
  border: 2px solid rgba(218,232,241,0.6);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
  transition: all .3s ease;
}
.schedule:hover {
  border-color: var(--guindo);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.schedule__day {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--texto-mute);
  margin-bottom: 6px;
}
.schedule__date {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--azul);
  line-height: 1;
}
.schedule__time {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--guindo);
  font-weight: 700;
  line-height: 1.3;
}

/* ---------- CTA ---------- */
.cta {
  background:
    radial-gradient(circle at 20% 20%, rgba(255,207,83,0.18) 0%, transparent 50%),
    linear-gradient(135deg, var(--guindo) 0%, #6b0a22 100%);
  border-radius: 18px;
  padding: 36px 20px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(169,21,56,0.25);
}
.cta__deco { display: none; }
.cta .badge {
  background: var(--amarillo);
  color: var(--azul);
  margin-bottom: 14px;
}
.cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 5.5vw, 2.1rem);
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.2;
  overflow-wrap: break-word;
}
.cta h2 em { font-style: italic; color: var(--amarillo); }
.cta p {
  font-size: 0.92rem;
  opacity: 0.94;
  margin-bottom: 22px;
  line-height: 1.55;
  max-width: 100%;
}
.cta__btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cta__btns .btn { width: 100%; }

/* ---------- HISTORIAL ---------- */
.historial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.historial-card {
  background: var(--blanco);
  border: 1px solid rgba(218,232,241,0.8);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.historial-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--azul), var(--guindo), var(--amarillo));
}
.historial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.historial-card__icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--gris-soft), var(--gris));
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 1.3rem;
}
.historial-card__fecha {
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--guindo);
}
.historial-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--azul);
  line-height: 1.3;
  overflow-wrap: break-word;
}
.historial-card p {
  font-size: 0.84rem;
  color: var(--texto-mute);
  line-height: 1.55;
}
.historial-card__meta {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(218,232,241,0.8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--texto-mute);
  flex-wrap: wrap;
}
.historial-card__meta span {
  background: var(--gris-soft);
  padding: 4px 10px;
  border-radius: 7px;
  font-weight: 700;
  color: var(--azul);
  font-size: 0.68rem;
}
.historial-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 32px 18px;
  color: var(--texto-mute);
  font-size: 0.88rem;
  background: var(--blanco);
  border: 2px dashed var(--gris);
  border-radius: var(--radius);
}

/* ---------- FOOTER ---------- */
.footer {
  background:
    radial-gradient(circle at 10% 90%, rgba(255,207,83,0.06) 0%, transparent 50%),
    linear-gradient(135deg, var(--azul) 0%, var(--azul-dark) 100%);
  color: #b8cddb;
  padding: 48px 0 24px;
  position: relative;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--guindo), var(--amarillo), var(--guindo));
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
.footer h4 {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  position: relative;
}
.footer h4::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 24px; height: 2px;
  background: var(--amarillo);
}
.footer p { font-size: 0.85rem; line-height: 1.65; }
.footer ul { display: flex; flex-direction: column; gap: 8px; }
.footer ul li { font-size: 0.82rem; line-height: 1.5; }
.footer ul li a:hover { color: var(--amarillo); }

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.footer__brand .brand__logo {
  width: 40px; height: 40px;
  font-size: 0.72rem;
  background: #fff;
  color: var(--azul);
}
.footer__brand .brand__text { color: #fff; font-size: 0.88rem; }
.footer__brand .brand__text small { color: #8fabbd; }

/* Bloque ISO */
.iso {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  text-align: center;
}
.iso::before { display: none; }
.iso__logo {
  flex-shrink: 0;
  width: 70px; height: 70px;
  background: #fff;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px;
  line-height: 1.1;
}
.iso__logo strong {
  font-size: 0.66rem;
  font-weight: 800;
  color: var(--guindo);
}
.iso__logo span {
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--azul);
  margin-top: 2px;
}
.iso__text {
  font-size: 0.76rem;
  line-height: 1.55;
  color: #b8cddb;
}
.iso__text strong {
  color: #fff;
  display: block;
  margin-bottom: 5px;
  font-size: 0.8rem;
}
.iso__text span { color: var(--amarillo); font-weight: 800; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.72rem;
  color: #8fabbd;
  text-align: center;
}

/* ---------- WHATSAPP FLOTANTE ---------- */
.wa-float {
  position: fixed;
  bottom: 16px; right: 16px;
  z-index: 999;
  width: 54px; height: 54px;
  background: linear-gradient(135deg, #25D366 0%, #1da851 100%);
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 6px 22px rgba(37,211,102,0.5);
  color: #fff;
  font-size: 1.5rem;
  transition: all .25s ease;
}
.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 28px rgba(37,211,102,0.65);
}

/* ---------- REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================
   RESPONSIVE — Mobile first ya aplicado arriba.
   Aquí añadimos mejoras progresivas para pantallas más grandes.
   ========================================================== */

/* ---------- TABLET (≥ 600px) ---------- */
@media (min-width: 600px) {
  .container { padding: 0 24px; }

  .hero { padding: 64px 0 72px; }
  .hero__cta {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .hero__cta .btn { width: auto; }

  .hero__trust {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: center;
  }
  .hero__trust-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .grid { grid-template-columns: repeat(2, 1fr); }
  .historial-grid { grid-template-columns: repeat(2, 1fr); }

  .checklist { grid-template-columns: repeat(2, 1fr); gap: 7px 18px; }

  .cta__btns {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .cta__btns .btn { width: auto; }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .iso {
    flex-direction: row;
    text-align: left;
    align-items: center;
  }
}

/* ---------- TABLET GRANDE (≥ 768px) ---------- */
@media (min-width: 768px) {
  .header { padding: 14px 0; }
  .header.scrolled { padding: 10px 0; }
  .brand__logo { width: 46px; height: 46px; font-size: 0.82rem; }
  .brand__text { font-size: 0.92rem; }
  .brand__text small { font-size: 0.68rem; }

  .hero { padding: 80px 0 96px; }
  .hero__grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
  }
  .hero__title { letter-spacing: -1px; }
  .hero__cta { margin-bottom: 32px; }
  .hero__card { padding: 28px; }
  .hero__card-glow {
    display: block;
    position: absolute;
    top: -50%; right: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,207,83,0.12) 0%, transparent 60%);
    pointer-events: none;
  }
  .hero__trust {
    grid-template-columns: repeat(3, auto);
    gap: 24px;
    padding-top: 24px;
  }
  .hero__trust-item { flex-direction: column; align-items: flex-start; gap: 2px; }
  .hero__trust-divider {
    display: block;
    width: 1px; height: 36px;
    background: rgba(255,255,255,0.15);
  }

  .section { padding: 72px 0; }
  .section__header { margin-bottom: 40px; }

  .card { padding: 26px 24px; }
  .timeline-item__num {
    display: inline-grid;
    width: 46px; height: 46px;
    font-size: 1.2rem;
    margin-bottom: 14px;
  }
  .timeline-item__content { padding: 26px 24px; }

  .docente-photo { aspect-ratio: 3/4; max-width: 300px; }

  .stats { gap: 10px; }
  .stat { font-size: 0.8rem; padding: 8px 14px; }

  .schedule { padding: 28px 22px; }

  .cta { padding: 48px 36px; border-radius: 22px; }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

/* ---------- DESKTOP (≥ 1024px) ---------- */
@media (min-width: 1024px) {
  .container { padding: 0 28px; }

  .hero { padding: 90px 0 110px; }
  .hero__grid { grid-template-columns: 1.3fr 0.7fr; gap: 60px; }

  .section { padding: 96px 0; }
  .section__header { margin-bottom: 56px; }

  .grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .historial-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }

  /* Timeline con línea conectora en desktop */
  .timeline::before {
    display: block;
    content: "";
    position: absolute;
    left: 30px;
    top: 40px;
    bottom: 40px;
    width: 2px;
    background: linear-gradient(180deg, var(--guindo), var(--amarillo));
    opacity: 0.35;
  }
  .timeline-item {
    padding: 0 0 32px 92px;
  }
  .timeline-item:last-child { padding-bottom: 0; }
  .timeline-item__num {
    position: absolute;
    left: 0;
    top: 0;
    width: 62px; height: 62px;
    border-radius: 16px;
    font-size: 1.35rem;
    margin-bottom: 0;
    z-index: 1;
  }
  .timeline-item__content { padding: 30px 30px; }
  .timeline-item__content h3 { font-size: 1.25rem; }

  /* Docente en 2 columnas */
  .docente-grid {
    grid-template-columns: 320px 1fr;
    gap: 48px;
  }
  .docente-photo {
    position: sticky;
    top: 100px;
    max-width: 100%;
    margin: 0;
    aspect-ratio: 3/4;
  }

  /* Footer en 3 columnas */
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; }

  .iso::before {
    display: block;
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--amarillo), var(--guindo));
    border-radius: 14px 0 0 14px;
  }
  .iso { position: relative; padding: 24px 28px; gap: 24px; }

  .wa-float {
    width: 62px; height: 62px;
    font-size: 1.7rem;
    bottom: 24px; right: 24px;
  }
}

/* ---------- MENÚ MÓVIL (solo < 768px) ---------- */
@media (max-width: 767px) {
  .header__cta { display: none; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 12px;
    gap: 2px;
    border-bottom: 1px solid var(--gris);
    box-shadow: 0 12px 32px rgba(0,60,89,0.12);
  }
  .nav.open { display: flex; }
  .nav a {
    padding: 12px 14px;
    font-size: 0.9rem;
    border-radius: 8px;
  }
  .nav-toggle { display: block; }
}

/* ---------- PANTALLAS MUY PEQUEÑAS (< 360px) ---------- */
@media (max-width: 359px) {
  .container { padding: 0 14px; }
  .hero__title { font-size: 1.4rem; }
  .hero__meta .chip { font-size: 0.7rem; padding: 6px 10px; }
  .btn { padding: 11px 16px; font-size: 0.82rem; }
  .section__title { font-size: 1.3rem; }
  .card { padding: 18px 16px; }
  .schedule__date { font-size: 2rem; }
  .wa-float { width: 48px; height: 48px; font-size: 1.3rem; }
  .brand__text { font-size: 0.78rem; }
  .brand__text small { font-size: 0.6rem; }
}

/* ---------- ACCESIBILIDAD ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- IMPRESIÓN ---------- */
@media print {
  .header, .wa-float, .nav, .cta__btns, .bg-deco { display: none !important; }
  .hero { background: #fff !important; color: #000 !important; }
  .hero__title em { -webkit-text-fill-color: #000 !important; color: #000 !important; }
  .section { padding: 20px 0 !important; }
  .section--dark { background: #fff !important; color: #000 !important; }
  .docente-info h2, .docente-info .bio { color: #000 !important; }
}