/**
 * Metro Life RP - Estilos de Informaciones
 * Copyright (c) 2025 Metro Life Studios. Desarrollado por Mercurio & Melman.
 * Todos los derechos reservados.
 */

@import url('./styles.css');

/* ========================================
   SECCIÓN DE INFORMACIONES
   ======================================== */

.info-section {
    min-height: 100vh;
    padding: 140px 24px 80px;
    position: relative;
    z-index: 1;
}

.page-header {
    text-align: center;
    margin-bottom: 80px;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.page-title {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 900;
    color: var(--white);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.title-icon {
    color: var(--purple-primary);
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.6));
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.6));
    }

    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.9));
    }
}

.page-subtitle {
    font-size: 18px;
    color: var(--muted);
    font-weight: 500;
}

/* Info Cards Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.info-card {
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.6s ease forwards;
}

.info-card:nth-child(1) {
    animation-delay: 0.3s;
}

.info-card:nth-child(2) {
    animation-delay: 0.4s;
}

.info-card:nth-child(3) {
    animation-delay: 0.5s;
}

.info-card:nth-child(4) {
    animation-delay: 0.6s;
}

.info-card:nth-child(5) {
    animation-delay: 0.7s;
}

.info-card:nth-child(6) {
    animation-delay: 0.8s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--purple-primary), var(--cyan-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.info-card:hover::before {
    transform: scaleX(1);
}

.info-card:hover {
    background: rgba(139, 92, 246, 0.05);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.3);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(6, 182, 212, 0.2));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--purple-primary);
    transition: all 0.4s ease;
    border: 2px solid rgba(139, 92, 246, 0.3);
}

.info-card:hover .card-icon {
    background: linear-gradient(135deg, var(--purple-primary), var(--cyan-accent));
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--white);
    margin: 0;
}

.card-description {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

.card-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(139, 92, 246, 0.1);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    color: var(--purple-primary);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    letter-spacing: 0.5px;
}

.card-btn:hover {
    background: var(--purple-primary);
    border-color: var(--purple-primary);
    color: var(--white);
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

.card-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.card-btn:hover i {
    transform: translateX(3px);
}

/* Modal */
.info-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.info-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    position: relative;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    background: linear-gradient(135deg, rgba(14, 21, 31, 0.98), rgba(26, 31, 46, 0.98));
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(139, 92, 246, 0.1);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: var(--purple-primary);
    border-color: var(--purple-primary);
    transform: rotate(90deg);
}

.modal-body {
    padding: 50px 40px;
    overflow-y: auto;
    max-height: 90vh;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(139, 92, 246, 0.2);
}

.modal-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--purple-primary), var(--cyan-accent));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--white);
    flex-shrink: 0;
}

.modal-title {
    font-size: 32px;
    font-weight: 900;
    color: var(--white);
    margin: 0;
}

.modal-content-area {
    color: var(--muted);
    line-height: 1.8;
    font-size: 16px;
}

.modal-content-area h3 {
    color: var(--white);
    font-size: 22px;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 15px;
}

.modal-content-area p {
    margin-bottom: 15px;
}

.modal-content-area ul,
.modal-content-area ol {
    margin: 15px 0;
    padding-left: 30px;
}

.modal-content-area li {
    margin-bottom: 12px;
    color: var(--muted);
}

.modal-content-area li::marker {
    color: var(--purple-primary);
}

.modal-content-area code {
    background: rgba(139, 92, 246, 0.15);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--cyan-accent);
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .info-section {
        padding: 120px 16px 60px;
    }

    .page-header {
        margin-bottom: 50px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .info-card {
        padding: 30px 24px;
    }

    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .card-title {
        font-size: 20px;
    }

    .modal-body {
        padding: 40px 24px;
    }

    .modal-title {
        font-size: 24px;
    }
}