/* ==========================================================================
   SUPER GUARDIANES DE LA COMPUTADORA - ESTILOS VISUALES
   Diseñado para Nivel Inicial y 1º Ciclo (3 a 7 años) - Nodo Andino
   ========================================================================== */

:root {
    --primary: #4F46E5;
    --primary-light: #EEF2FF;
    --primary-dark: #3730A3;
    --success: #10B981;
    --success-light: #D1FAE5;
    --danger: #EF4444;
    --danger-light: #FEE2E2;
    --warning: #F59E0B;
    --warning-light: #FEF3C7;
    --accent: #EC4899;
    --accent-light: #FCE7F3;
    --sky: #0EA5E9;
    --sky-light: #E0F2FE;
    
    --bg-body: #F0FDF4;
    --card-bg: #FFFFFF;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --border-color: #CBD5E1;
    --shadow-soft: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-pop: 0 6px 0 var(--border-color);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Fredoka', 'Comic Sans MS', cursive, sans-serif;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

body {
    background: linear-gradient(135deg, #E0F2FE 0%, #F0FDF4 50%, #FEF3C7 100%);
    min-height: 100vh;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Fondo de decoraciones */
.bg-decorations {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    opacity: 0.25;
    animation: floatAnim 12s infinite ease-in-out;
}

@keyframes floatAnim {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(15deg); }
}

/* ==========================================================================
   HEADER Y BARRA SUPERIOR
   ========================================================================== */
header {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 4px solid #E2E8F0;
    padding: 12px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.brand-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #4F46E5, #EC4899);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 26px;
    box-shadow: 0 4px 0 #3730A3;
    animation: bounceSlow 3s infinite;
}

@keyframes bounceSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.brand-info h1 {
    font-size: 1.45rem;
    font-weight: 700;
    color: #1E293B;
    line-height: 1.1;
}

.brand-info span {
    font-size: 0.85rem;
    color: #EC4899;
    font-weight: 600;
}

.nav-tabs {
    display: flex;
    gap: 10px;
    background: #F1F5F9;
    padding: 6px;
    border-radius: 99px;
    border: 2px solid #CBD5E1;
}

.tab-btn {
    border: none;
    background: transparent;
    padding: 8px 18px;
    border-radius: 99px;
    font-size: 1rem;
    font-weight: 600;
    color: #64748B;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background: #4F46E5;
    color: white;
    box-shadow: 0 4px 0 #3730A3;
    transform: translateY(-2px);
}

.tab-btn:hover:not(.active) {
    background: #E2E8F0;
    color: #1E293B;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-btn {
    background: white;
    border: 3px solid #CBD5E1;
    padding: 8px 14px;
    border-radius: 99px;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #475569;
    font-weight: 600;
    box-shadow: 0 3px 0 #CBD5E1;
    transition: all 0.15s ease;
}

.control-btn:active {
    transform: translateY(3px);
    box-shadow: none;
}

.control-btn.active {
    background: #FEF3C7;
    border-color: #F59E0B;
    color: #D97706;
    box-shadow: 0 3px 0 #D97706;
}

/* ==========================================================================
   CONTENEDOR PRINCIPAL
   ========================================================================== */
main {
    flex: 1;
    position: relative;
    z-index: 1;
    max-width: 1000px;
    width: 100%;
    margin: 20px auto;
    padding: 0 16px 40px;
}

.section-view {
    display: none;
    animation: fadeIn 0.35s ease-out forwards;
}

.section-view.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px) scale(0.99); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ==========================================================================
   SECCIÓN 1: EXPLICACIÓN PASO A PASO (DIAPOSITIVAS INTERACTIVAS)
   ========================================================================== */
.slides-card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    border: 4px solid #E2E8F0;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08), 0 8px 0 #CBD5E1;
    overflow: hidden;
    position: relative;
}

.stars-progress-bar {
    background: #F8FAFC;
    border-bottom: 3px solid #E2E8F0;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.step-indicator {
    font-size: 1.15rem;
    font-weight: 700;
    color: #4F46E5;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars-track {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.star-node {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #94A3B8;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.star-node.completed {
    background: #F59E0B;
    color: #FFF;
    transform: scale(1.1);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.star-node.current {
    background: #4F46E5;
    color: #FFF;
    transform: scale(1.2);
    box-shadow: 0 0 12px rgba(79, 70, 229, 0.6);
    animation: starPulse 1.5s infinite;
}

@keyframes starPulse {
    0%, 100% { transform: scale(1.2); }
    50% { transform: scale(1.3); }
}

/* Cuerpo de la Diapositiva */
.slide-body {
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 30px;
    align-items: center;
}

@media (max-width: 768px) {
    .slide-body {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }
}

/* Área de Ilustración y Robot */
.slide-visual-zone {
    background: linear-gradient(135deg, #F0FDF4, #E0F2FE);
    border: 3px solid #CBD5E1;
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    position: relative;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.04);
}

.mascot-avatar {
    width: 140px;
    height: 140px;
    filter: drop-shadow(0 8px 12px rgba(0,0,0,0.12));
    animation: mascotIdle 4s infinite ease-in-out;
}

@keyframes mascotIdle {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-8px) rotate(-3deg); }
    75% { transform: translateY(-4px) rotate(3deg); }
}

.visual-badge {
    margin-top: 14px;
    background: white;
    border: 2px solid #CBD5E1;
    padding: 6px 16px;
    border-radius: 99px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #4F46E5;
    box-shadow: 0 3px 0 #CBD5E1;
}

/* Contenido de Texto y Audio */
.slide-content-zone {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step-tag {
    align-self: flex-start;
    background: #EC4899;
    color: white;
    padding: 4px 14px;
    border-radius: 99px;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 0 #BE185D;
}

.slide-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: #1E293B;
    line-height: 1.2;
}

.slide-speech-bubble {
    background: #F8FAFC;
    border: 3px solid #E2E8F0;
    border-left: 8px solid #4F46E5;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    position: relative;
}

.slide-speech-bubble p {
    font-size: 1.2rem;
    line-height: 1.5;
    color: #334155;
    font-weight: 500;
}

.slide-speech-bubble strong {
    color: #4F46E5;
    font-weight: 700;
}

.rule-highlight {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #FEF3C7;
    border: 2px dashed #F59E0B;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    font-weight: 600;
    color: #92400E;
}

.rule-highlight-icon {
    font-size: 1.5rem;
}

/* Botón de Escuchar Narración */
.audio-action-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.btn-listen {
    background: #10B981;
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 99px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 0 #059669;
    transition: all 0.15s ease;
}

.btn-listen:hover {
    background: #059669;
}

.btn-listen:active {
    transform: translateY(4px);
    box-shadow: none;
}

.btn-listen.speaking {
    background: #F59E0B;
    box-shadow: 0 4px 0 #D97706;
    animation: speakPulse 1s infinite alternate;
}

@keyframes speakPulse {
    from { transform: scale(1); }
    to { transform: scale(1.04); }
}

/* Barra de Navegación Inferior */
.slide-footer-nav {
    background: #F1F5F9;
    border-top: 3px solid #E2E8F0;
    padding: 18px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.btn-nav {
    background: white;
    border: 3px solid #CBD5E1;
    color: #475569;
    padding: 12px 24px;
    border-radius: 99px;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 0 #CBD5E1;
    transition: all 0.15s ease;
}

.btn-nav:hover:not(:disabled) {
    background: #F8FAFC;
    color: #1E293B;
}

.btn-nav:active:not(:disabled) {
    transform: translateY(4px);
    box-shadow: none;
}

.btn-nav:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-nav.primary {
    background: #4F46E5;
    border-color: #3730A3;
    color: white;
    box-shadow: 0 4px 0 #3730A3;
}

.btn-nav.primary:hover {
    background: #4338CA;
}

.btn-nav.success {
    background: #10B981;
    border-color: #059669;
    color: white;
    box-shadow: 0 4px 0 #059669;
}

/* ==========================================================================
   SECCIÓN 2: ACTIVIDAD FINAL (MISIONES DE JUEGO)
   ========================================================================== */
.game-hub-card {
    background: white;
    border-radius: var(--radius-xl);
    border: 4px solid #E2E8F0;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08), 0 8px 0 #CBD5E1;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.game-hub-header {
    text-align: center;
    margin-bottom: 25px;
}

.game-badge {
    background: #EC4899;
    color: white;
    padding: 6px 18px;
    border-radius: 99px;
    font-size: 1rem;
    font-weight: 800;
    display: inline-block;
    box-shadow: 0 3px 0 #BE185D;
}

.game-hub-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1E293B;
    margin-top: 10px;
}

.game-hub-header p {
    font-size: 1.15rem;
    color: #64748B;
}

/* Barra de Puntuación / Vidas */
.game-status-bar {
    background: #F8FAFC;
    border: 3px solid #E2E8F0;
    border-radius: 99px;
    padding: 8px 24px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 25px;
    font-size: 1.2rem;
    font-weight: 700;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-stars { color: #F59E0B; }
.status-mission { color: #4F46E5; }

/* Contenedor de Misiones */
.mission-container {
    display: none;
    animation: fadeIn 0.3s ease-out forwards;
}

.mission-container.active {
    display: block;
}

/* MISIÓN 1: EL SEMÁFORO DE LA COMPUTADORA */
.traffic-card {
    background: #F8FAFC;
    border: 3px solid #CBD5E1;
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
    box-shadow: 0 6px 0 #E2E8F0;
}

.traffic-scenario-img {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 65px;
    background: white;
    border-radius: 50%;
    border: 3px solid #CBD5E1;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.05);
}

.traffic-scenario-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 10px;
    line-height: 1.3;
}

.traffic-scenario-desc {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 24px;
}

.traffic-buttons-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-traffic {
    border: none;
    padding: 16px 36px;
    border-radius: 99px;
    font-size: 1.35rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    transition: all 0.15s ease;
}

.btn-traffic.good {
    background: #10B981;
    box-shadow: 0 6px 0 #059669;
}

.btn-traffic.bad {
    background: #EF4444;
    box-shadow: 0 6px 0 #DC2626;
}

.btn-traffic:active {
    transform: translateY(6px);
    box-shadow: none;
}

/* MISIÓN 2: LIMPIANDO LA MESA */
.cleanup-room {
    background: linear-gradient(180deg, #E0F2FE 0%, #BAE6FD 55%, #94A3B8 55%, #64748B 100%);
    border: 4px solid #334155;
    border-radius: var(--radius-lg);
    min-height: 380px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 4px 12px rgba(0,0,0,0.15);
    margin-bottom: 20px;
}

.cleanup-desk {
    position: absolute;
    bottom: 0;
    left: 8%;
    right: 8%;
    height: 160px;
    background: #F59E0B;
    border-top: 6px solid #D97706;
    border-left: 4px solid #D97706;
    border-right: 4px solid #D97706;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
}

.cleanup-pc {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 130px;
    z-index: 2;
}

.desk-item {
    position: absolute;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.desk-item:hover {
    transform: scale(1.18);
}

.desk-item.clean-good {
    filter: drop-shadow(0 4px 8px rgba(16, 185, 129, 0.4));
}

.desk-item.clean-bad {
    filter: drop-shadow(0 4px 8px rgba(239, 68, 68, 0.5));
    animation: dangerWiggle 2s infinite ease-in-out;
}

@keyframes dangerWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

.desk-item-icon {
    font-size: 38px;
    background: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #CBD5E1;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.desk-item-label {
    background: rgba(15, 23, 42, 0.85);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 99px;
    margin-top: 4px;
    white-space: nowrap;
}

.backpack-bin {
    position: absolute;
    bottom: 15px;
    right: 20px;
    background: #4F46E5;
    color: white;
    border: 3px solid white;
    border-radius: 18px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    box-shadow: 0 6px 0 #3730A3;
    z-index: 6;
}

/* Feedback Modal */
.feedback-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.feedback-modal.active {
    display: flex;
    animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.feedback-card {
    background: white;
    border-radius: var(--radius-xl);
    border: 5px solid #CBD5E1;
    padding: 35px 25px;
    text-align: center;
    max-width: 460px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.feedback-card.correct { border-color: #10B981; }
.feedback-card.incorrect { border-color: #EF4444; }

.feedback-icon { font-size: 65px; margin-bottom: 15px; }

.feedback-title {
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.feedback-card.correct .feedback-title { color: #10B981; }
.feedback-card.incorrect .feedback-title { color: #EF4444; }

.feedback-msg {
    font-size: 1.2rem;
    color: #475569;
    margin-bottom: 24px;
    line-height: 1.35;
}

.btn-feedback {
    background: #4F46E5;
    border: none;
    color: white;
    padding: 14px 32px;
    border-radius: 99px;
    font-size: 1.25rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 5px 0 #3730A3;
    transition: all 0.15s ease;
}

.btn-feedback:active {
    transform: translateY(5px);
    box-shadow: none;
}

/* ==========================================================================
   SECCIÓN 3: DIPLOMA DE SUPER GUARDIÁN (IMPRIMIBLE)
   ========================================================================== */
.diploma-view-card {
    background: white;
    border-radius: var(--radius-xl);
    border: 4px solid #E2E8F0;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08), 0 8px 0 #CBD5E1;
    padding: 30px;
    text-align: center;
}

.diploma-generator-box {
    margin-bottom: 30px;
    background: #F8FAFC;
    border: 3px dashed #CBD5E1;
    border-radius: var(--radius-lg);
    padding: 24px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.name-input-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
    flex-wrap: wrap;
}

.kid-name-input {
    background: white;
    border: 3px solid #CBD5E1;
    padding: 12px 20px;
    border-radius: 99px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1E293B;
    outline: none;
    width: 280px;
    text-align: center;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.kid-name-input:focus {
    border-color: #4F46E5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
}

.btn-generate-diploma {
    background: #EC4899;
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 99px;
    font-size: 1.15rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 0 #BE185D;
    transition: all 0.15s ease;
}

.btn-generate-diploma:active {
    transform: translateY(4px);
    box-shadow: none;
}

/* El Diploma en Sí */
.diploma-frame {
    background: #FFFDF5;
    border: 8px solid #D97706;
    padding: 35px 25px;
    border-radius: 16px;
    position: relative;
    max-width: 750px;
    margin: 0 auto 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.diploma-corner-decor {
    position: absolute;
    width: 45px;
    height: 45px;
    font-size: 28px;
}
.diploma-corner-decor.tl { top: 10px; left: 10px; }
.diploma-corner-decor.tr { top: 10px; right: 10px; }
.diploma-corner-decor.bl { bottom: 10px; left: 10px; }
.diploma-corner-decor.br { bottom: 10px; right: 10px; }

.diploma-header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}

.diploma-header-logo span {
    font-size: 1.3rem;
    font-weight: 800;
    color: #334155;
    letter-spacing: 1px;
}

.diploma-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: #B45309;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.diploma-certifies {
    font-size: 1.15rem;
    color: #64748B;
    font-weight: 600;
    margin-bottom: 8px;
}

.diploma-student-name {
    font-size: 2.4rem;
    font-weight: 900;
    color: #4F46E5;
    border-bottom: 3px dashed #CBD5E1;
    display: inline-block;
    padding: 4px 30px;
    margin-bottom: 15px;
    min-width: 250px;
}

.diploma-text {
    font-size: 1.2rem;
    color: #334155;
    max-width: 580px;
    margin: 0 auto 25px;
    line-height: 1.4;
}

.diploma-seals-row {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    margin-top: 25px;
}

.diploma-seal {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.4);
    border: 3px solid #FEF3C7;
}

.diploma-seal-icon { font-size: 28px; }
.diploma-seal-text { font-size: 0.65rem; font-weight: 800; text-transform: uppercase; }

.diploma-signature {
    text-align: center;
    border-top: 2px solid #94A3B8;
    padding-top: 6px;
    width: 170px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #475569;
}

.diploma-actions-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-print {
    background: #10B981;
    border: none;
    color: white;
    padding: 14px 28px;
    border-radius: 99px;
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 0 #059669;
    transition: all 0.15s ease;
}

.btn-print:hover { background: #059669; }
.btn-print:active { transform: translateY(4px); box-shadow: none; }

.btn-replay {
    background: #4F46E5;
    border: none;
    color: white;
    padding: 14px 28px;
    border-radius: 99px;
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 0 #3730A3;
    transition: all 0.15s ease;
}

.btn-replay:hover { background: #4338CA; }
.btn-replay:active { transform: translateY(4px); box-shadow: none; }

/* Canvas de Confeti */
#confetti-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999;
}

/* ==========================================================================
   ESTILOS DE IMPRESIÓN (PRINT STYLES)
   ========================================================================== */
@media print {
    body {
        background: white !important;
    }
    header, .bg-decorations, .nav-tabs, .header-controls, .diploma-generator-box, .diploma-actions-row, .stars-progress-bar, .slide-footer-nav, #confetti-canvas {
        display: none !important;
    }
    main {
        margin: 0 !important;
        padding: 0 !important;
        max-width: 100% !important;
    }
    .diploma-view-card {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
    .diploma-frame {
        box-shadow: none !important;
        border-width: 6px !important;
        max-width: 100% !important;
        page-break-inside: avoid;
    }
}
