/* ===== Reset y Variables ===== */
:root {
    --color-primary: #003d7a;      /* Azul oscuro */
    --color-secondary: #d4a017;    /* Amarillo oscuro/dorado */
    --color-white: #ffffff;
    --color-light-gray: #f5f5f5;
    --color-gray: #666666;
    --color-dark-gray: #333333;
    --color-success: #28a745;
    --color-error: #dc3545;
    --font-primary: 'Roboto', sans-serif;
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--color-dark-gray);
    background-color: var(--color-white);
}

main {
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Header y Navegación ===== */
#header {
    background-color: var(--color-primary);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 0.75rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.logo {
    height: 45px;
    width: auto;
}

.site-name {
    color: var(--color-white);
    font-size: 1.3rem;
    font-weight: 700;
    white-space: nowrap;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--color-white);
    margin: 3px 0;
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-menu > li {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-menu > li > a {
    color: var(--color-white);
    font-weight: 500;
    padding: 0.65rem 1rem;
    border-radius: 4px;
    transition: var(--transition);
    white-space: nowrap;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-comprar-chance {
    background: linear-gradient(135deg, var(--color-secondary), #f0b820) !important;
    color: var(--color-primary) !important;
    font-weight: 700 !important;
    padding: 0.65rem 1.25rem !important;
    box-shadow: 0 4px 12px rgba(212, 160, 23, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(212, 160, 23, 0.4);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(212, 160, 23, 0.6);
    }
}

.btn-comprar-chance:hover {
    background: linear-gradient(135deg, #f0b820, var(--color-secondary)) !important;
    transform: translateY(-2px);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: ' ▼';
    font-size: 0.65rem;
    margin-left: 0.25rem;
}

/* Puente invisible para mantener el hover */
.dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 0.5rem;
    background: transparent;
    display: none;
}

.dropdown:hover::before {
    display: block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-white);
    min-width: 700px;
    max-width: 800px;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    padding: 1.5rem;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    display: grid;
}

.dropdown-section h4 {
    color: var(--color-primary);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-secondary);
    font-weight: 600;
}

.dropdown-section a {
    display: block;
    color: var(--color-dark-gray);
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    transition: var(--transition);
}

.dropdown-section a:hover {
    background-color: var(--color-light-gray);
    color: var(--color-primary);
    padding-left: 1rem;
}

/* Dropdown especial para menú "Más" (último dropdown) */
.nav-menu > li.dropdown:last-child .dropdown-menu {
    min-width: 280px;
    max-width: 300px;
    left: auto;
    right: 0;
    transform: none;
    grid-template-columns: 1fr;
}

.nav-menu > li.dropdown:last-child .dropdown-section a {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

/* ===== Banner Carousel ===== */
.banner-carousel {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background-color: var(--color-light-gray);
    margin: 0.1rem 0;
    padding: 0;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slides {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top center;
    background-color: var(--color-light-gray);
}

.carousel-caption {
    position: absolute;
    bottom: 30px;
    left: 30px;
    max-width: 450px;
    background-color: rgba(0, 61, 122, 0.9);
    color: var(--color-white);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--color-secondary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.carousel-caption h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.carousel-caption p {
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(212, 160, 23, 0.8);
    color: var(--color-white);
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.carousel-control:hover {
    background-color: var(--color-secondary);
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-indicator.active {
    background-color: var(--color-secondary);
    width: 30px;
    border-radius: 6px;
}

/* ===== Secciones Comunes ===== */
section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: var(--color-secondary);
}

/* ===== Acumulados ===== */
.acumulados-section {
    background-color: var(--color-light-gray);
}

.acumulados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.acumulado-card {
    background-color: var(--color-white);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.acumulado-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.acumulado-imagen {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80px;
}

.acumulado-imagen img {
    max-width: 100%;
    max-height: 80px;
    height: auto;
    object-fit: contain;
}

.acumulado-card h3 {
    color: var(--color-primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.acumulado-monto {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin: 1rem 0;
}

.acumulado-fecha {
    font-size: 0.9rem;
    color: var(--color-gray);
}

/* ===== Resultados ===== */
.resultados-section {
    background-color: var(--color-white);
}

.resultados-subsection {
    margin-bottom: 3rem;
}

.resultados-subsection h3 {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 4px solid var(--color-secondary);
}

.resultados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Estilos para Loterías y Sorteos en línea */
#resultadosLoterias {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.loteria-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 0.8fr;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background-color: var(--color-white);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.loteria-row:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.loteria-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.loteria-icon {
    max-height: 35px;
    max-width: 100px;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.loteria-nombre {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.95rem;
}

.loteria-fecha {
    font-size: 0.85rem;
    color: var(--color-gray);
    white-space: nowrap;
}

.loteria-resultado {
    font-weight: 700;
    color: var(--color-secondary);
    font-size: 1.1rem;
    text-align: right;
}

.loteria-resultado .numero-loteria {
    color: var(--color-primary);
}

/* Grid de Baloto en 2 columnas para pantallas grandes */
#resultadosBaloto {
    display: grid;
    gap: 1.5rem;
}

/* Grid de Loterías en 3 columnas para pantallas grandes */
#resultadosLoterias {
    display: grid;
    gap: 1.5rem;
}

/* Estilos responsivos para grids específicos */
@media (min-width: 768px) {
    #resultadosBaloto {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    #resultadosLoterias {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Layout de 2 columnas para Loterías en pantallas grandes */
@media (min-width: 768px) {
    #resultadosLoterias {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 767px) {
    #resultadosBaloto {
        grid-template-columns: 1fr !important;
    }
    
    /* Una sola columna para loterías en móviles */
    #resultadosLoterias {
        display: flex;
        flex-direction: column;
    }
    
    /* Ajustar diseño de loterías para móviles */
    .loteria-row {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 0.5rem;
        padding: 0.75rem;
    }
    
    .loteria-info {
        justify-content: flex-start;
        order: 1;
    }
    
    .loteria-fecha {
        font-size: 0.8rem;
        order: 2;
    }
    
    .loteria-resultado {
        text-align: left;
        font-size: 1rem;
        order: 3;
    }
}

.resultado-card {
    background-color: var(--color-light-gray);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.resultado-card:hover {
    box-shadow: var(--shadow-md);
}

.resultado-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-secondary);
}

.resultado-header h4 {
    color: var(--color-primary);
    font-size: 1.1rem;
}

.resultado-fecha {
    font-size: 0.85rem;
    color: var(--color-gray);
}

.resultado-hora {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--color-gray);
}

.sorteo-icon {
    max-height: 30px;
    max-width: 120px;
    height: auto;
    object-fit: contain;
}

.resultado-numeros {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.numero-ball {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: var(--shadow-sm);
}

/* Balota roja para Baloto y Baloto Revancha (última balota) */
.numero-ball.numero-ball-red {
    background: linear-gradient(135deg, #dc2626, #991b1b) !important;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4) !important;
}

/* Estilos especiales para Colorloto */
.numero-ball.colorloto {
    background: none; /* Eliminar el gradiente por defecto */
    border: 2px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.3);
    font-weight: 900;
    font-size: 1.3rem;
    transition: transform 0.2s ease;
}

.numero-ball.colorloto:hover {
    transform: scale(1.1);
}


.numero-serie {
    margin-top: 1rem;
    padding: 0.5rem;
    background-color: var(--color-white);
    border-radius: 6px;
    text-align: center;
}

.numero-serie span {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1.3rem;
}

/* ===== Número de la Suerte ===== */
.numero-suerte-section {
    background: linear-gradient(135deg, var(--color-primary), #005aa3);
    color: var(--color-white);
}

.numero-suerte-card {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

.numero-suerte-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.numero-suerte-card p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.numero-display {
    background-color: var(--color-white);
    color: var(--color-primary);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: var(--shadow-lg);
}

.numero-display span {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 1rem;
}

.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-primary);
    padding: 1rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: #f0b820;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== Productos y Servicios ===== */
.productos-servicios-section {
    background-color: var(--color-light-gray);
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.producto-card {
    background-color: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.producto-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.producto-imagen {
    width: 100%;
    height: 200px;
    background-color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 3rem;
}

.producto-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.producto-contenido {
    padding: 1.5rem;
}

.producto-card h3 {
    color: var(--color-primary);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.producto-card p {
    color: var(--color-gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.btn-secundary {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-secundary:hover {
    background-color: var(--color-secondary);
    color: var(--color-primary);
}

/* ===== Tips Section ===== */
.tips-section {
    background-color: var(--color-light-gray);
    padding: 4rem 0;
}

.tips-section .section-title {
    text-align: center;
    margin-bottom: 2rem;
}

#tip-container {
    max-width: 900px;
    margin: 0 auto;
}

.tip-card {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 0;
    transition: var(--transition);
}

.tip-card:hover {
    box-shadow: var(--shadow-lg);
}

.tip-imagen {
    width: 100%;
    height: 100%;
    min-height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

.tip-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tip-contenido {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tip-contenido-full {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 2rem;
}

.tip-mensaje {
    text-align: center;
    color: var(--color-gray);
    padding: 2rem;
}

.tip-titulo {
    color: var(--color-primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.tip-descripcion {
    color: var(--color-gray);
    font-size: 1rem;
    line-height: 1.8;
    margin: 0;
}

/* Responsive para Tips */
@media (max-width: 768px) {
    .tip-card {
        grid-template-columns: 1fr;
    }

    .tip-imagen {
        min-height: 200px;
    }

    .tip-contenido {
        padding: 1.5rem;
    }

    .tip-contenido-full {
        padding: 2rem 1.5rem;
    }

    .tip-titulo {
        font-size: 1.5rem;
    }
}

/* ===== Footer ===== */
#footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--color-secondary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.footer-section p {
    line-height: 1.8;
    opacity: 0.9;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    opacity: 0.9;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    opacity: 1;
    color: var(--color-secondary);
    padding-left: 5px;
}

.footer-logo {
    margin-top: 1rem;
}

.footer-logo img {
    max-height: 60px;
    width: auto;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.75rem;
}

.social-media {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.social-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(1.1) saturate(1.2);
}

/* Estilos específicos por red social - Solo efectos hover */
.social-icon.facebook:hover {
    background: rgba(24, 119, 242, 0.2);
    border-color: rgba(24, 119, 242, 0.4);
    box-shadow: 0 0 15px rgba(24, 119, 242, 0.3);
}

.social-icon.instagram:hover {
    background: rgba(225, 48, 108, 0.2);
    border-color: rgba(225, 48, 108, 0.4);
    box-shadow: 0 0 15px rgba(225, 48, 108, 0.3);
}

.social-icon.twitter:hover {
    background: rgba(29, 161, 242, 0.2);
    border-color: rgba(29, 161, 242, 0.4);
    box-shadow: 0 0 15px rgba(29, 161, 242, 0.3);
}

.social-icon.youtube:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.4);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
}

.social-icon.whatsapp:hover {
    background: rgba(37, 211, 102, 0.2);
    border-color: rgba(37, 211, 102, 0.4);
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.3);
}

.social-icon:hover {
    transform: scale(1.1);
    .social-logo {
        filter: brightness(1.2) saturate(1.3);
    }
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
}

.footer-legal-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    text-align: left;
    flex: 1;
}

.footer-legal {
    margin-top: 0.5rem;
}

.footer-legal a {
    color: var(--color-secondary);
}

.footer-legal a:hover {
    text-decoration: underline;
}

.footer-supervision {
    display: flex;
    align-items: center;
}

.supervision-logo {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

/* ===== Páginas Internas ===== */
.page-content {
    min-height: calc(100vh - 400px);
    padding: 2rem 0;
}

.breadcrumb {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--color-gray);
}

.breadcrumb a {
    color: var(--color-primary);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Producto Detail */
.product-detail {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.product-detail h1 {
    color: var(--color-primary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 3px solid var(--color-secondary);
    padding-bottom: 0.5rem;
}

.product-detail h2 {
    color: var(--color-primary);
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.product-detail h3 {
    color: var(--color-dark-gray);
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.product-detail h4 {
    color: var(--color-primary);
    font-size: 1.1rem;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.product-detail img {
    width: 100%;
    max-width: 400px;
    margin: 2rem auto;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.product-detail p {
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--color-dark-gray);
}

.product-detail ul {
    margin: 1rem 0 1.5rem 0;
    padding-left: 0;
    list-style: none;
}

.product-detail ul li {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background-color: var(--color-light-gray);
    border-left: 4px solid var(--color-secondary);
    border-radius: 4px;
    transition: var(--transition);
}

.product-detail ul li:hover {
    background-color: #e8e8e8;
    transform: translateX(5px);
}

.product-detail ul li strong {
    color: var(--color-primary);
    font-weight: 600;
}

.product-detail .prize-amount {
    color: var(--color-success);
    font-weight: 700;
    font-size: 1.15rem;
    white-space: nowrap;
}

.product-info-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 1.5rem;
    border-left: 5px solid #2196f3;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: var(--shadow-sm);
}

.product-info-box p {
    margin: 0;
    color: #1565c0;
    font-weight: 500;
}

.product-info-box strong {
    color: #0d47a1;
}

.prize-table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    box-shadow: var(--shadow-sm);
    border-radius: 8px;
    overflow: hidden;
}

.prize-table thead {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.prize-table th,
.prize-table td {
    padding: 1rem;
    text-align: left;
}

.prize-table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.prize-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: var(--transition);
}

.prize-table tbody tr:hover {
    background-color: var(--color-light-gray);
}

.prize-table tbody tr:last-child {
    border-bottom: none;
}

.prize-table .prize-amount {
    color: var(--color-success);
    font-weight: 700;
    font-size: 1.1rem;
}

.product-section {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--color-light-gray);
}

/* Estilos para imágenes de productos */
.product-images-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.product-image-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.product-image-item:hover {
    transform: translateY(-5px);
}

.product-image-item img {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.product-image-item img:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

/* Careers */
.careers-hero {
    margin: 2rem auto 3rem;
    max-width: 600px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.careers-banner {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.careers-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: var(--color-gray);
}

.vacantes-container {
    display: grid;
    gap: 2rem;
}

.vacante-card {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--color-secondary);
}

.vacante-card h3 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.vacante-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    color: var(--color-gray);
    font-size: 0.9rem;
}

.vacante-description {
    margin: 1.5rem 0;
    line-height: 1.8;
}

/* Contact */
.contact-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.info-card {
    background-color: var(--color-light-gray);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.icon-container {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.info-card h3 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.contact-form-container {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    max-width: 700px;
    margin: 0 auto;
}

.contact-form-container h2 {
    color: var(--color-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-dark-gray);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
}

.form-message {
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    text-align: center;
}

.form-message.success {
    background-color: #d4edda;
    color: var(--color-success);
    border: 1px solid var(--color-success);
}

.form-message.error {
    background-color: #f8d7da;
    color: var(--color-error);
    border: 1px solid var(--color-error);
}

/* ===== Estilos del Captcha ===== */
.captcha-container {
    position: relative;
}

.captcha-challenge {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #6c757d;
    border-radius: 8px;
    margin-top: 0.5rem;
}

#captchaQuestion {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--color-primary);
    min-width: 120px;
}

#captcha {
    flex: 1;
    max-width: 100px;
    margin: 0;
}

.btn-captcha {
    background: var(--color-secondary);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-captcha:hover {
    background: var(--color-primary);
    transform: rotate(90deg);
}

.captcha-help {
    display: block;
    margin-top: 0.5rem;
    color: var(--color-gray);
    font-size: 0.9rem;
    font-style: italic;
}

/* ===== Checkbox personalizado ===== */
.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    line-height: 1.4;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark {
    display: block;
    width: 20px;
    height: 20px;
    background-color: white;
    border: 2px solid #ddd;
    border-radius: 4px;
    position: relative;
    transition: var(--transition);
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input[type="checkbox"]:checked + .checkmark:after {
    display: block;
}

/* ===== Botón mejorado con loading ===== */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== Validaciones visuales ===== */
.form-group.error input,
.form-group.error textarea {
    border-color: var(--color-error);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-group.success input,
.form-group.success textarea {
    border-color: var(--color-success);
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.error-message {
    color: var(--color-error);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

/* Loading */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--color-gray);
    font-size: 1.1rem;
}

.no-vacantes {
    text-align: center;
    padding: 3rem;
    background-color: var(--color-light-gray);
    border-radius: 12px;
}

.no-vacantes h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

/* ===== Legal Content (Términos, Políticas) ===== */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.legal-content h1 {
    color: var(--color-primary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.legal-content .last-update {
    text-align: center;
    color: var(--color-gray);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-light-gray);
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h2 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-secondary);
}

.legal-section h3 {
    color: var(--color-dark-gray);
    font-size: 1.2rem;
    margin: 1.5rem 0 0.75rem;
}

.legal-section p {
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--color-dark-gray);
    text-align: justify;
}

.legal-section ul, .legal-section ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.legal-section li {
    line-height: 1.8;
    margin-bottom: 0.5rem;
    color: var(--color-dark-gray);
}

.legal-section a {
    color: var(--color-primary);
    text-decoration: underline;
}

.legal-section a:hover {
    color: var(--color-secondary);
}

.legal-acceptance {
    background-color: var(--color-light-gray);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--color-secondary);
    margin-top: 2rem;
    text-align: center;
}

.legal-acceptance p {
    margin: 0;
    color: var(--color-primary);
    font-size: 1.05rem;
}

/* ===== ESTILOS PARA API SIISS ===== */

/* Contenedores de resultados */
.acumulado-card, .resultado-card {
    background: var(--color-white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-left: 4px solid var(--color-primary);
    margin-bottom: 1rem;
}

.acumulado-card:hover, .resultado-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Headers de tarjetas */
.resultado-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.resultado-header h4 {
    color: var(--color-primary);
    font-size: 1.2rem;
    margin: 0;
    font-weight: 600;
}

.resultado-fecha, .acumulado-fecha, .resultado-hora, .acumulado-hora {
    color: var(--color-gray);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Montos de acumulados */
.acumulado-monto {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-secondary);
    text-align: center;
    margin: 1rem 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Números de lotería */
.numero-ball {
    display: inline-block;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--color-primary), #004d96);
    color: var(--color-white);
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    font-weight: bold;
    margin: 0 3px;
    font-size: 14px;
    box-shadow: var(--shadow-sm);
    animation: bounceIn 0.6s ease-out;
}

.numero-loteria {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-secondary), #f0c040);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: var(--shadow-sm);
    margin: 0 5px;
}

.resultado-numeros {
    text-align: center;
    margin: 1rem 0;
    padding: 0.5rem;
    background: rgba(0, 61, 122, 0.05);
    border-radius: 8px;
}

.numero-serie {
    text-align: center;
    margin: 1rem 0;
}

.numero-principal {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Mensajes de error */
.error-message {
    color: var(--color-error);
    text-align: center;
    padding: 2rem;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(220, 53, 69, 0.2);
    margin: 1rem 0;
    font-weight: 500;
}

/* Grid de acumulados */
#acumuladosGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1rem 0;
}

/* Contenedores de resultados - REMOVIDO: Los estilos grid están definidos arriba */

/* Estados de carga */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

/* Animaciones */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsivo para API */
@media (max-width: 768px) {
    .acumulado-card, .resultado-card {
        padding: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .acumulado-monto {
        font-size: 1.5rem;
    }
    
    .numero-ball {
        width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 12px;
    }
    
    .resultado-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    #acumuladosGrid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ===== MODAL DE POSTULACIÓN ===== */
.modal-postulacion {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
}

.modal-postulacion .modal-content {
    background-color: var(--color-white);
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-postulacion .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid var(--color-light-gray);
}

.modal-postulacion .modal-header h2 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin: 0;
}

.modal-postulacion .modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-gray);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-postulacion .modal-close:hover {
    background-color: var(--color-light-gray);
    color: var(--color-primary);
}

.modal-postulacion .modal-body {
    padding: 1.5rem;
}

.modal-postulacion .modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid var(--color-light-gray);
}

.postulacion-form .form-group {
    margin-bottom: 1.25rem;
}

.postulacion-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
    font-weight: 500;
}

.postulacion-form input[type="text"],
.postulacion-form input[type="email"],
.postulacion-form input[type="tel"],
.postulacion-form input[type="number"],
.postulacion-form input[type="file"],
.postulacion-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.postulacion-form input:focus,
.postulacion-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 61, 122, 0.1);
}

.postulacion-form input[readonly] {
    background-color: var(--color-light-gray);
    cursor: not-allowed;
}

.postulacion-form textarea {
    resize: vertical;
    min-height: 100px;
}

.postulacion-form .file-help {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-gray);
}

.btn-secondary {
    background-color: var(--color-gray);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: var(--color-dark-gray);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Responsivo para modal */
@media (max-width: 768px) {
    .modal-postulacion {
        padding: 10px;
    }
    
    .modal-postulacion .modal-content {
        max-height: 95vh;
    }
    
    .modal-postulacion .modal-header,
    .modal-postulacion .modal-body {
        padding: 1rem;
    }
    
    .modal-postulacion .modal-header h2 {
        font-size: 1.25rem;
    }
    
    .modal-postulacion .modal-footer {
        flex-direction: column;
    }
    
    .modal-postulacion .modal-footer button {
        width: 100%;
    }
}
