/* ===============================================
   AGE VERIFICATION MODAL MEJORADO
   =============================================== */

.age-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(
        45deg,
        rgba(220, 20, 60, 0.95),
        rgba(255, 69, 0, 0.95),
        rgba(220, 20, 60, 0.95)
    );
    backdrop-filter: blur(15px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(10px, 3vw, 20px);
    animation: modalAppear 0.5s ease-out;
    font-family: 'Arial', sans-serif;
    overflow-y: auto;
    box-sizing: border-box;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.age-modal-content {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border: 3px solid #ff4500;
    border-radius: 20px;
    padding: clamp(20px, 4vw, 40px) clamp(15px, 3vw, 30px);
    max-width: min(95vw, 500px);
    width: 100%;
    max-height: 95vh;
    text-align: center;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(255, 69, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    animation: contentSlide 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow-y: auto;
    box-sizing: border-box;
    margin: auto;
}

@keyframes contentSlide {
    from {
        transform: translateY(-50px) rotateX(20deg);
        opacity: 0;
    }
    to {
        transform: translateY(0) rotateX(0);
        opacity: 1;
    }
}

.age-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff4500, #dc143c, #ff1493, #ff4500);
    background-size: 300% 100%;
    animation: rainbowGlow 2s ease-in-out infinite;
}

@keyframes rainbowGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.age-modal h2 {
    color: #fff;
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    margin-bottom: clamp(10px, 3vw, 20px);
    text-shadow: 
        0 0 10px rgba(255, 69, 0, 0.8),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    animation: titlePulse 2s ease-in-out infinite alternate;
    font-weight: bold;
    line-height: 1.2;
}

@keyframes titlePulse {
    from { 
        text-shadow: 
            0 0 10px rgba(255, 69, 0, 0.8),
            2px 2px 4px rgba(0, 0, 0, 0.8);
    }
    to { 
        text-shadow: 
            0 0 20px rgba(255, 69, 0, 1),
            0 0 30px rgba(220, 20, 60, 0.6),
            2px 2px 4px rgba(0, 0, 0, 0.8);
    }
}

.age-modal p {
    color: #f0f0f0;
    font-size: clamp(0.9rem, 2.2vw, 1.1rem);
    margin-bottom: clamp(10px, 2vw, 15px);
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.age-modal ul {
    list-style: none;
    padding: 0;
    margin: clamp(15px, 3vw, 25px) 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: clamp(15px, 3vw, 20px);
    border: 2px solid rgba(255, 69, 0, 0.3);
}

.age-modal ul li {
    color: #fff;
    font-size: clamp(0.85rem, 2vw, 1rem);
    margin-bottom: clamp(8px, 2vw, 10px);
    padding: clamp(6px, 1.5vw, 8px) clamp(10px, 2vw, 15px);
    background: linear-gradient(90deg, rgba(255, 69, 0, 0.2), rgba(220, 20, 60, 0.2));
    border-radius: 8px;
    border-left: 4px solid #ff4500;
    position: relative;
    animation: listItemSlide 0.6s ease-out forwards;
    animation-delay: calc(var(--i) * 0.1s);
    opacity: 0;
    transform: translateX(-30px);
    line-height: 1.4;
}

.age-modal ul li:nth-child(1) { --i: 1; }
.age-modal ul li:nth-child(2) { --i: 2; }

@keyframes listItemSlide {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.age-modal ul li::before {
    content: '✓';
    color: #00ff00;
    font-weight: bold;
    margin-right: 10px;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.button-container {
    margin-top: clamp(20px, 4vw, 30px);
    display: flex;
    flex-wrap: wrap;
    gap: clamp(10px, 2vw, 15px);
    justify-content: center;
    align-items: center;
}

.age-button {
    display: inline-block;
    padding: clamp(12px, 3vw, 15px) clamp(20px, 4vw, 30px);
    margin: 0;
    border: none;
    border-radius: 50px;
    font-size: clamp(0.9rem, 2.2vw, 1.05rem);
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: clamp(140px, 30vw, 160px);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
}

.age-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.age-button:hover::before {
    left: 100%;
}

.age-button.confirm {
    background: linear-gradient(145deg, #28a745, #20c997);
    color: white;
    box-shadow: 
        0 8px 25px rgba(40, 167, 69, 0.4),
        0 0 20px rgba(40, 167, 69, 0.2);
    border: 2px solid #20c997;
}

.age-button.confirm:hover {
    background: linear-gradient(145deg, #20c997, #17a2b8);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 12px 35px rgba(40, 167, 69, 0.5),
        0 0 30px rgba(40, 167, 69, 0.3);
}

.age-button.decline {
    background: linear-gradient(145deg, #dc3545, #c82333);
    color: white;
    box-shadow: 
        0 8px 25px rgba(220, 53, 69, 0.4),
        0 0 20px rgba(220, 53, 69, 0.2);
    border: 2px solid #c82333;
}

.age-button.decline:hover {
    background: linear-gradient(145deg, #c82333, #bd2130);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 12px 35px rgba(220, 53, 69, 0.5),
        0 0 30px rgba(220, 53, 69, 0.3);
}

.age-button:active {
    transform: translateY(-1px) scale(0.98);
}

/* Warning Icon Animation */
.warning-icon {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #ff4500;
    margin-bottom: clamp(10px, 2vw, 15px);
    animation: warningBlink 1.5s ease-in-out infinite;
    display: block;
}

@keyframes warningBlink {
    0%, 50%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    25%, 75% { 
        opacity: 0.7; 
        transform: scale(1.1);
    }
}

/* ===============================================
   RESPONSIVE BREAKPOINTS
   =============================================== */

/* Mobile Small */
@media (max-width: 480px) {
    .age-modal {
        padding: 5px;
    }
    
    .age-modal-content {
        padding: 20px 15px;
        border-radius: 15px;
        max-width: 98vw;
        max-height: 98vh;
    }
    
    .age-modal h2 {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }
    
    .age-modal p {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .age-modal ul {
        padding: 12px;
        margin: 15px 0;
    }
    
    .age-modal ul li {
        font-size: 0.85rem;
        padding: 6px 10px;
        margin-bottom: 6px;
    }
    
    .button-container {
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
    }
    
    .age-button {
        width: 100%;
        padding: 12px 15px;
        font-size: 0.9rem;
        min-width: auto;
    }
    
    .warning-icon {
        font-size: 2rem;
        margin-bottom: 8px;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .age-modal {
        padding: 2px;
        align-items: flex-start;
        padding-top: 10px;
    }
    
    .age-modal-content {
        padding: 15px 10px;
        max-width: 99vw;
        max-height: 95vh;
        margin-top: 5px;
    }
    
    .age-modal h2 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .age-modal p {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }
    
    .age-modal ul {
        padding: 10px;
        margin: 10px 0;
    }
    
    .age-modal ul li {
        font-size: 0.8rem;
        padding: 5px 8px;
        margin-bottom: 5px;
    }
    
    .button-container {
        margin-top: 12px;
        gap: 8px;
    }
    
    .age-button {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .warning-icon {
        font-size: 1.8rem;
        margin-bottom: 6px;
    }
}

/* Tablet */
@media (min-width: 481px) and (max-width: 768px) {
    .age-modal-content {
        padding: 35px 25px;
        max-width: 450px;
    }
}

/* Landscape Mobile */
@media (orientation: landscape) and (max-height: 500px) {
    .age-modal {
        padding: 5px;
        align-items: flex-start;
        padding-top: 5px;
    }
    
    .age-modal-content {
        max-height: 95vh;
        overflow-y: auto;
        padding: 15px;
        margin-top: 0;
    }
    
    .age-modal h2 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .age-modal p {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }
    
    .age-modal ul {
        margin: 10px 0;
        padding: 12px;
    }
    
    .age-modal ul li {
        font-size: 0.8rem;
        padding: 4px 8px;
        margin-bottom: 4px;
    }
    
    .button-container {
        margin-top: 10px;
        gap: 8px;
        flex-direction: row;
    }
    
    .age-button {
        padding: 8px 15px;
        min-height: 35px;
        font-size: 0.8rem;
        flex: 1;
    }
    
    .warning-icon {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .age-modal,
    .age-modal-content,
    .age-modal h2,
    .age-modal ul li,
    .age-button {
        animation: none;
        transition: none;
    }
    
    .age-button:hover {
        transform: none;
    }
}

/* High Contrast */
@media (prefers-contrast: high) {
    .age-modal {
        background: rgba(0, 0, 0, 0.95);
    }
    
    .age-modal-content {
        background: #000;
        border: 3px solid #fff;
    }
    
    .age-modal h2,
    .age-modal p,
    .age-modal ul li {
        color: #fff;
    }
    
    .age-button.confirm {
        background: #000;
        color: #00ff00;
        border: 2px solid #00ff00;
    }
    
    .age-button.decline {
        background: #000;
        color: #ff0000;
        border: 2px solid #ff0000;
    }
}
