/* FarmBrawl — Centro de Ayuda & FAQ — Version Animada */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Nunito:wght@400;600;700;800;900&display=swap');

:root {
    --hc-bg: #0f172a;
    --hc-panel: #1e293b;
    --hc-emerald: #10b981;
    --hc-emerald-dim: rgba(16, 185, 129, 0.15);
    --hc-rose: #f43f5e;
    --hc-cream: #fff8eb;
    --hc-text: #e2e8f0;
    --hc-muted: #94a3b8;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.hc-page {
    margin: 0;
    font-family: 'Nunito', system-ui, sans-serif;
    color: var(--hc-text);
    background: var(--hc-bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100dvh;
}

/* ===== READING PROGRESS BAR ===== */
.hc-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--hc-emerald), #06b6d4, #8b5cf6);
    z-index: 9999;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

/* ===== PARTICLES CANVAS ===== */
#hc-particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ===== TOPBAR ===== */
.hc-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(15, 23, 42, 0.95);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
}

.hc-topbar-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.78rem;
    font-weight: 700;
}

.hc-topbar-links a {
    color: var(--hc-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.hc-topbar-links a:hover,
.hc-topbar-links a.is-active {
    color: var(--hc-emerald);
}

/* ===== HERO FLOATING ELEMENTS ===== */
.hc-hero-float {
    position: absolute;
    font-size: 1.8rem;
    opacity: 0;
    pointer-events: none;
    animation: hc-float-up 3s ease-in-out infinite;
}
.hc-hero-float--1 {
    top: 5%;
    left: 5%;
    animation-delay: 0s;
}
.hc-hero-float--2 {
    top: 15%;
    right: 8%;
    animation-delay: 1s;
    font-size: 2.2rem;
}
.hc-hero-float--3 {
    bottom: 10%;
    left: 10%;
    animation-delay: 2s;
}
@keyframes hc-float-up {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
    50% { transform: translateY(-12px) scale(1.1); opacity: 1; }
}

/* ===== SEARCH RESULTS COUNT ===== */
.hc-search-results-count {
    font-size: 0.75rem;
    color: var(--hc-muted);
    margin-top: 0.5rem;
    min-height: 1.2em;
    text-align: center;
}

/* ===== SCROLL ANIMATIONS ===== */
.hc-anim-slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.hc-anim-slide-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hc-anim-stagger .hc-quick-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.hc-anim-stagger.is-visible .hc-quick-card {
    opacity: 1;
    transform: translateY(0);
}
.hc-anim-stagger.is-visible .hc-quick-card:nth-child(1) { transition-delay: 0.05s; }
.hc-anim-stagger.is-visible .hc-quick-card:nth-child(2) { transition-delay: 0.1s; }
.hc-anim-stagger.is-visible .hc-quick-card:nth-child(3) { transition-delay: 0.15s; }
.hc-anim-stagger.is-visible .hc-quick-card:nth-child(4) { transition-delay: 0.2s; }
.hc-anim-stagger.is-visible .hc-quick-card:nth-child(5) { transition-delay: 0.25s; }
.hc-anim-stagger.is-visible .hc-quick-card:nth-child(6) { transition-delay: 0.3s; }

/* ===== IMAGE GLOW ===== */
.hc-split-banner-img-wrap {
    position: relative;
    display: inline-block;
}
.hc-img-glow {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
    animation: hc-glow-pulse 2s ease-in-out infinite;
}
@keyframes hc-glow-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}

/* ===== GUIDE CARD ENTRY ANIMATION ===== */
.hc-guide-card--anim {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out, border-color 0.3s, box-shadow 0.3s;
}
.hc-guide-card--anim.is-visible {
    opacity: 1;
    transform: translateX(0);
}
.hc-guide-card--anim:hover {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.08);
}

/* ===== STEP PROGRESS DOTS ===== */
.hc-step-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--hc-emerald), #06b6d4);
    border-radius: 0 0 1.1rem 1.1rem;
    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.hc-guide-card--anim.is-visible .hc-step-progress {
    width: 100%;
}

/* ===== GUIDE PROGRESS BAR ===== */
.hc-guide-progress-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 0.75rem 1rem;
    background: var(--hc-panel);
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.12);
}
.hc-guide-progress-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--hc-muted);
    white-space: nowrap;
}
.hc-guide-progress-track {
    flex: 1;
    height: 8px;
    background: rgba(148, 163, 184, 0.15);
    border-radius: 999px;
    overflow: hidden;
}
.hc-guide-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--hc-emerald), #06b6d4);
    border-radius: 999px;
    transition: width 0.5s ease-out;
}
.hc-guide-progress-pct {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--hc-emerald);
    min-width: 2.5rem;
    text-align: right;
}

/* ===== WARNING / DANGER CARDS ===== */
.hc-guide-card--warning {
    border-color: rgba(245, 158, 11, 0.3) !important;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), transparent) !important;
}
.hc-guide-card--warning:hover {
    border-color: rgba(245, 158, 11, 0.5) !important;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.1) !important;
}
.hc-guide-card--danger {
    border-color: rgba(239, 68, 68, 0.3) !important;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05), transparent) !important;
}
.hc-guide-card--danger:hover {
    border-color: rgba(239, 68, 68, 0.5) !important;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.1) !important;
}

.hc-guide-step--warn {
    background: linear-gradient(135deg, #d97706, #f59e0b) !important;
}
.hc-guide-step--danger {
    background: linear-gradient(135deg, #dc2626, #ef4444) !important;
}

/* ===== PULSING TAG ===== */
.hc-tag--pulse {
    animation: hc-tag-pulse 2s ease-in-out infinite;
}
@keyframes hc-tag-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

/* ===== TROUBLE ITEMS WITH ICONS ===== */
.hc-trouble--anim {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    padding: 1.15rem;
    margin-bottom: 0.75rem;
    border-radius: 1rem;
    background: var(--hc-panel);
    border: 1px solid rgba(148, 163, 184, 0.1);
    opacity: 0;
    transform: translateX(-15px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out, border-color 0.3s, background 0.3s;
}
.hc-trouble--anim.is-visible {
    opacity: 1;
    transform: translateX(0);
}
.hc-trouble--anim:hover {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(30, 41, 59, 0.95);
}

.hc-trouble-icon {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--hc-emerald-dim);
    color: var(--hc-emerald);
    font-size: 1rem;
    flex-shrink: 0;
}

.hc-trouble-content h4 {
    margin: 0 0 0.35rem;
    font-family: 'Fredoka', sans-serif;
    font-size: 0.92rem;
    color: #f1f5f9;
}
.hc-trouble-content p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--hc-muted);
}

/* ===== HERO SECTION ===== */
.hc-hero {
    position: relative;
    padding: 3rem 1.5rem 2.5rem;
    overflow: hidden;
}

.hc-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 20% 0%, rgba(16, 185, 129, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 90% 20%, rgba(225, 29, 72, 0.12) 0%, transparent 50%);
    pointer-events: none;
}

.hc-hero-inner {
    position: relative;
    max-width: 52rem;
    margin: 0 auto;
    text-align: center;
}

.hc-title {
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    margin: 0 0 0.75rem;
    color: #f8fafc;
    line-height: 1.1;
}

.hc-lead {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--hc-muted);
    margin: 0 auto 1.5rem;
    max-width: 36rem;
}

.hc-search-wrap {
    max-width: 32rem;
    margin: 0 auto;
    position: relative;
}

.hc-search {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 2.75rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(30, 41, 59, 0.85);
    color: #f8fafc;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.hc-search:focus {
    border-color: rgba(16, 185, 129, 0.55);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.hc-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--hc-muted);
    pointer-events: none;
}

.hc-body {
    max-width: 52rem;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

.hc-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.hc-quick-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 1rem 0.75rem;
    border-radius: 1rem;
    background: var(--hc-panel);
    border: 1px solid rgba(148, 163, 184, 0.15);
    text-decoration: none;
    color: var(--hc-text);
    font-size: 0.78rem;
    font-weight: 800;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s, background 0.2s;
}

.hc-quick-card:hover {
    border-color: rgba(16, 185, 129, 0.45);
    background: rgba(30, 41, 59, 0.95);
    transform: translateY(-2px);
}

.hc-quick-card__icon {
    font-size: 1.5rem;
    line-height: 1;
}

.hc-section-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #f8fafc;
    margin: 2rem 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hc-section-title i {
    color: var(--hc-emerald);
    font-size: 1rem;
}

.hc-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.hc-faq-item {
    border-radius: 1rem;
    background: var(--hc-panel);
    border: 1px solid rgba(148, 163, 184, 0.12);
    overflow: hidden;
    transition: border-color 0.2s;
}

.hc-faq-item.is-open {
    border-color: rgba(16, 185, 129, 0.35);
}

.hc-faq-item.is-hidden {
    display: none;
}

.hc-faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    background: none;
    border: none;
    color: #f1f5f9;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
    line-height: 1.4;
}

.hc-faq-q i {
    flex-shrink: 0;
    color: var(--hc-emerald);
    transition: transform 0.25s ease;
}

.hc-faq-item.is-open .hc-faq-q i {
    transform: rotate(180deg);
}

.hc-faq-a {
    display: none;
    padding: 0 1.15rem 1.1rem;
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--hc-muted);
}

.hc-faq-a p { margin: 0 0 0.65rem; }
.hc-faq-a p:last-child { margin-bottom: 0; }
.hc-faq-a ul, .hc-faq-a ol {
    margin: 0.5rem 0;
    padding-left: 1.25rem;
}
.hc-faq-a li { margin-bottom: 0.35rem; }
.hc-faq-a strong { color: #cbd5e1; }

.hc-faq-item.is-open .hc-faq-a {
    display: block;
}

.hc-guide-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 1.1rem;
    background: var(--hc-panel);
    border: 1px solid rgba(148, 163, 184, 0.12);
    margin-bottom: 0.85rem;
}

.hc-guide-step {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    font-family: 'Fredoka', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hc-guide-card h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 800;
    color: #f8fafc;
}

.hc-guide-card p {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.6;
    color: var(--hc-muted);
}

.hc-trouble {
    border-left: 3px solid var(--hc-rose);
    padding: 1rem 1.15rem;
    background: rgba(244, 63, 94, 0.08);
    border-radius: 0 1rem 1rem 0;
    margin-bottom: 0.85rem;
}

.hc-trouble h4 {
    margin: 0 0 0.4rem;
    font-size: 0.92rem;
    color: #fecdd3;
}

.hc-trouble p {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.6;
    color: var(--hc-muted);
}

.hc-cta-band {
    margin-top: 2.5rem;
    padding: 1.75rem;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.2) 0%, rgba(30, 41, 59, 0.9) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    text-align: center;
}

.hc-cta-band h3 {
    font-family: 'Fredoka', sans-serif;
    margin: 0 0 0.5rem;
    color: #f8fafc;
}

.hc-cta-band p {
    margin: 0 0 1.25rem;
    font-size: 0.88rem;
    color: var(--hc-muted);
}

.hc-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.7rem 1.25rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 800;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hc-btn--primary {
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}

.hc-btn--primary:hover {
    transform: translateY(-2px);
}

.hc-btn--ghost {
    background: transparent;
    color: var(--hc-emerald);
    border: 1px solid rgba(16, 185, 129, 0.45);
    margin-left: 0.5rem;
}

.hc-footer {
    padding: 2rem 1.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    text-align: center;
    font-size: 0.78rem;
    color: #64748b;
}

.hc-footer a {
    color: var(--hc-emerald);
    text-decoration: none;
    font-weight: 700;
}

.hc-tag {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    margin-left: 0.35rem;
    vertical-align: middle;
}

.hc-split-banner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
    border-radius: 1.25rem;
    background: var(--hc-panel);
    border: 1px solid rgba(148, 163, 184, 0.12);
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .hc-split-banner {
        grid-template-columns: 140px 1fr;
    }
}

.hc-split-banner img {
    width: 100%;
    max-width: 140px;
    border-radius: 1rem;
    margin: 0 auto;
    display: block;
}

.hc-no-results {
    display: none;
    text-align: center;
    padding: 2rem;
    color: var(--hc-muted);
    font-size: 0.9rem;
}

.hc-no-results.is-visible {
    display: block;
}
