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

:root {
  --navy: #0D1F3C;
  --navy-mid: #152B50;
  --navy-light: #1E3A6E;
  --gold: #C8972A;
  --gold-light: #E8B84B;
  --gold-pale: #FDF3DC;
  --white: #FFFFFF;
  --gray-50: #F8F9FA;
  --gray-100: #F1F3F5;
  --gray-200: #E9ECEF;
  --gray-400: #868E96;
  --gray-600: #495057;
  --gray-800: #212529;
  --success: #198754;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
}

/* ── TOPBAR ── */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.topbar span { display: flex; align-items: center; gap: 6px; }
.topbar .badge {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 2px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── NAVBAR ── */
nav {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.nav-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.nav-logo {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
}
.nav-name { line-height: 1.25; }
.nav-name strong { display: block; font-size: 0.95rem; font-weight: 700; color: var(--navy); }
.nav-name span { font-size: 0.75rem; color: var(--gray-400); font-weight: 400; }
.nav-cta {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 24px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--gold-light); }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #1a4a8a 100%);
  color: var(--white);
  padding: 80px 40px 0;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  max-width: 1160px;
  margin: 0 auto;
  align-items: end;
}
.hero-bg {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #1a4a8a 100%);
  padding-bottom: 0;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,151,42,0.15);
  border: 1px solid rgba(200,151,42,0.4);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--gold-light);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--white);
}
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  max-width: 480px;
  line-height: 1.7;
}
.hero-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 40px;
}
.hero-stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat span { font-size: 0.8rem; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.04em; }

/* ── FORM CARD ── */
.form-card {
  background: var(--white);
  border-radius: 16px 16px 0 0;
  padding: 36px 32px 40px;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.2);
  color: var(--gray-800);
}
.form-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.form-card-sub {
  font-size: 0.82rem;
  color: var(--gray-400);
  margin-bottom: 24px;
}
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,151,42,0.12); }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23868E96' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.form-group optgroup { font-weight: 700; color: var(--navy); font-size: 0.8rem; }
.form-group optgroup option { font-weight: 400; color: var(--gray-800); }
.form-group textarea { resize: none; height: 72px; }
.btn-submit {
  width: 100%;
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 6px;
  transition: background 0.2s, transform 0.1s;
  letter-spacing: 0.02em;
}
.btn-submit:hover { background: var(--navy-light); transform: translateY(-1px); }
.btn-submit:active { transform: translateY(0); }
.form-privacy {
  font-size: 0.72rem;
  color: var(--gray-400);
  text-align: center;
  margin-top: 10px;
}

/* ── SECTION WRAPPER ── */
.section { padding: 80px 40px; }
.section-inner { max-width: 1160px; margin: 0 auto; }
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 1rem;
  color: var(--gray-600);
  max-width: 620px;
  line-height: 1.75;
}

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--navy);
  padding: 28px 40px;
}
.trust-bar-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
}
.trust-icon {
  width: 36px; height: 36px;
  background: rgba(200,151,42,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.trust-item strong { display: block; color: var(--white); font-weight: 600; font-size: 0.9rem; }
.trust-divider { width: 1px; height: 36px; background: rgba(255,255,255,0.15); }

/* ── PROCESO DE ADMISIÓN ── */
.proceso-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.paso {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  padding: 28px 24px;
  position: relative;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.paso:hover { box-shadow: 0 8px 32px rgba(13,31,60,0.1); border-color: var(--gold); }
.paso-num {
  width: 40px; height: 40px;
  background: var(--navy);
  color: var(--gold-light);
  font-weight: 800;
  font-size: 1rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.paso h3 { font-size: 0.95rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.paso p { font-size: 0.85rem; color: var(--gray-600); line-height: 1.65; }
.paso-connector {
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 1.2rem;
  z-index: 1;
}
.paso:last-child .paso-connector { display: none; }

/* ── POR QUÉ CFQ ── */
.why-section { background: var(--gray-50); }
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 48px;
}
.why-features { display: flex; flex-direction: column; gap: 20px; }
.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--white);
  border-radius: 10px;
  border-left: 4px solid var(--gold);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.feature-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.feature-item h4 { font-size: 0.95rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.feature-item p { font-size: 0.85rem; color: var(--gray-600); line-height: 1.6; }
.why-visual {
  background: var(--navy);
  border-radius: 16px;
  padding: 40px 36px;
  color: var(--white);
}
.why-visual h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--gold-light);
}
.why-visual p { font-size: 0.9rem; color: rgba(255,255,255,0.75); margin-bottom: 28px; line-height: 1.7; }
.why-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.why-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.88rem; color: rgba(255,255,255,0.9);
}
.why-list li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── NIVELES ACADÉMICOS ── */
.niveles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.nivel-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--gray-200);
  transition: box-shadow 0.2s;
}
.nivel-card:hover { box-shadow: 0 10px 40px rgba(13,31,60,0.12); }
.nivel-header {
  background: var(--navy);
  color: var(--white);
  padding: 24px;
}
.nivel-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 8px;
}
.nivel-header h3 { font-size: 1.15rem; font-weight: 700; }
.nivel-header p { font-size: 0.82rem; color: rgba(255,255,255,0.65); margin-top: 4px; }
.nivel-body { padding: 24px; background: var(--white); }
.nivel-body ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.nivel-body ul li {
  font-size: 0.85rem;
  color: var(--gray-600);
  display: flex; align-items: center; gap: 8px;
}
.nivel-body ul li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  font-size: 0.8rem;
}

/* ── INFRAESTRUCTURA ── */
.infra-section { background: var(--navy); color: var(--white); }
.infra-section .section-title { color: var(--white); }
.infra-section .section-desc { color: rgba(255,255,255,0.7); }
.infra-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.infra-item {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 24px;
  transition: background 0.2s;
}
.infra-item:hover { background: rgba(200,151,42,0.1); border-color: rgba(200,151,42,0.3); }
.infra-item .icon { font-size: 1.6rem; margin-bottom: 12px; }
.infra-item h4 { font-size: 0.9rem; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.infra-item p { font-size: 0.82rem; color: rgba(255,255,255,0.6); line-height: 1.6; }

/* ── TALLERES ── */
.talleres-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.taller-tag {
  background: var(--gold-pale);
  border: 1.5px solid rgba(200,151,42,0.3);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 30px;
  display: flex; align-items: center; gap: 6px;
}

/* ── INGLÉS ── */
.ingles-banner {
  background: linear-gradient(135deg, var(--gold) 0%, #E8A820 100%);
  border-radius: 16px;
  padding: 48px 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  margin-top: 48px;
}
.ingles-banner h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 10px;
}
.ingles-banner p { font-size: 0.95rem; color: rgba(13,31,60,0.8); line-height: 1.7; max-width: 480px; }
.ingles-badge {
  text-align: center;
  background: var(--navy);
  color: var(--white);
  padding: 24px 32px;
  border-radius: 12px;
  white-space: nowrap;
}
.ingles-badge strong { display: block; font-size: 2.5rem; font-weight: 800; color: var(--gold-light); line-height: 1; }
.ingles-badge span { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.7); }

/* ── CTA FINAL ── */
.cta-final {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  text-align: center;
  padding: 80px 40px;
}
.cta-final .section-title { color: var(--white); max-width: 600px; margin: 0 auto 16px; }
.cta-final p { color: rgba(255,255,255,0.75); margin: 0 auto 36px; max-width: 520px; font-size: 1rem; }
.cta-btn {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 40px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.02em;
}
.cta-btn:hover { background: var(--gold-light); transform: translateY(-2px); }

/* ── CONTACTO / MAPA ── */
.contacto-section { background: var(--gray-50); }
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
  align-items: start;
}
.contacto-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 24px;
}
.contacto-item {
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 20px;
}
.contacto-item .ci-icon {
  width: 40px; height: 40px;
  background: var(--navy);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.contacto-item strong { display: block; font-size: 0.85rem; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.contacto-item span { font-size: 0.85rem; color: var(--gray-600); }
.mapa-embed {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}
.mapa-embed iframe { display: block; width: 100%; height: 320px; border: none; }

/* ── FOOTER ── */
footer {
  background: var(--gray-800);
  color: rgba(255,255,255,0.6);
  padding: 32px 40px;
  text-align: center;
  font-size: 0.82rem;
}
footer strong { color: var(--white); }

/* ── PÁGINA DE GRACIAS ── */
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
}

.confirmation-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 8px 48px rgba(13,31,60,0.1);
  max-width: 600px;
  width: 100%;
  overflow: hidden;
}

.card-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 48px 48px 40px;
  text-align: center;
  color: var(--white);
}

.check-circle {
  width: 72px; height: 72px;
  background: rgba(200,151,42,0.2);
  border: 3px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin: 0 auto 24px;
  animation: popIn 0.5s cubic-bezier(0.175,0.885,0.32,1.275) both;
}

@keyframes popIn {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.card-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--white);
  margin-bottom: 8px;
}
.card-header p {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  line-height: 1.65;
}

.card-body { padding: 40px 48px; }

.next-steps-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.step-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.step-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.step-num {
  width: 32px; height: 32px;
  background: var(--navy);
  color: var(--gold-light);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.step-item strong { display: block; font-size: 0.9rem; color: var(--navy); margin-bottom: 2px; }
.step-item span { font-size: 0.83rem; color: var(--gray-600); line-height: 1.55; }

.info-box {
  background: var(--gold-pale);
  border: 1.5px solid rgba(200,151,42,0.3);
  border-radius: 10px;
  padding: 18px 20px;
  font-size: 0.85rem;
  color: var(--navy);
  margin-bottom: 28px;
  line-height: 1.6;
}
.info-box strong { font-weight: 700; }

.btn-back {
  display: block;
  width: 100%;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  text-align: center;
  padding: 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.btn-back:hover { background: var(--navy-light); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding: 60px 24px 0; gap: 40px; }
  .form-card { border-radius: 16px; }
  .proceso-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .niveles-grid { grid-template-columns: 1fr 1fr; }
  .infra-grid { grid-template-columns: 1fr 1fr; }
  .ingles-banner { grid-template-columns: 1fr; text-align: center; padding: 36px 28px; }
  .contacto-grid { grid-template-columns: 1fr; }
  nav { padding: 12px 20px; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 2rem; }
  .proceso-grid { grid-template-columns: 1fr; }
  .niveles-grid { grid-template-columns: 1fr; }
  .infra-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 20px; }
  .section-title { font-size: 1.8rem; }
  .hero-stats { gap: 20px; }
  .trust-divider { display: none; }
  .card-header, .card-body { padding: 32px 24px; }
}
