/* Estilos para el popup de verificación de edad - Martín Diego Cigars */

.age-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Didact Gothic', sans-serif;
    overflow: hidden;
    user-select: none;
    pointer-events: auto;
}

/* Bloquear scroll del body cuando el modal está activo */
body.modal-active {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

.age-modal-content {
    background: #143e35;
    padding: 40px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    border: 2px solid #ceab5d;
    position: relative;
}

.age-modal-content::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: #ceab5d;
    border-radius: 15px;
    z-index: -1;
}

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

.age-modal-header h2 {
    color: #ceab5d;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Playfair Display', serif;
}

.age-modal-header p {
    color: #fff;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.age-modal-body {
    margin-bottom: 25px;
}

.age-modal-body .form-group {
    margin-bottom: 20px;
}

.age-modal-body .form-group label {
    display: block;
    color: #ceab5d;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.age-modal-body .form-group input,
.age-modal-body .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #444;
    border-radius: 8px;
    background: #323232;
    color: #fff;
    font-size: 16px;
    font-family: 'Didact Gothic', sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Estilo para el icono de calendario nativo del input date */
.age-modal-body input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.age-modal-body input[type="date"]::-webkit-inner-spin-button,
.age-modal-body input[type="date"]::-webkit-clear-button {
    filter: invert(1);
}

.age-modal-body .form-group input:focus,
.age-modal-body .form-group select:focus {
    outline: none;
    border-color: #ceab5d;
    background: #3a3a3a;
    box-shadow: 0 0 10px rgba(206, 171, 93, 0.3);
}

.age-modal-body .form-group input:hover,
.age-modal-body .form-group select:hover {
    border-color: #666;
}

.age-modal-body .age-modal-buttons {
    text-align: center;
    margin-top: 30px;
}

.age-modal-body .btn-verify {
    background: #ceab5d;
    color: #143e35;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    font-family: 'Playfair Display', serif;
}

.age-modal-body .btn-verify:hover {
    background: #777;
    color: #fff;
}

.age-modal-body .btn-verify:active {
    background: #ceab5d;
    color: #143e35;
}

.age-modal-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ceab5d;
}

.age-modal-footer p {
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
}

.age-modal-footer small {
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .age-modal-content {
        padding: 30px 20px;
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    .age-modal-header h2 {
        font-size: 24px;
    }
    
    .age-modal-header p {
        font-size: 14px;
    }
    
    .age-modal-body .form-group input,
    .age-modal-body .form-group select {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .age-modal-body .btn-verify {
        padding: 12px 30px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .age-modal-content {
        padding: 25px 15px;
        margin: 15px;
        width: calc(100% - 30px);
    }
    
    .age-modal-header h2 {
        font-size: 20px;
    }
    
    .age-modal-body .btn-verify {
        padding: 10px 25px;
        font-size: 13px;
    }
}

/* Animación de entrada */
.age-modal-overlay {
    animation: fadeIn 0.3s ease-out;
}

.age-modal-content {
    animation: slideIn 0.4s ease-out;
}

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

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