/* Estilos base */
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, rgb(43, 53, 63), rgb(25, 30, 36));
    color: white;
    font-family: Arial, sans-serif;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header y título */
header {
    text-align: center;
    margin: 20px 0;
}

header h1 {
    font-size: 2.5em;
    margin: 10px 0;
    text-transform: uppercase;
}

header p {
    font-size: 1.2em;
    margin: 5px 0;
}

/* Imagen principal */
.main-image-container {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
}

.main-image {
    width: 100%;
    height: 300px;
    
    display: block;
}

.main-image2 {
    width: 100%;
    height: 600px;
    
    display: block;
}
.offer-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #ff0000;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.2em;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Barra de progreso */
/* Barra de progreso */
.progress-bar-container {
    position: relative;
    width: 100%;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    margin: 20px 0;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

.progress-bar {
    height: 100%;
    width: 3%; /* Aquí defines el porcentaje */
    background: linear-gradient(90deg, #4ade80, #22c55e, #16a34a);
    border-radius: 20px;
    position: relative;
    transition: width 2s ease-in-out;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

/* Animación de brillo */
.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shine 2s infinite;
}

/* Texto del porcentaje */
.progress-bar-container::after {
    content: '3%'; /* Aquí cambias el porcentaje */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
    z-index: 2;
}

/* Animaciones */
@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Animación de carga al cargar la página */
.progress-bar.loading {
    animation: loadProgress 3s ease-out forwards;
}

@keyframes loadProgress {
    0% {
        width: 0%;
    }
    100% {
        width: 50%; /* Debe coincidir con el porcentaje deseado */
    }
}

/* Menú de opciones */
.menu-options {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    gap: 20px;
}

.menu-item {
    flex: 1;
    text-align: center;
    padding: 15px;
    border: 2px solid white;
    border-radius: 10px;
    font-size: 1.5em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Grid de números */
.numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
}

.number-card {
    background-color: white;
    color: black;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.number {
    font-size: 3.5em;
    font-weight: bold;
    margin: 20px 0;
}

.card-title {
    font-weight: bold;
    margin: 10px 0;
    font-size: 1.2em;
}

.card-subtitle {
    font-size: 0.9em;
    color: #666;
    margin: 10px 0;
}

.buy-button {
    background-color: #ff0000;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 1em;
    margin-top: 10px;
}

/* Enlaces sociales */
.social-links {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-links a {
    color: white;
    font-size: 2em;
    text-decoration: none;
}

.social-links .fa-instagram {
    color: #E1306C;
}

.social-links .fa-whatsapp {
    color: #25D366;
}
.boton-comprar-flotante {
    position: fixed;
    top: 80px;
    right: 20px;
    background-color: #ff0000;
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    font-size: 18px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 99;
    cursor: pointer;
    transition: all 0.3s ease;
}

.boton-comprar-flotante:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Ajustes responsive para móviles */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    header h1 {
        font-size: 1.8em;
        padding: 0 10px;
    }

    .main-image {
        height: 250px;
    }
    
    .main-image2 {
        height: 250px;
    }

    .offer-badge {
        font-size: 1em;
        padding: 8px 15px;
        top: 10px;
        right: 10px;
    }

    .menu-options {
        flex-direction: column;
        gap: 10px;
    }

    .menu-item {
        font-size: 1.2em;
        padding: 12px;
    }

    .numbers-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .number-card {
        padding: 15px;
    }

    .number {
        font-size: 2.8em;
        margin: 15px 0;
    }

    .card-title {
        font-size: 1.1em;
    }

    .card-subtitle {
        font-size: 0.85em;
        padding: 0 10px;
    }

    .social-links {
        bottom: 10px;
        right: 10px;
    }

    .social-links a {
        font-size: 1.8em;
    }

    .progress-bar-container {
        height: 15px;
    }
}

/* Ajustes para pantallas muy pequeñas */
@media (max-width: 360px) {
    header h1 {
        font-size: 1.5em;
    }

    .number {
        font-size: 2.5em;
    }

    .menu-item {
        font-size: 1em;
    }
    .menu-item2 {
        font-size: 1em;
    }

    .offer-badge {
        font-size: 0.9em;
        padding: 6px 12px;
    }
}

/* Ajustes para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .numbers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .main-image {
        height: 300px;
    }
    
    .main-image2 {
        height: 300px;
    }

    .number {
        font-size: 3em;
    }
}

/* Estilos para el modal */
.modal {
    display: none; /* Inicialmente oculto */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow-y: auto;
}

/* Clase auxiliar para mostrar el modal */
.modal.show {
    display: block; /* Usamos block en lugar de flex */
}

.modal-content {
    background-color: white;
    max-width: 450px;
    width: 90%;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    position: absolute; /* Cambiado de relative a absolute */
    top: 50%; /* Añadido */
    left: 50%; /* Añadido */
    transform: translate(-50%, -50%); /* Cambiado de translateY(0) */
    animation: modal-appear 0.2s ease;
    overflow: hidden;
    margin: 0; /* Cambiado de auto a 0 */
}

@keyframes modal-appear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 18px 24px;
    background: linear-gradient(to right, #2b353f, #1a232e);
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 22px;
    color: white;
    font-weight: 600;
}

.close-modal {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: white;
    opacity: 0.8;
    transition: opacity 0.2s;
    line-height: 0.8;
}

.close-modal:hover {
    opacity: 1;
}

.modal-body {
    padding: 24px;
}

.precio-texto {
    font-size: 20px;
    margin-bottom: 24px;
    color: #333;
    font-weight: 500;
}

.cantidad-container {
    margin-bottom: 20px;
    position: relative;
}

#cantidadNumeros {
    width: 100%;
    box-sizing: border-box;
    padding: 14px;
    font-size: 18px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    transition: border-color 0.3s;
    appearance: textfield; /* Estándar */
    -webkit-appearance: textfield; /* Safari/Chrome */
    -moz-appearance: textfield; /* Firefox */
}

#cantidadNumeros::-webkit-inner-spin-button, 
#cantidadNumeros::-webkit-outer-spin-button { 
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

#cantidadNumeros:focus {
    border-color: #a70000;
    outline: none;
    box-shadow: 0 0 0 3px rgba(167, 0, 0, 0.1);
}

.botones-cantidad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.btn-cantidad {
    background-color: #f0f0f0;
    border: none;
    padding: 14px 0;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-cantidad:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-cantidad:active {
    transform: translateY(1px);
}

.btn-cantidad:nth-child(1) {
    background-color: #ffd000e3;
    color: white;
}

.btn-cantidad:nth-child(2) {
    background-color: #c8511e;
    color: white;
}

.btn-cantidad:nth-child(3) {
    background-color: #96a700;
    color: white;
}

.btn-cantidad:nth-child(4),
.btn-cantidad:nth-child(5),
.btn-cantidad:nth-child(6) {
    background-color: #29b701dd;
    color: white;
}

.btn-comprar-final {
    display: block;
    width: 100%;
    background: linear-gradient(to right, #e01e1e, #b50000);
    color: white;
    border: none;
    padding: 16px 0;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(224, 30, 30, 0.3);
    letter-spacing: 0.5px;
}

.btn-comprar-final:hover {
    background: linear-gradient(to right, #d01515, #a00000);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(224, 30, 30, 0.4);
}

.btn-comprar-final:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(224, 30, 30, 0.4);
}

.menu-item a {
    color: inherit;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    height: 100%;
}

.menu-item a:hover {
    text-decoration: none;
    color: inherit;
}




/* Info Modal Overlay */
.info-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.info-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Info Modal Container */
.info-modal-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    transform: scale(0.7) translateY(-50px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
}

.info-modal-overlay.active .info-modal-container {
    transform: scale(1) translateY(0);
}

/* Header del Info Modal */
.info-modal-header {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    padding: 25px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.info-modal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: info-shimmer 3s ease-in-out infinite;
}

@keyframes info-shimmer {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.info-modal-title {
    color: white;
    font-size: 28px;
    font-weight: bold;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.info-modal-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin-top: 8px;
    position: relative;
    z-index: 1;
}

/* Contenido del Info Modal */
.info-modal-content {
    padding: 35px 30px;
    background: white;
    position: relative;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0ff 100%);
    border-radius: 12px;
    border-left: 4px solid #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.2);
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-icon {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.info-text {
    color: #2c3e50;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 500;
}

/* Botón de Cerrar Info Modal */
.info-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 2;
}

.info-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg) scale(1.1);
}

/* Footer del Info Modal */
.info-modal-footer {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0ff 100%);
    padding: 20px 30px;
    text-align: center;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
}

.info-contact-info {
    color: #667eea;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.info-social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.info-social-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.info-instagram-btn {
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
}

.info-whatsapp-btn {
    background: linear-gradient(45deg, #25d366, #20bf5f);
}

.info-social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.info-social-btn i {
    margin-right: 8px;
    font-size: 16px;
}

/* Responsive para Info Modal */
@media (max-width: 768px) {
    .info-modal-container {
        width: 95%;
        margin: 20px;
    }
    
    .info-modal-content {
        padding: 25px 20px;
    }
    
    .info-modal-header {
        padding: 20px;
    }
    
    .info-modal-title {
        font-size: 24px;
    }
    
    .info-social-links {
        flex-direction: column;
        gap: 10px;
    }
}