/* VARIABLES CORPORATIVAS */



/* Estilos adicionales para la vista de Resultados */
img-fluid {
    width: 120px;
    height: 200px;
}


.resultado-hero-section {
    width: 100%;
    overflow: hidden;
    background-position: left;
    background: var(--color-white);
    
}

/* Tabla de resultados */
.table-responsive {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.table {
    margin-bottom: 0;
    background: white;
}

    .table th {
        border: none;
        padding: 15px;
        font-weight: 600;
        font-family: "Shojumaru", system-ui;
        font-size: 0.9rem;
    }

    .table td {
        padding: 15px;
        border-color: #f1f3f4;
        vertical-align: middle;
    }

    .table tbody tr {
        transition: var(--transition);
    }

        .table tbody tr:hover {
            background-color: rgba(217, 37, 52, 0.05);
            transform: translateX(5px);
        }

/* Estilos para selects en formularios */
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
    background: #fff;
}

    .form-control:focus {
        border-color: #D92534;
        box-shadow: 0 0 0 0.2rem rgba(217, 37, 52, 0.25);
        outline: none;
    }

/* Mejoras responsive para la tabla */
@media (max-width: 768px) {
    .table th,
    .table td {
        padding: 10px 8px;
        font-size: 0.85rem;
    }

    .contact-box {
        padding: 25px 20px;
    }
}

@media (max-width: 576px) {
    .table {
        font-size: 0.8rem;
    }

        .table th,
        .table td {
            padding: 8px 5px;
        }

    .contact-hero-title {
        font-size: 1.8rem;
    }

    .contact-hero-subtitle {
        font-size: 1rem;
    }
}


/*titulo de la seccion*/
.contact-section h2 {
    font-size: 40px;
    font-weight: bold;
    color: var(--color-secondary);
    position: relative;
    padding-bottom: 15px;
    text-align-last: center;
}

/**Video de la seccion**/


.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 15px; /* opcional, se ve moderno */
}

    .video-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }







/*boton Flotante*/
.flotante {
    position: fixed;
    bottom: 60px;
    right: 80px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}


.btn-flotante {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #1e5ec9;
    color: white;
    border: none;
    padding: 14px 22px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
    cursor: pointer;
    transition: all .3s ease;
    animation: pulso 2.5s infinite;
}

    .btn-flotante i {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background: rgba(255,255,255,0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        transition: all .3s ease;
    }

    .btn-flotante:hover {
        background: #d20a11;
        transform: translateY(-5px) scale(1.05);
        box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    }

        .btn-flotante:hover i {
            background: rgba(255,255,255,0.3);
            transform: rotate(10deg) scale(1.1);
        }

.flotante {
    position: fixed;
    bottom: 60px;
    right: 80px;
    z-index: 9999;
}

.ondas-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.onda {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 3px solid #1e5ec9;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: expand-ring 2s ease-out infinite;
    opacity: 0;
}

.onda-2 {
    animation-delay: 1s;
    border-color: #ff6b35;
}

@keyframes expand-ring {
    0% {
        width: 60px;
        height: 60px;
        opacity: 0.8;
    }

    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}

.btn-flotante {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #1e5ec9;
    color: white;
    border: none;
    padding: 14px 22px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
    cursor: pointer;
    transition: all .3s ease;
}


/* Calendario */
.calendario-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 6px;
}

.dia-header {
    text-align: center;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    padding: 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .dia-header.destacado-header {
        color: #D20A11;
    }

.dia-celda {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.25);
    background: transparent;
    cursor: default;
}

    .dia-celda.vacio {
        background: transparent;
    }

    .dia-celda.miercoles-disponible {
        background: rgba(210, 10, 17, 0.15);
        color: #fff;
        cursor: pointer;
        border: 1px solid rgba(210, 10, 17, 0.4);
        transition: all 0.25s ease;
        font-weight: 700;
    }

        .dia-celda.miercoles-disponible:hover {
            background: #D20A11;
            color: #fff;
            border-color: #D20A11;
            transform: scale(1.1);
            box-shadow: 0 4px 15px rgba(210, 10, 17, 0.5);
        }

    .dia-celda.hoy {
        border: 2px solid rgba(255, 255, 255, 0.5);
        color: rgba(255, 255, 255, 0.8);
    }





/* =========================================
   HISTORIAL DE SORTEOS PREMIUM
========================================= */

.historial-sorteos-section {
    background: radial-gradient(circle at top left, rgba(220,53,69,0.25), transparent 25%), radial-gradient(circle at bottom right, rgba(210,10,17,0.15), transparent 20%), linear-gradient(135deg, #111111 0%, #1b1b1b 100%);
    position: relative;
    overflow: hidden;
}

    /* TITULOS */

    .historial-sorteos-section h2 {
        font-size: 3rem;
        letter-spacing: 2px;
        text-shadow: 0 4px 15px rgba(0,0,0,0.5);
    }

.historial-subtitle {
    color: rgba(255,255,255,0.75);
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

/* ACORDEON GENERAL */

.custom-accordion-item,
.custom-month-item {
    border: none !important;
    margin-bottom: 20px;
    border-radius: 22px !important;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25), inset 0 1px 1px rgba(255,255,255,0.08);
    transition: all 0.35s ease;
}

    .custom-accordion-item:hover,
    .custom-month-item:hover {
        transform: translateY(-2px);
    }

/* BOTON AŅO */

.custom-accordion-button {
    background: linear-gradient(135deg, #d90429 0%, #ef233c 100%);
    color: white !important;
    font-size: 1.35rem;
    font-weight: 700;
    padding: 22px 25px;
    border: none;
    box-shadow: none !important;
    letter-spacing: 1px;
}

/* BOTON MES */

.custom-month-button {
    background: linear-gradient(135deg, #2b2d42 0%, #3c3f58 100%);
    color: white !important;
    font-size: 1rem;
    font-weight: 600;
    padding: 18px 22px;
    border: none;
    box-shadow: none !important;
    letter-spacing: 1px;
}

/* ESTADO ABIERTO */

.custom-accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #ff003c 0%, #ff4d6d 100%);
}

.custom-month-button:not(.collapsed) {
    background: linear-gradient(135deg, #495057 0%, #6c757d 100%);
}

/* HOVER */

.custom-accordion-button:hover {
    filter: brightness(1.08);
}

.custom-month-button:hover {
    filter: brightness(1.08);
}

/* FLECHAS */

.accordion-button::after {
    filter: brightness(0) invert(1);
    transform: scale(1.2);
}

/* BODY */

.accordion-body {
    background: rgba(0,0,0,0.15);
}

/* TABLA */

.table-dark {
    margin-bottom: 0;
    background: transparent !important;
    color: white;
}

    /* HEADER TABLA */

    .table-dark thead {
        background: linear-gradient(135deg, #161616 0%, #252525 100%);
    }

        .table-dark thead th {
            border: none;
            color: #1e5ec9;
            font-size: 0.95rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            padding: 18px;
        }

    /* FILAS */

    .table-dark tbody tr {
        border-color: rgba(255,255,255,0.06);
        transition: all 0.25s ease;
    }

        .table-dark tbody tr:hover {
            background: rgba(255,255,255,0.06);
            transform: scale(1.003);
        }

    /* CELDAS */

    .table-dark td {
        padding: 18px;
        vertical-align: middle;
        border-top: 1px solid rgba(255,255,255,0.04);
    }

/* BOTON DOCUMENTO */

.btn-danger.btn-sm {
    border-radius: 14px;
    padding: 10px 18px;
    font-weight: 600;
    border: none;
    background: linear-gradient(135deg, #d90429 0%, #ff4d6d 100%);
    box-shadow: 0 4px 12px rgba(217,4,41,0.35);
    transition: all 0.3s ease;
}

    .btn-danger.btn-sm:hover {
        transform: translateY(-2px) scale(1.03);
        box-shadow: 0 8px 18px rgba(217,4,41,0.45);
    }

/* RESPONSIVE */

@media (max-width: 768px) {

    .historial-sorteos-section h2 {
        font-size: 2rem;
    }

    .custom-accordion-button {
        font-size: 1rem;
        padding: 18px;
    }

    .custom-month-button {
        font-size: 0.9rem;
    }

    .table-dark td,
    .table-dark th {
        font-size: 0.85rem;
    }

    .btn-danger.btn-sm {
        width: 100%;
    }
}