/**
 * AGE GATE MODAL - ESTILOS
 * Guardar como: /css/age-gate.css
 */

/* ==========================================
   MODAL OVERLAY Y CONTAINER
   ========================================== */
.age-gate-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-in-out;
}

.age-gate-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(63, 17, 28, 0.98), rgba(139, 0, 0, 0.95));
    backdrop-filter: blur(10px);
}

.age-gate-container {
    position: relative;
    z-index: 10;
    max-width: 600px;
    width: 90%;
    animation: slideUp 0.4s ease-out;
}

.age-gate-content {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    text-align: center;
}

/* ==========================================
   LOGO Y TÍTULO
   ========================================== */
.age-gate-logo {
    margin-bottom: 2rem;
}

.age-gate-logo img {
    max-width: 200px;
    height: auto;
}

.age-gate-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #3f111c;
    margin-bottom: 1.5rem;
    font-family: 'Century Gothic', sans-serif;
}

/* ==========================================
   MENSAJE
   ========================================== */
.age-gate-message {
    margin-bottom: 2rem;
}

.age-gate-message p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.age-gate-message .text-strong {
    font-size: 1.4rem;
    font-weight: 700;
    color: #3f111c;
    margin-top: 1rem;
}

/* ==========================================
   ADVERTENCIA LEGAL
   ========================================== */
.age-gate-legal-notice {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border-left: 4px solid #ffc107;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.age-gate-legal-notice i {
    font-size: 1.5rem;
    color: #856404;
}

.age-gate-legal-notice p {
    margin: 0;
    color: #856404;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: left;
}

/* ==========================================
   BOTONES DE ACCIÓN
   ========================================== */
.age-gate-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn-age-yes,
.btn-age-no {
    padding: 1.2rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-family: 'Century Gothic', sans-serif;
}

.btn-age-yes {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-age-yes:hover {
    background: linear-gradient(135deg, #20c997, #28a745);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(40, 167, 69, 0.4);
}

.btn-age-yes:active {
    transform: translateY(0);
}

.btn-age-no {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-age-no:hover {
    background: linear-gradient(135deg, #c82333, #dc3545);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(220, 53, 69, 0.4);
}

.btn-age-no:active {
    transform: translateY(0);
}

.btn-age-yes i,
.btn-age-no i {
    font-size: 1.3rem;
}

.btn-age-yes:disabled,
.btn-age-no:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ==========================================
   TÉRMINOS Y CONDICIONES
   ========================================== */
.age-gate-terms {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.terms-checkbox-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: #555;
}

.terms-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.terms-link {
    color: #3f111c;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.terms-link:hover {
    border-bottom-color: #3f111c;
}

/* ==========================================
   MENSAJE DE ERROR
   ========================================== */
.age-gate-error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    border-left: 4px solid #dc3545;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    animation: shake 0.5s ease-in-out;
}

.age-gate-error i {
    color: #721c24;
    font-size: 1.2rem;
}

.age-gate-error span {
    color: #721c24;
    font-weight: 600;
    font-size: 0.95rem;
}

/* ==========================================
   ANIMACIONES
   ========================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* ==========================================
   PÁGINA DE TÉRMINOS Y CONDICIONES
   ========================================== */
.terminos-container {
    max-width: 900px;
    margin: 3rem auto;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.terminos-container h1 {
    font-size: 2.5rem;
    color: #3f111c;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 800;
}

.terminos-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.terminos-section:last-of-type {
    border-bottom: none;
}

.terminos-section h2 {
    font-size: 1.5rem;
    color: #3f111c;
    margin-bottom: 1rem;
    font-weight: 700;
}

.terminos-section p {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.terminos-section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.terminos-section ul li {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.terminos-section strong {
    color: #3f111c;
    font-weight: 700;
}

.terminos-footer {
    margin-top: 3rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border-radius: 8px;
    text-align: center;
    border-left: 4px solid #ffc107;
}

.terminos-footer p {
    margin: 0.5rem 0;
    font-weight: 700;
    color: #856404;
}

/* ==========================================
   PÁGINA DE MENOR DE EDAD
   ========================================== */
.menor-edad-container {
    max-width: 700px;
    margin: 3rem auto;
    padding: 3rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.menor-edad-icon {
    font-size: 5rem;
    color: #dc3545;
    margin-bottom: 2rem;
    animation: pulse 2s infinite;
}

.menor-edad-container h1 {
    font-size: 2.5rem;
    color: #3f111c;
    margin-bottom: 2rem;
    font-weight: 800;
}

.menor-edad-message {
    text-align: left;
    margin-bottom: 2rem;
}

.menor-edad-message > p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.menor-edad-legal {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    margin-bottom: 1.5rem;
}

.menor-edad-legal p {
    font-weight: 700;
    color: #856404;
    margin-bottom: 1rem;
}

.menor-edad-legal ul {
    margin-left: 2rem;
    text-align: left;
}

.menor-edad-legal ul li {
    color: #856404;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.menor-edad-navegacion {
    background: #e7f3ff;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #0066cc;
    margin-bottom: 1.5rem;
}

.menor-edad-navegacion p {
    color: #004085;
    margin: 0;
    line-height: 1.6;
}

.menor-edad-navegacion strong {
    font-weight: 700;
}

.menor-edad-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.menor-edad-info h3 {
    color: #3f111c;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.menor-edad-info p {
    color: #555;
    line-height: 1.8;
    margin: 0;
}

.menor-edad-actions {
    margin-bottom: 2rem;
}

.btn-volver-inicio {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #3f111c, #5a1a29);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(63, 17, 28, 0.3);
}

.btn-volver-inicio:hover {
    background: linear-gradient(135deg, #5a1a29, #3f111c);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(63, 17, 28, 0.4);
    color: white;
}

.menor-edad-footer {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    border-radius: 8px;
    border-left: 4px solid #dc3545;
}

.menor-edad-footer p {
    margin: 0.5rem 0;
    font-weight: 700;
    color: #721c24;
}

/* ==========================================
   MENSAJE DE RESTRICCIÓN EN PRODUCTOS
   ========================================== */
.minor-restriction-message {
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border-left: 4px solid #ffc107;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.minor-restriction-message strong {
    color: #856404;
}

.minor-restriction-message i {
    color: #856404;
    font-size: 1.2rem;
}

.price-restricted {
    color: #dc3545;
    font-weight: 700;
    font-size: 1.1rem;
}

.price-restricted i {
    margin-right: 0.5rem;
}

/* ==========================================
   ANIMACIÓN PULSE
   ========================================== */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 768px) {
    .age-gate-content {
        padding: 2rem;
    }
    
    .age-gate-title {
        font-size: 2rem;
    }
    
    .age-gate-message .text-strong {
        font-size: 1.2rem;
    }
    
    .btn-age-yes,
    .btn-age-no {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .terminos-container,
    .menor-edad-container {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .terminos-container h1,
    .menor-edad-container h1 {
        font-size: 2rem;
    }
    
    .menor-edad-icon {
        font-size: 4rem;
    }
}

@media (max-width: 480px) {
    .age-gate-content {
        padding: 1.5rem;
    }
    
    .age-gate-title {
        font-size: 1.8rem;
    }
    
    .age-gate-logo img {
        max-width: 150px;
    }
    
    .btn-age-yes,
    .btn-age-no {
        font-size: 0.95rem;
        padding: 0.9rem 1.2rem;
    }
}