/* ============================================================
   SEMINARIO LEBP — Subsitio principal
   Diseño editorial inspirado en historia-arte.com
   Mantiene tokens tipográficos de NodoIA
   ============================================================ */

/* ---------- Variables (extiende styles.css del padre) ---------- */
:root {
    --slbg: #f5f0e6;
    --slbg-card: #ede8dc;
    --slbg-hover: #e5dfd0;
    --sl-purple: #2d5a27;
    --sl-purple-dim: rgba(45, 90, 39, 0.15);
    --sl-purple-faint: rgba(45, 90, 39, 0.06);
    --sl-text: #2a2a2a;
    --sl-text-2: #5a6a50;
    --sl-text-3: #8a9a7a;
    --sl-border: rgba(45, 90, 39, 0.12);
    --sl-border-mid: rgba(45, 90, 39, 0.25);
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ticker-h: 52px;
    --nav-h: 60px;
}

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

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

body {
    font-family: var(--font-body);
    background: var(--slbg);
    color: var(--sl-text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

::selection { background: var(--sl-purple); color: var(--slbg); }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--slbg); }
::-webkit-scrollbar-thumb { background: var(--sl-text-3); border-radius: 2px; }

/* ============================================================
   TICKER — Banda dinámica de hitos de IA
   ============================================================ */
.sl-ticker {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    height: var(--ticker-h);
    background: linear-gradient(135deg, #e8e2d4 0%, #e3dccc 100%);
    border-bottom: 1px solid var(--sl-border);
    display: flex;
    align-items: center;
    overflow: hidden;
    transform: translateY(-100%);
    animation: ticker-drop 0.6s 0.3s var(--ease-out) forwards;
}

@keyframes ticker-drop {
    to { transform: translateY(0); }
}

.ticker-inner {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    padding: 0 1.5rem;
    position: relative;
}

.ticker-tag {
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sl-purple);
    background: var(--sl-purple-faint);
    border: 1px solid var(--sl-border-mid);
    border-radius: 4px;
    padding: 0.2em 0.7em;
    margin-right: 1rem;
    white-space: nowrap;
}

.ticker-year {
    flex-shrink: 0;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--sl-purple);
    margin-right: 0.75rem;
    white-space: nowrap;
}

.ticker-separator {
    flex-shrink: 0;
    width: 1px;
    height: 20px;
    background: var(--sl-border-mid);
    margin-right: 0.75rem;
}

.ticker-event {
    flex-shrink: 0;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--sl-text);
    margin-right: 0.75rem;
    white-space: nowrap;
}

.ticker-desc {
    font-size: 0.78rem;
    color: var(--sl-text-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.ticker-close {
    flex-shrink: 0;
    margin-left: 1rem;
    background: none;
    border: none;
    color: var(--sl-text-3);
    cursor: pointer;
    padding: 0.4rem;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.ticker-close:hover { color: var(--sl-text); }
.ticker-close svg { width: 14px; height: 14px; }

/* ============================================================
   NAV — Barra de navegación slim
   ============================================================ */
.sl-nav {
    position: fixed;
    top: var(--ticker-h);
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    background: rgba(245, 240, 230, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--sl-border);
    transition: background 0.3s;
}

.sl-nav.scrolled {
    background: rgba(245, 240, 230, 0.98);
    box-shadow: 0 2px 24px rgba(0,0,0,0.08);
}

.sl-nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--sl-text);
}

.sl-nav-brand-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sl-purple);
    box-shadow: 0 0 8px var(--sl-purple);
    animation: nav-pulse 3s ease-in-out infinite;
}

@keyframes nav-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.sl-nav-brand-name {
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--sl-text-2);
}

.sl-nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.sl-nav-links a {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--sl-text-2);
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
    padding-bottom: 2px;
}

.sl-nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--sl-purple);
    transform: scaleX(0);
    transition: transform 0.25s var(--ease-out);
    transform-origin: left;
}

.sl-nav-links a:hover,
.sl-nav-links a.active {
    color: var(--sl-text);
}

.sl-nav-links a:hover::after,
.sl-nav-links a.active::after {
    transform: scaleX(1);
}

.sl-nav-links a.nav-nodoia {
    color: rgba(106, 176, 76, 0.8);
}
.sl-nav-links a.nav-nodoia:hover { color: #6ab04c; }
.sl-nav-links a.nav-nodoia::after { background: #6ab04c; }

/* ---------- Mobile hamburger ---------- */
.sl-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--sl-text);
    cursor: pointer;
    padding: 0.5rem;
}
.sl-nav-toggle svg {
    width: 24px;
    height: 24px;
}
.sl-nav-toggle line {
    transition: all 0.3s ease;
}

/* ============================================================
   HERO — Cabecera editorial del seminario
   ============================================================ */
.sl-hero {
    padding-top: calc(var(--ticker-h) + var(--nav-h) + 5rem);
    padding-bottom: 4rem;
    padding-left: clamp(1.5rem, 6vw, 7rem);
    padding-right: clamp(1.5rem, 6vw, 7rem);
    border-bottom: 1px solid var(--sl-border);
    position: relative;
    overflow: hidden;
}

.sl-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(45,90,39,0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(106,176,76,0.04) 0%, transparent 50%);
    pointer-events: none;
}

/* Thin top rule — editorial detail */
.sl-hero-rule {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.sl-hero-rule-line {
    flex: 1;
    height: 1px;
    background: var(--sl-border);
}

.sl-hero-rule-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--sl-purple);
}

.sl-hero-kicker {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sl-text-2);
    margin-bottom: 1rem;
}

.sl-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 1.25rem;
    max-width: 16ch;
    position: relative;
    z-index: 1;
}

.sl-hero-title span { color: var(--sl-purple); }

.sl-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.sl-hero-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--sl-text-2);
}

.sl-hero-meta-item svg {
    width: 14px;
    height: 14px;
    color: var(--sl-purple);
    opacity: 0.7;
    flex-shrink: 0;
}

/* ============================================================
   SECTIONS GRID — Paneles con zoom al hover (estilo HA)
   ============================================================ */
.sl-grid {
    display: grid;
    grid-template-columns: 60fr 40fr;
    grid-template-rows: 340px 260px;
    gap: 2px;
    background: var(--sl-border);
    border-top: 2px solid var(--sl-border);
}

/* First panel takes full height on left */
.sl-panel:first-child {
    grid-row: 1 / 3;
}

/* Bottom 3 panels span second row */
.sl-panel:nth-child(2) { grid-column: 2; grid-row: 1; }
.sl-panel:nth-child(3) { grid-column: 1; grid-row: 2; /* actually this uses a 3-col split */ }

/* Re-layout: 2 rows, row1=2cols(60/40), row2=3cols(equal) */
.sl-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    grid-template-rows: auto;
    gap: 2px;
    background: rgba(45, 90, 39, 0.08);
}

.sl-grid-top {
    display: grid;
    grid-template-columns: 60fr 40fr;
    gap: 2px;
    height: 360px;
}

.sl-grid-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2px;
    height: 280px;
}

.sl-grid-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: rgba(45, 90, 39, 0.06);
}

/* Individual panel */
.sl-panel {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: var(--slbg-card);
    display: block;
    text-decoration: none;
}

.sl-panel-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.05);
    transition: transform 0.7s var(--ease-out), filter 0.5s;
    filter: saturate(0.6) brightness(0.85) sepia(0.15);
}

.sl-panel:hover .sl-panel-img {
    transform: scale(1.12);
    filter: saturate(0.7) brightness(0.92) sepia(0.1);
}

/* Gradient overlay */
.sl-panel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        transparent 30%,
        rgba(245, 240, 230, 0.7) 100%
    );
    transition: opacity 0.5s;
}

.sl-panel:hover .sl-panel-overlay {
    background: linear-gradient(
        160deg,
        rgba(245, 240, 230, 0.1) 0%,
        rgba(245, 240, 230, 0.6) 100%
    );
}

/* Panel text */
.sl-panel-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 1.75rem;
    transform: translateY(4px);
    transition: transform 0.4s var(--ease-out);
    z-index: 2;
}

.sl-panel:hover .sl-panel-body { transform: translateY(0); }

.sl-panel-num {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    color: var(--sl-purple);
    opacity: 0.8;
    margin-bottom: 0.4rem;
}

.sl-panel-title {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--sl-text);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.sl-panel-sub {
    font-size: 0.76rem;
    color: var(--sl-text-2);
    opacity: 0;
    transition: opacity 0.35s 0.05s;
    line-height: 1.4;
}

.sl-panel:hover .sl-panel-sub { opacity: 1; }

/* Arrow on hover */
.sl-panel-arrow {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(45, 90, 39, 0.3);
    background: rgba(245, 240, 230, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.35s var(--ease-out);
    z-index: 2;
}

.sl-panel:hover .sl-panel-arrow {
    opacity: 1;
    transform: scale(1);
}

.sl-panel-arrow svg {
    width: 14px;
    height: 14px;
    color: var(--sl-purple);
}

/* ============================================================
   INNER PAGES — Layout para páginas de sección
   ============================================================ */
.sl-page {
    padding-top: calc(var(--ticker-h) + var(--nav-h));
    min-height: 100vh;
}

.sl-page-hero {
    padding: 3.5rem clamp(1.5rem, 7vw, 8rem) 2.5rem;
    border-bottom: 1px solid var(--sl-border);
    position: relative;
    overflow: hidden;
}

.sl-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 15% 60%, rgba(45,90,39,0.07) 0%, transparent 55%);
    pointer-events: none;
}

.sl-page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sl-text-3);
}

.sl-page-breadcrumb a {
    color: var(--sl-purple);
    text-decoration: none;
    transition: opacity 0.2s;
}

.sl-page-breadcrumb a:hover { opacity: 0.7; }

.sl-page-breadcrumb-sep { opacity: 0.4; }

.sl-page-num {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--sl-purple);
    opacity: 0.7;
    margin-bottom: 0.75rem;
}

.sl-page-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.1;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.sl-page-title span { color: var(--sl-purple); }

.sl-page-lead {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: var(--sl-text-2);
    max-width: 60ch;
    line-height: 1.65;
    position: relative;
    z-index: 1;
}

/* Content area */
.sl-page-content {
    padding: 3rem clamp(1.5rem, 7vw, 8rem) 5rem;
    max-width: 1100px;
}

/* ---------- Typography blocks ---------- */
.sl-section-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--sl-purple);
    margin-bottom: 0.5rem;
    display: block;
}

.sl-section-title {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--sl-text);
}

.sl-text {
    font-size: 0.9rem;
    color: var(--sl-text-2);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.sl-divider {
    height: 1px;
    background: var(--sl-border);
    margin: 2.5rem 0;
}

/* ---------- Info card grid ---------- */
.sl-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1px;
    background: var(--sl-border);
    border: 1px solid var(--sl-border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2.5rem;
}

.sl-card {
    background: var(--slbg-card);
    padding: 1.5rem;
    transition: background 0.2s;
}

.sl-card:hover { background: var(--slbg-hover); }

.sl-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--sl-purple-faint);
    border: 1px solid var(--sl-border-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
    color: var(--sl-purple);
}

.sl-card-icon svg { width: 18px; height: 18px; }

.sl-card-title {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-bottom: 0.4rem;
    color: var(--sl-text);
}

.sl-card-val {
    font-size: 0.8rem;
    color: var(--sl-text-2);
    line-height: 1.5;
}

/* ---------- Stat highlight ---------- */
.sl-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 2rem 0;
}

.sl-stat {
    flex: 1;
    min-width: 140px;
    padding: 1.25rem 1.5rem;
    background: var(--sl-purple-faint);
    border: 1px solid var(--sl-border-mid);
    border-radius: 10px;
    text-align: center;
}

.sl-stat-num {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--sl-purple);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.sl-stat-label {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sl-text-2);
}

/* ---------- Núcleos / Ejes ---------- */
.sl-nucleos {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--sl-border);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--sl-border);
}

.sl-nucleo {
    background: var(--slbg-card);
    padding: 0;
    overflow: hidden;
    transition: background 0.2s;
}

.sl-nucleo-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    user-select: none;
}

.sl-nucleo-header:hover { background: var(--slbg-hover); }

.sl-nucleo-num {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sl-purple);
    opacity: 0.3;
    min-width: 2.2rem;
    line-height: 1;
}

.sl-nucleo-info { flex: 1; }

.sl-nucleo-weeks {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sl-purple);
    opacity: 0.7;
    margin-bottom: 0.3rem;
}

.sl-nucleo-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--sl-text);
}

.sl-nucleo-toggle {
    color: var(--sl-text-3);
    transition: transform 0.3s var(--ease-out), color 0.2s;
}

.sl-nucleo-toggle svg { width: 18px; height: 18px; }

.sl-nucleo.open .sl-nucleo-toggle {
    transform: rotate(180deg);
    color: var(--sl-purple);
}

.sl-nucleo-body {
    display: none;
    padding: 0 1.5rem 1.5rem 4rem;
}

.sl-nucleo.open .sl-nucleo-body { display: block; }

.sl-nucleo-body ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.sl-nucleo-body li {
    font-size: 0.84rem;
    color: var(--sl-text-2);
    padding-left: 1.1rem;
    position: relative;
    line-height: 1.55;
}

.sl-nucleo-body li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--sl-purple);
    opacity: 0.5;
    font-size: 0.7rem;
}

/* ---------- Cronograma ---------- */
.sl-calendar {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--sl-border);
    border-radius: 10px;
    overflow: hidden;
}

.sl-cal-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 0;
    border-bottom: 1px solid var(--sl-border);
    transition: background 0.2s;
}

.sl-cal-item:last-child { border-bottom: none; }
.sl-cal-item:hover { background: var(--sl-purple-faint); }

.sl-cal-date {
    padding: 1.25rem 1.25rem;
    border-right: 1px solid var(--sl-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--slbg-card);
}

.sl-cal-day {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sl-purple);
    line-height: 1;
    margin-bottom: 0.15rem;
}

.sl-cal-month {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sl-text-3);
}

.sl-cal-body {
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sl-cal-type {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 1px;
}

.sl-cal-type.zoom { background: #6ab04c; box-shadow: 0 0 6px #6ab04c; }
.sl-cal-type.presencial { background: var(--sl-purple); box-shadow: 0 0 6px var(--sl-purple); }
.sl-cal-type.autonomo { background: #c4a35a; box-shadow: 0 0 6px #c4a35a; }
.sl-cal-type.cierre { background: #7eb89a; box-shadow: 0 0 6px #7eb89a; }

.sl-cal-detail {}

.sl-cal-tag {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sl-text-3);
    margin-bottom: 0.25rem;
}

.sl-cal-desc {
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--sl-text);
    line-height: 1.3;
}

.sl-cal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
    padding: 1rem 1.25rem;
    background: var(--sl-purple-faint);
    border: 1px solid var(--sl-border);
    border-radius: 8px;
}

.sl-cal-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--sl-text-2);
}

.sl-cal-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* ---------- Coming Soon — Lecturas / Actividades ---------- */
.sl-coming {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 55vh;
    text-align: center;
    padding: 2rem;
    position: relative;
}

.sl-coming-graphic {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 2.5rem;
}

.sl-coming-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid;
    animation: ring-pulse 4s ease-in-out infinite;
}

.sl-coming-ring:nth-child(1) {
    inset: 0;
    border-color: rgba(45, 90, 39, 0.4);
    animation-delay: 0s;
}

.sl-coming-ring:nth-child(2) {
    inset: 16px;
    border-color: rgba(45, 90, 39, 0.3);
    animation-delay: 0.6s;
}

.sl-coming-ring:nth-child(3) {
    inset: 32px;
    border-color: rgba(45, 90, 39, 0.2);
    animation-delay: 1.2s;
}

@keyframes ring-pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.06); opacity: 1; }
}

.sl-coming-icon {
    position: absolute;
    inset: 48px;
    border-radius: 50%;
    background: var(--sl-purple-faint);
    border: 1px solid var(--sl-border-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sl-purple);
}

.sl-coming-icon svg { width: 28px; height: 28px; }

.sl-coming-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3em 1em;
    background: var(--sl-purple-faint);
    border: 1px solid var(--sl-border-mid);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sl-purple);
    margin-bottom: 1.5rem;
}

.sl-coming-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sl-purple);
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(45,90,39,0.5); }
    50% { box-shadow: 0 0 0 5px rgba(45,90,39,0); }
}

.sl-coming-title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
    color: var(--sl-text);
}

.sl-coming-sub {
    font-size: 0.9rem;
    color: var(--sl-text-2);
    max-width: 36ch;
    line-height: 1.6;
}

/* ---------- Bibliography ---------- */
.sl-bib {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--sl-border);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--sl-border);
    margin-top: 1.5rem;
}

.sl-bib-item {
    background: var(--slbg-card);
    padding: 1rem 1.25rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: start;
    transition: background 0.2s;
}

.sl-bib-item:hover { background: var(--slbg-hover); }

.sl-bib-year {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    color: var(--sl-purple);
    opacity: 0.8;
    padding-top: 0.15rem;
    min-width: 2.5rem;
}

.sl-bib-text {
    font-size: 0.8rem;
    color: var(--sl-text-2);
    line-height: 1.55;
}

.sl-bib-text strong {
    color: var(--sl-text);
    font-weight: 500;
}

/* ---------- Footer ---------- */
.sl-footer {
    border-top: 1px solid var(--sl-border);
    padding: 2rem clamp(1.5rem, 7vw, 8rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.sl-footer p {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--sl-text-3);
    letter-spacing: 0.04em;
}

.sl-footer a {
    color: var(--sl-purple);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.sl-footer a:hover { opacity: 1; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .sl-grid-top {
        grid-template-columns: 1fr;
        height: auto;
    }

    .sl-grid-top .sl-panel { height: 260px; }

    .sl-grid-bottom {
        grid-template-columns: 1fr 1fr;
        height: auto;
    }

    .sl-grid-bottom .sl-panel { height: 200px; }
}

@media (max-width: 620px) {
    .sl-nav { padding: 0 1.25rem; }

    .sl-nav-toggle { display: flex; }

    .sl-nav-links {
        position: fixed;
        top: calc(var(--ticker-h) + var(--nav-h));
        left: 0;
        right: 0;
        background: rgba(245, 240, 230, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 1.25rem;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        pointer-events: none;
        border-bottom: 1px solid var(--sl-border);
        box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    }

    .sl-nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .sl-nav-links a {
        font-size: 0.9rem;
        padding: 0.4rem 0;
    }

    .sl-grid-bottom {
        grid-template-columns: 1fr;
    }

    .sl-grid-bottom .sl-panel { height: 180px; }

    .ticker-desc { display: none; }

    .sl-page-content { padding-left: 1.25rem; padding-right: 1.25rem; }

    .sl-cal-item { grid-template-columns: 80px 1fr; }
}

@media (max-width: 400px) {
    :root { --ticker-h: 44px; --nav-h: 52px; }

    .sl-nav-brand-name { display: none; }
}

/* ============================================================
   HITO PAGES — Shared components for milestone pages
   ============================================================ */

/* ---------- Hito meta badges ---------- */
.sl-hito-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1rem;
}

.sl-hito-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25em 0.8em;
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.sl-hito-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.sl-hito-badge.zoom {
    background: rgba(45, 90, 39, 0.1);
    border: 1px solid rgba(45, 106, 79, 0.25);
    color: var(--sl-purple);
}
.sl-hito-badge.zoom .sl-hito-badge-dot {
    background: #2d6a4f;
    box-shadow: 0 0 5px #2d6a4f;
}

.sl-hito-badge.presencial {
    background: rgba(122, 79, 40, 0.08);
    border: 1px solid rgba(122, 79, 40, 0.2);
    color: #7a4f28;
}
.sl-hito-badge.presencial .sl-hito-badge-dot {
    background: #7a4f28;
    box-shadow: 0 0 5px #7a4f28;
}

.sl-hito-badge.autonomo {
    background: rgba(74, 112, 64, 0.08);
    border: 1px solid rgba(74, 112, 64, 0.2);
    color: #4a7040;
}
.sl-hito-badge.autonomo .sl-hito-badge-dot {
    background: #4a7040;
    box-shadow: 0 0 5px #4a7040;
}

.sl-hito-badge-date {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    color: var(--sl-text-3);
}

/* ---------- YouTube video embed ---------- */
.sl-video-featured {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid var(--sl-border-mid);
    margin-bottom: 0.75rem;
    background: #0f1e0b;
}

.sl-video-featured iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.sl-video-caption {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    color: var(--sl-text-3);
    margin-bottom: 2.5rem;
}

/* ---------- Video slide (3 or 4 videos) ---------- */
.sl-video-slide {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.sl-video-slide-dark {
    background: #1a2e14;
    border: 1px solid rgba(45, 90, 39, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
}

.sl-video-slide-dark .sl-video-slide {
    margin-bottom: 0;
}

.sl-video-slide-item {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.sl-video-slide-item .sl-video-thumb {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--sl-border);
    background: #0f1e0b;
}

.sl-video-slide-item .sl-video-thumb iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}

.sl-video-slide-item-title {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--sl-text);
    line-height: 1.3;
}

.sl-video-slide-dark .sl-video-slide-item-title {
    color: #f0ebe0;
}

.sl-video-slide-item-sub {
    font-size: 0.72rem;
    color: var(--sl-text-3);
    line-height: 1.4;
}

.sl-video-slide-dark .sl-video-slide-item-sub {
    color: #7a9a68;
}

/* ---------- Reading list ---------- */
.sl-reading-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--sl-border);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--sl-border);
    margin-bottom: 2.5rem;
}

.sl-reading-item {
    background: var(--slbg-card);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: background 0.2s;
}

.sl-reading-item:hover {
    background: var(--slbg-hover);
}

.sl-reading-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(45, 90, 39, 0.08);
    border: 1px solid var(--sl-border-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sl-purple);
    margin-top: 2px;
}

.sl-reading-icon svg {
    width: 18px;
    height: 18px;
}

.sl-reading-info {
    flex: 1;
}

.sl-reading-title {
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--sl-text);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.sl-reading-author {
    font-size: 0.78rem;
    color: var(--sl-text-2);
    line-height: 1.4;
}

.sl-reading-badge {
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.2em 0.6em;
    border-radius: 3px;
    background: rgba(45, 90, 39, 0.08);
    color: var(--sl-purple);
    margin-top: 4px;
}

/* ---------- Activities section ---------- */
.sl-activities {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--sl-border);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--sl-border);
    margin-bottom: 1.5rem;
}

.sl-activity-item {
    background: var(--slbg-card);
    padding: 1.25rem 1.5rem;
    transition: background 0.2s;
}

.sl-activity-item:hover {
    background: var(--slbg-hover);
}

.sl-activity-title {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--sl-text);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sl-activity-title-icon {
    font-size: 1rem;
}

.sl-activity-desc {
    font-size: 0.82rem;
    color: var(--sl-text-2);
    line-height: 1.65;
}

.sl-activity-desc ul {
    list-style: none;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.sl-activity-desc li {
    padding-left: 1.1rem;
    position: relative;
}

.sl-activity-desc li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--sl-purple);
    font-size: 0.75rem;
}

/* ---------- CTA Link ---------- */
.sl-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    border: 1.5px solid var(--sl-purple);
    border-radius: 100px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--sl-purple);
    text-decoration: none;
    transition: all 0.25s;
    margin-top: 0.5rem;
}

.sl-cta-link:hover {
    background: var(--sl-purple);
    color: var(--slbg);
}

/* ---------- Hito prev/next nav ---------- */
.sl-hito-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--sl-border);
    gap: 1rem;
}

.sl-hito-nav a {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--sl-purple);
    text-decoration: none;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.sl-hito-nav a:hover {
    opacity: 0.7;
}

.sl-hito-nav-spacer {
    flex: 1;
}

/* ---------- Responsive for hito components ---------- */
@media (max-width: 620px) {
    .sl-video-slide {
        grid-template-columns: 1fr;
    }

    .sl-video-slide-dark {
        padding: 1rem;
    }

    .sl-hito-nav {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .sl-hito-nav a {
        justify-content: center;
    }

    .sl-reading-item {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ============================================================
   PROFESSORS — Equipo docente
   ============================================================ */
.sl-professors {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 1.5rem 0 2rem;
}

.sl-professor {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.75rem;
    background: var(--slbg-card);
    border: 1px solid var(--sl-border);
    border-radius: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.sl-professor:hover {
    border-color: var(--sl-border-mid);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.sl-professor-photo {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--sl-border-mid);
}

.sl-professor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sl-professor-name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--sl-text);
    margin-bottom: 0.25rem;
}

.sl-professor-degree {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    color: var(--sl-purple);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.sl-professor-role {
    font-size: 0.88rem;
    color: var(--sl-text-2);
    line-height: 1.45;
}

@media (max-width: 768px) {
    .sl-professors {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .sl-professor {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
    }
}

/* ============================================================
   VIDEO SLIDER — Cápsulas y Recursos (carousel)
   ============================================================ */
.sl-slider-section {
    position: relative;
    margin: 1.5rem 0 2.5rem;
}

.sl-slider-viewport {
    overflow: hidden;
    border-radius: 14px;
}

.sl-slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sl-slider-slide {
    min-width: 100%;
    padding: 2rem 2.5rem;
    background: var(--sl-purple-faint);
    border: 1px solid var(--sl-border);
    border-radius: 14px;
}

.sl-slider-slide-num {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sl-text-3);
    margin-bottom: 0.35rem;
}

.sl-slider-slide-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--sl-text);
    margin-bottom: 1rem;
}

.sl-slider-slide .sl-video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}

.sl-slider-slide .sl-video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.sl-slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.sl-slider-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--sl-purple-faint);
    border: 1px solid var(--sl-border-mid);
    color: var(--sl-purple);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.sl-slider-btn:hover {
    background: var(--sl-purple-dim);
    border-color: var(--sl-purple);
}

.sl-slider-btn svg {
    width: 18px;
    height: 18px;
}

.sl-slider-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.sl-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--sl-border-mid);
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
}

.sl-slider-dot.active {
    background: var(--sl-purple);
    transform: scale(1.35);
}

/* Slider dark variant (cápsulas) */
.sl-slider-dark {
    background: var(--sl-slider-dark-bg, #0f1e0b);
    border-radius: 16px;
    padding: 2rem;
    margin: 1.5rem 0 2.5rem;
}

.sl-slider-dark .sl-slider-slide {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.08);
}

.sl-slider-dark .sl-slider-slide-num {
    color: rgba(255,255,255,0.45);
}

.sl-slider-dark .sl-slider-slide-title {
    color: rgba(255,255,255,0.9);
}

.sl-slider-dark .sl-slider-btn {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.7);
}

.sl-slider-dark .sl-slider-btn:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.sl-slider-dark .sl-slider-dot {
    background: rgba(255,255,255,0.2);
}

.sl-slider-dark .sl-slider-dot.active {
    background: rgba(255,255,255,0.8);
}

/* Slider responsive */
@media (max-width: 620px) {
    .sl-slider-slide {
        padding: 1.25rem 1rem;
    }
    .sl-slider-dark {
        padding: 1rem;
    }
}

/* ============================================================
   ALTERNATE BACKGROUNDS — blue-gray for even hitos
   ============================================================ */
body.sl-theme-cool {
    --slbg: #e8eaef;
    --slbg-card: #dfe1e8;
    --slbg-hover: #d5d8e0;
    background: var(--slbg);
}

body.sl-theme-cool .sl-nav {
    background: rgba(232, 234, 239, 0.92);
}

body.sl-theme-cool .sl-nav.scrolled {
    background: rgba(232, 234, 239, 0.97);
    border-bottom-color: rgba(0,0,0,0.06);
}

@media (max-width: 620px) {
    body.sl-theme-cool .sl-nav-links {
        background: rgba(232, 234, 239, 0.98);
    }
}

body.sl-theme-cool .sl-ticker {
    background: #d5d8e0;
}

body.sl-theme-cool .sl-footer {
    background: #d0d3dc;
}
