:root {
  --navy: #071833;
  --navy2: #0b2a5c;
  --rose: #c2185b;
  --rose2: #f43f7d;
  --gold: #e8b923;
  --sky: #22d3ee;
  --mint: #2dd4bf;
  --paper: #f6f4ef;
  --ink: #122033;
  --white: #fff;
  --shadow: 0 18px 50px rgba(7, 24, 51, .18);
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Outfit, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1240px, calc(100% - 28px)); margin-inline: auto; }

.topbar {
  background: linear-gradient(90deg, #071833, #c2185b 70%, #e8b923);
  color: #fff;
  font-size: 13px;
  padding: 8px 0;
}
.topbar-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.topbar-links { display: flex; gap: 14px; flex-wrap: wrap; }
.topbar a { color: #fff; opacity: .92; font-weight: 600; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: #fff;
  border-bottom: 1px solid #e8e2d8;
  box-shadow: 0 8px 24px rgba(7,24,51,.06);
}
.header-inner { display: flex; flex-direction: column; padding: 8px 0 0; }
.header-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { width: 62px; height: 62px; object-fit: contain; flex-shrink: 0; }
.brand strong { display: block; color: var(--navy); font-size: 16px; line-height: 1.15; }
.brand small { color: var(--rose); font-weight: 600; font-size: 11px; display: block; max-width: 280px; }
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.header-btn { padding: 9px 14px !important; font-size: 13px !important; white-space: nowrap; }

.nav-toggle { display: none; border: 0; background: var(--navy); color: #fff; width: 44px; height: 44px; border-radius: 12px; font-size: 22px; }
.main-nav { border-top: 1px solid #f1ebe3; }
.main-nav > ul {
  display: flex; flex-wrap: wrap; gap: 0; list-style: none; margin: 0; padding: 0;
  justify-content: flex-start;
}
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: block; padding: 11px 11px; font-weight: 700; font-size: 13px;
  color: var(--navy2); white-space: nowrap; border-bottom: 3px solid transparent;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li:hover > a { color: var(--rose); border-bottom-color: var(--rose); background: #fff7fa; }
.main-nav .has-sub > ul {
  display: none; position: absolute; top: 100%; left: 0; min-width: 260px; z-index: 30;
  background: #fff; border-radius: 0 0 16px 16px; box-shadow: var(--shadow); padding: 8px; list-style: none;
}
.main-nav .has-sub:hover > ul, .main-nav .has-sub:focus-within > ul { display: block; }
.main-nav .has-sub ul a { padding: 9px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--navy); }
.main-nav .has-sub ul a:hover { background: #fff1f5; color: var(--rose); }

.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  background: #25d366; color: #fff; font-weight: 800; padding: 12px 16px;
  border-radius: 999px; box-shadow: 0 10px 24px rgba(37,211,102,.4);
}

.hero { position: relative; min-height: 78vh; overflow: hidden; color: #fff; }
.hero-track { display: flex; transition: transform .7s ease; height: 78vh; }
.hero-slide { min-width: 100%; position: relative; }
.hero-slide img { width: 100%; height: 78vh; object-fit: cover; }
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,24,51,.82), rgba(194,24,91,.35) 70%, transparent);
}
.hero-copy { position: absolute; inset: 0; display: flex; align-items: center; z-index: 2; }
.hero-copy h1 { font-family: Fraunces, serif; font-size: clamp(32px, 5vw, 62px); margin: 0 0 12px; max-width: 760px; }
.hero-copy p { max-width: 560px; font-size: 18px; opacity: .95; }
.hero-nav { position: absolute; right: 24px; bottom: 24px; z-index: 3; display: flex; gap: 8px; }
.hero-nav button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: var(--navy); font-size: 20px; cursor: pointer; }

.btn, .btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; font-weight: 700; border: 0; cursor: pointer;
}
.btn { background: linear-gradient(90deg, var(--rose), #ff6b9d); color: #fff; box-shadow: 0 10px 24px rgba(194,24,91,.35); }
.btn-ghost { background: #fff; color: var(--navy); }
.btn-gold { background: linear-gradient(90deg, #e8b923, #f5d76e); color: var(--navy); }

.section { padding: 72px 0; }
.section h2 { font-family: Fraunces, serif; font-size: clamp(28px, 4vw, 42px); margin: 0 0 10px; color: var(--navy); }
.lead { color: #4b5568; max-width: 720px; }
.kicker { color: var(--rose); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.stat { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 34px; color: var(--rose); font-family: Fraunces, serif; }

.grid-3, .grid-4, .grid-2 { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card img { height: 190px; width: 100%; object-fit: cover; }
.card-body { padding: 18px 18px 22px; }
.card h3 { margin: 0 0 8px; color: var(--navy); font-size: 20px; }
.meta { font-size: 13px; color: #64748b; display: grid; gap: 4px; margin: 10px 0; }
.pill { display: inline-block; background: #fff1f5; color: var(--rose); padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }

.notice {
  background: linear-gradient(135deg, #0b2a5c, #c2185b);
  color: #fff; border-radius: 28px; padding: 28px; display: grid; grid-template-columns: 1.4fr .8fr; gap: 20px;
}
.notice a { color: #ffe082; font-weight: 700; }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.split img { border-radius: 28px; height: 420px; width: 100%; object-fit: cover; box-shadow: var(--shadow); }

.cta {
  background: url('../img/hero-graduacion.jpg') center/cover;
  position: relative; color: #fff; padding: 90px 0; margin: 20px 0 0;
}
.cta::before { content:""; position:absolute; inset:0; background: linear-gradient(90deg, rgba(7,24,51,.88), rgba(194,24,91,.55)); }
.cta .container { position: relative; z-index: 1; }

.page-hero {
  background: linear-gradient(120deg, #071833 0%, #0b2a5c 45%, #c2185b 100%);
  color: #fff; padding: 64px 0 48px;
}
.page-hero h1 { font-family: Fraunces, serif; margin: 0 0 8px; font-size: clamp(28px, 4vw, 48px); }
.prose { background: #fff; border-radius: 28px; padding: 32px; box-shadow: var(--shadow); line-height: 1.75; }
.prose h2, .prose h3 { color: var(--navy); }
.prose p { margin: 0 0 14px; color: #334155; }

.site-footer { background: #071833; color: #dbe4f0; margin-top: 40px; position: relative; }
.footer-wave { height: 18px; background: linear-gradient(90deg, #c2185b, #e8b923, #22d3ee); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 28px; padding: 42px 0; }
.footer-logo { width: 92px; margin-bottom: 12px; }
.site-footer h3 { color: #fff; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin: 8px 0; }
.motto { color: #e8b923; font-family: Fraunces, serif; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a { background: #12284d; padding: 8px 12px; border-radius: 999px; }
.visits { margin-top: 16px; background: #12284d; padding: 12px; border-radius: 16px; }
.copy { background: #04101f; padding: 14px 0; font-size: 13px; }

.form { display: grid; gap: 12px; }
.form input, .form textarea, .form select {
  width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid #d9d3c8; font: inherit;
}
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery img { height: 180px; width: 100%; object-fit: cover; border-radius: 16px; }

.flash { padding: 12px 14px; border-radius: 14px; margin: 12px 0; }
.flash-ok { background: #d1fae5; color: #065f46; }
.flash-err { background: #fee2e2; color: #991b1b; }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .brand small { display: none; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; padding: 12px 16px 20px; box-shadow: var(--shadow); border-top: 0; }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; }
  .main-nav > ul > li > a { white-space: normal; border-bottom: 0; }
  .main-nav .has-sub > ul { position: static; box-shadow: none; padding-left: 12px; display: none; border-radius: 0; }
  .main-nav .has-sub.open > ul { display: block; }
  .stats, .grid-3, .grid-4, .grid-2, .split, .notice, .footer-grid, .gallery { grid-template-columns: 1fr; }
  .hero, .hero-track, .hero-slide img { height: 70vh; }
  .header-btn.btn-ghost { display: none; }
}
@media (max-width: 640px) {
  .header-btn { display: none; }
  .header-btn.btn { display: inline-flex; padding: 8px 10px !important; font-size: 12px !important; }
}
