/**
 * Metro Life RP - Estilos del Visor de PDF
 * Copyright (c) 2025 Metro Life Studios
 */

/* ========== TÉRMINOS Y CONDICIONES SECTION ========== */
.terms-section {
    padding: 80px 24px;
    position: relative;
    z-index: 1;
    text-align: center;
}

.terms-container {
    max-width: 600px;
    margin: 0 auto;
}

.terms-button {
    position: relative;
    width: 100%;
    padding: 30px 40px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(6, 182, 212, 0.15));
    border: 2px solid rgba(139, 92, 246, 0.4);
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.terms-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.terms-button:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.8);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(6, 182, 212, 0.25));
    box-shadow:
        0 20px 40px rgba(139, 92, 246, 0.3),
        0 0 60px rgba(139, 92, 246, 0.2);
}

.terms-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
    transition: transform 0.3s ease;
}

.terms-button:hover .terms-icon {
    transform: scale(1.1) rotate(5deg);
}

.terms-text {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.terms-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    display: block;
}

.terms-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    display: block;
}

.terms-arrow {
    font-size: 32px;
    color: #a78bfa;
    transition: transform 0.3s ease;
}

.terms-button:hover .terms-arrow {
    transform: translateX(8px);
    color: #06b6d4;
}

/* ========== PDF MODAL ========== */
.pdf-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.pdf-modal.active {
    display: flex;
}

.pdf-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.pdf-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    background: linear-gradient(135deg, rgba(26, 31, 46, 0.98), rgba(14, 21, 31, 0.98));
    border-radius: 24px;
    border: 2px solid rgba(139, 92, 246, 0.4);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.8),
        0 0 100px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.pdf-modal-header {
    padding: 24px 30px;
    border-bottom: 2px solid rgba(139, 92, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.05), transparent);
}

.pdf-header-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pdf-header-info i {
    font-size: 28px;
    color: #8b5cf6;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.6));
}

.pdf-header-info h3 {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0;
}

.pdf-close-btn {
    width: 44px;
    height: 44px;
    background: rgba(255, 107, 107, 0.1);
    border: 2px solid rgba(255, 107, 107, 0.3);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff6b6b;
    font-size: 20px;
    transition: all 0.3s ease;
}

.pdf-close-btn:hover {
    background: rgba(255, 107, 107, 0.3);
    border-color: rgba(255, 107, 107, 0.6);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
}

.pdf-viewer-wrapper {
    flex: 1;
    position: relative;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pdf-viewer-wrapper embed {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow:
        inset 0 0 30px rgba(0, 0, 0, 0.3),
        0 10px 40px rgba(0, 0, 0, 0.4);
}

.pdf-fallback {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
    padding: 40px;
}

.pdf-fallback p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

.pdf-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.pdf-download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.6);
}

.pdf-download-btn i {
    font-size: 20px;
}

/* Responsive PDF Modal */
@media (max-width: 768px) {
    .pdf-modal-content {
        width: 95%;
        height: 95vh;
    }

    .pdf-modal-header {
        padding: 20px;
    }

    .pdf-header-info h3 {
        font-size: 18px;
    }

    .pdf-viewer-wrapper {
        padding: 10px;
    }

    .terms-button {
        padding: 24px 30px;
        flex-direction: column;
        gap: 16px;
    }

    .terms-text {
        text-align: center;
    }

    .terms-title {
        font-size: 18px;
    }

    .terms-subtitle {
        font-size: 13px;
    }
}