/* ====================================
   ESTILOS PREGUNTAS FRECUENTES
   ==================================== */

/* Hero FAQ */
.hero-faq {
    min-height: 65vh;
    background: linear-gradient(135deg, #193660 0%, #2D4A73 100%);
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 120px;
    overflow: hidden;
}

.hero-pattern-faq {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

.hero-content-faq {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 80px 20px 60px;
    color: white;
}

.hero-icon-faq {
    width: 100px;
    height: 100px;
    background: rgba(255, 215, 0, 0.2);
    border: 3px solid var(--primary-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.hero-icon-faq svg {
    width: 50px;
    height: 50px;
    color: var(--primary-yellow);
}

.hero-content-faq h1 {
    font-size: 3.5em;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-content-faq > p {
    font-size: 1.3em;
    opacity: 0.95;
    margin-bottom: 40px;
}

/* Search Box */
.search-box-faq {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-box-faq svg {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-blue);
}

.search-box-faq input {
    width: 100%;
    padding: 18px 20px 18px 60px;
    border: none;
    border-radius: 50px;
    font-size: 1.05em;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.search-box-faq input:focus {
    outline: none;
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
}

.search-box-faq input::placeholder {
    color: #999;
}

/* Categorías Rápidas */
.categorias-rapidas {
    padding: 40px 0;
    background: white;
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.categorias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.categoria-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 25px 20px;
    background: white;
    border: 3px solid var(--accent-blue);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1em;
    font-weight: 600;
    color: var(--primary-blue);
}

.categoria-btn svg {
    width: 36px;
    height: 36px;
    color: var(--light-blue);
    transition: all 0.3s ease;
}

.categoria-btn:hover {
    transform: translateY(-5px);
    border-color: var(--primary-blue);
    box-shadow: 0 8px 25px rgba(25, 54, 96, 0.15);
}

.categoria-btn:hover svg {
    color: var(--primary-blue);
    transform: scale(1.1);
}

.categoria-btn.active {
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    color: white;
    border-color: var(--primary-blue);
    box-shadow: 0 8px 25px rgba(25, 54, 96, 0.3);
}

.categoria-btn.active svg {
    color: white;
}

/* FAQ Section */
.faq-section {
    padding: 60px 0 80px;
    background: var(--light-gray);
}

.faq-category {
    max-width: 900px;
    margin: 0 auto;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--primary-blue);
}

.category-header svg {
    width: 40px;
    height: 40px;
    color: var(--primary-blue);
}

.category-header h2 {
    color: var(--primary-blue);
    font-size: 2.2em;
    font-weight: 700;
    margin: 0;
}

/* FAQ Items */
.faq-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.12);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: white;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--primary-blue);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--accent-blue);
}

.faq-question span {
    flex: 1;
    padding-right: 20px;
}

.faq-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: var(--primary-blue);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 30px;
    background: #F8F9FA;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 25px 30px;
}

.faq-answer p {
    color: var(--dark-gray);
    line-height: 1.8;
    margin-bottom: 15px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.faq-answer ul li {
    padding: 8px 0 8px 30px;
    position: relative;
    color: var(--dark-gray);
    line-height: 1.7;
}

.faq-answer ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 1.2em;
}

.faq-answer a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.faq-answer a:hover {
    color: var(--light-blue);
    text-decoration: underline;
}

.faq-answer strong {
    color: var(--primary-blue);
}

/* CTA FAQ */
.cta-faq {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
}

.cta-faq-content {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 50px 40px;
    display: flex;
    gap: 40px;
    align-items: center;
    backdrop-filter: blur(10px);
}

.cta-faq-icon {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.cta-faq-icon svg {
    width: 50px;
    height: 50px;
    color: var(--primary-blue);
}

.cta-faq-text {
    flex: 1;
    color: white;
}

.cta-faq-text h2 {
    font-size: 2em;
    margin-bottom: 10px;
    font-weight: 700;
}

.cta-faq-text p {
    font-size: 1.1em;
    opacity: 0.95;
}

.cta-faq-buttons {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.btn-faq-primary,
.btn-faq-secondary,
.btn-faq-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 50px;
    font-size: 1em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-faq-primary {
    background: var(--primary-yellow);
    color: var(--primary-blue);
}

.btn-faq-primary:hover {
    background: #FFC700;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

.btn-faq-secondary {
    background: #25D366;
    color: white;
}

.btn-faq-secondary:hover {
    background: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.btn-faq-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-faq-outline:hover {
    background: white;
    color: var(--primary-blue);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--light-blue);
}

.no-results svg {
    width: 80px;
    height: 80px;
    color: var(--accent-blue);
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 1.8em;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.no-results p {
    font-size: 1.1em;
}

/* Responsive Design */
@media (max-width: 968px) {
    .categorias-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-faq-content {
        flex-direction: column;
        text-align: center;
    }

    .cta-faq-buttons {
        width: 100%;
        flex-direction: column;
    }

    .btn-faq-primary,
    .btn-faq-secondary,
    .btn-faq-outline {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-faq {
        margin-top: 90px;
        min-height: 55vh;
    }

    .hero-content-faq {
        padding: 60px 15px 50px;
    }

    .hero-icon-faq {
        width: 80px;
        height: 80px;
    }

    .hero-icon-faq svg {
        width: 40px;
        height: 40px;
    }

    .hero-content-faq h1 {
        font-size: 2.5em;
    }

    .hero-content-faq > p {
        font-size: 1.1em;
    }

    .search-box-faq input {
        padding: 16px 20px 16px 55px;
        font-size: 1em;
    }

    .categorias-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .categoria-btn {
        flex-direction: row;
        justify-content: center;
        padding: 20px;
    }

    .categoria-btn svg {
        width: 28px;
        height: 28px;
    }

    .category-header h2 {
        font-size: 1.8em;
    }

    .faq-question {
        padding: 20px;
        font-size: 1em;
    }

    .faq-answer {
        padding: 0 20px;
    }

    .faq-item.active .faq-answer {
        padding: 20px;
    }

    .cta-faq-content {
        padding: 40px 25px;
    }

    .cta-faq-icon {
        width: 80px;
        height: 80px;
    }

    .cta-faq-icon svg {
        width: 40px;
        height: 40px;
    }

    .cta-faq-text h2 {
        font-size: 1.6em;
    }
}

@media (max-width: 480px) {
    .hero-content-faq h1 {
        font-size: 2em;
    }

    .faq-question {
        padding: 18px 15px;
        font-size: 0.95em;
    }

    .faq-icon {
        width: 24px;
        height: 24px;
    }

    .faq-answer {
        padding: 0 15px;
    }

    .faq-item.active .faq-answer {
        padding: 18px 15px;
    }

    .cta-faq-buttons {
        gap: 10px;
    }
}