/* ============================================
   BOBARE GANA - ESTILOS COMPLETOS
   Paleta basada en Triple Zamorano
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Nueva paleta de colores Triple Zamorano */
    --primary-orange: #FF8C42;
    --secondary-orange: #FFA552;
    --accent-red: #E63946;
    --bright-red: #FF4444;
    --golden-yellow: #FFD60A;
    --warm-yellow: #FFC914;
    
    /* Fondos */
    --dark-bg: #1A1A1A;
    --card-bg: #2A2A2A;
    --light-bg: #FFF5E6;
    
    /* Textos */
    --text-light: #FFFFFF;
    --text-dark: #2A2A2A;
    --text-gray: #A0A0A0;
    
    /* Estados */
    --success: #00D084;
    --danger: #FF3B30;
    --warning: #FFCC00;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #2A1A0F 0%, #1A1A1A 100%);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================
   HEADER
   ============================================ */

.main-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--accent-red) 100%);
    box-shadow: 0 4px 20px rgba(255, 140, 66, 0.3);
    padding: 15px 0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.logo-space {
    flex-shrink: 0;
}

.logo-placeholder {
    background: rgba(255, 255, 255, 0.2);
    border: 3px dashed rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 15px 30px;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.main-nav {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.nav-link.active {
    background: white;
    color: var(--primary-orange);
}

.btn-jugar {
    background: var(--golden-yellow);
    color: var(--text-dark);
    font-weight: 700;
    animation: pulse 2s infinite;
}

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

.btn-resultados {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 40px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-orange);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.btn-resultados:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 140, 66, 0.5);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, 
        var(--accent-red) 0%, 
        var(--primary-orange) 50%, 
        var(--golden-yellow) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 214, 10, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 68, 68, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1200px;
    width: 100%;
}

.logo-container {
    margin-bottom: 40px;
}

.logo-text {
    font-size: 4.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, white 0%, var(--golden-yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 10px 30px rgba(255, 140, 66, 0.5);
    margin-bottom: 10px;
}

.tagline {
    font-size: 1.8rem;
    color: white;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.rifa-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 40px auto 0;
    max-width: 1000px;
}

.info-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(255, 140, 66, 0.4);
}

.info-icon {
    font-size: 2.5rem;
}

.info-card > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: left;
}

.info-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 500;
}

.info-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-orange);
}

.hero-decoration {
    display: none;
}

/* ============================================
   SIGNOS SECTION
   ============================================ */

.signos-section {
    padding: 80px 20px;
    background: var(--dark-bg);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--golden-yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 50px;
    font-size: 1.3rem;
}

/* ============================================
   PREVIEW DE SIGNOS SELECCIONADOS
   ============================================ */

.signos-seleccionados-preview {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--accent-red) 100%);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(255, 140, 66, 0.3);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.preview-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.preview-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
}

#signosSeleccionadosList,
.signos-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
    justify-content: center;
}

.signo-tag {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    animation: popIn 0.2s ease;
}

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

.preview-total {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--golden-yellow);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ============================================
   GRID DE SIGNOS
   ============================================ */

.signos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.signo-card {
    background: var(--card-bg);
    border: 3px solid transparent;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.signo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--accent-red) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.signo-card:hover::before {
    opacity: 0.15;
}

.signo-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-orange);
    box-shadow: 0 20px 40px rgba(255, 140, 66, 0.4);
}

.signo-card.selected {
    border-color: var(--golden-yellow);
    background: linear-gradient(135deg, rgba(255, 140, 66, 0.2) 0%, rgba(230, 57, 70, 0.2) 100%);
}

.signo-card.selected::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    background: var(--golden-yellow);
    color: var(--text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.2rem;
}

/* CORRECCIÓN: Ocultar checkbox visualmente pero mantenerlo funcional */
.signo-checkbox {
    position: absolute;
    top: 15px;
    left: 15px;
    opacity: 0;
    pointer-events: none;
}

.signo-check {
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: var(--golden-yellow);
    opacity: 0;
    pointer-events: none;
}

.signo-emoji {
    font-size: 5rem;
    margin: 20px 0;
    display: block;
    position: relative;
    z-index: 1;
}

.signo-nombre {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

.signo-precio,
.signo-badge {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--golden-yellow);
    position: relative;
    z-index: 1;
}

/* ============================================
   BOTONES DE ACCIÓN
   ============================================ */

.acciones-seleccion {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
    padding: 20px 0;
}

.btn-limpiar {
    padding: 18px 40px;
    background: transparent;
    color: white;
    border: 3px solid var(--primary-orange);
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-limpiar:hover {
    background: var(--primary-orange);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 140, 66, 0.4);
}

.btn-continuar {
    position: relative;
    padding: 18px 50px 18px 40px;
    background: linear-gradient(135deg, var(--golden-yellow) 0%, var(--warm-yellow) 100%);
    color: var(--text-dark);
    border: none;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 214, 10, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-continuar:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 214, 10, 0.6);
}

.btn-continuar:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--text-gray);
}

#btnBadge {
    background: var(--accent-red);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 900;
    font-size: 1.1rem;
    margin-left: 8px;
}

/* ============================================
   MODAL
   ============================================ */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--card-bg);
    margin: 50px auto;
    padding: 40px;
    border: 3px solid var(--primary-orange);
    border-radius: 25px;
    width: 90%;
    max-width: 700px;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-gray);
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--accent-red);
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-header h2 {
    font-size: 2.2rem;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--golden-yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

/* ============================================
   MODAL - LISTA DE SIGNOS
   ============================================ */

.signos-modal-container {
    background: rgba(255, 140, 66, 0.1);
    border: 2px solid var(--primary-orange);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
}

.modal-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--golden-yellow);
    margin-bottom: 15px;
    display: block;
}

.signos-modal-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 15px;
}

.signo-modal-item {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--accent-red) 100%);
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(255, 140, 66, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.signo-modal-item .emoji {
    font-size: 2.5rem;
    display: block;
}

.signo-modal-item .nombre {
    font-weight: 600;
    font-size: 0.95rem;
    color: white;
}

/* ============================================
   MODAL - TOTALES
   ============================================ */

.modal-totales {
    background: linear-gradient(135deg, rgba(255, 140, 66, 0.2) 0%, rgba(230, 57, 70, 0.2) 100%);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.total-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.total-item span {
    font-size: 0.95rem;
    color: var(--text-gray);
}

.total-item strong {
    font-size: 1.4rem;
    color: var(--text-light);
    font-weight: 800;
}

.total-destacado {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--accent-red) 100%);
    padding: 15px 25px;
    border-radius: 12px;
    text-align: center;
}

.total-destacado span {
    color: rgba(255, 255, 255, 0.8);
}

.total-destacado strong {
    font-size: 1.8rem;
    color: var(--golden-yellow);
}

/* ============================================
   FORMULARIO
   ============================================ */

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-light);
    font-size: 1.1rem;
}

.form-group input {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 140, 66, 0.3);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-orange);
    background: rgba(255, 255, 255, 0.12);
}

/* CORRECCIÓN: Select con estilos visibles */
.form-group select {
    width: 100%;
    padding: 15px;
    background: rgba(42, 42, 42, 0.95);
    border: 2px solid rgba(255, 140, 66, 0.3);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF8C42' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
    padding-right: 45px;
}

/* Grupo teléfono con selector de país */
.telefono-grupo {
    display: flex;
    gap: 8px;
}

.telefono-grupo select {
    flex: 0 0 auto;
    width: auto;
    max-width: 200px;
    padding: 15px 10px;
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,140,66,0.3);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 0.85rem;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
}

.telefono-grupo select:focus {
    outline: none;
    border-color: var(--primary-orange);
}

.telefono-grupo input {
    flex: 1;
}

@media (max-width: 480px) {
    .telefono-grupo {
        flex-direction: column;
    }
    .telefono-grupo select {
        max-width: 100%;
    }
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary-orange);
    background: rgba(42, 42, 42, 1);
    box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.1);
}

.form-group select option {
    background: #2A2A2A;
    color: white;
    padding: 12px;
    font-weight: 600;
}

.form-group select option:hover {
    background: var(--primary-orange);
}

.form-group select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.instrucciones-pago {
    background: linear-gradient(135deg, rgba(255, 140, 66, 0.1) 0%, rgba(230, 57, 70, 0.1) 100%);
    border-left: 4px solid var(--primary-orange);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: none;
}

.instrucciones-pago.show {
    display: block;
}

.instrucciones-pago h3 {
    color: var(--golden-yellow);
    margin-bottom: 15px;
}

.instrucciones-pago p {
    color: var(--text-light);
    margin-bottom: 8px;
}

#preview-comprobante {
    margin-top: 15px;
    text-align: center;
}

#preview-comprobante img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 10px;
    border: 2px solid var(--primary-orange);
}

/* ============================================
   MONTO TOTAL EN FOOTER DEL FORM
   ============================================ */

.monto-total-footer {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--accent-red) 100%);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.monto-total-footer span {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
}

.monto-total-footer strong {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--golden-yellow);
}

.btn-submit {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, var(--golden-yellow) 0%, var(--warm-yellow) 100%);
    color: var(--text-dark);
    border: none;
    border-radius: 15px;
    font-size: 1.3rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 214, 10, 0.4);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 214, 10, 0.6);
}

.btn-submit:disabled {
    background: var(--text-gray);
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    text-align: center;
    padding: 40px 20px;
    background: var(--card-bg);
    color: var(--text-gray);
    border-top: 2px solid var(--primary-orange);
}

.footer p {
    margin-bottom: 10px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav {
        width: 100%;
        justify-content: center;
    }
    
    .nav-link {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .logo-text {
        font-size: 2.8rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .rifa-info {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .signos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .signo-card {
        padding: 20px 10px;
    }
    
    .signo-emoji {
        font-size: 3.5rem;
    }
    
    .signo-nombre {
        font-size: 1.3rem;
    }
    
    .modal-content {
        margin: 20px auto;
        padding: 25px 20px;
    }
    
    .preview-content {
        flex-direction: column;
        text-align: center;
    }
    
    .signos-list {
        justify-content: center;
        width: 100%;
    }
    
    .acciones-seleccion {
        flex-direction: column;
    }
    
    .btn-limpiar,
    .btn-continuar {
        width: 100%;
        justify-content: center;
    }
    
    .signos-modal-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-totales {
        flex-direction: column;
        text-align: center;
    }
    
    .total-item {
        width: 100%;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .rifa-info {
        grid-template-columns: 1fr;
    }
    
    .signos-modal-list {
        grid-template-columns: 1fr;
    }
    
    .preview-label {
        font-size: 1rem;
    }
    
    .preview-total {
        font-size: 1.3rem;
    }
}

/* ============================================
   HERO CON IMAGEN DE FONDO
   ============================================ */

.hero-image {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-image-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-image-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 40px 20px;
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    animation: fadeInDown 1s ease;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 40px;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 1s ease;
}

.btn-jugar-hero {
    display: inline-block;
    padding: 25px 60px;
    background: linear-gradient(135deg, var(--golden-yellow) 0%, var(--warm-yellow) 100%);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 20px 60px rgba(255, 214, 10, 0.6);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.btn-jugar-hero:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 30px 80px rgba(255, 214, 10, 0.8);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   INFO SECTION
   ============================================ */

.info-section {
    padding: 60px 20px;
    background: var(--dark-bg);
}

.info-section .rifa-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

/* ============================================
   BOTÓN FLOTANTE DE WHATSAPP
   ============================================ */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
    z-index: 999;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.7);
}

.whatsapp-float svg {
    width: 40px;
    height: 40px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ============================================
   FOOTER MEJORADO
   ============================================ */

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-credit {
    font-size: 1.1rem;
    color: var(--golden-yellow);
    font-weight: 600;
    margin: 10px 0;
}

.footer-credit strong {
    color: var(--primary-orange);
}

.footer-links {
    margin-top: 20px;
}

.footer-whatsapp {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .btn-jugar-hero {
        padding: 20px 40px;
        font-size: 1.3rem;
    }
    
    .whatsapp-float {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float svg {
        width: 35px;
        height: 35px;
    }
}
/* ============================================
   SISTEMA DE BLOQUEO DE SIGNOS
   Estilos integrados con la paleta Triple Zamorano
   Agregar al final de assets/css/style.css
   ============================================ */

/* ============================================
   TARJETA DE SIGNO BLOQUEADO
   ============================================ */

.signo-card.signo-bloqueado {
    opacity: 0.5;
    cursor: not-allowed !important;
    background: rgba(230, 57, 70, 0.15) !important; /* Usando accent-red */
    border-color: rgba(255, 59, 48, 0.4) !important; /* danger color */
    pointer-events: none;
}

/* Deshabilitar el efecto hover en signos bloqueados */
.signo-card.signo-bloqueado:hover {
    transform: none !important;
    box-shadow: none !important;
}

.signo-card.signo-bloqueado:hover::before {
    opacity: 0 !important;
}

/* ============================================
   BADGE DE SIGNO BLOQUEADO
   ============================================ */

.signo-card.signo-bloqueado .signo-badge,
.signo-card.signo-bloqueado .signo-precio {
    background: rgba(255, 59, 48, 0.9) !important;
    color: white !important;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
}

/* ============================================
   CHECKBOX DESHABILITADO
   ============================================ */

.signo-card.signo-bloqueado .signo-checkbox,
.signo-card.signo-bloqueado .signo-check {
    cursor: not-allowed !important;
    pointer-events: none !important;
    opacity: 0.3;
}

/* ============================================
   EMOJI Y NOMBRE BLOQUEADO
   ============================================ */

.signo-card.signo-bloqueado .signo-emoji {
    position: relative;
    opacity: 0.6;
}

/* Línea tachada sobre el emoji */
.signo-card.signo-bloqueado .signo-emoji::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 4px;
    background: rgba(255, 59, 48, 0.8);
    transform: translateY(-50%) rotate(-15deg);
    border-radius: 2px;
}

.signo-card.signo-bloqueado .signo-nombre {
    opacity: 0.7;
    color: var(--text-gray);
}

/* ============================================
   PATRÓN DIAGONAL DE BLOQUEO
   ============================================ */

.signo-card.signo-bloqueado::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(230, 57, 70, 0.08) 10px,
        rgba(230, 57, 70, 0.08) 20px
    ) !important;
    border-radius: 20px;
    pointer-events: none;
    opacity: 1 !important;
    z-index: 1;
}

/* ============================================
   CANDADO EN ESQUINA SUPERIOR DERECHA
   ============================================ */

.signo-card.signo-bloqueado::after {
    content: '🔒';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    opacity: 0.7;
    z-index: 3;
    animation: none !important;
}

/* Asegurar que el checkmark de seleccionado no aparezca */
.signo-card.signo-bloqueado.selected::after {
    content: '🔒' !important;
    background: transparent !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
}

/* ============================================
   CONTADOR DE SIGNOS DISPONIBLES (OPCIONAL)
   ============================================ */

#contadorDisponibles {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--accent-red) 100%);
    color: white;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(255, 140, 66, 0.4);
    text-align: center;
}

/* ============================================
   ANIMACIONES PARA SIGNOS DISPONIBLES
   ============================================ */

/* Efecto de pulso más suave para signos disponibles */
.signo-card:not(.signo-bloqueado):hover {
    animation: subtlePulse 0.4s ease;
}

@keyframes subtlePulse {
    0%, 100% {
        transform: translateY(-10px) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.02);
    }
}

/* ============================================
   TOOLTIP PARA SIGNOS BLOQUEADOS (OPCIONAL)
   ============================================ */

.signo-card.signo-bloqueado {
    position: relative;
}

.signo-card.signo-bloqueado[data-tooltip]::before {
    content: 'Este signo ya fue jugado';
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 16px;
    background: rgba(255, 59, 48, 0.95);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.signo-card.signo-bloqueado:hover::before {
    opacity: 0;  /* Desactivado por defecto, cambiar a 1 si quieres tooltips */
}

/* ============================================
   AJUSTES PARA MANTENER Z-INDEX CORRECTO
   ============================================ */

.signo-card .signo-emoji,
.signo-card .signo-nombre,
.signo-card .signo-precio,
.signo-card .signo-badge {
    position: relative;
    z-index: 2;
}

/* ============================================
   ESTADO DE CARGA (OPCIONAL)
   ============================================ */

.signos-grid.loading {
    opacity: 0.6;
    pointer-events: none;
}

.signos-grid.loading::after {
    content: '⏳ Cargando disponibilidad...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--accent-red) 100%);
    color: white;
    padding: 20px 40px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 100;
}

/* ============================================
   MENSAJE DE ALERTA PARA SIGNOS BLOQUEADOS
   ============================================ */

.alerta {
    position: fixed;
    top: 80px;
    right: 20px;
    padding: 20px 30px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 1rem;
    z-index: 10000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideInRight 0.3s ease;
    max-width: 400px;
}

.alerta-error {
    background: linear-gradient(135deg, var(--danger) 0%, var(--accent-red) 100%);
    color: white;
}

.alerta-success {
    background: linear-gradient(135deg, var(--success) 0%, #00B377 100%);
    color: white;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============================================
   RESPONSIVE PARA SIGNOS BLOQUEADOS
   ============================================ */

@media (max-width: 768px) {
    .signo-card.signo-bloqueado::after {
        font-size: 20px;
        top: 10px;
        right: 10px;
    }
    
    #contadorDisponibles {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
    
    .alerta {
        top: 70px;
        right: 10px;
        left: 10px;
        max-width: none;
        font-size: 0.9rem;
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .signo-card.signo-bloqueado::after {
        font-size: 18px;
        top: 8px;
        right: 8px;
    }
    
    .signo-card.signo-bloqueado .signo-emoji::after {
        height: 3px;
    }
}

/* ============================================
   MEJORAS VISUALES ADICIONALES
   ============================================ */

/* Badge de cantidad de signos bloqueados en el header (opcional) */
.signos-bloqueados-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--danger) 0%, var(--accent-red) 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-left: 10px;
}

/* Efecto de "shimmer" en signos disponibles para resaltarlos */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.signo-card:not(.signo-bloqueado)::after {
    /* El efecto shimmer opcional puede agregarse aquí */
}

/* ============================================
   ACCESIBILIDAD
   ============================================ */

/* Mejor contraste para usuarios con problemas visuales */
@media (prefers-contrast: high) {
    .signo-card.signo-bloqueado {
        opacity: 0.7;
        border-width: 4px;
    }
    
    .signo-card.signo-bloqueado .signo-badge {
        border: 2px solid white;
    }
}

/* Respeto a preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    .signo-card:not(.signo-bloqueado):hover {
        animation: none;
    }
    
    .alerta {
        animation: none;
    }
}

/* ============================================
   ESTILOS PARA JUEGOS DE NÚMEROS
   (Directo, Permuta, Super Permuta)
   Agregar al final de assets/css/style.css
   ============================================ */

/* Info Box de Números */
.numeros-info-box {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--accent-red) 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(255, 140, 66, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.numeros-display {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.numeros-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.numeros-valor {
    font-size: 4rem;
    font-weight: 900;
    color: var(--golden-yellow);
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: 10px;
}

.numeros-descripcion {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.numeros-descripcion p {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

/* Box de Participación para Números */
.numeros-participar-box {
    background: var(--card-bg);
    border: 3px solid var(--primary-orange);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.numeros-participar-box h3 {
    font-size: 2rem;
    color: var(--golden-yellow);
    margin-bottom: 15px;
}

.numeros-participar-box p {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Números en el Modal */
.numeros-modal-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--accent-red) 100%);
    border-radius: 15px;
    margin-bottom: 20px;
}

.numeros-grande {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--golden-yellow);
    letter-spacing: 15px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.numeros-tipo {
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .numeros-info-box {
        flex-direction: column;
        text-align: center;
    }
    
    .numeros-valor {
        font-size: 3rem;
        letter-spacing: 5px;
    }
    
    .numeros-participar-box {
        padding: 25px;
    }
    
    .numeros-participar-box h3 {
        font-size: 1.5rem;
    }
    
    .numeros-grande {
        font-size: 2.5rem;
        letter-spacing: 8px;
    }
    
    .numeros-tipo {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .numeros-valor {
        font-size: 2.5rem;
        letter-spacing: 3px;
    }
    
    .numeros-grande {
        font-size: 2rem;
        letter-spacing: 5px;
    }
}
/* ============================================
   ESTILOS PARA TERMINALES (00-99)
   Agregar al final de assets/css/style.css
   ============================================ */

/* Grid de Terminales */
.terminales-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
    margin-bottom: 50px;
}

/* Tarjeta de Terminal */
.terminal-card {
    background: var(--card-bg);
    border: 3px solid transparent;
    border-radius: 15px;
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.terminal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--accent-red) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.terminal-card:hover::before {
    opacity: 0.15;
}

.terminal-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-orange);
    box-shadow: 0 15px 30px rgba(255, 140, 66, 0.4);
}

.terminal-card.selected {
    border-color: var(--golden-yellow);
    background: linear-gradient(135deg, rgba(255, 140, 66, 0.2) 0%, rgba(230, 57, 70, 0.2) 100%);
}

.terminal-card.selected::after {
    content: '✓';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 25px;
    height: 25px;
    background: var(--golden-yellow);
    color: var(--text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1rem;
}

/* Checkbox oculto */
.terminal-checkbox {
    position: absolute;
    top: 10px;
    left: 10px;
    opacity: 0;
    pointer-events: none;
}

.terminal-check {
    width: 20px;
    height: 20px;
    opacity: 0;
    pointer-events: none;
}

/* Número del Terminal */
.terminal-numero {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 10px 0;
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

/* Precio del Terminal */
.terminal-precio {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--golden-yellow);
    position: relative;
    z-index: 1;
    margin-bottom: 5px;
}

/* Badge del Terminal */
.terminal-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--success);
    position: relative;
    z-index: 1;
}

/* ============================================
   TERMINALES BLOQUEADOS
   ============================================ */

.terminal-card.terminal-bloqueado {
    opacity: 0.5;
    cursor: not-allowed !important;
    background: rgba(230, 57, 70, 0.15) !important;
    border-color: rgba(255, 59, 48, 0.4) !important;
    pointer-events: none;
}

.terminal-card.terminal-bloqueado:hover {
    transform: none !important;
    box-shadow: none !important;
}

.terminal-card.terminal-bloqueado .terminal-badge {
    background: rgba(255, 59, 48, 0.9) !important;
    color: white !important;
    padding: 4px 8px;
    border-radius: 10px;
}

.terminal-card.terminal-bloqueado::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 8px,
        rgba(230, 57, 70, 0.08) 8px,
        rgba(230, 57, 70, 0.08) 16px
    ) !important;
    opacity: 1 !important;
    z-index: 1;
}

.terminal-card.terminal-bloqueado::after {
    content: '🔒';
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 16px;
    opacity: 0.7;
    z-index: 3;
}

.terminal-card.terminal-bloqueado .terminal-numero {
    opacity: 0.6;
}

/* ============================================
   ESTILOS PARA TRIPLES (Números)
   ============================================ */

.numeros-info-box {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--accent-red) 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(255, 140, 66, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.numeros-display {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.numeros-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.numeros-valor {
    font-size: 4rem;
    font-weight: 900;
    color: var(--golden-yellow);
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: 10px;
}

.numeros-descripcion {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.numeros-descripcion p {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.numeros-participar-box {
    background: var(--card-bg);
    border: 3px solid var(--primary-orange);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.numeros-participar-box h3 {
    font-size: 2rem;
    color: var(--golden-yellow);
    margin-bottom: 15px;
}

.numeros-participar-box p {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.numeros-modal-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--accent-red) 100%);
    border-radius: 15px;
    margin-bottom: 20px;
}

.numeros-grande {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--golden-yellow);
    letter-spacing: 15px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.numeros-tipo {
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .terminales-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 10px;
    }
    
    .terminal-card {
        padding: 15px 5px;
    }
    
    .terminal-numero {
        font-size: 2rem;
    }
    
    .terminal-precio {
        font-size: 0.75rem;
    }
    
    .terminal-badge {
        font-size: 0.65rem;
    }
    
    .numeros-info-box {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }
    
    .numeros-valor {
        font-size: 3rem;
        letter-spacing: 5px;
    }
    
    .numeros-participar-box {
        padding: 25px;
    }
    
    .numeros-grande {
        font-size: 2.5rem;
        letter-spacing: 8px;
    }
}

@media (max-width: 480px) {
    .terminales-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
    }
    
    .terminal-numero {
        font-size: 1.5rem;
    }
    
    .numeros-valor {
        font-size: 2.5rem;
        letter-spacing: 3px;
    }
    
    .numeros-grande {
        font-size: 2rem;
        letter-spacing: 5px;
    }
}
/* ============================================
   SISTEMA DE PESTAÑAS (TABS)
   Agregar al final de assets/css/style.css
   ============================================ */

/* Contenedor de Pestañas */
.tabs-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

/* Botones de Pestañas */
.tab-button {
    padding: 18px 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 3px solid rgba(255, 140, 66, 0.3);
    border-radius: 50px;
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tab-button:hover {
    background: rgba(255, 140, 66, 0.1);
    border-color: var(--primary-orange);
    transform: translateY(-2px);
}

.tab-button.active {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--accent-red) 100%);
    border-color: var(--golden-yellow);
    color: white;
    box-shadow: 0 10px 30px rgba(255, 140, 66, 0.4);
}

/* Contenido de las Pestañas */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

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

/* ============================================
   RESPONSIVE TABS
   ============================================ */

@media (max-width: 768px) {
    .tabs-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .tab-button {
        width: 100%;
        padding: 15px 30px;
        font-size: 1rem;
    }
}
/* ============================================
   ESTILOS PARA TERMINALES (00-99)
   Agregar al final de assets/css/style.css
   ============================================ */

/* Grid de Terminales */
.terminales-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
    margin-bottom: 50px;
}

/* Tarjeta de Terminal */
.terminal-card {
    background: var(--card-bg);
    border: 3px solid transparent;
    border-radius: 15px;
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.terminal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--accent-red) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.terminal-card:hover::before {
    opacity: 0.15;
}

.terminal-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-orange);
    box-shadow: 0 15px 30px rgba(255, 140, 66, 0.4);
}

.terminal-card.selected {
    border-color: var(--golden-yellow);
    background: linear-gradient(135deg, rgba(255, 140, 66, 0.2) 0%, rgba(230, 57, 70, 0.2) 100%);
}

.terminal-card.selected::after {
    content: '✓';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 25px;
    height: 25px;
    background: var(--golden-yellow);
    color: var(--text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1rem;
}

/* Checkbox oculto */
.terminal-checkbox {
    position: absolute;
    top: 10px;
    left: 10px;
    opacity: 0;
    pointer-events: none;
}

.terminal-check {
    width: 20px;
    height: 20px;
    opacity: 0;
    pointer-events: none;
}

/* Número del Terminal */
.terminal-numero {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 10px 0;
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

/* Precio del Terminal */
.terminal-precio {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--golden-yellow);
    position: relative;
    z-index: 1;
    margin-bottom: 5px;
}

/* Badge del Terminal */
.terminal-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--success);
    position: relative;
    z-index: 1;
}

/* ============================================
   TERMINALES BLOQUEADOS
   ============================================ */

.terminal-card.terminal-bloqueado {
    opacity: 0.5;
    cursor: not-allowed !important;
    background: rgba(230, 57, 70, 0.15) !important;
    border-color: rgba(255, 59, 48, 0.4) !important;
    pointer-events: none;
}

.terminal-card.terminal-bloqueado:hover {
    transform: none !important;
    box-shadow: none !important;
}

.terminal-card.terminal-bloqueado .terminal-badge {
    background: rgba(255, 59, 48, 0.9) !important;
    color: white !important;
    padding: 4px 8px;
    border-radius: 10px;
}

.terminal-card.terminal-bloqueado::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 8px,
        rgba(230, 57, 70, 0.08) 8px,
        rgba(230, 57, 70, 0.08) 16px
    ) !important;
    opacity: 1 !important;
    z-index: 1;
}

.terminal-card.terminal-bloqueado::after {
    content: '🔒';
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 16px;
    opacity: 0.7;
    z-index: 3;
}

.terminal-card.terminal-bloqueado .terminal-numero {
    opacity: 0.6;
}

/* ============================================
   ESTILOS PARA TRIPLES (Números)
   ============================================ */

.numeros-info-box {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--accent-red) 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(255, 140, 66, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.numeros-display {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.numeros-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.numeros-valor {
    font-size: 4rem;
    font-weight: 900;
    color: var(--golden-yellow);
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: 10px;
}

.numeros-descripcion {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.numeros-descripcion p {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.numeros-participar-box {
    background: var(--card-bg);
    border: 3px solid var(--primary-orange);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.numeros-participar-box h3 {
    font-size: 2rem;
    color: var(--golden-yellow);
    margin-bottom: 15px;
}

.numeros-participar-box p {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.numeros-modal-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--accent-red) 100%);
    border-radius: 15px;
    margin-bottom: 20px;
}

.numeros-grande {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--golden-yellow);
    letter-spacing: 15px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.numeros-tipo {
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 2px;
}



/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .terminales-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 10px;
    }
    
    .terminal-card {
        padding: 15px 5px;
    }
    
    .terminal-numero {
        font-size: 2rem;
    }
    
    .terminal-precio {
        font-size: 0.75rem;
    }
    
    .terminal-badge {
        font-size: 0.65rem;
    }
    
    .numeros-info-box {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }
    
    .numeros-valor {
        font-size: 3rem;
        letter-spacing: 5px;
    }
    
    .numeros-participar-box {
        padding: 25px;
    }
    
    .numeros-grande {
        font-size: 2.5rem;
        letter-spacing: 8px;
    }
}

@media (max-width: 480px) {
    .terminales-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
    }
    
    .terminal-numero {
        font-size: 1.5rem;
    }
    
    .numeros-valor {
        font-size: 2.5rem;
        letter-spacing: 3px;
    }
    
    .numeros-grande {
        font-size: 2rem;
        letter-spacing: 5px;
    }
}
/* PESTAÑAS */
.tabs-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 18px 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 3px solid rgba(255, 140, 66, 0.3);
    border-radius: 50px;
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-btn:hover {
    background: rgba(255, 140, 66, 0.1);
    border-color: var(--primary-orange);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--accent-red) 100%);
    border-color: var(--golden-yellow);
    color: white;
    box-shadow: 0 10px 30px rgba(255, 140, 66, 0.4);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
/* ============================================
   NUEVA SECCIÓN DE SORTEOS CON PESTAÑAS
   Diseño atractivo y responsive
   Agregar al final de assets/css/style.css
   ============================================ */

.sorteos-info-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #1A1A1A 0%, #2A1A0F 100%);
    position: relative;
    overflow: hidden;
}

.sorteos-info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 140, 66, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(230, 57, 70, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.sorteos-title {
    text-align: center;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--golden-yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 1;
}

.sorteos-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.3rem;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

/* ============================================
   PESTAÑAS DE SORTEOS
   ============================================ */

.sorteos-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.sorteo-tab {
    padding: 20px 40px;
    background: rgba(42, 42, 42, 0.8);
    border: 3px solid rgba(255, 140, 66, 0.2);
    border-radius: 20px;
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.sorteo-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 140, 66, 0.2), transparent);
    transition: left 0.5s ease;
}

.sorteo-tab:hover::before {
    left: 100%;
}

.sorteo-tab:hover {
    border-color: var(--primary-orange);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 140, 66, 0.3);
}

.sorteo-tab.active {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--accent-red) 100%);
    border-color: var(--golden-yellow);
    color: white;
    box-shadow: 0 15px 50px rgba(255, 140, 66, 0.5);
    transform: translateY(-8px);
}

.tab-icon {
    font-size: 1.8rem;
    display: inline-block;
    animation: bounce 2s infinite;
}

.sorteo-tab.active .tab-icon {
    animation: spin 1s ease-in-out;
}

@keyframes spin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

.tab-text {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

/* ============================================
   CONTENIDO DE SORTEOS
   ============================================ */

.sorteo-content {
    display: none;
    animation: fadeInUp 0.5s ease;
    position: relative;
    z-index: 1;
}

.sorteo-content.active {
    display: block;
}

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

/* ============================================
   CARDS DE SORTEO
   ============================================ */

.sorteo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.sorteo-card {
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.95) 0%, rgba(26, 26, 26, 0.95) 100%);
    border: 3px solid transparent;
    border-radius: 25px;
    padding: 35px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.sorteo-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 140, 66, 0.1),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.sorteo-card:hover::before {
    left: 100%;
}

.sorteo-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-orange);
    box-shadow: 0 20px 60px rgba(255, 140, 66, 0.4);
}

/* Efectos específicos por tipo de card */
.sorteo-fecha:hover {
    border-color: #4A90E2;
    box-shadow: 0 20px 60px rgba(74, 144, 226, 0.4);
}

.sorteo-premio:hover {
    border-color: var(--golden-yellow);
    box-shadow: 0 20px 60px rgba(255, 214, 10, 0.5);
}

.sorteo-loteria:hover {
    border-color: #9B59B6;
    box-shadow: 0 20px 60px rgba(155, 89, 182, 0.4);
}

.sorteo-ticket:hover {
    border-color: var(--success);
    box-shadow: 0 20px 60px rgba(0, 208, 132, 0.4);
}

/* Iconos de Cards */
.card-icon {
    font-size: 4rem;
    flex-shrink: 0;
    filter: drop-shadow(0 5px 15px rgba(255, 140, 66, 0.5));
    transition: transform 0.3s ease;
}

.sorteo-card:hover .card-icon {
    transform: scale(1.2) rotate(10deg);
}

/* Información de Cards */
.card-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.card-label {
    font-size: 0.95rem;
    color: var(--text-gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-value {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-light);
    line-height: 1.2;
}

.premio-destacado {
    font-size: 2.2rem;
    background: linear-gradient(135deg, var(--golden-yellow) 0%, var(--warm-yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 214, 10, 0.5);
}

.card-extra {
    font-size: 0.9rem;
    color: var(--primary-orange);
    font-weight: 600;
}

/* ============================================
   CTA (Call to Action)
   ============================================ */

.sorteo-cta {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, rgba(255, 140, 66, 0.05) 0%, rgba(230, 57, 70, 0.05) 100%);
    border-radius: 25px;
    border: 2px solid rgba(255, 140, 66, 0.2);
}

.sorteo-info-extra {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.sorteo-info-extra strong {
    color: var(--golden-yellow);
}

.btn-jugar-sorteo {
    display: inline-block;
    padding: 20px 50px;
    background: linear-gradient(135deg, var(--golden-yellow) 0%, var(--warm-yellow) 100%);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 15px 50px rgba(255, 214, 10, 0.5);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.btn-jugar-sorteo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-jugar-sorteo:hover::before {
    width: 300px;
    height: 300px;
}

.btn-jugar-sorteo:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 70px rgba(255, 214, 10, 0.7);
}

/* ============================================
   SORTEO NO DISPONIBLE
   ============================================ */

.sorteo-no-disponible {
    text-align: center;
    padding: 80px 30px;
    background: rgba(42, 42, 42, 0.5);
    border-radius: 25px;
    border: 2px dashed rgba(255, 140, 66, 0.3);
}

.no-disponible-icon {
    font-size: 6rem;
    margin-bottom: 20px;
    opacity: 0.5;
    animation: pulse 2s infinite;
}

.sorteo-no-disponible h3 {
    font-size: 2rem;
    color: var(--text-gray);
    margin-bottom: 15px;
}

.sorteo-no-disponible p {
    font-size: 1.2rem;
    color: var(--text-gray);
    opacity: 0.7;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .sorteos-title {
        font-size: 2.8rem;
    }
    
    .sorteo-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .sorteos-info-section {
        padding: 60px 15px;
    }
    
    .sorteos-title {
        font-size: 2.2rem;
    }
    
    .sorteos-subtitle {
        font-size: 1.1rem;
    }
    
    .sorteos-tabs {
        flex-direction: column;
        gap: 15px;
    }
    
    .sorteo-tab {
        width: 100%;
        justify-content: center;
        padding: 18px 30px;
    }
    
    .sorteo-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sorteo-card {
        padding: 25px 20px;
    }
    
    .card-icon {
        font-size: 3rem;
    }
    
    .card-value {
        font-size: 1.5rem;
    }
    
    .premio-destacado {
        font-size: 1.8rem;
    }
    
    .btn-jugar-sorteo {
        width: 100%;
        padding: 18px 30px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .sorteos-title {
        font-size: 1.8rem;
    }
    
    .sorteos-subtitle {
        font-size: 1rem;
    }
    
    .sorteo-tab {
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    .tab-icon {
        font-size: 1.5rem;
    }
    
    .tab-text {
        font-size: 0.95rem;
    }
    
    .sorteo-card {
        flex-direction: column;
        text-align: center;
        padding: 25px 15px;
    }
    
    .card-icon {
        font-size: 2.5rem;
    }
    
    .card-info {
        align-items: center;
    }
    
    .card-value {
        font-size: 1.3rem;
    }
    
    .premio-destacado {
        font-size: 1.6rem;
    }
    
    .btn-jugar-sorteo {
        font-size: 1.1rem;
        padding: 16px 25px;
    }
    
    .no-disponible-icon {
        font-size: 4rem;
    }
    
    .sorteo-no-disponible h3 {
        font-size: 1.5rem;
    }
    
    .sorteo-no-disponible p {
        font-size: 1rem;
    }
}

/* ============================================
   ANIMACIONES ADICIONALES
   ============================================ */

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

.sorteo-card:nth-child(1) {
    animation: floatCard 3s ease-in-out infinite;
}

.sorteo-card:nth-child(2) {
    animation: floatCard 3s ease-in-out 0.5s infinite;
}

.sorteo-card:nth-child(3) {
    animation: floatCard 3s ease-in-out 1s infinite;
}

.sorteo-card:nth-child(4) {
    animation: floatCard 3s ease-in-out 1.5s infinite;
}

/* Deshabilitar animaciones en dispositivos que prefieren movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    .sorteo-card,
    .sorteo-tab,
    .btn-jugar-sorteo,
    .tab-icon {
        animation: none !important;
    }
    
    .sorteo-content {
        animation: none !important;
    }
}

/* ============================================
   ESTILOS RESPONSIVE PARA TRIPLE DIRECTO
   Corregir visualización en móviles
   ============================================ */

/* Sección Triple Directo en Mobile */
@media (max-width: 768px) {
    .triple-directo-section {
        padding: 60px 15px !important;
    }
    
    .triple-directo-card {
        padding: 30px 20px !important;
        max-width: 100% !important;
        margin: 20px auto !important;
    }
    
    /* Número del triple más pequeño */
    .triple-numero-display {
        margin-bottom: 30px !important;
    }
    
    .triple-numero-display > div:first-child {
        font-size: 16px !important;
        margin-bottom: 15px !important;
    }
    
    .triple-numero {
        font-size: 60px !important;
        letter-spacing: 15px !important;
        padding: 15px !important;
    }
    
    /* Grid de info responsive */
    .rifa-info-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        margin-bottom: 25px !important;
    }
    
    .info-item {
        padding: 20px !important;
    }
    
    .info-item > div:first-child {
        font-size: 12px !important;
    }
    
    .info-item > div:last-child {
        font-size: 22px !important;
    }
    
    /* Botón de compra */
    .btn-comprar-directo {
        padding: 20px !important;
        font-size: 18px !important;
    }
    
    /* Info adicional */
    .triple-directo-card > div:last-child {
        margin-top: 20px !important;
        padding-top: 20px !important;
    }
    
    .triple-directo-card > div:last-child > div {
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    .triple-directo-section {
        padding: 40px 10px !important;
    }
    
    .triple-directo-card {
        padding: 25px 15px !important;
    }
    
    .section-title {
        font-size: 1.8rem !important;
    }
    
    .section-subtitle {
        font-size: 1rem !important;
    }
    
    /* Número del triple muy pequeño para móviles */
    .triple-numero-display > div:first-child {
        font-size: 14px !important;
        margin-bottom: 12px !important;
    }
    
    .triple-numero {
        font-size: 48px !important;
        letter-spacing: 10px !important;
        padding: 12px !important;
    }
    
    /* Info items */
    .info-item {
        padding: 15px !important;
    }
    
    .info-item > div:first-child {
        font-size: 11px !important;
    }
    
    .info-item > div:last-child {
        font-size: 20px !important;
    }
    
    /* Botón más pequeño */
    .btn-comprar-directo {
        padding: 18px !important;
        font-size: 16px !important;
    }
    
    /* Info adicional más pequeña */
    .triple-directo-card > div:last-child > div {
        font-size: 13px !important;
    }
    
    .triple-directo-card > div:last-child > div > div {
        margin-bottom: 6px !important;
    }
}

/* Evitar que el número del triple se salga de la pantalla */
.triple-numero {
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;
}

/* En pantallas muy pequeñas, reducir más el espaciado */
@media (max-width: 360px) {
    .triple-numero {
        font-size: 40px !important;
        letter-spacing: 8px !important;
    }
    
    .btn-comprar-directo {
        font-size: 14px !important;
        padding: 16px !important;
    }
}

/* ============================================
   GRID DE RIFAS (index.php — múltiples rifas)
   ============================================ */

.rifas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
    position: relative;
    z-index: 1;
}

.rifa-card-front {
    background: linear-gradient(135deg, rgba(42,42,42,0.98) 0%, rgba(26,26,26,0.98) 100%);
    border: 2px solid rgba(255,140,66,0.25);
    border-radius: 20px;
    padding: 0;
    display: flex;
    flex-direction: row;
    gap: 0;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

/* Contenido principal de la card (izquierda) */
.rifa-card-main {
    flex: 1;
    min-width: 0;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Columna de números verticales (derecha) */
.rifa-card-numeros-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 24px 18px;
    border-left: 1px solid rgba(255,255,255,0.07);
    background: rgba(0,0,0,0.15);
    min-width: 58px;
    width: auto;
}

.rcn-num {
    font-size: 2.2rem;
    font-weight: 900;
    font-family: 'Courier New', monospace;
    color: rgba(255,255,255,0.9);
    line-height: 1.25;
    letter-spacing: 0;
    text-align: center;
    white-space: nowrap;
}

.rcn-bloqueado {
    color: rgba(255,255,255,0.2);
    text-decoration: line-through;
}

.rifa-card-front:hover {
    border-color: var(--primary-orange);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(255,140,66,0.3);
}

.rifa-card-tipo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.rifa-badge-tipo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--accent-red) 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.rifa-disponibles-badge {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--success);
    background: rgba(0,208,132,0.12);
    border: 1px solid rgba(0,208,132,0.35);
    border-radius: 20px;
    padding: 4px 12px;
    white-space: nowrap;
}

.rifa-card-loteria {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--golden-yellow);
    letter-spacing: 0.5px;
}

.rifa-card-fecha {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 500;
}

/* Meta: loteria + fecha compactos */
.rifa-card-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.rifa-card-loteria-inline {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--golden-yellow);
    letter-spacing: 0.5px;
}

.rifa-card-fecha-inline {
    font-size: 0.82rem;
    color: var(--text-gray);
    font-weight: 500;
}

/* Sección número del sorteo */
.rifa-card-numero {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.rifa-numero-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-gray);
}

.rifa-digits-preview {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.digit-box-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.3);
    border-radius: 8px;
    width: 38px;
    height: 50px;
    font-size: 1.4rem;
    font-weight: 900;
    font-family: 'Courier New', monospace;
}

.rifa-numero-hint {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.3);
    font-weight: 500;
}

/* Mini-grid de signos con números en la rifa card */
.rifa-signos-numeros {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px 6px;
    padding: 8px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin: 6px 0;
}

.rsn-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 4px;
    border-radius: 6px;
    background: rgba(255,255,255,0.04);
}

.rsn-bloqueado {
    opacity: 0.35;
}

.rsn-emoji {
    font-size: 0.85rem;
    line-height: 1;
}

.rsn-numero {
    font-size: 0.8rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: var(--golden-yellow);
    letter-spacing: 0.5px;
}

.rsn-bloqueado .rsn-numero {
    color: var(--text-gray);
    text-decoration: line-through;
}

.rifa-card-premios {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.premio-item {
    flex: 1;
    min-width: 120px;
    padding: 12px 16px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.premio-mayor {
    background: linear-gradient(135deg, rgba(255,214,10,0.12) 0%, rgba(255,140,66,0.12) 100%);
    border: 1px solid rgba(255,214,10,0.3);
}

.premio-segundo {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
}

.premio-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.premio-mayor .premio-valor {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--golden-yellow);
}

.premio-segundo .premio-valor {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-light);
}

.rifa-card-precio {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.precio-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 500;
}

.precio-valor {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-orange);
}

.btn-jugar-rifa {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--golden-yellow) 0%, var(--warm-yellow) 100%);
    color: var(--text-dark);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255,214,10,0.35);
    margin-top: auto;
}

.btn-jugar-rifa:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 35px rgba(255,214,10,0.55);
}

/* ============================================
   MODAL MULTI-RIFA
   ============================================ */

#modalRifa {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.92);
    overflow-y: auto;
    animation: fadeIn 0.25s ease;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 15px 40px;
    box-sizing: border-box;
}

.modal-rifa-content {
    background: var(--card-bg);
    border: 2px solid rgba(255,140,66,0.4);
    border-radius: 24px;
    width: 100%;
    max-width: 680px;
    position: relative;
    animation: slideUp 0.3s ease;
    overflow: hidden;
    margin: auto;
}

.modal-rifa-header {
    background: linear-gradient(135deg, rgba(42,42,42,1) 0%, rgba(26,26,26,1) 100%);
    border-bottom: 2px solid rgba(255,140,66,0.2);
    padding: 22px 55px 22px 28px;
    position: relative;
}

.modal-rifa-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.modal-rifa-tipo {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--golden-yellow);
    letter-spacing: 0.5px;
}

.modal-rifa-meta {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 500;
}

.modal-rifa-premios {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.modal-rifa-premios .mp1 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--golden-yellow);
}

.modal-rifa-premios .mp2 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-gray);
}

.modal-rifa-precio {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.modal-rifa-precio strong {
    color: var(--primary-orange);
    font-weight: 700;
}

#stepSignos,
#stepFormulario {
    padding: 24px 28px;
}

.modal-instruccion {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 18px;
    line-height: 1.5;
}

/* ============================================
   GRID DE SIGNOS DENTRO DEL MODAL
   ============================================ */

.signos-grid-modal {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.signo-card-modal {
    background: rgba(255,255,255,0.04);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
}

.signo-card-modal:hover {
    border-color: var(--primary-orange);
    background: rgba(255,140,66,0.08);
    transform: translateY(-3px);
}

.signo-card-modal.seleccionado {
    border-color: var(--golden-yellow);
    background: rgba(255,214,10,0.12);
    box-shadow: 0 4px 16px rgba(255,214,10,0.25);
}

.signo-card-modal.seleccionado::after {
    content: '✓';
    position: absolute;
    top: 5px;
    right: 7px;
    font-size: 0.7rem;
    font-weight: 900;
    color: var(--golden-yellow);
}

.signo-card-modal.bloqueado {
    opacity: 0.45;
    cursor: not-allowed;
    background: rgba(230,57,70,0.08) !important;
    border-color: rgba(255,59,48,0.3) !important;
    pointer-events: none;
}

.signo-card-modal.bloqueado::after {
    content: '🔒';
    position: absolute;
    top: 4px;
    right: 5px;
    font-size: 0.65rem;
}

.sm-emoji {
    font-size: 1.8rem;
    line-height: 1;
}

.sm-nombre {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.sm-numero {
    font-size: 0.95rem;
    font-weight: 900;
    color: var(--golden-yellow);
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

/* Dígitos individuales por caja */
.sm-numero-display {
    display: flex;
    justify-content: center;
    gap: 4px;
    flex-wrap: nowrap;
}

.digit-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #3a3af4;
    border-radius: 6px;
    width: 22px;
    height: 30px;
    font-size: 0.95rem;
    font-weight: 900;
    font-family: 'Courier New', monospace;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    flex-shrink: 0;
}

.signo-card-modal.seleccionado .digit-box {
    background: var(--golden-yellow);
    color: #1a1a1a;
}

.signo-card-modal.bloqueado .digit-box {
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.4);
    box-shadow: none;
}

@media (max-width: 480px) {
    .digit-box {
        width: 18px;
        height: 26px;
        font-size: 0.78rem;
        border-radius: 4px;
    }

}

/* ============================================
   PREVIEW DE NÚMERO SELECCIONADO (modal)
   ============================================ */

.numero-preview-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 10px 14px;
    width: 100%;
}

.npr-signo {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-light);
    white-space: nowrap;
}

.npr-digits {
    display: flex;
    gap: 5px;
    flex-wrap: nowrap;
}

.digit-box-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #3a3af4;
    border-radius: 8px;
    width: 36px;
    height: 48px;
    font-size: 1.5rem;
    font-weight: 900;
    font-family: 'Courier New', monospace;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .digit-box-preview {
        width: 30px;
        height: 40px;
        font-size: 1.2rem;
        border-radius: 6px;
        gap: 4px;
    }
}

.sm-status {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--success);
}

.signo-card-modal.bloqueado .sm-status {
    color: var(--danger);
}

/* ============================================
   PREVIEW DE SELECCIÓN
   ============================================ */

.seleccion-preview {
    background: rgba(255,140,66,0.07);
    border: 1px solid rgba(255,140,66,0.25);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.seleccion-lista {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* .signo-tag — base defined above; override for modal preview */
.seleccion-lista .signo-tag {
    background: rgba(255,214,10,0.12);
    border: 1px solid rgba(255,214,10,0.3);
    color: var(--golden-yellow);
    font-size: 0.85rem;
    padding: 5px 12px;
    backdrop-filter: none;
    animation: none;
}

.seleccion-total {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-light);
    text-align: right;
}

/* ============================================
   ACCIONES DEL MODAL (PASO 1)
   ============================================ */

.modal-acciones {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 8px;
}

/* Compact versions of btn-limpiar/btn-continuar for the rifa modal */
.modal-rifa-content .btn-limpiar {
    padding: 11px 22px;
    background: rgba(255,255,255,0.06);
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-transform: none;
    letter-spacing: 0;
}

.modal-rifa-content .btn-limpiar:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
    color: var(--text-light);
    transform: none;
    box-shadow: none;
}

.modal-rifa-content .btn-continuar {
    padding: 11px 26px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--accent-red) 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 6px 20px rgba(255,140,66,0.35);
    text-transform: none;
    letter-spacing: 0;
}

.modal-rifa-content .btn-continuar:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(255,140,66,0.5);
}

.modal-rifa-content .btn-continuar:disabled {
    background: rgba(255,255,255,0.1);
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.5;
}

/* ============================================
   PASO 2 — FORMULARIO
   ============================================ */

.btn-volver {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-bottom: 18px;
}

.btn-volver:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text-light);
}

.resumen-signos {
    background: rgba(255,140,66,0.07);
    border: 1px solid rgba(255,140,66,0.2);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.resumen-titulo {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.resumen-lista {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.resumen-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: rgba(255,255,255,0.06);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.resumen-item strong {
    color: var(--golden-yellow);
}

.resumen-monto {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-light);
    text-align: right;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.resumen-monto strong {
    color: var(--golden-yellow);
    font-size: 1.1rem;
}

/* .instrucciones-pago — defined at line ~801 above (display:none built-in) */

/* Override monto-total-footer inside modal — simpler border-top style */
.modal-rifa-content .monto-total-footer {
    background: none;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-radius: 0;
    padding: 14px 0;
    margin-bottom: 14px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
}

.modal-rifa-content .monto-total-footer strong {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--golden-yellow);
}

/* ============================================
   RESPONSIVE — RIFAS GRID + MODAL
   ============================================ */

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

    .signos-grid-modal {
        gap: 8px;
    }

    .signo-card-modal {
        padding: 10px 6px;
    }

    .digit-box {
        width: 20px;
        height: 28px;
        font-size: 0.85rem;
    }

    #stepSignos,
    #stepFormulario {
        padding: 18px 16px;
    }

    .modal-rifa-header {
        padding: 18px 50px 18px 18px;
    }

    .modal-acciones {
        flex-direction: column;
    }

    .btn-limpiar,
    .btn-continuar {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .signos-grid-modal {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 6px;
    }

    .sm-emoji {
        font-size: 1.5rem;
    }

    .sm-nombre {
        font-size: 0.62rem;
    }

    .sm-numero {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }

    .modal-rifa-premios {
        gap: 10px;
    }

    .rifa-card-premios {
        flex-direction: column;
    }

    .premio-item {
        min-width: unset;
    }
}