/* ===== VARIABLES ===== */
:root {
    --primary-blue: #0E0F3B;
    --secondary-blue: #07407B;
    --accent-blue: #7FCDEE;
    --orange-accent: #F7931E;
    --white: #ffffff;
    --gray-text: #777;
    --light-gray: #f8f9fa;
}

/* ===== BASE ===== */
html {
    scroll-behavior: smooth;
}

/*body {
    background-color: #FFF;
    color: var(--gray-text);
    font-family: "Poppins", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    padding-top: 120px;
}*/

/* ===== FAQ SECTION ===== */
.faq-section {
    /*padding: clamp(3rem, 8vw, 8rem) 0;*/
    /*background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);*/
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.faq-container {
    max-width: min(1400px, 95vw);
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 3rem);
}

/* FAQ Header */
.faq-header {
    text-align: center;
    margin-bottom: clamp(3rem, 8vw, 6rem);
}

.faq-title {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: clamp(1rem, 3vw, 2rem);
    line-height: 1.2;
    letter-spacing: clamp(-1px, -0.1vw, -2px);
}

.faq-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--gray-text);
    max-width: min(600px, 90vw);
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.6;
}

/* FAQ Grid - con spacing fluid */
.faq-grid {
    margin-top: clamp(2rem, 5vw, 4rem);
}

    .faq-grid:after {
        content: "";
        display: table;
        clear: both;
    }

/* FAQ Item - FLOAT SIMPLE con radius y padding consistente */
.faq-item {
    background: white;
    border-radius: clamp(8px, 1.5vw, 16px);
    box-shadow: 0 clamp(2px, 0.5vw, 6px) clamp(10px, 2vw, 25px) rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(127, 205, 238, 0.1);
    width: 48%;
    float: left;
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
    vertical-align: top;
    min-height: clamp(60px, 8vw, 80px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

    .faq-item:nth-child(odd) {
        clear: left;
    }

    .faq-item:nth-child(even) {
        margin-left: clamp(2%, 4vw, 4%);
    }

    .faq-item:hover {
        transform: translateY(clamp(-1px, -0.3vw, -3px));
        box-shadow: 0 clamp(4px, 1vw, 12px) clamp(15px, 3vw, 40px) rgba(0, 0, 0, 0.12);
    }

/* FAQ Question */
.faq-question {
    padding: clamp(1rem, 3vw, 2rem) clamp(1.2rem, 3vw, 2.5rem);
    cursor: pointer;
    background: white;
    border: none;
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    gap: clamp(0.8rem, 2vw, 1.5rem);
    border-radius: clamp(8px, 1.5vw, 16px) clamp(8px, 1.5vw, 16px) 0 0;
}

    .faq-question:hover {
        background: rgba(127, 205, 238, 0.05);
    }

.faq-question-text {
    font-size: clamp(0.9rem, 2.2vw, 1.2rem);
    font-weight: 600;
    color: var(--primary-blue);
    margin: 0;
    line-height: 1.4;
    flex: 1;
}

/* FAQ Icon */
.faq-icon {
    width: clamp(32px, 5vw, 48px);
    height: clamp(32px, 5vw, 48px);
    border-radius: 50%;
    background: rgba(127, 205, 238, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

    .faq-icon i {
        font-size: clamp(14px, 2.5vw, 20px);
        color: var(--accent-blue);
        transition: all 0.3s ease;
    }

/* FAQ Answer */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: rgba(248, 249, 250, 0.5);
    border-radius: 0 0 clamp(8px, 1.5vw, 16px) clamp(8px, 1.5vw, 16px);
}

.faq-answer-content {
    padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.2rem, 3vw, 2.5rem);
    color: var(--gray-text);
    font-size: clamp(0.85rem, 2vw, 1.1rem);
    line-height: clamp(1.5, 0.2vw + 1.4, 1.8);
}

/* Estados abierto/cerrado con clases */
.faq-item.open .faq-answer {
    max-height: 500px;
    overflow: visible;
}

.faq-item.open .faq-icon {
    background: var(--accent-blue);
    transform: rotate(180deg);
}

    .faq-item.open .faq-icon i {
        color: white;
    }

.faq-item.open .faq-question {
    background: rgba(127, 205, 238, 0.08);
    padding-bottom: clamp(1rem, 2.5vw, 1.8rem);
}

/* Mobile */
@media (max-width: 768px) {
    .faq-grid {
        display: block;
    }

        .faq-grid:after {
            display: none;
        }

    .faq-item {
        width: 100% !important;
        float: none !important;
        margin-left: 0 !important;
        clear: none !important;
        display: block !important;
        margin-bottom: 1rem;
    }

        .faq-item:nth-child(odd) {
            clear: none !important;
        }

        .faq-item:nth-child(even) {
            margin-left: 0 !important;
        }

    .faq-question {
        flex-direction: row;
        align-items: flex-start;
        gap: clamp(0.5rem, 3vw, 1rem);
    }

    .faq-question-text {
        padding-top: clamp(0.2rem, 1vw, 0.5rem);
    }
}

/* Gradient background animation */
.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(127, 205, 238, 0.03) 50%, transparent 70%);
    pointer-events: none;
}
