/* =====================================================================
   EDUTEC de los Andes - Estilos del sitio público
   Los colores --primary y --accent se toman del panel (Ajustes).
   ===================================================================== */
:root {
  --primary: #0C2457;
  --primary-2: #17346F;
  --primary-dark: #081A40;
  --accent: #FFC233;
  --ink: #10203F;
  --muted: #4A5875;
  --line: #E3E9F4;
  --soft: #F4F7FC;
  --white: #FFFFFF;
  --ok: #1F6B3A;
  --wa: #25D366;
  --wa-ink: #08361C;
  --radius: 22px;
  --shadow: 0 18px 40px rgba(12, 36, 87, .14);
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--white); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: #1F4FA8; }
a:hover { color: var(--primary); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--primary); margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; transition: transform .15s, filter .15s, background .15s; }
.btn:hover { filter: brightness(.95); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: var(--primary); }
.btn-accent:hover { color: var(--primary); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,.45); color: #fff; background: transparent; }
.btn-outline-light:hover { color: #fff; background: rgba(255,255,255,.08); }
.btn-wa { background: var(--wa); color: var(--wa-ink); }
.btn-wa:hover { color: var(--wa-ink); }
.btn-soft-wa { background: #E8F7EE; color: #12663A; }
.btn-soft-wa:hover { color: #12663A; }
.btn-sm { min-height: 44px; padding: 10px 16px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }

/* ---------- Barra superior ---------- */
.topbar { background: var(--primary); color: #DCE6F8; font-size: 14px; }
.topbar .container { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #fff; font-weight: 600; text-decoration: none; }
.sede-picker { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sede-picker > span { font-weight: 600; margin-right: 2px; }
.chip { min-height: 34px; padding: 6px 14px; border-radius: 999px; font: 700 13px var(--font-body); cursor: pointer; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #DCE6F8; }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: var(--primary); }
.chip-light { min-height: 44px; padding: 10px 18px; font-size: 14px; border-color: #C9D4E8; background: #fff; color: var(--primary); }
.chip-light.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip-dark { min-height: 44px; padding: 10px 18px; font-size: 14px; color: #fff; border-color: rgba(255,255,255,.35); }

/* ---------- Encabezado / menú ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 52px; width: auto; }
.brand-mark { width: 48px; height: 48px; border-radius: 14px; background: var(--primary); color: var(--accent); display: flex; align-items: center; justify-content: center; font: 800 20px var(--font-display); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font: 800 20px var(--font-display); color: var(--primary); }
.brand-text small { font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a { padding: 10px 12px; border-radius: 10px; color: #35425E; font-weight: 600; font-size: 15px; text-decoration: none; }
.main-nav a:hover, .main-nav a.is-current { color: var(--primary); background: var(--soft); }
.main-nav .btn { margin-left: 8px; color: var(--primary); }
.nav-toggle { display: none; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; align-items: center; justify-content: center; color: var(--primary); }
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 16px 20px; gap: 2px; display: none; box-shadow: 0 20px 30px rgba(12,36,87,.08); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 14px 12px; }
  .main-nav .btn { margin: 8px 0 0; }
}

/* ---------- Hero / slider ---------- */
.hero { background: var(--primary); color: #fff; overflow: hidden; position: relative; }
.hero-slides { position: relative; }
.slide { display: none; }
.slide.is-active { display: block; animation: fadeIn .6s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.slide-inner { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 40px; }
.slide-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.slide-tag { align-self: flex-start; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.slide-text h1, .slide-text h2 { color: #fff; font-weight: 800; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.05; letter-spacing: -0.02em; }
.slide-text p { margin: 0; font-size: 19px; line-height: 1.55; color: #C9D6F0; max-width: 540px; }
.slide-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.slide-media { flex: 1 1 440px; min-width: 0; position: relative; }
.slide-media .ph, .slide-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px; border: 1px solid rgba(255,255,255,.18); }
.ph { background: var(--primary-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #C9D6F0; text-align: center; padding: 24px; font-weight: 600; }
.hero-badge { position: absolute; left: -18px; bottom: 28px; background: #fff; color: var(--primary); border-radius: 18px; padding: 14px 20px; box-shadow: 0 20px 40px rgba(0,0,0,.25); display: flex; gap: 12px; align-items: center; }
.hero-badge .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--accent); display: flex; align-items: center; justify-content: center; }
.hero-badge strong { display: block; font: 800 16px var(--font-display); }
.hero-badge span { font-size: 13px; color: var(--muted); }
.hero-controls { display: flex; gap: 14px; align-items: center; padding-bottom: 40px; }
.hero-arrow { width: 46px; height: 46px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.hero-arrow:hover { background: rgba(255,255,255,.1); }
.hero-dots { display: flex; gap: 8px; align-items: center; }
.hero-dots button { width: 12px; height: 12px; border: 0; padding: 0; border-radius: 999px; background: rgba(255,255,255,.4); cursor: pointer; transition: width .3s, background .3s; }
.hero-dots button.is-active { width: 36px; background: var(--accent); }
@media (max-width: 640px) { .hero-badge { left: 12px; bottom: 12px; padding: 10px 14px; } .slide-inner { padding-top: 40px; gap: 32px; } }

/* ---------- Cifras ---------- */
.stats { background: var(--accent); color: var(--primary); }
.stats .container { display: flex; flex-wrap: wrap; gap: 24px; padding-top: 30px; padding-bottom: 30px; }
.stat { flex: 1 1 200px; display: flex; flex-direction: column; }
.stat strong { font: 800 40px var(--font-display); line-height: 1.1; }
.stat span { font-weight: 600; }

/* ---------- Secciones ---------- */
.section { padding: 88px 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--primary); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.eyebrow { display: block; font-weight: 700; color: #1F4FA8; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; margin-bottom: 12px; }
.section-dark .eyebrow { color: var(--accent); }
.section-title { font-weight: 800; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; }
.section-lead { font-size: 18px; line-height: 1.6; color: var(--muted); margin: 14px 0 0; max-width: 640px; }
.section-head { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Tarjetas de programa ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.card { flex: 1 1 340px; min-width: 0; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { display: block; position: relative; aspect-ratio: 16 / 9; background: var(--primary-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .ph { width: 100%; height: 100%; }
.card-num { position: absolute; top: 16px; left: 16px; width: 48px; height: 48px; border-radius: 14px; background: var(--accent); color: var(--primary); display: flex; align-items: center; justify-content: center; font: 800 18px var(--font-display); }
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-body h3 { font-size: 21px; font-weight: 700; }
.card-body h3 a { color: inherit; text-decoration: none; }
.card-body p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--muted); flex: 1; }
.card-avail { font-size: 13px; font-weight: 600; color: var(--ok); }
.card-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.card-actions .btn { flex: 1 1 auto; }
.card.is-hidden { display: none; }
.empty-sede { display: none; flex: 1 1 100%; padding: 32px; border: 2px dashed #B7C5E0; border-radius: var(--radius); text-align: center; color: var(--muted); background: #fff; }
.empty-sede.is-visible { display: block; }

/* ---------- Por qué ---------- */
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split > * { flex: 1 1 420px; min-width: 0; }
.benefits { display: flex; flex-wrap: wrap; gap: 18px; }
.benefit { flex: 1 1 240px; background: var(--soft); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.benefit h3 { font-size: 18px; }
.benefit p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 15px; }
.benefit svg { color: #1F4FA8; }

/* ---------- Sedes ---------- */
.sede-wrap { display: flex; flex-wrap: wrap; gap: 28px; }
.sede-card { flex: 1 1 380px; min-width: 0; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.sede-card h3 { font-size: 28px; }
.sede-badge { align-self: flex-start; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--accent); color: var(--primary); }
.sede-badge.is-aliado { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.sede-field { display: flex; flex-direction: column; gap: 4px; }
.sede-field small { font-size: 13px; color: #A9BBDD; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.sede-field span { font-size: 17px; }
.sede-social { display: flex; flex-wrap: wrap; gap: 10px; }
.sede-social a { min-height: 44px; display: inline-flex; align-items: center; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; }
.sede-social a:hover { background: rgba(255,255,255,.1); }
.sede-map { flex: 1 1 520px; min-width: 0; min-height: 360px; border-radius: 24px; overflow: hidden; background: var(--primary-2); border: 1px solid rgba(255,255,255,.14); }
.sede-map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }
.sede-map .ph { height: 100%; min-height: 360px; }
.sede-note { margin: 0; color: #C9D6F0; line-height: 1.55; font-size: 15px; }
[data-sede-panel] { display: none; }
[data-sede-panel].is-active { display: flex; }

/* ---------- Formularios ---------- */
.form-card { background: #fff; border-radius: 24px; padding: 32px; box-shadow: 0 24px 60px rgba(12,36,87,.10); display: flex; flex-direction: column; gap: 16px; }
.form-row { display: flex; flex-wrap: wrap; gap: 16px; }
.field { flex: 1 1 220px; display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; color: var(--primary); }
.field input, .field select, .field textarea { padding: 14px 16px; border-radius: 12px; border: 1px solid #C9D4E8; font-size: 16px; font-family: inherit; background: #fff; color: var(--ink); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #1F4FA8; box-shadow: 0 0 0 3px rgba(31,79,168,.15); }
.form-card > .field { flex: none; }
.portal .eyebrow { color: var(--accent); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 16px 20px; border-radius: 14px; font-weight: 600; line-height: 1.5; }
.alert-ok { background: #E8F7EE; color: #12663A; }
.alert-error { background: #FDECEC; color: #9B1C1C; }
.alert .btn { margin-top: 12px; }

/* ---------- Noticias ---------- */
.news-card .card-media { aspect-ratio: 16 / 10; }
.news-meta { font-size: 13px; font-weight: 700; color: #1F4FA8; }
.news-card h3 { font-size: 19px; line-height: 1.3; }

/* ---------- Testimonios ---------- */
.testi { flex: 1 1 320px; min-width: 0; margin: 0; background: #fff; border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 18px; border: 1px solid var(--line); }
.testi-q { font: 800 56px/0.6 var(--font-display); color: var(--accent); }
.testi blockquote { margin: 0; font-size: 17px; line-height: 1.6; flex: 1; }
.testi figcaption { display: flex; gap: 12px; align-items: center; }
.testi figcaption img, .testi .avatar { width: 52px; height: 52px; border-radius: 999px; object-fit: cover; background: #DCE5F5; flex: none; }
.testi .avatar { display: flex; align-items: center; justify-content: center; font: 800 18px var(--font-display); color: var(--primary); }
.testi figcaption strong { display: block; color: var(--primary); }
.testi figcaption span { font-size: 14px; color: var(--muted); }

/* ---------- Zona estudiantes ---------- */
.portal { background: var(--primary); border-radius: 28px; padding: 40px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; color: #fff; }
.portal h2 { color: #fff; font-size: 32px; font-weight: 800; }
.portal-links { flex: 2 1 560px; display: flex; flex-wrap: wrap; gap: 12px; }
.portal-links a, .portal-links summary { flex: 1 1 150px; min-height: 58px; padding: 16px; border-radius: 16px; background: rgba(255,255,255,.1); color: #fff; text-decoration: none; font-weight: 700; text-align: center; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.portal-links a:hover, .portal-links summary:hover { background: rgba(255,255,255,.18); color: #fff; }
.portal-links a.is-main { background: var(--accent); color: var(--primary); font-weight: 800; }
.portal-links details { flex: 1 1 150px; position: relative; display: flex; }
.portal-links details summary { list-style: none; flex: 1; }
.portal-links details summary::-webkit-details-marker { display: none; }
.portal-links .dropdown { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border-radius: 14px; padding: 8px; box-shadow: var(--shadow); z-index: 5; display: flex; flex-direction: column; gap: 4px; }
.portal-links .dropdown a { background: transparent; color: var(--primary); min-height: 44px; flex: none; }
.portal-links .dropdown a:hover { background: var(--soft); color: var(--primary); }

/* ---------- Preguntas ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 860px; margin: 0 auto; }
.faq { border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.faq summary { padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; font-size: 17px; font-weight: 700; color: var(--primary); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 26px; color: #1F4FA8; line-height: 1; }
.faq[open] summary::after { content: '−'; }
.faq-a { padding: 0 24px 22px; color: var(--muted); line-height: 1.6; font-size: 16px; }
.faq-a p:last-child { margin: 0; }

/* ---------- Páginas internas ---------- */
.page-hero { background: var(--primary); color: #fff; padding: 64px 0 56px; }
.page-hero h1 { color: #fff; font-size: clamp(32px, 4vw, 52px); font-weight: 800; }
.page-hero p { color: #C9D6F0; font-size: 18px; margin: 14px 0 0; max-width: 720px; }
.page-hero .eyebrow { color: var(--accent); }
.breadcrumb { font-size: 14px; color: #A9BBDD; margin-bottom: 14px; }
.breadcrumb a { color: #DCE6F8; text-decoration: none; }
.prose { font-size: 17px; line-height: 1.7; color: #24324F; }
.prose h2 { font-size: 26px; margin: 36px 0 14px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.detail { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.detail-main { flex: 2 1 560px; min-width: 0; }
.detail-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 100px; }
.detail-img { width: 100%; border-radius: 24px; aspect-ratio: 16/9; object-fit: cover; margin-bottom: 32px; }
.facts { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.fact { flex: 1 1 180px; background: var(--soft); border-radius: 16px; padding: 18px; }
.fact small { display: block; font-size: 12px; font-weight: 700; color: #1F4FA8; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.fact strong { color: var(--primary); }
.plan { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.plan li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 0; }
.plan li::before { content: ''; flex: none; width: 10px; height: 10px; border-radius: 999px; background: var(--accent); margin-top: 8px; }
.side-box { background: var(--soft); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.side-box h3 { font-size: 19px; }
.sede-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.sede-line:first-of-type { border-top: 0; }
.sede-line small { display: block; color: var(--muted); }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; font-weight: 700; color: var(--primary); }
.pagination .is-current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- Detalle de programa ---------- */
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hero-pills span { padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); font-size: 14px; font-weight: 700; color: #fff; }
.hero-pills span.is-hl { background: var(--accent); border-color: var(--accent); color: var(--primary); }
.titulos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; margin-bottom: 20px; }
.titulo-item { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: 18px; background: var(--primary); color: #fff; }
.titulo-item.is-extra { background: var(--soft); color: var(--primary); border: 2px dashed var(--accent); }
.titulo-item small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .8; margin-bottom: 4px; }
.titulo-item strong { font: 700 17px/1.35 var(--font-display); }
.titulo-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.block { margin-top: 40px; }
.block-title { display: flex; align-items: center; gap: 10px; font-size: 24px; margin-bottom: 18px; }
.block-title svg { color: #1F4FA8; flex: none; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 10px 20px; }
.checklist li { position: relative; padding: 10px 12px 10px 38px; border-radius: 12px; background: var(--soft); line-height: 1.45; font-size: 15.5px; }
.checklist li::before { content: ''; position: absolute; left: 12px; top: 13px; width: 16px; height: 16px; border-radius: 999px; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230C2457' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { padding: 9px 14px; border-radius: 999px; border: 1px solid #C9D4E8; background: #fff; font-size: 14.5px; font-weight: 600; color: #24324F; }
.tags-strong span { background: #EEF3FC; border-color: #EEF3FC; color: var(--primary); }
.res-item { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.res-item:first-of-type { border-top: 0; padding-top: 0; }
.res-ic { flex: none; width: 38px; height: 38px; border-radius: 10px; background: #fff; color: #1F4FA8; display: flex; align-items: center; justify-content: center; }
.res-item strong { display: block; color: var(--primary); font-size: 15px; line-height: 1.35; }
.res-item small { display: block; color: var(--muted); font-size: 13.5px; }
.res-item a { display: inline-block; margin-top: 6px; font-weight: 700; font-size: 14px; }
.card-extra { align-self: flex-start; padding: 5px 10px; border-radius: 8px; background: #FFF4D6; color: #7A5200; font-size: 12.5px; font-weight: 700; }

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.gallery button { padding: 0; border: 0; border-radius: 16px; overflow: hidden; cursor: zoom-in; background: var(--soft); aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery button:hover img { transform: scale(1.04); }
.lightbox { position: fixed; inset: 0; background: rgba(5, 12, 30, .92); z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 84vh; max-width: 100%; border-radius: 12px; }
.lightbox figcaption { color: #DCE6F8; text-align: center; margin-top: 12px; }
.lightbox button { position: absolute; width: 52px; height: 52px; border-radius: 999px; border: 0; background: rgba(255,255,255,.15); color: #fff; cursor: pointer; font-size: 24px; }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- Pie de página ---------- */
.site-footer { background: var(--primary-dark); color: #C9D6F0; }
.site-footer .container { padding-top: 64px; padding-bottom: 32px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px; margin-bottom: 40px; }
.footer-cols > div { flex: 1 1 220px; display: flex; flex-direction: column; gap: 6px; line-height: 1.5; }
.footer-brand { font: 800 24px var(--font-display); color: #fff; }
.footer-brand span { color: var(--accent); }
.footer-cols strong { color: #fff; font-size: 16px; }
.footer-cols .tag { font-size: 13px; font-weight: 700; color: var(--accent); }
.footer-cols a { color: #DCE6F8; text-decoration: none; }
.footer-cols a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 14px; }
.footer-bottom a { color: #DCE6F8; }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 20px; border-radius: 999px; background: var(--wa); color: var(--wa-ink); text-decoration: none; font-weight: 800; box-shadow: 0 14px 30px rgba(0,0,0,.22); }
.wa-float:hover { color: var(--wa-ink); transform: translateY(-2px); }
@media (max-width: 520px) { .wa-float span { display: none; } .wa-float { padding: 14px; } }

/* ---------- Animación al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .slide.is-active { animation: none; } html { scroll-behavior: auto; } }
