/* =============================================
   TIRADAS INTERACTIVAS - DISEÑO PREMIUM
   Glassmorphism + Animaciones Modernas
   ============================================= */

/* === ANIMACIONES GLOBALES === */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 15px rgba(147, 51, 234, 0.2); }
    50% { box-shadow: 0 0 30px rgba(147, 51, 234, 0.5), 0 0 60px rgba(79, 70, 229, 0.2); }
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes cardReveal {
    0% { transform: rotateY(90deg) scale(0.8); opacity: 0; }
    60% { transform: rotateY(-10deg) scale(1.05); opacity: 1; }
    100% { transform: rotateY(0) scale(1); opacity: 1; }
}

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

@keyframes modalEnter {
    from { opacity: 0; transform: scale(0.9) translateY(30px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes borderGradient {
    0% { border-color: rgba(79, 70, 229, 0.4); }
    33% { border-color: rgba(147, 51, 234, 0.4); }
    66% { border-color: rgba(244, 63, 94, 0.4); }
    100% { border-color: rgba(79, 70, 229, 0.4); }
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

/* === CONTENEDOR PRINCIPAL === */
.tirada-interactiva-container {
    margin: 60px -40px; /* Pulling outwards to fill the parent container padding */
    padding: 60px 40px;
    background: rgba(15, 23, 42, 0.6); /* Un poco más oscuro y azulado */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 0; /* Esquinas rectas para efecto full-bleed dentro del artículo */
    border-left: none;
    border-right: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 800px) {
    .tirada-interactiva-container {
        margin: 40px -20px;
        padding: 40px 20px;
    }
}

.tirada-interactiva-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4f46e5, #9333ea, #f43f5e, #9333ea, #4f46e5);
    background-size: 200% 100%;
    animation: shimmer 4s linear infinite;
}

.tirada-interactiva-container::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: conic-gradient(from 0deg at 50% 50%, transparent 0%, rgba(147, 51, 234, 0.06) 25%, transparent 50%);
    animation: rotate 15s linear infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

.tirada-interactiva-container:hover {
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4), 0 0 30px rgba(147, 51, 234, 0.15);
}

/* === TÍTULO === */
.tirada-titulo-comun {
    text-align: center;
    margin-bottom: 28px;
    font-size: 1.8em;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #f8fafc 0%, #9333ea 50%, #f43f5e 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 5s linear infinite;
}

/* === LAYOUT CONTAINER === */
#layoutContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 28px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 20px;
    min-height: 360px;
    position: relative;
    overflow: visible;
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    box-sizing: border-box;
}

/* Niveles genéricos (Piramidal, Amor, Cinco) */
.nivel-piramidal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
    flex-wrap: nowrap;
}

@media (max-width: 600px) {
    .nivel-piramidal {
        gap: 6px;
    }
}

/* === POSICIONES / CARTAS === */
.posicion {
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    width: 100%;
    max-width: 150px;
    aspect-ratio: 2 / 3.2;
    color: #f8fafc;
    padding: 6px;
    box-sizing: border-box;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(147, 51, 234, 0.3);
    position: relative;
    animation: fadeSlideIn 0.5s ease backwards;
}

.posicion::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(147, 51, 234, 0.08) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.posicion:hover {
    border-color: rgba(147, 51, 234, 0.6);
    border-style: solid;
    background: rgba(147, 51, 234, 0.1);
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 8px 25px rgba(147, 51, 234, 0.3), 0 0 20px rgba(79, 70, 229, 0.15);
}

.posicion:hover::before {
    opacity: 1;
}

/* Stagger animation for positions */
.posicion:nth-child(1) { animation-delay: 0.05s; }
.posicion:nth-child(2) { animation-delay: 0.1s; }
.posicion:nth-child(3) { animation-delay: 0.15s; }
.posicion:nth-child(4) { animation-delay: 0.2s; }
.posicion:nth-child(5) { animation-delay: 0.25s; }

.posicion-nombre {
    font-size: 0.7em;
    font-weight: 600;
    color: #c4b5fd;
    margin: 0;
    line-height: 1;
    min-height: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.posicion-desc {
    font-size: 0.55em;
    color: #94a3b8;
    margin: 0;
    line-height: 1;
    min-height: 8px;
}

.posicion-carta {
    font-size: 4em;
    font-weight: bold;
    color: #a78bfa;
    text-shadow: 0 0 20px rgba(167, 139, 250, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: floatSoft 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

/* === CARTA SELECCIONADA === */
.posicion.seleccionada {
    border-style: solid;
    border-color: rgba(147, 51, 234, 0.5);
    background: rgba(147, 51, 234, 0.08);
    animation: pulseGlow 3s ease-in-out infinite, cardReveal 0.6s ease backwards;
    aspect-ratio: auto;
}

.posicion.seleccionada .posicion-carta {
    color: #a78bfa;
    text-shadow: 0 0 20px rgba(167, 139, 250, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    font-size: 0;
    line-height: 0;
    margin-top: 2px;
    width: 100%;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    animation: none;
}

.posicion-carta-img {
    width: 100%;
    height: auto;
    border-radius: 10px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(147, 51, 234, 0.2);
    border: 2px solid rgba(147, 51, 234, 0.2);
    background: #1e293b;
    object-fit: contain;
    display: block;
    transition: all 0.3s ease;
}

.posicion.seleccionada:hover .posicion-carta-img {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(147, 51, 234, 0.35);
    border-color: rgba(147, 51, 234, 0.5);
}

/* === MODALES — OVERLAY === */
#selectorModal, .modal-interpretacion, .modal-mensaje-faltan, .modal-instrucciones-lectura {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#selectorModal.active, .modal-interpretacion.active, .modal-mensaje-faltan.active, .modal-instrucciones-lectura.active {
    display: flex;
}

/* === MODAL SELECTOR DE CARTAS === */
.modal-content-selector {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 24px;
    width: 100%;
    max-width: 640px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(147, 51, 234, 0.15);
    animation: modalEnter 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-header {
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc, #c4b5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#cartasGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
    max-height: 420px;
    overflow-y: auto;
    margin-bottom: 16px;
    padding: 4px;
}

/* Scrollbar styling */
#cartasGrid::-webkit-scrollbar,
.modal-content-selector::-webkit-scrollbar {
    width: 6px;
}

#cartasGrid::-webkit-scrollbar-track,
.modal-content-selector::-webkit-scrollbar-track {
    background: transparent;
}

#cartasGrid::-webkit-scrollbar-thumb,
.modal-content-selector::-webkit-scrollbar-thumb {
    background: rgba(147, 51, 234, 0.3);
    border-radius: 10px;
}

.carta-option {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    height: 115px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.carta-option::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.15), rgba(147, 51, 234, 0.15));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.carta-option:hover {
    border-color: rgba(147, 51, 234, 0.5);
    background: rgba(147, 51, 234, 0.12);
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 20px rgba(147, 51, 234, 0.25);
}

.carta-option:hover::after {
    opacity: 1;
}

.carta-option.deshabilitada {
    opacity: 0.2;
    cursor: not-allowed;
    filter: grayscale(1);
}

.carta-option.deshabilitada:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.08);
}

.carta-option-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    border-radius: 8px;
    position: relative;
    z-index: 1;
}

.close-btn {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.8), rgba(244, 63, 94, 0.6));
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1em;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
}

.close-btn:hover {
    background: linear-gradient(135deg, rgba(244, 63, 94, 1), rgba(244, 63, 94, 0.85));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 63, 94, 0.3);
}

/* === MODAL DE INTERPRETACIÓN === */
.modal-interpretacion-content {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 0;
    max-width: 560px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 50px rgba(147, 51, 234, 0.15);
    animation: modalEnter 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.modal-interpretacion-content::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4f46e5, #9333ea, #f43f5e);
    border-radius: 24px 24px 0 0;
}

.modal-interpretacion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-interpretacion-header h3 {
    margin: 0;
    font-size: 1.4em;
    font-weight: 700;
    background: linear-gradient(135deg, #f8fafc, #c4b5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-interpretacion-close {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 1.5em;
    cursor: pointer;
    padding: 4px 10px;
    line-height: 1;
    border-radius: 10px;
    transition: all 0.25s ease;
}

.modal-interpretacion-close:hover {
    background: rgba(244, 63, 94, 0.15);
    border-color: rgba(244, 63, 94, 0.3);
    color: #f43f5e;
    transform: scale(1.1);
}

.modal-interpretacion-body {
    padding: 24px 28px;
}

.modal-interpretacion-posicion {
    color: #a78bfa;
    font-size: 0.8em;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.modal-interpretacion-cartaname {
    color: #f8fafc;
    font-size: 1.25em;
    font-weight: 600;
    margin-bottom: 18px;
    padding: 14px 16px;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 14px;
    border-left: 4px solid #9333ea;
    border: 1px solid rgba(147, 51, 234, 0.2);
    border-left: 4px solid #9333ea;
}

.modal-interpretacion-texto {
    color: #94a3b8;
    font-size: 1em;
    line-height: 1.85;
    text-align: justify;
}

.modal-interpretacion-texto p {
    margin: 0 0 14px 0;
}

.modal-interpretacion-actions {
    display: flex;
    gap: 12px;
    padding: 18px 28px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-cerrar-modal {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 13px 22px;
    font-size: 1em;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-cerrar-modal:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* === MODALES DE MENSAJE E INSTRUCCIONES === */
.modal-mensaje-content, .modal-instrucciones-content {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 36px;
    max-width: 450px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 50px rgba(147, 51, 234, 0.15);
    color: #f8fafc;
    animation: modalEnter 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.modal-mensaje-content::before, .modal-instrucciones-content::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4f46e5, #9333ea, #f43f5e);
}

.modal-mensaje-icon, .modal-instrucciones-icon {
    font-size: 3.2em;
    margin-bottom: 16px;
    display: inline-block;
    animation: floatSoft 2.5s ease-in-out infinite;
}

.modal-instrucciones-content h3 {
    font-size: 1.6em;
    font-weight: 700;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #f8fafc, #c4b5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-instrucciones-content > p {
    color: #94a3b8;
    margin-bottom: 22px;
    font-size: 1.05em;
    line-height: 1.6;
}

.modal-instrucciones-pasos {
    background: rgba(79, 70, 229, 0.06);
    border: 1px solid rgba(147, 51, 234, 0.15);
    border-radius: 14px;
    padding: 18px 22px;
    margin-bottom: 24px;
    text-align: left;
}

.modal-instrucciones-pasos p {
    color: #c4b5fd;
    margin-bottom: 10px;
    font-weight: 600;
}

.modal-instrucciones-pasos ul {
    color: #94a3b8;
    padding-left: 20px;
    margin: 0;
}

.modal-instrucciones-pasos li {
    margin-bottom: 8px;
    line-height: 1.6;
    font-size: 0.95em;
}

.modal-instrucciones-pasos strong {
    color: #c4b5fd;
}

/* === BOTONES PREMIUM === */
.btn-cerrar-mensaje, .btn-iniciar-lectura {
    background: linear-gradient(135deg, #4f46e5, #9333ea);
    color: white;
    border: none;
    padding: 13px 32px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.95em;
    box-shadow: 0 4px 18px rgba(79, 70, 229, 0.35);
    position: relative;
    overflow: hidden;
}

.btn-iniciar-lectura {
    padding: 15px 32px;
    font-size: 1.05em;
    width: 100%;
}

.btn-cerrar-mensaje::before, .btn-iniciar-lectura::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s ease;
}

.btn-iniciar-lectura:hover, .btn-cerrar-mensaje:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 28px rgba(79, 70, 229, 0.5);
}

.btn-iniciar-lectura:hover::before, .btn-cerrar-mensaje:hover::before {
    left: 100%;
}

/* === BOTÓN REINICIAR (override del global si es necesario) === */
.tirada-interactiva-container .reiniciar-btn {
    display: none;
    background: linear-gradient(135deg, #4f46e5 0%, #9333ea 100%);
    color: #fff !important;
    border: none;
    padding: 14px 35px;
    font-size: 1.05em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.35);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: 24px auto;
    position: relative;
    overflow: hidden;
}

.tirada-interactiva-container .reiniciar-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.45);
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
    .modal-mensaje-content,
    .modal-instrucciones-content {
        max-width: 95%;
        padding: 24px 20px;
    }
    
    .modal-mensaje-icon,
    .modal-instrucciones-icon {
        font-size: 2.5em;
    }
    
    .tirada-interactiva-container {
        padding: 18px 14px;
        margin: 24px 0;
        border-radius: 18px;
    }
    
    .tirada-titulo-comun {
        font-size: 1.35em;
    }
    
    #layoutContainer {
        padding: 15px 10px;
        gap: 12px;
        min-height: auto;
        border-radius: 14px;
    }
    
    .posicion {
        max-width: 80px;
        border-radius: 10px;
    }
    
    .posicion-nombre, .posicion-desc {
        display: none;
    }
    
    .posicion-carta {
        font-size: 2.5em;
    }
    
    .posicion-carta-img {
        max-height: calc(100% - 14px);
        border-radius: 7px !important;
    }

    .modal-content-selector {
        padding: 18px 14px;
        border-radius: 16px;
    }

    .modal-interpretacion-content {
        border-radius: 18px;
    }

    .modal-interpretacion-header {
        padding: 18px 20px 14px;
    }

    .modal-interpretacion-body {
        padding: 18px 20px;
    }

    .modal-interpretacion-actions {
        padding: 14px 20px 18px;
    }
}

/* === ALIAS: clases antiguas usadas por tiradas standalone === */
/* Contenedor y título */
.tirada-piramidal-container {
    margin: 50px 0;
    padding: 40px 30px;
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tirada-piramidal-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4f46e5, #9333ea, #f43f5e, #9333ea, #4f46e5);
    background-size: 200% 100%;
    animation: shimmer 4s linear infinite;
}

.tirada-piramidal-titulo {
    text-align: center;
    margin-bottom: 28px;
    font-size: 1.8em;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #f8fafc 0%, #9333ea 50%, #f43f5e 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 5s linear infinite;
}

/* Modal selector con clase antigua */
.modal-piramidal,
.modal-piramidal.active {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-piramidal.active {
    display: flex;
}

.modal-content-piramidal {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 24px;
    width: 100%;
    max-width: 640px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(147, 51, 234, 0.15);
    animation: modalEnter 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Row labels (usados en tirada pasado) */
.row-label {
    font-size: 0.85em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    padding: 6px 16px;
    margin-top: 8px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.15), rgba(147, 51, 234, 0.15));
    border-radius: 20px;
    color: #c4b5fd;
    border: 1px solid rgba(147, 51, 234, 0.2);
}

/* Responsive aliases */
@media (max-width: 600px) {
    .tirada-piramidal-container {
        padding: 18px 14px;
        margin: 24px 0;
        border-radius: 18px;
    }

    .tirada-piramidal-titulo {
        font-size: 1.35em;
    }

    .modal-content-piramidal {
        padding: 18px 14px;
        border-radius: 16px;
    }
}
