/* ===== TOKENS ===== */
:root {
  --navy:        #0D1B3E;
  --navy-light:  #1A2F5E;
  --gold:        #C9A84C;
  --gold-light:  #E8C46A;
  --white:       #FFFFFF;
  --off-white:   #F7F8FC;
  --gray-50:     #F9FAFB;
  --gray-100:    #F3F4F6;
  --gray-200:    #E5E7EB;
  --gray-400:    #9CA3AF;
  --gray-600:    #4B5563;
  --gray-900:    #111827;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;

  --shadow-sm:   0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:   0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:   0 12px 40px rgba(0,0,0,.14);

  --transition:  150ms cubic-bezier(.4,0,.2,1);
  --transition-md: 250ms cubic-bezier(.4,0,.2,1);

  --container:   1200px;
  --nav-h:       72px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, select, textarea { font: inherit; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: 'EB Garamond', Georgia, serif;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.2rem; font-weight: 600; font-family: 'Inter', sans-serif; }

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2.5rem);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius-md);
  font-size: .95rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
  border: 2px solid transparent;
}
.btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201,168,76,.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.45);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.08);
}
.btn-nav {
  background: var(--gold);
  color: var(--navy);
  padding: .55rem 1.25rem;
  font-size: .88rem;
}
.btn-nav:hover { background: var(--gold-light); }
.btn-full { width: 100%; justify-content: center; }

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,27,62,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  height: var(--nav-h);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}
.logo-mark {
  background: var(--gold);
  color: var(--navy);
  font-family: 'EB Garamond', serif;
  font-weight: 800;
  font-size: 1rem;
  padding: .3rem .55rem;
  border-radius: var(--radius-sm);
  letter-spacing: .04em;
}
.logo-mark-sm { font-size: .85rem; padding: .25rem .5rem; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-main {
  color: var(--white);
  font-weight: 600;
  font-size: .95rem;
  font-family: 'EB Garamond', serif;
}
.logo-sub { color: var(--gold); font-size: .72rem; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  color: rgba(255,255,255,.78);
  font-size: .9rem;
  font-weight: 500;
  transition: color var(--transition);
  padding: .25rem 0;
  position: relative;
}
.nav-links a:not(.btn-nav)::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--transition-md);
}
.nav-links a:not(.btn-nav):hover { color: var(--white); }
.nav-links a:not(.btn-nav):hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition-md);
}

.mobile-menu {
  display: none;
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 1rem 0;
}
.mobile-menu.open { display: block; }
.mobile-menu ul { display: flex; flex-direction: column; }
.mobile-menu a {
  display: block;
  padding: .75rem 1.5rem;
  color: rgba(255,255,255,.85);
  font-weight: 500;
  transition: background var(--transition);
}
.mobile-menu a:hover { background: rgba(255,255,255,.06); color: var(--white); }

/* ===== HERO ===== */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  padding: 7rem 0 6rem;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .18;
}
.hero-orb-1 {
  width: 600px; height: 600px;
  background: var(--gold);
  top: -200px; right: -100px;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: #3B82F6;
  bottom: -100px; left: -50px;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
}
.hero-content { max-width: 560px; }
.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 64px rgba(0,0,0,.4);
  border: 3px solid rgba(201,168,76,.3);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(201,168,76,.15);
  border: 1px solid rgba(201,168,76,.35);
  color: var(--gold-light);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}
.hero-title {
  color: var(--white);
  margin-bottom: 1.25rem;
}
.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}
.hero-desc {
  font-size: 1.15rem;
  color: rgba(255,255,255,.75);
  max-width: 560px;
  margin-bottom: 2.25rem;
  line-height: 1.7;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat strong {
  font-size: 1.6rem;
  font-weight: 700;
  font-family: 'EB Garamond', serif;
  color: var(--gold-light);
  line-height: 1;
}
.stat span { font-size: .8rem; color: rgba(255,255,255,.55); margin-top: .2rem; }
.stat-divider { width: 1px; height: 36px; background: rgba(255,255,255,.15); }

/* ===== BANNER FLEX ===== */
.banner-flex {
  background: var(--gold);
  padding: 1rem 0;
}
.banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
}
.banner-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--navy);
  font-size: .9rem;
}
.banner-item strong { font-weight: 700; }
.banner-sep { color: var(--navy); opacity: .4; font-size: 1.4rem; }

/* ===== SECTION HEADER ===== */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header p { color: var(--gray-600); margin-top: .75rem; font-size: 1.05rem; max-width: 600px; margin-inline: auto; }
.section-header-light h2 { color: var(--white); }
.section-header-light p { color: rgba(255,255,255,.7); }
.section-tag {
  display: inline-block;
  background: rgba(201,168,76,.12);
  color: var(--gold);
  border: 1px solid rgba(201,168,76,.3);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: .3rem .85rem;
  border-radius: 100px;
  margin-bottom: .75rem;
}
.section-tag-light {
  background: rgba(201,168,76,.2);
  color: var(--gold-light);
  border-color: rgba(201,168,76,.4);
}

/* ===== PREPARATORIA ===== */
.preparatoria { padding: 6rem 0; background: var(--off-white); }
.prep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.prep-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition-md);
}
.prep-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.prep-icon {
  width: 52px; height: 52px;
  background: rgba(13,27,62,.06);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--navy);
}
.prep-card h3 { font-size: 1.05rem; margin-bottom: .5rem; color: var(--navy); }
.prep-card p { font-size: .9rem; color: var(--gray-600); line-height: 1.6; }

/* ===== LICENCIATURAS ===== */
.licenciaturas { padding: 6rem 0; background: var(--white); }
.lic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.lic-card {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all var(--transition-md);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.lic-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--gold);
  opacity: 0;
  transition: opacity var(--transition);
}
.lic-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
  background: var(--white);
  transform: translateY(-2px);
}
.lic-card:hover::before { opacity: 1; }
.lic-card:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.lic-num {
  font-size: .75rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .06em;
}
.lic-card h3 { font-size: 1rem; color: var(--navy); line-height: 1.3; }
.lic-card p { font-size: .85rem; color: var(--gray-600); flex: 1; }
.lic-arrow {
  font-size: 1.1rem;
  color: var(--gold);
  align-self: flex-end;
  transition: transform var(--transition);
}
.lic-card:hover .lic-arrow { transform: translateX(4px); }

.lic-diplomados {
  text-align: center;
  padding: 1.5rem;
  background: rgba(13,27,62,.04);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--gray-200);
}
.lic-diplomados p { font-size: .95rem; color: var(--gray-600); margin-bottom: .75rem; }
.diplomados-list { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; }
.diplomado-tag {
  background: var(--navy);
  color: var(--gold-light);
  font-size: .8rem;
  font-weight: 600;
  padding: .35rem .85rem;
  border-radius: 100px;
}

/* ===== BENEFICIOS ===== */
.beneficios {
  padding: 6rem 0;
  background: var(--navy);
  color: var(--white);
}
.ben-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.ben-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition-md);
}
.ben-card:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(201,168,76,.35);
  transform: translateY(-3px);
}
.ben-icon {
  width: 48px; height: 48px;
  background: rgba(201,168,76,.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--gold-light);
}
.ben-card h3 { font-size: 1rem; color: var(--white); margin-bottom: .5rem; }
.ben-card p { font-size: .9rem; color: rgba(255,255,255,.62); line-height: 1.6; }

/* ===== NOSOTROS ===== */
.nosotros { padding: 6rem 0; background: var(--off-white); }
.nosotros-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.nosotros-text .section-tag { margin-bottom: .75rem; }
.nosotros-text h2 { margin-bottom: 1rem; color: var(--navy); }
.nosotros-text p { color: var(--gray-600); margin-bottom: 1rem; line-height: 1.75; }
.nosotros-alianzas { margin-top: 1.5rem; }
.alianza-label { font-size: .8rem; font-weight: 600; color: var(--gray-400); letter-spacing: .06em; text-transform: uppercase; display: block; margin-bottom: .5rem; }
.alianzas-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.alianza-badge {
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--navy);
  font-size: .8rem;
  font-weight: 600;
  padding: .35rem .85rem;
  border-radius: 100px;
}
.nosotros-cards { display: flex; flex-direction: column; gap: 1.25rem; }
.mv-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border-left: 4px solid var(--gold);
}
.mv-card h3 { color: var(--navy); font-size: 1rem; margin-bottom: .5rem; }
.mv-card p { color: var(--gray-600); font-size: .92rem; line-height: 1.7; }

/* ===== CONTACTO ===== */
.contacto {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
}
.contacto-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  min-width: 0;
}
.contacto-text {
  min-width: 0;
  box-sizing: border-box;
  padding-right: 1rem;
}
.contacto-text h2 { color: var(--white); margin-bottom: 1rem; }
.contacto-text p { color: rgba(255,255,255,.7); margin-bottom: 2rem; overflow-wrap: break-word; word-break: normal; }
.contacto-datos { display: flex; flex-direction: column; gap: .85rem; }
.dato-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  transition: color var(--transition);
  text-decoration: none;
}
a.dato-item:hover { color: var(--gold-light); }
.dato-item svg { flex-shrink: 0; margin-top: 2px; color: var(--gold); }

/* FORM */
.contacto-form {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  backdrop-filter: blur(8px);
}
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label {
  font-size: .85rem;
  font-weight: 600;
  color: rgba(255,255,255,.8);
}
.form-group label span { color: var(--gold); margin-left: .1rem; }
.form-group input,
.form-group select {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-sm);
  color: var(--white);
  padding: .7rem 1rem;
  font-size: .9rem;
  transition: border-color var(--transition);
  height: 44px;
}
.form-group select option { background: var(--navy-light); color: var(--white); }
.form-group select optgroup { background: var(--navy); color: var(--gold); }
.form-group input::placeholder { color: rgba(255,255,255,.35); }
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,.12);
}
.form-note {
  text-align: center;
  font-size: .78rem;
  color: rgba(255,255,255,.45);
  margin-top: -.25rem;
}

/* ===== FOOTER ===== */
.footer {
  background: #06101F;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--white);
}
.footer-brand strong { display: block; font-size: .9rem; }
.footer-brand span { font-size: .75rem; color: var(--gold); }
.footer-copy { font-size: .78rem; color: rgba(255,255,255,.35); }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { font-size: .78rem; color: rgba(255,255,255,.45); text-decoration: none; transition: color var(--transition); }
.footer-links a:hover { color: var(--gold-light); }

/* ===== TRUST BAR ===== */
.trust-bar {
  background: var(--navy);
  border-bottom: 1px solid rgba(201,168,76,.2);
  padding: .6rem 0;
}
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .45rem;
  color: rgba(255,255,255,.82);
  font-size: .82rem;
}
.trust-item svg { color: var(--gold); flex-shrink: 0; }
.trust-item strong { color: var(--gold-light); }
.trust-sep { color: rgba(255,255,255,.2); font-size: 1.1rem; }

/* ===== TESTIMONIALES ===== */
.testimoniales { padding: 6rem 0; background: var(--gray-50); }
.test-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.test-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: box-shadow var(--transition-md), transform var(--transition-md);
}
.test-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.test-stars { color: #F59E0B; font-size: 1rem; letter-spacing: .05em; }
.test-quote {
  font-size: .93rem;
  color: var(--gray-600);
  line-height: 1.75;
  flex: 1;
  font-style: italic;
}
.test-quote::before { content: '\201C'; color: var(--gold); font-size: 1.4rem; line-height: 0; vertical-align: -.3em; margin-right: .1rem; }
.test-author {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
}
.test-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}
.test-author strong { display: block; font-size: .9rem; color: var(--navy); }
.test-author span { font-size: .75rem; color: var(--gray-400); margin-top: .1rem; display: block; }

/* ===== WHATSAPP FLOTANTE ===== */
.whatsapp-btn {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: .65rem;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  padding: .75rem 1.25rem .75rem 1rem;
  box-shadow: 0 6px 24px rgba(37,211,102,.45);
  font-size: .85rem;
  font-weight: 600;
  transition: transform var(--transition-md), box-shadow var(--transition-md);
  max-width: calc(100vw - 48px);
}
.whatsapp-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 32px rgba(37,211,102,.55);
}
.whatsapp-btn:focus-visible {
  outline: 3px solid #25D366;
  outline-offset: 3px;
}
.whatsapp-label { white-space: nowrap; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  :root { --nav-h: 64px; }

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

  .hero { padding: 5rem 0 4rem; min-height: 80vh; }
  .hero-stats { gap: 1.25rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-image { display: flex; justify-content: center; }
  .hero-image img { max-width: 320px; height: auto; }

  .nosotros-inner,
  .contacto-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .contacto-text { width: 100%; min-width: 0; }
  .contacto-text h2 { font-size: 1.6rem; }
  .contacto-text p { font-size: .9rem; line-height: 1.6; }

  .prep-grid { grid-template-columns: 1fr 1fr; }
  .lic-grid { grid-template-columns: 1fr; }
  .ben-grid { grid-template-columns: 1fr; }

  .banner-inner { flex-direction: column; gap: .5rem; }
  .banner-sep { display: none; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .prep-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .stat-divider { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
