/* ================================================================
   OFERTAPP - Ayuda por Categoría
   static/css/chatbot/ayuda_categoria.css
   ================================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    color: #2d3748;
    line-height: 1.6;
    overflow-x: hidden;
    background: #f7fafc;
}

/* ================================================================
   BOTÓN VOLVER
   ================================================================ */
.back-btn-floating {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.back-btn-floating:hover {
    transform: translateX(-5px);
    box-shadow: 0 6px 25px rgba(255, 107, 107, 0.25);
}

/* ================================================================
   HERO
   ================================================================ */
.ayuda-hero {
    min-height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--hero-color) 0%, color-mix(in srgb, var(--hero-color) 70%, #000) 100%);
    position: relative;
    overflow: hidden;
    padding: 4rem 2rem 3rem;
}

.hero-particles {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; overflow: hidden;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float-particle 12s infinite;
}

.particle:nth-child(1) { width: 200px; height: 200px; top: -50px; right: -50px; }
.particle:nth-child(2) { width: 150px; height: 150px; bottom: -30px; left: -30px; animation-delay: 2s; }
.particle:nth-child(3) { width: 100px; height: 100px; top: 40%; left: 60%; animation-delay: 4s; }

@keyframes float-particle {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.1; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 0.15; }
}

.ayuda-hero-content {
    text-align: center;
    z-index: 1;
    max-width: 600px;
}

.hero-icon-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
}

.hero-icon-ring {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100px; height: 100px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: ring-pulse 2s ease-out infinite;
}

@keyframes ring-pulse {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.4); opacity: 0; }
}

.hero-icon-box {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 70px; height: 70px;
    background: white;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.hero-icon-box i {
    font-size: 1.8rem;
    color: var(--hero-color);
}

.ayuda-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
}

.hero-tagline {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ================================================================
   MAIN CONTENT
   ================================================================ */
.ayuda-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 5%;
}

/* Breadcrumb */
.ayuda-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.ayuda-breadcrumb a {
    color: #718096;
    text-decoration: none;
    transition: color 0.2s;
}

.ayuda-breadcrumb a:hover {
    color: #ff6b6b;
}

.ayuda-breadcrumb span {
    color: #2d3748;
    font-weight: 600;
}

.ayuda-breadcrumb i.fa-chevron-right {
    font-size: 0.7rem;
    opacity: 0.5;
}

/* ================================================================
   FAQS
   ================================================================ */
.ayuda-faqs {
    margin-bottom: 3rem;
}

.faqs-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.faqs-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
}

.faqs-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.faq-card.active {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
}

.faq-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.faq-icon i {
    font-size: 0.9rem;
}

.faq-question > span {
    flex: 1;
    font-weight: 600;
    color: #2d3748;
    font-size: 1rem;
}

.faq-arrow {
    color: #a0aec0;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-card.active .faq-arrow {
    transform: rotate(180deg);
    color: #ff6b6b;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-card.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem 4.5rem;
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ================================================================
   CTA
   ================================================================ */
.ayuda-cta {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d3748 100%);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
}

.cta-content {
    max-width: 500px;
    margin: 0 auto;
}

.cta-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.cta-icon i {
    font-size: 1.8rem;
    color: white;
}

.ayuda-cta h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.ayuda-cta p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.cta-btn.primary {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    color: white;
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.3);
}

.cta-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
}

.cta-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ================================================================
   OTRAS CATEGORÍAS
   ================================================================ */
.otras-categorias {
    text-align: center;
}

.otras-categorias h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #718096;
    margin-bottom: 1.5rem;
}

.categorias-mini {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cat-mini {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.cat-mini:hover {
    border-color: #ff6b6b;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.cat-mini i {
    font-size: 1rem;
}

/* ================================================================
   FOOTER
   ================================================================ */
.ayuda-footer {
    padding: 2rem 5%;
    text-align: center;
    border-top: 1px solid #e2e8f0;
    margin-top: 2rem;
}

.ayuda-footer p {
    color: #718096;
    font-size: 0.9rem;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
    .back-btn-floating {
        width: 50px;
        height: 50px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
    
    .back-btn-floating span {
        display: none;
    }
    
    .ayuda-hero {
        min-height: 40vh;
        padding: 5rem 1.5rem 2.5rem;
    }
    
    .ayuda-hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-tagline {
        font-size: 1rem;
    }
    
    .hero-icon-container {
        width: 80px;
        height: 80px;
    }
    
    .hero-icon-ring {
        width: 80px;
        height: 80px;
    }
    
    .hero-icon-box {
        width: 55px;
        height: 55px;
    }
    
    .hero-icon-box i {
        font-size: 1.4rem;
    }
    
    .ayuda-main {
        padding: 1.5rem 4%;
    }
    
    .ayuda-breadcrumb {
        font-size: 0.8rem;
    }
    
    .faq-question {
        padding: 1rem 1.25rem;
    }
    
    .faq-icon {
        width: 35px;
        height: 35px;
    }
    
    .faq-question > span {
        font-size: 0.9rem;
    }
    
    .faq-answer p {
        padding: 0 1.25rem 1.25rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .ayuda-cta {
        padding: 2rem 1.5rem;
    }
    
    .ayuda-cta h3 {
        font-size: 1.3rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .categorias-mini {
        flex-direction: column;
        align-items: center;
    }
    
    .cat-mini {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .ayuda-hero h1 {
        font-size: 1.5rem;
    }
    
    .faqs-header h2 {
        font-size: 1.2rem;
    }
}

/* Safe area iOS */
@supports (padding: env(safe-area-inset-bottom)) {
    .ayuda-footer {
        padding-bottom: calc(2rem + env(safe-area-inset-bottom));
    }
    
    .back-btn-floating {
        top: calc(20px + env(safe-area-inset-top));
    }
}