/* ============================================================
   css/styles.css — Fundación Fortaleza
   Paleta oficial: Verde petróleo #0B4951/#062E33 · Ámbar #F5A600
   ============================================================ */

/* ── Reset & Custom Properties ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-dark:        #062E33;
  --bg-dark2:       #0B4951;
  --bg-light:       #F7F9F9;
  --surface:        #FFFFFF;
  --white:          #FFFFFF;
  --text-dark:      #0F172A;
  --text-muted:     #4B6366;
  --gold:           #F5A600;
  --gold-light:     #DC9000;
  --gold-pale:      #FEF7E6;
  --accent-green:   #0B4951;
  --docente-accent: #0B4951;
  --link-accent:    #0B4951;
  --border:         #D1D9DA;
  --shadow-sm:      0 1px 3px rgba(6,46,51,.10);
  --shadow-md:      0 4px 16px rgba(6,46,51,.14);
  --shadow-lg:      0 8px 32px rgba(6,46,51,.18);
  --radius-sm:      6px;
  --radius-md:      12px;
  --radius-lg:      20px;
  --navbar-h:       68px;
  --transition:     .25s cubic-bezier(.4,0,.2,1);
  --ff-heading:     'Playfair Display', Georgia, serif;
  --ff-body:        'Inter', system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-light:       #0D1F21;
    --surface:        #112326;
    --text-dark:      #F1F5F9;
    --text-muted:     #CBD5E1;
    --accent-green:   #5EEAD4;
    --docente-accent: #7DD3C8;
    --link-accent:    #5EEAD4;
    --border:         #1E3D40;
    --shadow-sm:      0 1px 3px rgba(0,0,0,.35);
    --shadow-md:      0 4px 16px rgba(0,0,0,.45);
    --shadow-lg:      0 8px 32px rgba(0,0,0,.55);
    --gold-pale:      #1A1500;
  }
}

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

body {
  font-family: var(--ff-body);
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── Typography ─────────────────────────────────────────── */
h1,h2,h3,h4 { font-family: var(--ff-heading); line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .5rem;
}

/* ── Layout ─────────────────────────────────────────────── */
.container { width: min(100%, 1200px); margin-inline: auto; padding-inline: 1.25rem; }
section { padding-block: 5rem; }

/* ── Skip Link ──────────────────────────────────────────── */
.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  background: var(--gold);
  color: var(--bg-dark);
  padding: .5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* ── Navbar ─────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--navbar-h);
  background: var(--bg-dark);
  box-shadow: 0 2px 12px rgba(0,0,0,.35);
  transition: background var(--transition), box-shadow var(--transition);
}
#navbar.scrolled {
  background: rgba(6,46,51,.96);
  backdrop-filter: blur(12px);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 1.5px solid rgba(245,166,0,.45);
  box-shadow: 0 2px 8px rgba(0,0,0,.22);
  flex-shrink: 0;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-logo-text strong {
  font-family: var(--ff-heading);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
}
.nav-logo-text span {
  color: var(--gold);
  font-size: .68rem;
  letter-spacing: .04em;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.nav-links a {
  color: rgba(255,255,255,.85);
  font-size: .875rem;
  font-weight: 500;
  padding: .4rem .7rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); background: rgba(212,175,55,.1); }

.btn-inscribir {
  background: var(--gold);
  color: var(--bg-dark) !important;
  font-weight: 700 !important;
  padding: .45rem 1.1rem !important;
  border-radius: 2rem !important;
  font-size: .85rem !important;
  transition: background var(--transition), transform var(--transition) !important;
}
.btn-inscribir:hover { background: var(--gold-light) !important; transform: translateY(-1px); }

.nav-admin {
  color: rgba(255,255,255,.45) !important;
  font-size: .78rem !important;
}

/* ── Hamburger Menu — FUERA del header ─────────────────── */
#nav-toggle {
  display: none;
  position: fixed;
  top: calc((var(--navbar-h) - 44px) / 2);
  right: 1.25rem;
  z-index: 1000;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
#nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
  position: absolute;
}
#nav-toggle span:nth-child(1) { transform: translateY(-7px); }
#nav-toggle span:nth-child(3) { transform: translateY(7px); }
#nav-toggle.open span:nth-child(1) { transform: rotate(45deg); }
#nav-toggle.open span:nth-child(2) { opacity: 0; }
#nav-toggle.open span:nth-child(3) { transform: rotate(-45deg); }

#mobile-menu {
  display: none;
  position: fixed;
  top: var(--navbar-h);
  left: 0; right: 0;
  z-index: 850;
  background: var(--bg-dark2);
  padding: 1rem 1.25rem 1.5rem;
  box-shadow: var(--shadow-lg);
  flex-direction: column;
  gap: .25rem;
  transform: translateY(-10px);
  opacity: 0;
  transition: transform .3s, opacity .3s;
}
#mobile-menu.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}
#mobile-menu a {
  color: rgba(255,255,255,.88);
  font-size: 1rem;
  font-weight: 500;
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: background var(--transition);
}
#mobile-menu a:hover { background: rgba(212,175,55,.12); color: var(--gold); }
#mobile-menu .btn-inscribir-mobile {
  margin-top: .75rem;
  display: block;
  text-align: center;
  background: var(--gold);
  color: var(--bg-dark);
  font-weight: 700;
  padding: .75rem;
  border-radius: 2rem;
}

/* ── Hero ───────────────────────────────────────────────── */
#inicio.hero,
#hero {
  width: 100%;
  min-height: 100svh;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark2) 60%, #0E5A64 100%);
  display: flex;
  align-items: center;
  padding-top: var(--navbar-h);
  position: relative;
  overflow: hidden;
}
#inicio.hero::before,
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(245,166,0,.09) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(11,73,81,.28) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}
.hero-content { max-width: 680px; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.5rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: rgba(212,175,55,.12);
  border: 1px solid rgba(212,175,55,.3);
  color: var(--gold);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: .3rem .75rem;
  border-radius: 2rem;
}

.hero-title {
  color: var(--white);
  margin-bottom: .75rem;
  font-weight: 700;
}
.hero-title .accent { color: var(--gold); }

.hero-desc {
  color: #E2F1F2;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 560px;
}

/* Hero search */
.hero-search {
  position: relative;
  margin-bottom: 2rem;
  max-width: 520px;
}
.hero-search input {
  width: 100%;
  padding: .9rem 1rem .9rem 3rem;
  border-radius: 2rem;
  border: 2px solid rgba(212,175,55,.3);
  background: rgba(255,255,255,.07);
  color: var(--white);
  font-size: .95rem;
  font-family: var(--ff-body);
  outline: none;
  transition: border-color var(--transition), background var(--transition);
}
.hero-search input::placeholder { color: rgba(255,255,255,.45); }
.hero-search input:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,.12);
}
.hero-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,.5);
  pointer-events: none;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--ff-body);
  font-size: .9rem;
  font-weight: 600;
  padding: .7rem 1.5rem;
  border-radius: 2rem;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--bg-dark);
  border-color: var(--gold);
}
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(212,175,55,.4); }

.btn-outline {
  background: transparent;
  color: #FFFFFF;
  border-color: rgba(255,255,255,.45);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); background: rgba(245,166,0,.1); transform: translateY(-2px); }

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
}
.btn-whatsapp:hover { background: #1EBE5A; transform: translateY(-2px); }

.btn-brochure {
  background: var(--bg-light);
  color: var(--text-dark);
  border-color: var(--border);
}
.btn-brochure:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

.program-brochure-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--link-accent);
  margin-top: .25rem;
}
.program-brochure-link:hover { color: var(--gold); text-decoration: underline; }

.btn-sm { font-size: .8rem; padding: .45rem 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* Hero deco */
.hero-deco {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  opacity: .6;
}
.hero-deco-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(212,175,55,.18);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  color: var(--white);
}
.hero-deco-card .num {
  font-family: var(--ff-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
}
.hero-deco-card .lbl { font-size: .75rem; color: rgba(255,255,255,.65); margin-top: .2rem; }

/* ── Section Headers ────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: .75rem auto 0;
}

/* ── Filter Tabs ────────────────────────────────────────── */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 2.5rem;
}
.filter-btn {
  padding: .45rem 1.1rem;
  border-radius: 2rem;
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: .85rem;
  font-weight: 600;
  transition: all var(--transition);
  font-family: var(--ff-body);
}
.filter-btn:hover,
.filter-btn.active {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--bg-dark);
}

/* ── Program Cards ──────────────────────────────────────── */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 1.75rem;
}

.program-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.program-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.program-card-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-dark), var(--bg-dark2));
}
.program-card-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(6,46,51,.58) 0%, rgba(6,46,51,0) 48%);
  pointer-events: none;
  z-index: 1;
}
.program-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .4s;
}
.program-card:hover .program-card-cover img { transform: scale(1.04); }
.program-card-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.program-badges {
  position: absolute;
  top: .75rem;
  left: .75rem;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.tag {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .2rem .6rem;
  border-radius: 2rem;
}
.tag-cat {
  background: var(--bg-dark);
  color: var(--gold);
  border: 1px solid rgba(212,175,55,.4);
}
.tag-status {
  font-size: .65rem;
}
.tag-open { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.tag-active { background: #EFF6FF; color: #1D4ED8; border: 1px solid #BFDBFE; }
.tag-soon { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }

.program-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.program-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
}
.program-card-subtitle {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.program-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .75rem;
  font-size: .78rem;
  color: var(--text-muted);
}
.program-card-meta span {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.program-card-docente {
  font-size: .8rem;
  color: var(--docente-accent);
  font-weight: 600;
  margin-top: auto;
  padding-top: .5rem;
  border-top: 1px solid var(--border);
}
.program-card-actions {
  display: flex;
  gap: .6rem;
  padding: 0 1.25rem 1.25rem;
}

/* ── Docentes ───────────────────────────────────────────── */
#docentes { background: var(--bg-dark); }
#docentes .section-header h2,
#docentes .section-header .section-label { color: var(--gold); }
#docentes .section-header p { color: rgba(255,255,255,.65); }

.docentes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 1.5rem;
}

.docente-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(212,175,55,.18);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}
.docente-card:hover {
  background: rgba(212,175,55,.1);
  border-color: rgba(212,175,55,.4);
  transform: translateY(-3px);
}

.docente-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  border: 3px solid rgba(212,175,55,.4);
  object-fit: cover;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212,175,55,.15);
  font-size: 2rem;
  color: var(--gold);
}
.docente-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.docente-name { font-size: .95rem; font-weight: 700; color: #FFFFFF; line-height: 1.3; }
.docente-grado { font-size: .78rem; color: #F5A600; margin: .25rem 0; font-weight: 600; }
.docente-esp { font-size: .78rem; color: #CBD5E1; }
.docente-cta {
  margin-top: .75rem;
  font-size: .78rem;
  color: #F5A600;
  text-decoration: underline;
  font-weight: 600;
}
.docente-card:hover .docente-cta { color: #FFD166; }

/* ── Novedades ──────────────────────────────────────────── */
.novedades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1.5rem;
  align-items: start;
}

.novedad-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.novedad-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.novedad-img {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--bg-dark), var(--accent-green));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  overflow: hidden;
}
.novedad-img img { width: 100%; height: 100%; object-fit: cover; }
.novedad-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; gap: .5rem; }
.novedad-tipo {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
}
.novedad-titulo { font-size: .95rem; font-weight: 700; color: var(--text-dark); line-height: 1.4; }
.novedad-texto { font-size: .83rem; color: var(--text-muted); flex: 1; }
.novedad-fecha { font-size: .75rem; color: var(--text-muted); padding-top: .5rem; border-top: 1px solid var(--border); }
.novedad-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: var(--link-accent);
  font-size: .82rem;
  font-weight: 600;
  margin-top: .5rem;
}
.novedad-link:hover { color: var(--gold); }

/* ── Contact / Preinscripción ───────────────────────────── */
#contacto { background: var(--bg-dark); }
#contacto .section-header h2 { color: var(--white); }
#contacto .section-header .section-label { color: var(--gold); }
#contacto .section-header p { color: rgba(255,255,255,.7); }

.contacto-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contacto-info { color: rgba(255,255,255,.85); }
.contacto-info h3 { color: var(--gold); font-size: 1.25rem; margin-bottom: 1.25rem; }
.contacto-info-list { display: flex; flex-direction: column; gap: .85rem; }
.contacto-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .88rem;
  line-height: 1.5;
}
.contacto-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(212,175,55,.12);
  border: 1px solid rgba(212,175,55,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  font-size: .9rem;
}
.contacto-social {
  display: flex;
  gap: .75rem;
  margin-top: 1.5rem;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1rem;
  border-radius: 2rem;
  font-size: .82rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.8);
  transition: all var(--transition);
}
.social-btn:hover { border-color: var(--gold); color: var(--gold); }

/* Form */
.form-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}
.form-card h3 {
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  font-size: 1.15rem;
}
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: .35rem;
}
.form-group label .req { color: #EF4444; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .7rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--ff-body);
  font-size: .88rem;
  color: var(--text-dark);
  background: var(--bg-light);
  transition: border-color var(--transition), box-shadow var(--transition);
  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(212,175,55,.18);
}
.form-group textarea { resize: vertical; min-height: 90px; }
.form-msg {
  margin-top: .75rem;
  padding: .7rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 600;
  display: none;
}
.form-msg.success { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; display: block; }
.form-msg.error { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; display: block; }
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

/* ── Footer ─────────────────────────────────────────────── */
footer {
  background: var(--bg-dark2);
  border-top: 1px solid rgba(212,175,55,.2);
  padding-block: 3rem;
  color: rgba(255,255,255,.65);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand .nav-logo { margin-bottom: 1rem; }
.footer-brand p { font-size: .85rem; line-height: 1.6; max-width: 300px; }
.footer-col h4 {
  font-family: var(--ff-heading);
  color: var(--gold);
  font-size: .95rem;
  margin-bottom: .75rem;
}
.footer-col a {
  display: block;
  font-size: .84rem;
  color: rgba(255,255,255,.6);
  padding: .2rem 0;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  font-size: .78rem;
}

/* ── WhatsApp Floating Btn ──────────────────────────────── */
#wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 800;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: transform var(--transition), box-shadow var(--transition);
  color: #fff;
  font-size: 1.6rem;
}
#wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.6); }
#wa-float-tooltip {
  position: fixed;
  bottom: 32px;
  right: 92px;
  background: var(--bg-dark);
  color: var(--white);
  font-size: .8rem;
  padding: .4rem .85rem;
  border-radius: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(212,175,55,.2);
}
#wa-float:hover + #wa-float-tooltip { opacity: 1; }

/* ── Modal ──────────────────────────────────────────────── */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(5,41,43,.72);
  backdrop-filter: blur(4px);
  padding: 1rem;
  overflow-y: auto;
  align-items: center;
  justify-content: center;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalIn .2s ease;
}
@keyframes modalIn {
  from { transform: scale(.95) translateY(10px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-light);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
  border: none;
}
.modal-close:hover { background: #FEE2E2; color: #EF4444; }
.modal-header {
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.modal-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(212,175,55,.12);
  border: 2px solid rgba(212,175,55,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
  overflow: hidden;
}
.modal-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.modal-header-info h3 { color: var(--text-dark); font-size: 1.1rem; }
.modal-header-info .grado { color: var(--gold); font-size: .82rem; font-weight: 700; margin: .15rem 0; }
.modal-header-info .esp { color: var(--text-muted); font-size: .82rem; }
.modal-body { padding: 1.5rem 2rem 2rem; }
.modal-body p { color: var(--text-muted); font-size: .88rem; line-height: 1.7; }

/* ── Loading skeleton ───────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, color-mix(in srgb, var(--border) 70%, var(--bg-light)) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.skeleton-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.skeleton-cover { aspect-ratio: 16/10; }
.skeleton-body { padding: 1.25rem; display: flex; flex-direction: column; gap: .75rem; }
.skeleton-line { height: 14px; border-radius: 3px; }
.skeleton-line.w80 { width: 80%; }
.skeleton-line.w60 { width: 60%; }
.skeleton-line.w40 { width: 40%; }

/* ── Programa page (programa.html) ──────────────────────── */
#programa-hero {
  background: linear-gradient(135deg, var(--bg-dark), var(--bg-dark2));
  padding-top: calc(var(--navbar-h) + 3rem);
  padding-bottom: 3rem;
  color: var(--white);
}
.programa-breadcrumb {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.programa-breadcrumb a { color: var(--gold); }
.programa-meta-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.programa-title { margin-bottom: .5rem; }
.programa-subtitle { color: var(--gold); font-size: 1.05rem; margin-bottom: 1.25rem; }
.programa-info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  font-size: .88rem;
  color: rgba(255,255,255,.75);
}
.programa-info-row span { display: flex; align-items: center; gap: .4rem; }

.programa-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
  padding-top: 3rem;
}
.programa-cover-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--bg-dark), var(--bg-dark2));
}
.programa-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.programa-card-aside {
  position: sticky;
  top: calc(var(--navbar-h) + 1.5rem);
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.programa-inversion {
  font-family: var(--ff-heading);
  font-size: 1.5rem;
  color: var(--accent-green);
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.programa-aside-actions { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1.5rem; }
.programa-aside-meta { font-size: .82rem; color: var(--text-muted); display: flex; flex-direction: column; gap: .5rem; }
.programa-aside-meta span { display: flex; align-items: center; gap: .4rem; }
.programa-share {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.programa-share-label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .6rem;
}
.programa-share-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
}
.btn-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .48rem .65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-light);
  color: var(--text-dark);
  font-size: .78rem;
  font-weight: 600;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.btn-share:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.programa-section { margin-bottom: 2.5rem; }
.programa-section h3 {
  color: var(--text-dark);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.temario-list { display: flex; flex-direction: column; gap: .5rem; }
.temario-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .6rem .8rem;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold);
  font-size: .88rem;
  color: var(--text-dark);
}
.temario-item::before {
  content: attr(data-num);
  color: var(--gold);
  font-weight: 700;
  font-size: .78rem;
  flex-shrink: 0;
  min-width: 1.4rem;
}

/* ── Utility ────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-3 { margin-bottom: 1.5rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.fw-bold { font-weight: 700; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .programa-layout { grid-template-columns: 1fr; }
  .programa-card-aside { position: static; order: -1; }
}

@media (max-width: 768px) {
  :root { --navbar-h: 60px; }
  section { padding-block: 3.5rem; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-deco { display: none; }
  .contacto-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .nav-links { display: none; }
  #nav-toggle { display: flex; }
  .programs-grid { grid-template-columns: 1fr; }
  .docentes-grid { grid-template-columns: repeat(2, 1fr); }
  .novedades-grid { grid-template-columns: 1fr; }
  .hero-search { max-width: 100%; }
  #wa-float { bottom: 18px; right: 16px; }
  #wa-float-tooltip { bottom: 26px; right: 84px; }
}

@media (max-width: 480px) {
  .docentes-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { justify-content: center; }
  .program-card-actions { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .modal-header { flex-direction: column; text-align: center; }
  .modal-body, .modal-header { padding-inline: 1.25rem; }
}

/* ── Verificador de Certificados ────────────────────────── */
.verify-search-box {
  display: flex;
  gap: .65rem;
  max-width: 520px;
  margin: 0 auto;
}
.verify-search-box input {
  flex: 1;
  padding: .85rem 1.2rem;
  border-radius: 2rem;
  border: 2px solid rgba(245,166,0,.4);
  background: rgba(255,255,255,.08);
  color: #FFFFFF;
  font-size: .95rem;
  font-family: var(--ff-body);
  outline: none;
  text-transform: uppercase;
}
.verify-search-box input::placeholder { color: rgba(255,255,255,.5); text-transform: none; }
.verify-search-box input:focus { border-color: var(--gold); background: rgba(255,255,255,.14); }
.verify-empty {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  font-size: .95rem;
}
.verify-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.verify-vigente { border-top: 5px solid #10B981; }
.verify-anulado { border-top: 5px solid #EF4444; }
.verify-notfound { border-top: 5px solid #F59E0B; }
.verify-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .35rem .85rem;
  border-radius: 2rem;
  margin-bottom: 1rem;
}
.verify-badge-ok { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.verify-badge-danger { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.verify-badge-warn { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }
.verify-student { font-size: 1.5rem; color: var(--text-dark); margin-bottom: .25rem; }
.verify-program { font-size: 1rem; color: var(--gold); font-weight: 600; margin-bottom: 1.5rem; }
.verify-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.verify-details div span {
  display: block;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  margin-bottom: .15rem;
}
.verify-details div strong {
  font-size: .92rem;
  color: var(--text-dark);
}
@media (max-width: 560px) {
  .verify-search-box { flex-direction: column; }
}

/* ── Reproductor de Video Híbrido ───────────────────────── */
.video-embed-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #071717;
}
.video-embed-wrap.video-vertical {
  aspect-ratio: auto;
  width: 100%;
  height: 460px;
  background: #071717;
}
.video-embed-wrap.video-vertical iframe {
  position: static;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.video-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-native-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #071717;
}
.video-native-wrap.video-vertical {
  aspect-ratio: auto;
  width: 100%;
  height: 460px;
}
.video-native-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #000;
}
.video-native-wrap video:fullscreen,
.video-native-wrap video:-webkit-full-screen {
  object-fit: contain;
}
.novedad-media {
  width: 100%;
  overflow: hidden;
}
.pub-card--video .video-embed-wrap,
.pub-card--video .video-native-wrap {
  border-radius: 0;
}
.pub-card--video .novedad-body {
  padding: .75rem 1rem .9rem;
  gap: .3rem;
}
.pub-card--video .novedad-titulo {
  font-size: .92rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pub-card--video .novedad-texto {
  font-size: .78rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pub-card--video .novedad-fecha {
  font-size: .72rem;
  padding-top: .35rem;
}
.programa-video-section .video-embed-wrap.video-vertical,
.programa-video-section .video-native-wrap.video-vertical {
  max-width: 420px;
  height: 560px;
  margin-inline: auto;
}
.video-social-wrap {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.video-fallback-link {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-align: right;
  padding: .2rem .75rem 0;
  display: block;
}
.video-fallback-link:hover { color: var(--gold); text-decoration: underline; }
@media (max-width: 768px) {
  .video-embed-wrap.video-vertical,
  .video-native-wrap.video-vertical {
    height: min(72vh, 540px);
  }
  .programa-video-section .video-embed-wrap.video-vertical,
  .programa-video-section .video-native-wrap.video-vertical {
    max-width: 100%;
    height: min(72vh, 540px);
  }
}
.video-resolve-pending {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #071717;
  color: #E2F1F2;
  font-size: .85rem;
  border-radius: var(--radius-md);
}
.video-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(245,166,0,.3);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spinVideo .7s linear infinite;
}
@keyframes spinVideo { to { transform: rotate(360deg); } }
.video-fb-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #062E33, #0B4951);
  border: 1px solid rgba(245,166,0,.35);
  color: #FFFFFF;
  text-decoration: none;
  transition: transform var(--transition), border-color var(--transition);
}
.video-fb-card:hover { transform: scale(1.01); border-color: var(--gold); }
.video-play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(245,166,0,.92);
  color: #062E33;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  padding-left: 3px;
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
}
.video-fb-label {
  font-size: .85rem;
  font-weight: 700;
  color: #FFFFFF;
  background: rgba(6,46,51,.75);
  padding: .3rem .85rem;
  border-radius: 2rem;
}

/* Prevent body scroll when mobile menu is open */
body.menu-open { overflow: hidden; }
