/* ================================================
   CSS para la página PREGUNTAS FRECUENTES - Mobile First
   ================================================ */

/* Variables específicas para Preguntas */
:root {
    --gradient-primary: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    --gradient-accent: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    --faq-bg: #f8fafc;
    --faq-border: #e2e8f0;
    --faq-active: #22c55e;
    --faq-hover: #f1f5f9;
}

/* ================================================
   HERO SECTION
   ================================================ */

.hero-preguntas {
    background: #FFFFFF;
    color: var(--color-dark);
    padding: 3rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #e5e7eb;
}

.hero-preguntas::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(34,197,94,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--color-dark);
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 2rem;
    font-weight: 400;
    color: var(--color-gray);
}

.hero-search {
    max-width: 500px;
    margin: 2rem auto 0;
    position: relative;
}

.hero-search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    padding-right: 3rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-dark);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hero-search-input:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.hero-search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-gray);
    pointer-events: none;
}

/* ================================================
   CONTENIDO PRINCIPAL
   ================================================ */

.main-content {
    padding: 3rem 1rem;
    max-width: 900px;
    margin: 0 auto;
}

/* ================================================
   CATEGORÍAS DE PREGUNTAS
   ================================================ */

.categories-section {
    margin-bottom: 3rem;
}

.categories-title {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--color-dark);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-card {
    background: white;
    border: 2px solid var(--faq-border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.category-card:hover {
    border-color: var(--faq-active);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.15);
}

.category-card.active {
    border-color: var(--faq-active);
    background: rgba(34, 197, 94, 0.05);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.category-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
}

.category-count {
    font-size: 0.9rem;
    color: var(--color-gray);
}

/* ================================================
   FAQ SECTION
   ================================================ */

.faq-section {
    margin-top: 2rem;
}

.faq-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--color-dark);
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--faq-border);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.faq-item.active {
    border-color: var(--faq-active);
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.15);
}

.faq-question {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    font-family: inherit;
}

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

.faq-item.active .faq-question {
    background: rgba(34, 197, 94, 0.05);
    color: var(--faq-active);
}

.faq-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--faq-active);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 1.5rem 1.5rem;
    opacity: 1;
}

.faq-answer p {
    color: var(--color-gray);
    line-height: 1.6;
    margin: 0;
    padding: 1rem;
}

.faq-answer a {
    color: var(--faq-active);
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* ================================================
   MENSAJE DE NO RESULTADOS
   ================================================ */

.no-results {
    text-align: center;
    padding: 3rem 1rem;
    display: none;
}

.no-results.show {
    display: block;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
}

.no-results-subtitle {
    color: var(--color-gray);
    margin-bottom: 2rem;
}

.btn-clear-search {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-clear-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

/* ================================================
   CTA SECTION
   ================================================ */

.cta-section {
    background: var(--gradient-accent);
    color: white;
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 20px;
    margin-top: 4rem;
}

.cta-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    background: white;
    color: var(--champion-color);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
    text-decoration: none;
    color: var(--champion-color);
}

.cta-btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-btn.secondary:hover {
    background: white;
    color: var(--champion-color);
}

/* ================================================
   ESTADÍSTICAS RÁPIDAS
   ================================================ */

.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 2rem;
    background: var(--faq-bg);
    border-radius: 16px;
}

.quick-stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--faq-active);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-gray);
}

/* ================================================
   RESPONSIVE - TABLET (768px+)
   ================================================ */

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .main-content {
        padding: 4rem 2rem;
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .faq-question {
        font-size: 1.2rem;
        padding: 2rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 2rem 2rem;
    }
}

/* ================================================
   RESPONSIVE - DESKTOP (1024px+)
   ================================================ */

@media (min-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .quick-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ================================================
   ANIMACIONES
   ================================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item {
    animation: fadeInUp 0.4s ease forwards;
}

.faq-item:nth-child(2) {
    animation-delay: 0.1s;
}

.faq-item:nth-child(3) {
    animation-delay: 0.2s;
}

.faq-item:nth-child(4) {
    animation-delay: 0.3s;
}

.faq-item:nth-child(5) {
    animation-delay: 0.4s;
}

/* ================================================
   ESTADOS DE BÚSQUEDA
   ================================================ */

.faq-item.hidden {
    display: none;
}

.search-highlight {
    background: yellow;
    padding: 0 2px;
    border-radius: 2px;
}

/* ================================================
   ACCESIBILIDAD
   ================================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    ::before,
    ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states */
.faq-question:focus,
.category-card:focus,
.hero-search-input:focus {
    outline: 2px solid var(--faq-active);
    outline-offset: 2px;
}
/* Botón principal - TEXTO VISIBLE */
.cta-btn {
    background: white;
    color: #8b5cf6 !important;  /* Morado - SIEMPRE VISIBLE */
}

.cta-btn:hover {
    color: #8b5cf6 !important;  /* Morado en hover también */
    background: rgba(255, 255, 255, 0.95);
}

/* Botón secundario - TEXTO BLANCO */
.cta-btn.secondary {
    background: transparent;
    color: white !important;  /* Blanco - VISIBLE sobre fondo morado */
    border: 2px solid white;
}

.cta-btn.secondary:hover {
    background: white;
    color: #8b5cf6 !important;  /* Cambia a morado al hover */
}