/* HomeCasa Finance v3 — style.css */

:root {
    --hcf-blue:   #2962ff;
    --hcf-dark:   #1a1a2e;
    --hcf-gray:   #f4f5f7;
    --hcf-border: #e2e6ea;
    --hcf-text:   #2d3748;
    --hcf-muted:  #718096;
    --hcf-radius: 10px;
    --hcf-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.hcf-full-page {
    max-width: 1100px;
    margin: 0 auto;
    direction: rtl;
    font-family: 'Cairo', 'Noto Sans Arabic', Tahoma, sans-serif;
    color: var(--hcf-text);
}

.hcf-single-col { width: 100%; }

.hcf-ticker-section {
    margin-bottom: 28px;
    border-radius: var(--hcf-radius);
    overflow: hidden;
    box-shadow: var(--hcf-shadow);
}

.hcf-section {
    margin-bottom: 28px;
    background: #fff;
    border-radius: var(--hcf-radius);
    box-shadow: var(--hcf-shadow);
    overflow: hidden;
    border: 1px solid var(--hcf-border);
}

.hcf-section-header {
    padding: 16px 20px 12px;
    border-bottom: 1px solid var(--hcf-border);
    background: var(--hcf-gray);
}

.hcf-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--hcf-dark);
    margin: 0 0 4px 0;
    border-right: 4px solid var(--hcf-blue);
    padding-right: 10px;
}

.hcf-section-desc {
    font-size: 0.87rem;
    color: var(--hcf-muted);
    margin: 0;
}

.hcf-widget-box { width: 100%; overflow: hidden; }
.hcf-widget-box .tradingview-widget-container,
.hcf-widget-box .tradingview-widget-container__widget { width: 100% !important; height: 100% !important; }

.hcf-editor-content { padding: 20px 24px; line-height: 1.85; }

/* SEO Block */
.hcf-seo-block {
    background: #fff;
    border: 1px solid var(--hcf-border);
    border-radius: var(--hcf-radius);
    padding: 28px;
    box-shadow: var(--hcf-shadow);
}

.hcf-seo-intro {
    background: #f0f4ff;
    border-right: 4px solid var(--hcf-blue);
    padding: 18px 22px;
    border-radius: 6px;
    margin-bottom: 24px;
}

.hcf-seo-h2 { font-size: 1.15rem; color: var(--hcf-dark); margin: 0 0 8px 0; }
.hcf-seo-intro p { margin: 0; color: #555; line-height: 1.85; font-size: 0.94rem; }

.hcf-faq { margin-bottom: 22px; }
.hcf-faq h3 { font-size: 1rem; color: var(--hcf-dark); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--hcf-border); }
.hcf-faq-item { border: 1px solid var(--hcf-border); border-radius: 8px; margin-bottom: 10px; overflow: hidden; }
.hcf-faq-q { background: var(--hcf-dark); color: #fff; padding: 11px 16px; font-weight: 700; font-size: 0.91rem; }
.hcf-faq-a { padding: 13px 16px; color: #444; line-height: 1.8; font-size: 0.9rem; }

.hcf-kw-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.hcf-kw-tag { background: #eef2ff; color: var(--hcf-blue); border: 1px solid #c7d2fe; padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }

.tradingview-widget-container { width: 100% !important; }

/* ── Carrusel de precios ─────────────────────────────────── */
.hcf-carousel-wrap {
    display: flex;
    align-items: stretch;
    background: #1a1a2e;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    direction: rtl;
    min-height: 60px;
}

.hcf-carousel-label {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #2962ff;
    color: #fff;
    padding: 0 18px;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    font-family: 'Cairo', Tahoma, sans-serif;
    flex-shrink: 0;
}

.hcf-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    animation: hcf-pulse 1.5s infinite;
    flex-shrink: 0;
}

@keyframes hcf-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(1.3); }
}

.hcf-carousel-widget {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.hcf-carousel-widget .tradingview-widget-container {
    width: 100% !important;
    height: 60px !important;
}

.hcf-carousel-widget .tradingview-widget-container__widget {
    width: 100% !important;
    height: 60px !important;
}
