/* Estilos para el deck magistral con deck-stage */

.deck-body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    background: var(--bg-dark);
    color: var(--text-dark-primary);
    overflow: hidden;
}

deck-stage {
    display: block;
    width: 100%;
    height: 100vh;
    background: var(--bg-dark);
}

.slide {
    width: 1920px;
    height: 1080px;
    padding: 80px 120px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-dark);
    color: var(--text-dark-primary);
}

/* Slide de portada */
.slide-portada {
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #030303 0%, #1a1a1a 100%);
}

.portada-titulo {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 2rem 0;
    color: #37B8EC;
}

.portada-subtitulo {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: var(--text-dark-secondary);
}

.portada-metadata {
    font-size: 1.5rem;
    color: var(--text-dark-tertiary);
}

/* Slide de objetivo */
.slide-objetivo h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 2rem 0;
    color: #37B8EC;
}

.objetivo-texto {
    font-size: 2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.objetivo-lista {
    font-size: 1.75rem;
    line-height: 1.8;
    padding-left: 2rem;
}

.objetivo-lista li {
    margin-bottom: 1rem;
}

/* Slide de agenda */
.slide-agenda h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 2rem 0;
    color: #37B8EC;
}

.agenda-lista {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.agenda-item {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    padding: 1rem;
    background: rgba(55, 184, 236, 0.05);
    border-left: 4px solid #37B8EC;
}

.agenda-tiempo {
    font-family: var(--font-mono);
    font-weight: 600;
    color: #37B8EC;
    min-width: 180px;
}

.agenda-actividad {
    color: var(--text-dark-primary);
}

/* Slide divisor */
.slide-divisor {
    justify-content: center;
    text-align: center;
    background: #37B8EC;
}

.divisor-titulo {
    font-size: 6rem;
    font-weight: 800;
    margin: 0;
    color: #030303;
}

/* Slide de concepto */
.slide-concepto h2 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    color: #37B8EC;
}

.slide-concepto p {
    font-size: 1.75rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.definiciones-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.definicion {
    background: rgba(55, 184, 236, 0.05);
    padding: 1rem;
    border-radius: 12px;
    border-left: 4px solid #37B8EC;
}

.definicion h4 {
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #37B8EC;
}

.definicion p {
    font-size: 1.5rem;
    line-height: 1.6;
    margin: 0 0 0.75rem 0;
    color: var(--text-dark-secondary);
}

.ejemplo {
    font-size: 1.25rem;
    color: var(--text-dark-tertiary);
    font-style: italic;
}

.fuentes-lista {
    font-size: 1.5rem;
    line-height: 1.8;
    padding-left: 2rem;
}

.fuentes-lista li {
    margin-bottom: 0.75rem;
}

.advertencia {
    background: #fff3cd;
    color: #856404;
    padding: 1.5rem;
    border-radius: 8px;
    font-size: 1.5rem;
    line-height: 1.6;
    margin-top: 2rem;
    border-left: 4px solid #ffc107;
}

.matriz-lista {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.matriz-item {
    font-size: 1.5rem;
    line-height: 1.6;
    padding: 1rem;
    background: rgba(55, 184, 236, 0.05);
    border-radius: 8px;
}

.matriz-item strong {
    color: #37B8EC;
}

.regla-importante {
    background: #d1ecf1;
    color: #0c5460;
    padding: 1.5rem;
    border-radius: 8px;
    font-size: 1.5rem;
    line-height: 1.6;
    margin-top: 2rem;
    border-left: 4px solid #17a2b8;
}

/* Slide de demo */
.slide-demo h2 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: #37B8EC;
}

.demo-duracion {
    font-size: 1.25rem;
    color: var(--text-dark-tertiary);
    margin-bottom: 1.5rem;
}

.demo-setup,
.demo-prompt,
.demo-pasos {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--text-dark-primary);
}

.demo-prompt {
    background: rgba(55, 184, 236, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #37B8EC;
    font-family: var(--font-mono);
    color: var(--text-dark-primary);
}

.demo-pasos ol {
    padding-left: 2rem;
}

.demo-pasos li {
    margin-bottom: 0.5rem;
}

.captura-placeholder {
    background: rgba(55, 184, 236, 0.05);
    padding: 1.5rem;
    border: 2px dashed #37B8EC;
    border-radius: 8px;
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-dark-secondary);
    margin-top: 1rem;
}

/* Slide de contenido genérico */
.slide-contenido h2 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 2rem 0;
    color: #37B8EC;
}

.slide-contenido p {
    font-size: 1.75rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.slide-contenido ul {
    font-size: 1.75rem;
    line-height: 1.8;
    padding-left: 2rem;
}

.slide-contenido li {
    margin-bottom: 1rem;
}

/* Slide de síntesis */
.slide-sintesis h2 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 2rem 0;
    color: #37B8EC;
}

.sintesis-lista {
    font-size: 1.75rem;
    line-height: 1.8;
    padding-left: 2rem;
}

.sintesis-lista li {
    margin-bottom: 1rem;
}

.mensaje-final {
    font-size: 2rem;
    font-weight: 600;
    color: #37B8EC;
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(55, 184, 236, 0.1);
    border-radius: 12px;
}

/* Slide de recursos */
.slide-recursos h2 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 2rem 0;
    color: #37B8EC;
}

.recursos-lista {
    font-size: 1.75rem;
    line-height: 1.8;
    padding-left: 2rem;
}

.recursos-lista li {
    margin-bottom: 1rem;
}

/* Slide de anticipo */
.slide-anticipo h2 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: #37B8EC;
}

.anticipo-fecha {
    font-size: 2rem;
    color: var(--text-dark-secondary);
    margin-bottom: 2rem;
}

.anticipo-temas {
    font-size: 1.75rem;
    line-height: 1.8;
    padding-left: 2rem;
}

.anticipo-temas li {
    margin-bottom: 1rem;
}

/* Slide de cierre */
.slide-cierre {
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #030303 0%, #1a1a1a 100%);
}

.slide-cierre h1 {
    font-size: 6rem;
    font-weight: 800;
    margin: 0 0 2rem 0;
    color: #37B8EC;
}

.slide-cierre p {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.cierre-contacto {
    font-size: 1.75rem;
    color: var(--text-dark-secondary);
}

/* Navegación de teclado (overlay opcional) */
.deck-nav-hint {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.deck-nav-hint:hover {
    opacity: 1;
}

/* Impresión */
@media print {
    .slide {
        page-break-after: always;
        page-break-inside: avoid;
    }
    
    .deck-nav-hint {
        display: none;
    }
}

/* Links dentro de slides */
.slide a {
    color: #67D4F6;
    text-decoration: underline;
    font-weight: var(--font-semibold);
}

.slide a:hover {
    color: #FFFFFF;
}

.recursos-lista a {
    color: #67D4F6;
}

/* Demo slides - readable sizes (22px+ for body text) */
.demo-video-backup {
    font-size: 1.25rem;
    margin: 1rem 0;
    line-height: 1.5;
}

.demo-video-backup strong {
    color: var(--text-dark-secondary);
}

.demo-video-link {
    color: var(--color-primary);
    text-decoration: underline;
}

.demo-video-link:hover {
    color: var(--color-primary-hover);
}

/* Resultado esperado (readable size) */
.demo-resultado {
    margin-top: 0.75rem;
    font-size: 1.25rem;
}

.demo-resultado strong {
    color: var(--text-dark-secondary);
    display: block;
    margin-bottom: 0.5rem;
}

.demo-resultado ol {
    margin: 0;
    padding-left: 1.5rem;
    line-height: 1.4;
}

.demo-resultado li {
    margin-bottom: 0.4rem;
    color: var(--text-dark-primary);
}

/* Concepto bullets */
.concepto-bullets {
    text-align: left;
    margin: 1.5rem auto;
    max-width: 90%;
    list-style: none;
    padding: 0;
}

.concepto-bullets li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
    font-size: 1.375rem;
}

.concepto-bullets li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

.copilot-aplicacion {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(103, 212, 246, 0.1);
    border-left: 3px solid var(--color-primary);
    border-radius: 4px;
    text-align: left;
    font-size: 1.25rem;
}

.copilot-aplicacion strong {
    color: var(--color-primary);
}

/* Download buttons for demos */
.demo-downloads {
    margin: 0.5rem 0;
    padding: 0.6rem;
    background: rgba(103, 212, 246, 0.08);
    border-radius: 8px;
    text-align: left;
}

.demo-downloads strong {
    color: var(--color-primary);
    font-size: 1.125rem;
    display: block;
    margin-bottom: 0.5rem;
}

.download-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.download-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.7rem;
    background: var(--color-primary);
    color: var(--text-dark-primary-inverse);
    text-decoration: none;
    border-radius: 6px;
    font-size: 1.375rem;
    font-weight: 500;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.download-button:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(103, 212, 246, 0.3);
}

.download-button:active {
    transform: translateY(0);
}

.download-icon {
    font-size: 1.5rem;
}

.download-text {
    font-size: 1.375rem;
}

.download-desc {
    font-size: 1.375rem;
    color: var(--text-dark-secondary);
    font-style: italic;
    margin-left: 0.5rem;
}

/* Generated (classless) lists on Session 2+ content slides: keep >= 18px.
   Scoped so Session 1 lists (all classed, or inside .slide-demo) keep their original sizes. */
.slide-objetivos ul:not([class]) li,
.slide-concepto ul:not([class]) li,
.slide-practica ul:not([class]) li,
.slide-resumen ul:not([class]) li,
.slide-recursos ul.enlaces-externos li {
    font-size: 1.375rem; /* 22px */
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

/* Compact 2-column agenda for long agendas */
@media (min-width: 1024px) {
  .slide-agenda .agenda-lista {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem 1.5rem; /* Reduced gap to fit height */
    max-width: 90%;
    margin: 0 auto;
  }
  
  .slide-agenda .agenda-item {
    padding: 0.35rem; /* Reduced padding to fit height, keep fonts >=18px */
  }
  
  .slide-agenda .agenda-tiempo {
    min-width: 55px;
  }
}

/* Session 6 specific: Slides 5 and 21 font size fix */
/* Slide 5 (taxonomia) and Slide 21 (cierre-ciclo) need larger base font */
.slide-taxonomia#slide-5 ul li,
.slide-taxonomia#slide-5 p,
.slide-cierre-ciclo#slide-21 ul li,
.slide-cierre-ciclo#slide-21 p {
    font-size: 1.125rem; /* 18px if base is 16px */
    line-height: 1.6;
}

/* ─────────────────────────────────────────────────────────────────────
   Visual upgrade (oct-2026). Static effects only: the magistral is
   streamed over Teams, where animated backgrounds turn to noise.
   References (21st.dev, ported to plain CSS): Horizon Glow Hero /
   Hero Static Radial Gradient (portada, cierre), Sparkles Title (divisor),
   How It Works Timeline (agenda), Bento Grid (concepto, síntesis),
   Code Block (prompt).
   ───────────────────────────────────────────────────────────────────── */

.slide {
    position: relative;
    overflow: hidden;
    padding-top: 64px;
    padding-bottom: 64px;
    background:
        radial-gradient(900px 520px at 100% 0%, rgba(55, 184, 236, 0.08), transparent 70%),
        var(--bg-dark);
}

/* Content titles: short cyan rule above */
.slide h2 {
    position: relative;
    padding-top: 28px;
    letter-spacing: -0.01em;
}
.slide h2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 72px;
    height: 5px;
    border-radius: 3px;
    background: linear-gradient(90deg, #37B8EC, rgba(55, 184, 236, 0.2));
}

.deck-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

/* Portada / cierre: horizon glow */
.slide-portada,
.slide-cierre {
    align-items: center;
    background:
        radial-gradient(1400px 520px at 50% 118%, rgba(55, 184, 236, 0.42), rgba(55, 184, 236, 0.08) 45%, transparent 70%),
        radial-gradient(800px 400px at 50% 0%, rgba(255, 255, 255, 0.04), transparent 70%),
        #030303;
}
/* Portada: animated liquid aurora (21st.dev LiquidAurora, ported).
   Transform-only animation on pre-blurred gradients keeps it cheap while
   screen-sharing; paused when the cover is not the active slide. */
.slide-portada {
    background: #020305;
}
.slide-portada > :not(.aurora) {
    position: relative;
    z-index: 1;
}
.aurora {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.aurora span {
    position: absolute;
    width: 1100px;
    height: 1100px;
    border-radius: 50%;
    opacity: 0.55;
    will-change: transform;
    animation: aurora-drift 22s ease-in-out infinite alternate;
}
.aurora span:nth-child(1) {
    left: -250px;
    top: -350px;
    background: radial-gradient(circle, rgba(55, 184, 236, 0.75), transparent 62%);
}
.aurora span:nth-child(2) {
    right: -300px;
    top: 50px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.65), transparent 62%);
    animation-duration: 28s;
    animation-delay: -9s;
}
.aurora span:nth-child(3) {
    left: 450px;
    bottom: -650px;
    background: radial-gradient(circle, rgba(103, 212, 246, 0.55), transparent 62%);
    animation-duration: 25s;
    animation-delay: -15s;
}
@keyframes aurora-drift {
    0%   { transform: translate(0, 0) scale(1, 1) rotate(0deg); }
    33%  { transform: translate(260px, 140px) scale(1.25, 0.85) rotate(40deg); }
    66%  { transform: translate(-180px, 220px) scale(0.85, 1.2) rotate(-30deg); }
    100% { transform: translate(120px, -160px) scale(1.15, 1) rotate(20deg); }
}
.slide-portada:not([data-deck-active]) .aurora span {
    animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
    .aurora span { animation: none; }
}
.slide-portada .deck-logo,
.slide-cierre .deck-logo {
    margin-bottom: 2rem;
}
.portada-titulo {
    max-width: 1500px;
    font-size: 5.25rem;
    letter-spacing: -0.02em;
    background: linear-gradient(180deg, #FFFFFF 10%, #67D4F6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.portada-subtitulo {
    display: inline-block;
    font-size: 2rem;
    padding: 0.6rem 1.75rem;
    border: 1px solid rgba(103, 212, 246, 0.35);
    border-radius: 999px;
    background: rgba(55, 184, 236, 0.08);
    color: #DDF4FD;
}
.slide-cierre h1 {
    background: linear-gradient(180deg, #FFFFFF 10%, #67D4F6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Divisor: dark section break with big outlined number */
.slide-divisor {
    align-items: flex-start;
    text-align: left;
    padding-left: 200px;
    background:
        linear-gradient(90deg, rgba(55, 184, 236, 0.10), transparent 60%),
        #030303;
}
.slide-divisor::before {
    content: '';
    position: absolute;
    left: 120px;
    top: 260px;
    bottom: 260px;
    width: 4px;
    border-radius: 2px;
    background: #37B8EC;
    box-shadow: 0 0 28px 6px rgba(55, 184, 236, 0.55);
}
.divisor-num {
    font-family: var(--font-mono);
    font-size: 11rem;
    font-weight: 700;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 2px rgba(103, 212, 246, 0.55);
    margin-bottom: 1.5rem;
}
.divisor-kicker {
    font-family: var(--font-mono);
    font-size: 1.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #37B8EC;
    margin-bottom: 1rem;
}
.divisor-titulo {
    max-width: 1450px;
    font-size: 5.5rem;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #FFFFFF;
}

/* Agenda: timeline with nodes; demos highlighted */
@media (min-width: 0px) {
    .slide-agenda .agenda-lista {
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* Fill column by column so each timeline reads top-down in order */
        grid-template-rows: repeat(var(--agenda-rows, 5), auto);
        grid-auto-flow: column;
        gap: 0 4rem;
        max-width: none;
        margin: 0;
    }
    .slide-agenda .agenda-item {
        position: relative;
        display: grid;
        grid-template-columns: 160px 1fr;
        align-items: baseline;
        gap: 1.5rem;
        padding: 0.85rem 0 0.85rem 2.5rem;
        background: none;
        border-left: 2px solid rgba(103, 212, 246, 0.25);
        font-size: 1.6rem;
    }
    .slide-agenda .agenda-item::before {
        content: '';
        position: absolute;
        left: -9px;
        top: 1.55rem; /* first text line, also when the row wraps */
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: #030303;
        border: 2px solid rgba(103, 212, 246, 0.6);
    }
    .slide-agenda .agenda-demo::before {
        background: #37B8EC;
        border-color: #37B8EC;
        box-shadow: 0 0 12px 2px rgba(55, 184, 236, 0.6);
    }
    .slide-agenda .agenda-tiempo {
        min-width: 0;
        font-size: 1.4rem;
        color: rgba(103, 212, 246, 0.85);
    }
    .slide-agenda .agenda-demo .agenda-actividad {
        font-weight: 600;
        color: #FFFFFF;
    }
}

/* Concepto + síntesis: bento cards */
.concepto-bullets,
.sintesis-lista {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    max-width: none;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
    counter-reset: card;
}
.concepto-bullets li,
.sintesis-lista li {
    position: relative;
    margin: 0;
    padding: 1.5rem 1.75rem 1.5rem 5rem;
    border-radius: 18px;
    border: 1px solid rgba(103, 212, 246, 0.18);
    background: linear-gradient(160deg, rgba(55, 184, 236, 0.09), rgba(255, 255, 255, 0.02) 60%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    font-size: 1.4rem;
    line-height: 1.45;
    counter-increment: card;
}
.concepto-bullets li::before,
.sintesis-lista li::before {
    content: counter(card, decimal-leading-zero);
    position: absolute;
    left: 1.5rem;
    top: 1.5rem;
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 700;
    color: #37B8EC;
}
/* Odd card count: last card spans the row */
.concepto-bullets li:last-child:nth-child(odd),
.sintesis-lista li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}
.copilot-aplicacion {
    margin-top: 1.25rem;
    padding: 1.1rem 1.5rem;
    border: 1px solid rgba(103, 212, 246, 0.35);
    border-left: 4px solid #37B8EC;
    border-radius: 14px;
    background: rgba(55, 184, 236, 0.10);
    font-size: 1.35rem;
}
.mensaje-final {
    border: 1px solid rgba(103, 212, 246, 0.35);
    box-shadow: 0 0 40px rgba(55, 184, 236, 0.15);
}

/* Demo: prompt as an app window */
.slide-demo .demo-duracion {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(103, 212, 246, 0.35);
    background: rgba(55, 184, 236, 0.08);
    color: #DDF4FD;
}
.slide-demo .demo-duracion::before {
    content: '⏱';
}
.demo-prompt {
    position: relative;
    padding: 4.25rem 1.75rem 1.5rem;
    border: 1px solid rgba(103, 212, 246, 0.25);
    border-left: 1px solid rgba(103, 212, 246, 0.25);
    border-radius: 16px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.04)) top / 100% 3rem no-repeat,
        #0A1218;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.4);
    font-size: 1.35rem;
    line-height: 1.55;
}
.demo-prompt::before {
    content: '';
    position: absolute;
    top: 1.1rem;
    left: 1.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #f87171;
    box-shadow: 20px 0 0 #fbbf24, 40px 0 0 #34d399;
}
.demo-prompt strong {
    position: absolute;
    top: 0.7rem;
    left: 6rem;
    font-family: var(--font-sans);
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.6);
}
.demo-downloads,
.demo-resultado {
    border-radius: 14px;
}
.demo-downloads {
    border: 1px solid rgba(103, 212, 246, 0.18);
}
.slide-demo .demo-downloads {
    padding: 1rem 1.25rem;
}
