/* HelpPets FAQs CSS - Diseño Interactivo y Atractivo */

:root {
    --beige-bg: #FAF8F4;
    --verde-principal: #2E7D32;
    --verde-hover: #1B5E20;
    --verde-claro: #4CAF50;
    --texto-gris: #2E2E2E;
    --gris-claro: #E0E0E0;
    --gris-medio: #666;
    --blanco: #FFFFFF;
    --sombra: 0 2px 8px rgba(0, 0, 0, 0.1);
    --sombra-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.3);
    --transition: all 0.3s ease;
    
    /* Colores para categorías */
    --color-general: #2196F3;
    --color-reportar: #FF9800;
    --color-ayudar: #4CAF50;
    --color-recompensas: #9C27B0;
    --color-cuenta: #F44336;
    --color-funciona: #00BCD4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--beige-bg);
    color: var(--texto-gris);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Skip to main content */
.skip-to-main {
    position: absolute;
    left: -9999px;
    z-index: 999;
}

.skip-to-main:focus {
    left: 50%;
    transform: translateX(-50%);
    top: 10px;
    background: var(--verde-principal);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
}

/* Hero Section */
.hero-faq {
    background: linear-gradient(135deg, var(--verde-principal) 0%, var(--verde-claro) 100%);
    color: white;
    padding: 100px 20px 80px;
    text-align: center;
    margin-top: 0;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.hero-faq::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 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom center;
    background-size: cover;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-faq h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    animation: fadeInDown 0.6s ease;
}

.hero-faq h1 i {
    margin-right: 15px;
    animation: bounce 2s infinite;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
    animation: fadeInUp 0.6s ease 0.2s both;
}

/* Buscador de FAQs */
.search-box {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gris-medio);
    font-size: 20px;
}

.search-box input {
    width: 100%;
    padding: 18px 20px 18px 55px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Navegación rápida */
.quick-nav {
    margin: 60px 0;
}

.quick-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.quick-nav-btn {
    background: white;
    border: 2px solid var(--gris-claro);
    border-radius: var(--border-radius);
    padding: 20px 15px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: var(--sombra);
}

.quick-nav-btn i {
    font-size: 28px;
    color: var(--verde-principal);
    transition: var(--transition);
}

.quick-nav-btn span {
    font-weight: 500;
    color: var(--texto-gris);
    font-size: 14px;
}

.quick-nav-btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--sombra-hover);
    border-color: var(--verde-principal);
}

.quick-nav-btn:hover i {
    transform: scale(1.2);
}

.quick-nav-btn.active {
    background: linear-gradient(135deg, var(--verde-principal), var(--verde-claro));
    border-color: var(--verde-principal);
    color: white;
}

.quick-nav-btn.active i,
.quick-nav-btn.active span {
    color: white;
}

/* Sección Cómo Funciona */
.how-it-works {
    margin: 80px 0;
    padding: 60px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--sombra);
}

.how-it-works h2 {
    text-align: center;
    font-size: 36px;
    color: var(--texto-gris);
    margin-bottom: 15px;
}

.how-it-works h2 i {
    color: var(--verde-principal);
    margin-right: 10px;
}

.section-intro {
    text-align: center;
    font-size: 18px;
    color: var(--gris-medio);
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--sombra);
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(46, 125, 50, 0.1), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--sombra-hover);
    border-color: var(--verde-principal);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--verde-principal), var(--verde-claro));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.feature-icon i {
    font-size: 36px;
    color: white;
}

.feature-card h3 {
    font-size: 22px;
    color: var(--texto-gris);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--gris-medio);
    margin-bottom: 20px;
    line-height: 1.8;
}

.feature-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    font-size: 13px;
    color: var(--verde-principal);
    font-weight: 500;
}

.feature-actions i {
    margin-right: 5px;
}

/* Sección de FAQs */
.faqs-section {
    margin: 60px 0;
}

.faqs-section > h2 {
    text-align: center;
    font-size: 36px;
    color: var(--texto-gris);
    margin-bottom: 50px;
}

.faqs-section > h2 i {
    color: var(--verde-principal);
    margin-right: 10px;
}

.faq-category {
    margin-bottom: 50px;
    animation: fadeInUp 0.5s ease;
}

.category-title {
    font-size: 28px;
    color: var(--texto-gris);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--verde-principal);
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-title i {
    color: var(--verde-principal);
}

.faq-item {
    background: white;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    box-shadow: var(--sombra);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--sombra-hover);
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    background: white;
    border: none;
    text-align: left;
    font-size: 18px;
    font-weight: 500;
    color: var(--texto-gris);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.faq-question:hover {
    background: var(--beige-bg);
    color: var(--verde-principal);
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--verde-principal);
    font-size: 20px;
}

.faq-question[aria-expanded="true"] {
    background: var(--verde-principal);
    color: white;
}

.faq-question[aria-expanded="true"] i {
    transform: rotate(180deg);
    color: white;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: #f9f9f9;
}

.faq-answer.active {
    max-height: 1000px;
    padding: 25px;
}

.faq-answer p {
    margin-bottom: 15px;
    color: var(--gris-medio);
    line-height: 1.8;
}

.faq-answer ul,
.faq-answer ol {
    margin: 15px 0 15px 25px;
    color: var(--gris-medio);
}

.faq-answer li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.faq-answer strong {
    color: var(--texto-gris);
}

.faq-answer a {
    color: var(--verde-principal);
    text-decoration: none;
    font-weight: 500;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* Estilos para íconos dentro de respuestas */
.faq-answer i.fas {
    margin-right: 8px;
    color: var(--verde-principal);
}

/* Sección de contacto */
.help-contact {
    margin: 80px 0;
    padding: 50px 20px;
    background: linear-gradient(135deg, var(--verde-principal), var(--verde-claro));
    border-radius: 20px;
    box-shadow: var(--sombra-hover);
}

.help-contact-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 30px;
    align-items: center;
    color: white;
}

.help-icon i {
    font-size: 60px;
    color: white;
}

.help-text h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.help-text p {
    font-size: 16px;
    opacity: 0.95;
}

.help-actions {
    display: flex;
    gap: 15px;
}

.btn-contact {
    padding: 12px 30px;
    background: white;
    color: var(--verde-principal);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-contact.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-contact.btn-secondary:hover {
    background: white;
    color: var(--verde-principal);
}

/* Estadísticas de la comunidad */
.community-stats {
    margin: 80px 0;
    padding: 60px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--sombra);
    text-align: center;
}

.community-stats h2 {
    font-size: 36px;
    color: var(--texto-gris);
    margin-bottom: 50px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-card {
    padding: 30px 20px;
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    border-radius: var(--border-radius);
    box-shadow: var(--sombra);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--sombra-hover);
}

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--verde-principal), var(--verde-claro));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    font-size: 28px;
    color: white;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--verde-principal);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: var(--gris-medio);
}

/* Footer */
.footer {
    background: var(--texto-gris);
    color: white;
    padding: 40px 20px;
    text-align: center;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--verde-claro);
}

/* Animaciones */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Clase para ocultar elementos visualmente pero mantener accesibilidad */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Highlight para búsqueda */
.highlight {
    background-color: yellow;
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 3px;
}

/* Estilos para categorías ocultas */
.faq-category.hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-faq {
        padding: 60px 20px 50px;
        margin-top: 60px;
    }

    .hero-faq h1 {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .quick-nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .help-contact-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .help-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-contact {
        width: 100%;
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .category-title {
        font-size: 24px;
    }

    .faq-question {
        font-size: 16px;
        padding: 15px 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .quick-nav-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 36px;
    }
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Modo de alto contraste */
@media (prefers-contrast: high) {
    .faq-question {
        border: 2px solid var(--texto-gris);
    }

    .feature-card,
    .stat-card {
        border: 2px solid var(--gris-claro);
    }
}

/* Focus visible para navegación por teclado */
*:focus-visible {
    outline: 3px solid var(--verde-principal);
    outline-offset: 2px;
}
