/* ==========================================================================
   NÚCLEO - Sistema de Rol Agnóstico
   Variables y Estética Base
   ========================================================================== */
:root {
    /* Paleta de Precariedad */
    --color-fondo: #0a0a0c;        /* Humo denso / Asfalto mojado */
    --color-superficie: #16161a;   /* Grasa / Metales oscuros */
    --color-texto: #e4e4e7;        /* Salitre / Blanco opaco */
    --color-texto-mutado: #a1a1aa; /* Texto secundario */
    --color-sangre: #e11d48;       /* Alertas, daño crítico */
    --color-neon: #10b981;         /* Éxito, botones primarios */
    --color-borde: #27272a;
    --color-danger: #c0392b;
    --color-warning: #f39c12;
    --color-success: #27ae60;
    
    /* Tipografía */
    --fuente-texto: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --fuente-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    
    /* Espaciado */
    --espaciado-base: 1.5rem;
    --ancho-lectura: 75ch;
    --nav-width: 280px;
}

/* ==========================================================================
   Reset y Tipografía Global
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-fondo);
    color: var(--color-texto);
    font-family: var(--fuente-texto);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* COMPENSACIÓN DE NAVEGACIÓN FIJA */
    padding-left: var(--nav-width);
}

h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 2rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

p, ul, ol, dl {
    margin-bottom: var(--espaciado-base);
}

a {
    color: var(--color-neon);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--color-neon);
}

/* ==========================================================================
   Layout Principal - Navegación Lateral Fija
   ========================================================================== */
.layout-app {
    display: flex;
    min-height: 100vh;
}

.main-nav {
    width: var(--nav-width);
    background-color: var(--color-superficie);
    border-right: 1px solid var(--color-borde);
    padding: 2rem 1.5rem;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    top: 0;
    left: 0;
    z-index: 1000;
}

.nav-brand a {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    color: #fff;
    display: block;
    margin-bottom: 3rem;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 2px solid var(--color-sangre);
    padding-bottom: 0.5rem;
}

.nav-brand a:hover {
    color: var(--color-sangre);
    text-shadow: none;
}

.nav-links {
    list-style: none;
}

.nav-links li {
    margin-bottom: 0.5rem;
}

.nav-links a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--color-texto-mutado);
    border-radius: 4px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.nav-links a:hover,
.nav-links a.activo {
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-left-color: var(--color-neon);
    text-shadow: none;
}

/* Contenedor principal de contenido */
.container {
    flex: 1;
    padding: 3rem 4rem;
    max-width: calc(var(--ancho-lectura) + 4rem);
    margin: 0 auto;
}

/* ==========================================================================
   Componentes Generales
   ========================================================================== */
/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
    border-bottom: 1px solid var(--color-borde);
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 4rem;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    color: var(--color-sangre);
    text-shadow: 0 0 20px rgba(225, 29, 72, 0.3);
}

.hero h2 {
    font-size: 1.5rem;
    color: var(--color-texto-mutado);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero p {
    font-size: 1.2rem;
    color: var(--color-texto);
    max-width: 600px;
    margin: 0 auto;
}

/* Page Header */
.page-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--color-borde);
}

.page-header h1 {
    margin: 0;
    font-size: 2.5rem;
}

.page-header .lead {
    color: var(--color-texto-mutado);
    font-size: 1.1rem;
    margin-top: 1rem;
    font-style: italic;
}

.page-subtitle {
    color: var(--color-texto-mutado);
    font-style: italic;
    font-size: 1.05rem;
}

/* Section Blocks */
.section-block {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-block:last-child {
    border-bottom: none;
}

/* Tablas estilo "Consola de Datos" */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--espaciado-base);
    font-family: var(--fuente-mono);
    font-size: 0.9rem;
    background-color: var(--color-superficie);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--color-borde);
}

thead {
    background-color: rgba(255, 255, 255, 0.05);
}

th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--color-borde);
}

th {
    background-color: #1f1f24;
    color: var(--color-texto-mutado);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.8rem;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Mecánicas resaltadas */
.mecanica-critica {
    color: var(--color-sangre);
    font-weight: 700;
}

/* Listas */
ul, ol {
    padding-left: 2rem;
}

li {
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--color-borde);
    color: var(--color-texto-mutado);
    font-size: 0.9rem;
    margin-top: 4rem;
}

/* ==========================================================================
   HERRAMIENTAS DE MESA - Estilos Fase 1
   ========================================================================== */
.herramientas-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.grid-herramientas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.card-herramienta {
    background: var(--color-superficie);
    border: 1px solid var(--color-borde);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.card-herramienta:hover {
    border-color: var(--color-neon);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.1);
}

.card-herramienta h3 {
    margin-top: 0;
    color: var(--color-neon);
    font-size: 1.3rem;
}

.card-herramienta p {
    color: var(--color-texto-mutado);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.btn-accion {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--color-neon);
    border-radius: 4px;
    color: var(--color-neon);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-accion:hover {
    background: var(--color-neon);
    color: var(--color-fondo);
    text-shadow: none;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.output-area {
    background: var(--color-superficie);
    border: 1px solid var(--color-borde);
    border-radius: 8px;
    padding: 2rem;
    min-height: 150px;
}

/* Tarjetas de Herramienta Interactivas */
.tool-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1.8rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.tool-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.tool-card--danger {
    border-color: rgba(192, 57, 43, 0.3);
    background: rgba(192, 57, 43, 0.05);
}

.tool-card--danger:hover {
    border-color: rgba(192, 57, 43, 0.5);
}

.tool-card--muted {
    opacity: 0.8;
}

.tool-header h2 {
    font-size: 1.4rem;
    margin: 0 0 0.4rem 0;
    letter-spacing: 0.03em;
    color: var(--color-neon);
}

.tool-header p {
    color: var(--color-texto-mutado);
    font-size: 0.9rem;
    margin: 0 0 1.2rem 0;
}

/* Botones de Herramientas */
.tool-controls {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.btn-generate,
.btn-copy,
.btn-clear,
.btn-corte {
    padding: 0.65rem 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-texto);
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.03em;
}

.btn-generate {
    border-color: var(--color-neon);
    color: var(--color-neon);
}

.btn-generate:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--color-neon);
    transform: translateY(-1px);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.btn-corte {
    background: rgba(192, 57, 43, 0.2);
    border-color: rgba(192, 57, 43, 0.5);
    color: #e74c3c;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    width: 100%;
}

.btn-corte:hover {
    background: rgba(192, 57, 43, 0.4);
    box-shadow: 0 0 20px rgba(192, 57, 43, 0.3);
}

.btn-copy {
    font-size: 0.8rem;
    padding: 0.65rem 1rem;
}

.btn-clear {
    font-size: 0.8rem;
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--color-texto-mutato);
}

.btn-clear:hover {
    color: var(--color-danger);
    border-color: rgba(192, 57, 43, 0.3);
}

/* Área de Resultado */
.tool-output {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 1.4rem;
    min-height: 80px;
}

.output-placeholder {
    color: rgba(255, 255, 255, 0.25);
    font-style: italic;
    text-align: center;
    margin: 0;
}

.tool-output--dramatic {
    border-color: rgba(192, 57, 43, 0.15);
}

.tool-output--historial {
    max-height: 400px;
    overflow-y: auto;
}

/* Animaciones */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(8px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.fade-in {
    animation: fadeIn 0.4s ease-out;
}

/* Efecto Blackout */
@keyframes blackoutFlash {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

body.blackout::after {
    content: '';
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
    animation: blackoutFlash 0.8s ease-in-out forwards;
    pointer-events: none;
}

/* Tarjetas de Resultado Específicas */
.pnj-card,
.gancho-card,
.lugar-card,
.corte-card,
.complicacion-card,
.reloj-card {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.pnj-nombre {
    font-size: 1.5rem;
    color: var(--color-danger);
    margin: 0 0 0.3rem 0;
    letter-spacing: 0.05em;
}

.pnj-arquetipo,
.pnj-rasgo,
.pnj-detalle {
    font-size: 0.95rem;
}

.pnj-secreto,
.lugar-amenaza,
.gancho-complicacion {
    padding: 0.8rem 1rem;
    background: rgba(192, 57, 43, 0.1);
    border-left: 4px solid var(--color-danger);
    border-radius: 0 4px 4px 0;
    font-size: 0.9rem;
}

/* Badge de Nivel */
.gancho-nivel {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.nivel-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.nivel-1 { 
    background: rgba(46, 204, 113, 0.15); 
    color: #2ecc71; 
    border: 1px solid rgba(46, 204, 113, 0.3); 
}
.nivel-2 { 
    background: rgba(241, 196, 15, 0.15); 
    color: #f1c40f; 
    border: 1px solid rgba(241, 196, 15, 0.3); 
}
.nivel-3 { 
    background: rgba(230, 126, 34, 0.15); 
    color: #e67e22; 
    border: 1px solid rgba(230, 126, 34, 0.3); 
}
.nivel-4 { 
    background: rgba(192, 57, 43, 0.2); 
    color: #e74c3c; 
    border: 1px solid rgba(192, 57, 43, 0.4); 
}

.nivel-desc {
    font-size: 0.85rem;
    color: var(--color-texto-mutado);
}

.gancho-mision,
.gancho-giro,
.gancho-reloj {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Corte a Negro */
.corte-prompt {
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--color-sangre);
    text-align: center;
    padding: 1.5rem 0;
    border: 1px solid rgba(225, 29, 72, 0.2);
    border-radius: 4px;
    background: rgba(225, 29, 72, 0.05);
}

.corte-instruccion {
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-texto-mutado);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1rem;
    margin-top: 1rem;
}

/* Complicación */
.complicacion-dado {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.complicacion-texto {
    font-size: 1.2rem;
    text-align: center;
    color: var(--color-sangre);
    font-weight: 600;
}

.complicacion-detalle {
    font-size: 0.95rem;
    color: var(--color-texto-mutado);
    text-align: center;
    font-style: italic;
}

/* Reloj */
.reloj-tipo {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-texto-mutado);
    margin-bottom: 0.5rem;
}

.reloj-nombre {
    font-size: 1.3rem;
    color: var(--color-neon);
    margin-bottom: 0.5rem;
}

.reloj-segmentos {
    font-size: 0.9rem;
    color: var(--color-texto-mutado);
    margin-bottom: 1rem;
}

.reloj-visual {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

.reloj-svg {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.05));
}

.reloj-consecuencia {
    padding: 0.8rem 1rem;
    background: rgba(192, 57, 43, 0.1);
    border-left: 4px solid var(--color-danger);
    border-radius: 0 4px 4px 0;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.reloj-regla {
    font-size: 0.8rem;
    color: var(--color-texto-mutado);
    font-style: italic;
    margin-top: 0.5rem;
}

/* Historial */
.historial-item {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(0, 0, 0, 0.2);
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

.historial-item:last-child {
    border-bottom: none;
}

.historial-tipo {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-neon);
    display: inline-block;
}

.historial-hora {
    font-size: 0.75rem;
    color: var(--color-texto-mutado);
    margin-left: 1rem;
    font-family: var(--fuente-mono);
}

.historial-contenido {
    font-size: 0.9rem;
    color: var(--color-texto);
    margin-top: 0.5rem;
    line-height: 1.5;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
    body {
        padding-left: 0;
    }
    
    .main-nav {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 2px solid var(--color-borde);
        padding: 1.5rem;
    }
    
    .container {
        padding: 2rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .main-nav {
        padding: 1rem;
    }
    
    .nav-brand a {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .nav-links {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .nav-links li {
        margin-bottom: 0;
    }
    
    .nav-links a {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        border-left: none;
        border-bottom: 3px solid transparent;
    }
    
    .nav-links a:hover,
    .nav-links a.activo {
        border-left: none;
        border-bottom-color: var(--color-neon);
    }
    
    .container {
        padding: 1.5rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.2rem;
    }
    
    .grid-herramientas {
        grid-template-columns: 1fr;
    }
    
    .tool-controls {
        flex-direction: column;
    }
    
    .btn-generate,
    .btn-copy,
    .btn-clear,
    .btn-corte {
        width: 100%;
        text-align: center;
    }
    
    table {
        font-size: 0.8rem;
    }
    
    th, td {
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
        letter-spacing: 0.1em;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .tool-card {
        padding: 1.2rem;
    }
    
    .herramientas-page {
        padding: 1rem;
    }
}

/* ==========================================================================
   Utilidades
   ========================================================================== */
.text-center { text-align: center; }
.text-muted { color: var(--color-texto-mutado); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-fondo);
}

::-webkit-scrollbar-thumb {
    background: var(--color-borde);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-texto-mutado);
}

/* Selección de texto */
::selection {
    background: var(--color-sangre);
    color: #fff;
}

/* ==========================================================================
   MOTOR DE DADOS EXPLOSIVOS — Animaciones y Estilos
   ========================================================================== */

/* Configuración de la tirada */
.dados-config {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.config-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-texto-mutado);
    font-size: 0.9rem;
    font-weight: 600;
}

.select-nucleo {
    width: 100%;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-borde);
    border-radius: 4px;
    color: var(--color-texto);
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
}

.select-nucleo:focus {
    outline: none;
    border-color: var(--color-neon);
}

/* Modificadores */
.modificadores {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-mod {
    width: 40px;
    height: 40px;
    border: 2px solid var(--color-borde);
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-texto);
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-mod:hover {
    border-color: var(--color-neon);
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-neon);
}

.mod-display {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--fuente-mono);
    min-width: 40px;
    text-align: center;
}

.mod-help {
    display: block;
    margin-top: 0.5rem;
    color: var(--color-texto-mutado);
    font-size: 0.8rem;
    font-style: italic;
}

/* Botón de tirar */
.btn-tirar-dados {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, var(--color-sangre), #c41e3a);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(225, 29, 72, 0.3);
}

.btn-tirar-dados:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(225, 29, 72, 0.5);
}

.btn-tirar-dados:active {
    transform: translateY(0);
}

/* Arena de dados */
.dados-arena {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid var(--color-borde);
    border-radius: 8px;
    padding: 3rem;
    margin: 2rem 0;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.dados-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

/* Dado individual */
.dado {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2a2a30, #1a1a20);
    border: 3px solid var(--color-borde);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.dado-cara {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-texto);
    font-family: var(--fuente-mono);
}

/* Animación de giro */
.dado.dado-rolling {
    animation: dadoRolling 0.1s infinite;
}

@keyframes dadoRolling {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(90deg) scale(0.95); }
    50% { transform: rotate(180deg) scale(1); }
    75% { transform: rotate(270deg) scale(0.95); }
    100% { transform: rotate(360deg) scale(1); }
}

/* Dado con 6 (explosivo) */
.dado.dado-seis {
    border-color: var(--color-sangre);
    box-shadow: 0 0 20px rgba(225, 29, 72, 0.6);
    animation: dadoSeisPulse 0.5s ease;
}

.dado.dado-seis .dado-cara {
    color: var(--color-sangre);
}

@keyframes dadoSeisPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Dado de explosión */
.dado.dado-explosion {
    border-color: var(--color-warning);
    animation: dadoAppear 0.3s ease;
}

@keyframes dadoAppear {
    0% { transform: scale(0) rotate(0deg); opacity: 0; }
    50% { transform: scale(1.2) rotate(180deg); }
    100% { transform: scale(1) rotate(360deg); opacity: 1; }
}

/* Mensaje de explosión */
.explosion-msg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-sangre);
    text-shadow: 0 0 30px rgba(225, 29, 72, 0.8);
    z-index: 10;
    pointer-events: none;
}

.explosion-msg.explosion-anim {
    animation: explosionEffect 0.8s ease;
}

@keyframes explosionEffect {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.5); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

/* Tarjeta de resultado */
.resultado-card {
    text-align: center;
    border: 2px solid var(--color-borde);
}

.resultado-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-borde);
}

.resultado-header h2 {
    margin: 0;
}

.resultado-badge {
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-exito-total {
    background: rgba(16, 185, 129, 0.2);
    color: var(--color-neon);
    border: 2px solid var(--color-neon);
}

.badge-exito-costo {
    background: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
    border: 2px solid #f1c40f;
}

.badge-exito-parcial {
    background: rgba(230, 126, 34, 0.2);
    color: #e67e22;
    border: 2px solid #e67e22;
}

.badge-fracaso {
    background: rgba(192, 57, 43, 0.2);
    color: var(--color-danger);
    border: 2px solid var(--color-danger);
}

.badge-fracaso-grave {
    background: rgba(225, 29, 72, 0.3);
    color: var(--color-sangre);
    border: 2px solid var(--color-sangre);
    animation: badgePulse 1s infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 10px rgba(225, 29, 72, 0.3); }
    50% { box-shadow: 0 0 25px rgba(225, 29, 72, 0.6); }
}

/* Detalle del resultado */
.resultado-detalle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.resultado-numero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.valor-grande {
    font-size: 6rem;
    font-weight: 900;
    color: var(--color-texto);
    line-height: 1;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.valor-label {
    font-size: 1.2rem;
    color: var(--color-texto-mutado);
    margin-top: 0.5rem;
}

.resultado-info {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.resultado-info p {
    margin: 0.5rem 0;
    font-size: 1rem;
}

.resultado-info strong {
    color: var(--color-texto);
}

/* Interpretación */
.interpretacion {
    background: rgba(0, 0, 0, 0.3);
    border-left: 4px solid var(--color-borde);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 6px 6px 0;
}

.interpretacion h3 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
}

.interpretacion p {
    margin: 0.5rem 0;
    font-size: 1.05rem;
    line-height: 1.6;
}

.extra-info {
    color: var(--color-texto-mutado);
    font-style: italic;
    margin-top: 1rem !important;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Botón reset */
.btn-reset {
    padding: 0.75rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--color-borde);
    border-radius: 4px;
    color: var(--color-texto);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-reset:hover {
    border-color: var(--color-neon);
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-neon);
}

/* Responsive */
@media (max-width: 768px) {
    .dados-arena {
        padding: 1.5rem;
    }
    
    .dado {
        width: 60px;
        height: 60px;
    }
    
    .dado-cara {
        font-size: 2rem;
    }
    
    .resultado-detalle {
        grid-template-columns: 1fr;
    }
    
    .valor-grande {
        font-size: 4rem;
    }
    
    .explosion-msg {
        font-size: 2rem;
    }
}

/* ==========================================================================
   RELOJES DE TENSIÓN — Estilos Interactivos
   ========================================================================== */

.reloj-config {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.reloj-config .full-width {
    grid-column: 1 / -1;
}

.reloj-config input[type="text"],
.reloj-config select {
    width: 100%;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-borde);
    border-radius: 4px;
    color: var(--color-texto);
    font-family: inherit;
    font-size: 1rem;
}

.reloj-config input[type="text"]:focus,
.reloj-config select:focus {
    outline: none;
    border-color: var(--color-sangre);
}

.segmentos-selector {
    display: flex;
    gap: 0.5rem;
}

.btn-segmento {
    flex: 1;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--color-borde);
    border-radius: 4px;
    color: var(--color-texto);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-segmento:hover {
    border-color: var(--color-neon);
    background: rgba(16, 185, 129, 0.1);
}

.btn-segmento.activo {
    border-color: var(--color-sangre);
    background: rgba(225, 29, 72, 0.2);
    color: var(--color-sangre);
}

.btn-crear-reloj {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--color-sangre), #c41e3a);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-crear-reloj:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(225, 29, 72, 0.4);
}

/* Grid de Relojes Activos */
.relojes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.reloj-card {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--color-borde);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.reloj-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.reloj-card.reloj-completo {
    border-color: var(--color-sangre);
    box-shadow: 0 0 30px rgba(225, 29, 72, 0.3);
    animation: relojCompletoPulse 2s infinite;
}

@keyframes relojCompletoPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(225, 29, 72, 0.3); }
    50% { box-shadow: 0 0 40px rgba(225, 29, 72, 0.6); }
}

.reloj-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.reloj-tipo-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid;
}

.reloj-acciones {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border: 1px solid var(--color-borde);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    color: var(--color-texto);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-texto);
}

.btn-icon:last-child:hover {
    background: rgba(225, 29, 72, 0.2);
    border-color: var(--color-sangre);
}

.reloj-nombre {
    font-size: 1.3rem;
    margin: 0 0 1rem 0;
    color: var(--color-texto);
    text-align: center;
}

.reloj-visual {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

.reloj-svg {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.reloj-info {
    text-align: center;
}

.reloj-consecuencia {
    font-size: 0.9rem;
    color: var(--color-texto-mutado);
    margin: 0.5rem 0;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    border-left: 3px solid var(--color-sangre);
}

.reloj-progreso {
    font-size: 0.85rem;
    color: var(--color-texto-mutado);
    font-family: var(--fuente-mono);
}

.reloj-alerta-completo {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(225, 29, 72, 0.2);
    border: 2px solid var(--color-sangre);
    border-radius: 4px;
    color: var(--color-sangre);
    font-weight: 700;
    text-align: center;
    animation: alertaParpadeo 1s infinite;
}

@keyframes alertaParpadeo {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Sin relojes */
.no-relojes {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed var(--color-borde);
    border-radius: 8px;
    color: var(--color-texto-mutado);
}

/* Advertencia */
.advertencia-relojes {
    grid-column: 1 / -1;
    padding: 1rem;
    background: rgba(241, 196, 15, 0.1);
    border: 2px solid #f1c40f;
    border-radius: 6px;
    color: #f1c40f;
    text-align: center;
    margin-bottom: 1rem;
}

/* Modal de Cascada */
.cascada-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.cascada-content {
    background: var(--color-superficie);
    border: 3px solid var(--color-sangre);
    border-radius: 12px;
    padding: 2.5rem;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 0 50px rgba(225, 29, 72, 0.5);
    animation: cascadaAppear 0.5s ease;
}

@keyframes cascadaAppear {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.cascada-content h2 {
    color: var(--color-sangre);
    font-size: 2rem;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.cascada-consecuencia {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 6px;
    margin: 1.5rem 0;
    border-left: 4px solid var(--color-sangre);
}

.cascada-consecuencia h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
}

.cascada-regla {
    color: var(--color-texto-mutado);
    font-style: italic;
    margin: 1.5rem 0;
}

.btn-cascada {
    padding: 1rem 2rem;
    background: var(--color-sangre);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cascada:hover {
    background: #c41e3a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(225, 29, 72, 0.4);
}

/* Efecto de cascada en body */
body.cascada-activa {
    animation: pantallaCascada 0.5s ease;
}

@keyframes pantallaCascada {
    0%, 100% { background-color: var(--color-fondo); }
    50% { background-color: rgba(225, 29, 72, 0.1); }
}

/* Responsive */
@media (max-width: 768px) {
    .relojes-grid {
        grid-template-columns: 1fr;
    }
    
    .reloj-config {
        grid-template-columns: 1fr;
    }
    
    .reloj-svg {
        max-width: 250px;
    }
}

/* ==========================================================================
   CONSOLA DE PERSONAJE — Estilos Interactivos
   ========================================================================== */

/* Alerta de Colapso */
.alerta-colapso {
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.2), rgba(192, 57, 43, 0.3));
    border: 3px solid var(--color-sangre);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    animation: alertaPulse 1s infinite;
}

.alerta-colapso h2 {
    color: var(--color-sangre);
    font-size: 2rem;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@keyframes alertaPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(225, 29, 72, 0.3); }
    50% { box-shadow: 0 0 40px rgba(225, 29, 72, 0.6); }
}

/* Datos Básicos */
.datos-basicos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.datos-basicos .full-width {
    grid-column: 1 / -1;
}

.campo {
    display: flex;
    flex-direction: column;
}

.campo label {
    margin-bottom: 0.5rem;
    color: var(--color-texto-mutado);
    font-size: 0.9rem;
    font-weight: 600;
}

.campo input {
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-borde);
    border-radius: 4px;
    color: var(--color-texto);
    font-family: inherit;
    font-size: 1rem;
}

.campo input:focus {
    outline: none;
    border-color: var(--color-neon);
}

/* Atributos */
.atributos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.atributo-card {
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid var(--color-borde);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.atributo-card:hover {
    border-color: var(--color-neon);
    transform: translateY(-2px);
}

.atributo-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    color: var(--color-neon);
}

.atributo-desc {
    font-size: 0.85rem;
    color: var(--color-texto-mutado);
    margin: 0 0 1rem 0;
}

.atributo-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.atributo-control button {
    width: 40px;
    height: 40px;
    border: 2px solid var(--color-borde);
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-texto);
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.atributo-control button:hover {
    border-color: var(--color-neon);
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-neon);
}

.atributo-valor {
    font-size: 2.5rem;
    font-weight: 900;
    font-family: var(--fuente-mono);
    min-width: 50px;
    display: inline-block;
}

.puntos-display {
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 4px;
    border: 1px solid var(--color-neon);
}

/* Recursos */
.recursos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.recurso-card {
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid var(--color-borde);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.recurso-calor {
    border-color: rgba(225, 29, 72, 0.3);
}

.recurso-memoria {
    border-color: rgba(16, 185, 129, 0.3);
}

.recurso-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.recurso-calor h3 {
    color: var(--color-sangre);
}

.recurso-memoria h3 {
    color: var(--color-neon);
}

.recurso-desc {
    font-size: 0.9rem;
    color: var(--color-texto-mutado);
    margin: 0 0 1rem 0;
}

.recurso-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
}

.recurso-control button {
    width: 45px;
    height: 45px;
    border: 2px solid var(--color-borde);
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-texto);
    font-size: 1.8rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.recurso-control button:hover {
    border-color: var(--color-neon);
    background: rgba(16, 185, 129, 0.1);
}

.recurso-valor {
    font-size: 3rem;
    font-weight: 900;
    font-family: var(--fuente-mono);
    min-width: 60px;
    display: inline-block;
}

.recurso-max {
    font-size: 0.85rem;
    color: var(--color-texto-mutado);
    margin: 0.5rem 0;
}

.recurso-usos {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-uso {
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-borde);
    border-radius: 4px;
    color: var(--color-texto);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-uso:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--color-neon);
    color: var(--color-neon);
}

/* Etiquetas de Daño */
.etiquetas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.etiqueta-card {
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid var(--color-borde);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.etiqueta-menor {
    border-color: rgba(241, 196, 15, 0.3);
}

.etiqueta-mayor {
    border-color: rgba(230, 126, 34, 0.3);
}

.etiqueta-critico {
    border-color: rgba(225, 29, 72, 0.3);
}

.etiqueta-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
}

.etiqueta-menor h3 { color: #f1c40f; }
.etiqueta-mayor h3 { color: #e67e22; }
.etiqueta-critico h3 { color: var(--color-sangre); }

.etiqueta-card p {
    font-size: 0.9rem;
    color: var(--color-texto-mutado);
    margin: 0.5rem 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0;
    cursor: pointer;
    font-size: 0.95rem;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.recuperacion {
    font-size: 0.8rem;
    font-style: italic;
    color: var(--color-texto-mutado);
}

.penalizacion-dano {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(230, 126, 34, 0.1);
    border: 2px solid #e67e22;
    border-radius: 6px;
    color: #e67e22;
    font-weight: 600;
    text-align: center;
}

/* Activos */
.activos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.activo-card {
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid var(--color-borde);
    border-radius: 8px;
    padding: 1.5rem;
}

.activo-card label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-texto-mutado);
    font-size: 0.9rem;
    font-weight: 600;
}

.activo-card select,
.activo-card input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-borde);
    border-radius: 4px;
    color: var(--color-texto);
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.activo-card select:focus,
.activo-card input[type="text"]:focus {
    outline: none;
    border-color: var(--color-neon);
}

/* Secuelas */
.seculas-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem;
}

.secula-tipo label,
.secula-descripcion label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-texto-mutado);
    font-size: 0.9rem;
    font-weight: 600;
}

.secula-tipo select,
.secula-descripcion textarea {
    width: 100%;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-borde);
    border-radius: 4px;
    color: var(--color-texto);
    font-family: inherit;
    font-size: 1rem;
}

.secula-tipo select:focus,
.secula-descripcion textarea:focus {
    outline: none;
    border-color: var(--color-neon);
}

.secula-descripcion textarea {
    resize: vertical;
    min-height: 80px;
}

/* Acciones Rápidas */
.acciones-rapidas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.btn-accion {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--color-borde);
    border-radius: 6px;
    color: var(--color-texto);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-accion:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--color-neon);
    color: var(--color-neon);
    transform: translateY(-2px);
}

.btn-warning:hover {
    background: rgba(241, 196, 15, 0.1);
    border-color: #f1c40f;
    color: #f1c40f;
}

/* Notificaciones */
.notificacion {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    background: var(--color-superficie);
    border: 2px solid var(--color-neon);
    border-radius: 6px;
    color: var(--color-texto);
    font-weight: 600;
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.notificacion-show {
    opacity: 1;
    transform: translateY(0);
}

.notificacion-error {
    border-color: var(--color-sangre);
    background: rgba(225, 29, 72, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .atributos-grid,
    .recursos-grid,
    .etiquetas-grid,
    .activos-grid {
        grid-template-columns: 1fr;
    }
    
    .secuelas-container {
        grid-template-columns: 1fr;
    }
    
    .acciones-rapidas {
        grid-template-columns: 1fr;
    }
    
    .datos-basicos {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   GENERADOR DE ARMAS — Estilos
   ========================================================================== */

.armas-config {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.etiquetas-selector {
    display: flex;
    gap: 0.5rem;
}

.btn-etiqueta {
    flex: 1;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--color-borde);
    border-radius: 4px;
    color: var(--color-texto);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-etiqueta:hover {
    border-color: var(--color-neon);
    background: rgba(16, 185, 129, 0.1);
}

.btn-etiqueta.activo {
    border-color: var(--color-sangre);
    background: rgba(225, 29, 72, 0.2);
    color: var(--color-sangre);
}

.config-help {
    display: block;
    margin-top: 0.5rem;
    color: var(--color-texto-mutado);
    font-size: 0.8rem;
    font-style: italic;
}

.btn-generar-arma {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--color-neon), #059669);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-generar-arma:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

/* Display de Arma */
.arma-display {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--color-borde);
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
}

.arma-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-borde);
}

.arma-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.arma-menor {
    background: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
    border: 1px solid #f1c40f;
}

.arma-mayor {
    background: rgba(230, 126, 34, 0.2);
    color: #e67e22;
    border: 1px solid #e67e22;
}

.arma-critico {
    background: rgba(225, 29, 72, 0.2);
    color: var(--color-sangre);
    border: 1px solid var(--color-sangre);
}

.arma-header h2 {
    margin: 0;
    font-size: 1.8rem;
}

.arma-info {
    margin-bottom: 1.5rem;
}

.arma-info div {
    margin: 0.5rem 0;
    font-size: 1rem;
}

.arma-info strong {
    color: var(--color-texto);
}

/* Etiquetas Especiales */
.arma-etiquetas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.etiqueta-especial {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-borde);
    border-radius: 6px;
    padding: 1rem;
}

.etiqueta-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.etiqueta-icono {
    font-size: 1.5rem;
}

.etiqueta-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--color-neon);
}

.etiqueta-efecto {
    margin: 0.5rem 0;
    padding: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    border-left: 3px solid var(--color-neon);
    border-radius: 0 4px 4px 0;
    font-size: 0.9rem;
}

.etiqueta-desc {
    font-size: 0.85rem;
    color: var(--color-texto-mutado);
    margin: 0;
}

.arma-acciones {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-accion-arma {
    flex: 1;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--color-borde);
    border-radius: 4px;
    color: var(--color-texto);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-accion-arma:hover {
    border-color: var(--color-neon);
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-neon);
}

/* ==========================================================================
   PROTOCOLO DE CAÍDA — Estilos
   ========================================================================== */

.alerta-critica {
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.2), rgba(192, 57, 43, 0.3));
    border: 3px solid var(--color-sangre);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    animation: alertaPulse 1s infinite;
}

.alerta-critica h2 {
    color: var(--color-sangre);
    font-size: 2rem;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.paso-card {
    margin-bottom: 2rem;
    border: 2px solid var(--color-borde);
}

.paso-opcional {
    font-size: 0.9rem;
    color: var(--color-texto-mutado);
    font-weight: 400;
}

.btn-tirar-caida {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--color-sangre), #c41e3a);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.btn-tirar-caida:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(225, 29, 72, 0.4);
}

.resultado-caida {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--color-borde);
    border-radius: 6px;
    padding: 1.5rem;
}

.caida-resultado {
    text-align: center;
}

.caida-resultado h3 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
}

.caida-resultado.exito-total h3 { color: var(--color-neon); }
.caida-resultado.exito-costo h3 { color: #f1c40f; }
.caida-resultado.fracaso h3 { color: var(--color-sangre); }

.caida-resultado p {
    font-size: 1.05rem;
    line-height: 1.6;
}

.dados-tirados {
    margin: 1rem 0;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    font-family: var(--fuente-mono);
    font-size: 0.9rem;
}

.mejor-resultado {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 1rem;
}

/* Reloj de Muerte */
.reloj-muerte-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
}

.reloj-muerte-visual {
    flex-shrink: 0;
}

.reloj-svg-muerte {
    filter: drop-shadow(0 0 15px rgba(225, 29, 72, 0.3));
}

.reloj-muerte-info {
    flex: 1;
}

.reloj-muerte-info p {
    margin: 0.5rem 0;
    font-size: 1rem;
}

.reloj-controles {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.btn-avanzar-reloj {
    flex: 1;
    padding: 0.75rem;
    background: rgba(225, 29, 72, 0.2);
    border: 2px solid var(--color-sangre);
    border-radius: 4px;
    color: var(--color-sangre);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-avanzar-reloj:hover {
    background: rgba(225, 29, 72, 0.4);
    transform: translateY(-2px);
}

.btn-reset-reloj {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--color-borde);
    border-radius: 4px;
    color: var(--color-texto);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-reset-reloj:hover {
    border-color: var(--color-texto);
}

.alerta-muerte {
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.3), rgba(0, 0, 0, 0.5));
    border: 3px solid var(--color-sangre);
    border-radius: 8px;
    padding: 2rem;
    margin-top: 1.5rem;
    text-align: center;
    animation: muertePulse 1s infinite;
}

.alerta-muerte h3 {
    color: var(--color-sangre);
    font-size: 1.8rem;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
}

@keyframes muertePulse {
    0%, 100% { box-shadow: 0 0 20px rgba(225, 29, 72, 0.3); }
    50% { box-shadow: 0 0 40px rgba(225, 29, 72, 0.6); }
}

/* Secuelas */
.btn-generar-secuela {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.btn-generar-secuela:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.4);
}

.resultado-secuela {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid #9b59b6;
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.secula-resultado {
    text-align: center;
}

.secula-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.secula-icono {
    font-size: 3rem;
}

.secula-header h3 {
    margin: 0;
    font-size: 1.8rem;
    color: #9b59b6;
}

.secula-efectos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.secula-penalizacion {
    padding: 1rem;
    background: rgba(225, 29, 72, 0.1);
    border: 2px solid var(--color-sangre);
    border-radius: 6px;
}

.secula-beneficio {
    padding: 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid var(--color-neon);
    border-radius: 6px;
}

.secula-ejemplo {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    margin: 1rem 0;
    font-size: 1.05rem;
}

.secula-nota {
    font-style: italic;
    color: var(--color-texto-mutado);
    margin-top: 1rem;
}

.seculas-referencia {
    margin-top: 2rem;
}

.seculas-referencia h3 {
    margin-bottom: 1rem;
}

/* Botón de Pánico */
.btn-protocolo-panico {
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(135deg, #000, var(--color-sangre));
    border: 3px solid var(--color-sangre);
    border-radius: 8px;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: panicoPulse 2s infinite;
}

.btn-protocolo-panico:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(225, 29, 72, 0.6);
}

@keyframes panicoPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(225, 29, 72, 0.3); }
    50% { box-shadow: 0 0 40px rgba(225, 29, 72, 0.6); }
}

body.protocolo-activo {
    animation: protocoloFlash 0.5s ease;
}

@keyframes protocoloFlash {
    0%, 100% { background-color: var(--color-fondo); }
    50% { background-color: rgba(225, 29, 72, 0.1); }
}

/* Responsive */
@media (max-width: 768px) {
    .arma-etiquetas {
        grid-template-columns: 1fr;
    }
    
    .reloj-muerte-container {
        flex-direction: column;
        text-align: center;
    }
    
    .secuela-efectos {
        grid-template-columns: 1fr;
    }
    
    .arma-acciones {
        flex-direction: column;
    }
    
    .reloj-controles {
        flex-direction: column;
    }
}

/* ==========================================================================
   CIERRE DE SESIÓN — Estilos
   ========================================================================== */

.fase-oculta {
    display: none !important;
}

.ganchos-inputs {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-texto-mutado);
    font-weight: 600;
    font-size: 0.9rem;
}

.input-group input {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-borde);
    border-radius: 6px;
    color: var(--color-texto);
    font-size: 1.1rem;
    font-family: inherit;
}

.input-group input:focus {
    outline: none;
    border-color: var(--color-neon);
}

.btn-presentar {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, var(--color-neon), #059669);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-presentar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Selección */
.seleccion-header {
    text-align: center;
    margin-bottom: 2rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.card-gancho {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--color-borde);
    border-radius: 8px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card-gancho:hover {
    border-color: var(--color-neon);
    transform: translateY(-4px);
    background: rgba(16, 185, 129, 0.05);
}

.card-letra {
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-borde);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.card-gancho:hover .card-letra {
    color: var(--color-neon);
}

.card-texto {
    font-size: 1.2rem;
    line-height: 1.5;
    flex: 1;
}

.card-hint {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--color-texto-mutado);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Resolución */
.resolucion-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.gancho-elegido {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border: 2px solid var(--color-neon);
    border-radius: 8px;
    padding: 2.5rem;
    text-align: center;
}

.badge-elegido {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--color-neon);
    color: #000;
    font-weight: 900;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.gancho-elegido h2 {
    font-size: 1.8rem;
    margin: 0 0 1rem 0;
    color: #fff;
}

/* Relojes Finales */
.relojes-generados {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-borde);
    border-radius: 8px;
    padding: 2rem;
}

.relojes-generados h3 {
    margin-top: 0;
    color: var(--color-sangre);
    text-align: center;
}

.relojes-finales-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.reloj-final-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-borde);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.reloj-final-card h4 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    line-height: 1.4;
    min-height: 3em;
}

.reloj-visual-mini {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.reloj-status {
    font-size: 0.85rem;
    color: var(--color-texto-mutado);
    font-family: var(--fuente-mono);
}

.acciones-finales {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-guardar-relojes,
.btn-reset {
    padding: 1rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-guardar-relojes {
    background: var(--color-sangre);
    color: #fff;
}

.btn-guardar-relojes:hover {
    background: #be123c;
    transform: translateY(-2px);
}

.btn-reset {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-texto);
}

.btn-reset:hover {
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
    .relojes-finales-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   MUNDOS DE NÚCLEO — Estilos
   ========================================================================== */

.mundos-intro {
    max-width: var(--ancho-lectura);
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
    color: var(--color-texto-mutado);
    text-align: center;
}

.mundos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.mundo-card {
    background: var(--color-superficie);
    border: 1px solid var(--color-borde);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mundo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.mundo-header {
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--color-borde);
    position: relative;
}

.mundo-header h2 {
    margin: 0.5rem 0 0 0;
    font-size: 1.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.mundo-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-texto-mutado);
}

.mundo-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mundo-body p {
    margin: 0;
    color: var(--color-texto-mutado);
    line-height: 1.6;
}

.mundo-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mundo-features li {
    font-size: 0.9rem;
    color: var(--color-texto);
}

.mundo-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--color-borde);
    background: rgba(0, 0, 0, 0.2);
}

.btn-mundo {
    width: 100%;
    padding: 0.8rem;
    background: transparent;
    border: 1px solid var(--color-neon);
    color: var(--color-neon);
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-mundo:hover {
    background: var(--color-neon);
    color: #000;
}

/* Asegura que el enlace ocupe todo el ancho y tenga estilo de botón */
a.btn-mundo {
    display: block;       /* Hace que ocupe toda la línea/ancho del contenedor */
    width: 100%;          /* Fuerza el ancho completo */
    text-align: center;   /* Centra el texto */
    text-decoration: none;/* Elimina el subrayado del enlace */
    box-sizing: border-box; /* Evita que el padding interno rompa el ancho del 100% */
    cursor: pointer;      /* Mantiene el cursor de "mano" al pasar el ratón */
}

/* Variantes de color por mundo */

/* =========================================
   TEMA 1: NÚCLEO CENIZA (Post-Apocalíptico)
   ========================================= */
.mundo-ceniza {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    border: 1px solid #3a3a3a;
}

.mundo-ceniza .mundo-header {
    background: linear-gradient(135deg, #4a3b32 0%, #2d241e 100%);
    border-bottom: 2px solid #8b4513;
}

.mundo-ceniza .mundo-tag {
    background-color: rgba(139, 69, 19, 0.4);
    border: 1px solid #a0522d;
    color: #ffdead;
}

.mundo-ceniza .btn-mundo {
    background-color: #5c3a21;
    border-color: #8b4513;
    color: #ffdead;
}

.mundo-ceniza .btn-mundo:hover {
    background-color: #8b4513;
    color: #fff;
}


/* =========================================
   TEMA 2: PARANOIA STREAMLINED (Distopía)
   ========================================= */
.mundo-paranoia {
    background: linear-gradient(135deg, #111 0%, #000 100%);
    border: 2px solid #ff0000;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
}

.mundo-paranoia .mundo-header {
    background: linear-gradient(135deg, #8b0000 0%, #330000 100%);
    border-bottom: 2px solid #ff0000;
}

.mundo-paranoia .mundo-tag {
    background-color: #ffcc00;
    color: #000;
    font-weight: 900;
    border: 1px solid #fff;
}

.mundo-paranoia .mundo-header h2 {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
}

.mundo-paranoia .mundo-body p,
.mundo-paranoia .mundo-features li {
    color: #ddd;
}

.mundo-paranoia .mundo-features li strong {
    color: #ff4444;
}

.mundo-paranoia .btn-mundo {
    background-color: #ff0000;
    border-color: #ff4444;
    color: #fff;
    font-family: 'Courier New', Courier, monospace; /* Toque de terminal */
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.mundo-paranoia .btn-mundo:hover {
    background-color: #cc0000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
}


/* =========================================
   TEMA 3: TECH-SORCISMO (Cyberpunk Oculto)
   ========================================= */
.mundo-techsorcismo {
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    border: 1px solid #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.15);
}

.mundo-techsorcismo .mundo-header {
    background: linear-gradient(135deg, #2b1055 0%, #7597de 100%);
    border-bottom: 2px solid #ff00ff;
}

.mundo-techsorcismo .mundo-tag {
    background-color: rgba(0, 255, 255, 0.1);
    border: 1px solid #00ffff;
    color: #00ffff;
    text-shadow: 0 0 5px #00ffff;
}

.mundo-techsorcismo .mundo-header h2 {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.6);
}

.mundo-techsorcismo .mundo-features li strong {
    color: #ff00ff;
}

.mundo-techsorcismo .btn-mundo {
    background: linear-gradient(90deg, #ff00ff 0%, #00ffff 100%);
    border: none;
    color: #000;
    font-weight: 900;
    text-shadow: none;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.4);
}

.mundo-techsorcismo .btn-mundo:hover {
    background: linear-gradient(90deg, #00ffff 0%, #ff00ff 100%);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.6);
    color: #fff;
}

.mundo-neon h2 { color: #10b981; }
.mundo-neon .mundo-tag { background: rgba(16, 185, 129, 0.1); color: #10b981; }

.mundo-sangre h2 { color: #e11d48; }
.mundo-sangre .mundo-tag { background: rgba(225, 29, 72, 0.1); color: #e11d48; }

/* Estado Próximamente */
.mundo-proximamente {
    opacity: 0.6;
    border-style: dashed;
}

.mundo-proximamente:hover {
    transform: none;
    box-shadow: none;
}

.badge-proximamente {
    display: block;
    text-align: center;
    color: var(--color-texto-mutado);
    font-size: 0.9rem;
    font-style: italic;
}

@media (max-width: 768px) {
    .mundos-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   ESTILOS PARA LAS NUEVAS SECCIONES
   ========================================= */

/* Tema NÚCLEO (genérico) */
.mundo-nucleo {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-bottom: 2px solid #e74c3c;
}

.mundo-nucleo .mundo-tag {
    background-color: rgba(231, 76, 60, 0.2);
    border: 1px solid #e74c3c;
    color: #ecf0f1;
}

.mundo-nucleo .btn-mundo {
    background-color: #e74c3c;
    border-color: #c0392b;
    color: #fff;
}

.mundo-nucleo .btn-mundo:hover {
    background-color: #c0392b;
}

/* Estados de Daño */
.etiqueta-daño {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border-left: 4px solid;
}

.etiqueta-menor {
    background-color: rgba(241, 196, 15, 0.1);
    border-left-color: #f1c40f;
}

.etiqueta-menor h3 {
    color: #f1c40f;
}

.etiqueta-mayor {
    background-color: rgba(230, 126, 34, 0.1);
    border-left-color: #e67e22;
}

.etiqueta-mayor h3 {
    color: #e67e22;
}

.etiqueta-critico {
    background-color: rgba(231, 76, 60, 0.1);
    border-left-color: #e74c3c;
}

.etiqueta-critico h3 {
    color: #e74c3c;
}

/* Recursos detallados */
.recurso-detalle {
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.recurso-detalle h3 {
    color: #3498db;
    margin-top: 0;
}

.consecuencia-recurso {
    margin-top: 1rem;
    padding: 0.75rem;
    background-color: rgba(231, 76, 60, 0.15);
    border-left: 3px solid #e74c3c;
    border-radius: 4px;
}

/* Mecánicas paso a paso */
.mecanica-paso {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mecanica-paso:last-child {
    border-bottom: none;
}

.mecanica-paso h3 {
    color: #2ecc71;
    margin-top: 0;
}

.mecanica-paso h4 {
    color: #9b59b6;
    margin-top: 1rem;
}

/* Notas mecánicas */
.nota-mecanica {
    margin-top: 1rem;
    padding: 1rem;
    background-color: rgba(52, 152, 219, 0.1);
    border-left: 3px solid #3498db;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Ejemplos narrativos */
.ejemplo-narrativo {
    margin-top: 1rem;
    padding: 1rem;
    background-color: rgba(155, 89, 182, 0.1);
    border-left: 3px solid #9b59b6;
    border-radius: 4px;
    font-style: italic;
}

/* Secuelas */
.secuela-tipo {
    margin: 1rem 0;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.secuela-tipo h4 {
    color: #e67e22;
    margin-top: 0;
}

/* Tablas opcionales */
.tabla-opcional {
    margin-bottom: 2rem;
}

.tabla-opcional h3 {
    color: #1abc9c;
    margin-bottom: 1rem;
}

.tabla-opcional table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.tabla-opcional th,
.tabla-opcional td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tabla-opcional th {
    background-color: rgba(26, 188, 156, 0.2);
    color: #1abc9c;
    font-weight: 700;
}

.tabla-opcional tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.tabla-opcional ol {
    padding-left: 1.5rem;
}

.tabla-opcional li {
    margin-bottom: 0.5rem;
}

/* =========================================
   ESTILOS PARA EJEMPLOS DE JUEGO
   ========================================= */
.ejemplo-juego {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.ejemplo-juego::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #e74c3c, #f39c12);
}

.ejemplo-juego h3 {
    color: #f39c12;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ejemplo-juego p {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.ejemplo-juego strong {
    color: #ffffff;
}

/* Estilos para los diálogos (DJ vs Jugador) */
.ejemplo-juego p:has(strong) {
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

/* Si quieres diferenciar visualmente al DJ y al Jugador sin usar :has (por compatibilidad) */
.ejemplo-juego .dj-talk {
    background-color: rgba(52, 152, 219, 0.1);
    border-left: 3px solid #3498db;
}

.ejemplo-juego .player-talk {
    background-color: rgba(46, 204, 113, 0.1);
    border-left: 3px solid #2ecc71;
}

/* Caja de Mecánica Resaltada (Donde se explican los dados o el reloj) */
.mecanica-resaltada {
    background-color: rgba(231, 76, 60, 0.1);
    border: 1px dashed #e74c3c;
    border-radius: 8px;
    padding: 1rem 1.2rem;
    margin: 1rem 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    color: #ecf0f1;
}

.mecanica-resaltada strong {
    color: #e74c3c;
}

/* Notas al pie de los ejemplos */
.ejemplo-juego em {
    display: block;
    margin-top: 1rem;
    padding: 0.8rem;
    background-color: rgba(155, 89, 182, 0.1);
    border-radius: 6px;
    color: #bdc3c7;
    font-size: 0.9rem;
    border-left: 3px solid #9b59b6;
}

.site-footer {
    background-color: #1a1a1a;
    color: #999;
    padding: 2rem 1rem;
    margin-top: 3rem;
    border-top: 1px solid #333;
    text-align: center;
    font-size: 0.9rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.license-info {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.license-info a {
    color: #4a9eff;
    text-decoration: none;
}

.license-info a:hover {
    text-decoration: underline;
}

.footer-links {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #333;
}

.footer-links a {
    color: #666;
    margin: 0 0.5rem;
    text-decoration: none;
}

.footer-links a:hover {
    color: #4a9eff;
}

.nav-license {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.nav-license img {
    opacity: 0.7;
    transition: opacity 0.3s;
}

.nav-license img:hover {
    opacity: 1;
}

/* Cajas de ejemplos para mejorar la legibilidad (TEMA OSCURO) */
.ejemplo-box {
    background-color: rgba(0, 123, 255, 0.08); /* Azul muy sutil sobre fondo oscuro */
    border-left: 4px solid var(--color-neon); /* Verde neón de tu marca */
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 4px;
    font-style: italic;
    color: var(--color-texto);
}

.ejemplo-box strong {
    color: var(--color-neon);
}

/* Notas importantes para reglas clave (TEMA OSCURO) */
.nota-importante {
    background-color: rgba(255, 193, 7, 0.1); /* Amarillo sutil sobre fondo oscuro */
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-left: 4px solid var(--color-warning);
    padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
    color: var(--color-texto);
}

.nota-importante strong {
    color: var(--color-warning);
}

/* Ajuste para que las listas anidadas se vean limpias */
.section-block ul ul {
    margin-top: 8px;
    margin-bottom: 8px;
    color: var(--color-texto-mutado);
}

/* Estilos para la nueva sección de Secuelas (Sombra y Luz) */
.secuelas-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.secuela-sombra,
.secuela-luz {
    display: flex;
    flex-direction: column;
}

.secuela-sombra label {
    color: var(--color-sangre);
    font-weight: 700;
}

.secuela-luz label {
    color: var(--color-neon);
    font-weight: 700;
}

.secuela-sombra textarea,
.secuela-luz textarea {
    width: 100%;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-borde);
    border-radius: 4px;
    color: var(--color-texto);
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    min-height: 80px;
}

.secuela-sombra textarea:focus {
    outline: none;
    border-color: var(--color-sangre);
}

.secuela-luz textarea:focus {
    outline: none;
    border-color: var(--color-neon);
}

/* Estilos para la sección de Última Acción Desesperada */
.ultima-accion-info {
    background: rgba(225, 29, 72, 0.05);
    border: 1px solid rgba(225, 29, 72, 0.2);
    border-radius: 6px;
    padding: 1.5rem;
}

.ultima-accion-info p {
    margin: 0.5rem 0;
    font-size: 1rem;
}

/* Responsive para secuelas */
@media (max-width: 768px) {
    .secuelas-container {
        grid-template-columns: 1fr;
    }
}