/* ===================================================================== */
/* == VALORDOLAR.CL v18.0 - CSS FINAL CON INDICADORES EN FOOTER       == */
/* ===================================================================== */

/* --- 1. ESTILOS GLOBALES Y VARIABLES --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --ref-bg: #15202B;
    --ref-bg-soft: #1A2632;
    --ref-bg-input: rgba(255, 255, 255, 0.15);
    --ref-text-strong: #FFFFFF;
    --ref-text-soft: #D9D9D9;
    --ref-text-muted: #A1B2C3;
    --ref-accent-primary: #1DA1F2;
    --ref-accent-dark: #0C7ABF;
    --ref-border-light: rgba(255, 255, 255, 0.1);
    --ref-focus-ring: rgba(29, 161, 242, 0.4);
    --ref-radius: 8px;
    --ref-radius-card: 12px;
    --ref-font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
    --ref-base-font-size: 19px;
    --ref-line-height: 1.65;
}

/* --- 2. RESETEO Y ESTILOS BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid transparent; background: transparent; }
html { font-size: var(--ref-base-font-size); scroll-behavior: smooth; background: var(--ref-bg); }
body { font-family: var(--ref-font); background: var(--ref-bg); color: var(--ref-text-strong); line-height: var(--ref-line-height); -webkit-font-smoothing: antialiased; position: relative; min-height: 100vh; overflow-x: hidden; transition: opacity 0.5s ease-in-out; }
body.loading { opacity: 0; }
body::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle, rgba(29, 161, 242, 0.05) 1px, transparent 1px); background-size: 25px 25px; opacity: 0.2; pointer-events: none; z-index: 0; }
img, svg { max-width: 100%; height: auto; display: block; vertical-align: middle; }
a { color: var(--ref-accent-primary); text-decoration: none; font-weight: 500; transition: color 0.1s ease; }
a:hover { color: var(--ref-accent-dark); }
.screen-reader-text { display: none; }

/* --- 3. LAYOUT PRINCIPAL (HEADER Y MAIN) --- */
header.site-header { background: var(--ref-bg); border-bottom: 1px solid var(--ref-border-light); position: sticky; top: 0; z-index: 100; height: 70px; padding: 0 25px; }
header.site-header .site-header-content { max-width: 1300px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; height: 100%; }
main.content-page { padding: 15px 25px; margin: 10px auto; max-width: 1300px; position: relative; z-index: 1; }
.the-content { max-width: 1000px; margin: 0 auto; }

/* --- 3.1. LIENZO DE INDICADORES EN FOOTER --- */
.indicator-canvas { background-color: var(--ref-bg-soft); border-bottom: 1px solid var(--ref-border-light); padding: 10px 25px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.indicator-canvas::-webkit-scrollbar { display: none; }
.indicator-list-container { max-width: 1300px; margin: 0 auto; }
.indicator-list { display: flex; justify-content: space-between; align-items: center; list-style: none; margin: 0; padding: 0; gap: 30px; white-space: nowrap; }
.indicator-item { display: flex; align-items: center; gap: 8px; }
.indicator-item a { display: flex; align-items: center; gap: 8px; text-decoration: none; border-radius: var(--ref-radius); padding: 5px 0; }
.indicator-name { font-size: 0.85rem; font-weight: 500; color: var(--ref-text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.indicator-value { font-size: 1rem; font-weight: 600; color: var(--ref-text-strong); transition: color 0.2s ease; }
.indicator-item a:hover .indicator-value { color: var(--ref-accent-primary); }

/* --- 3.2. NUEVO FOOTER MULTICOLUMNA --- */
footer.site-footer { border-top: 1px solid var(--ref-border-light); padding: 0 0 30px 0; margin-top: 40px; color: var(--ref-text-muted); font-size: 0.9rem; position: relative; z-index: 1; }
.site-footer-content { max-width: 1100px; margin: 0 auto; padding: 60px 25px 0 25px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 50px; text-align: left; }
.footer-column-title { font-size: 1rem; font-weight: 600; color: var(--ref-text-strong); margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.footer-brand .footer-logo-link { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; text-decoration: none; font-size: 1.5rem; font-weight: 700; color: var(--ref-text-strong); }
.footer-brand .footer-logo-link svg { width: 40px; height: 40px; }
.footer-tagline { font-size: 0.95rem; line-height: 1.6; margin-bottom: 20px; }
.footer-social-icons { display: flex; gap: 15px; }
.footer-social-icons a { color: var(--ref-text-muted); font-size: 1.3rem; transition: color 0.2s ease, transform 0.2s ease; }
.footer-social-icons a:hover { color: var(--ref-accent-primary); transform: translateY(-2px); }
.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a { color: var(--ref-text-muted); font-weight: 500; text-decoration: none; }
.footer-nav a:hover { color: var(--ref-accent-primary); }
.footer-bottom-bar { border-top: 1px solid var(--ref-border-light); padding-top: 30px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; text-align: left; }
.footer-copyright { flex-grow: 1; }
.footer-copyright p { margin: 0; padding: 0; }
.footer-disclaimer { font-size: 0.8em; opacity: 0.7; margin-top: 5px; }
.footer-credits { font-weight: 500; white-space: nowrap; }
.heart-icon { color: #e25555; display: inline-block; animation: heartbeat 1.5s infinite; }
@keyframes heartbeat { 0% { transform: scale(1); } 14% { transform: scale(1.3); } 28% { transform: scale(1); } 42% { transform: scale(1.3); } 70% { transform: scale(1); } }

/* --- 4. NAVEGACIÓN (MENÚ Y BÚSQUEDA) --- */
header.site-header .site-logo { z-index: 1001; display: flex; align-items: center; flex-shrink: 0; }
header.site-header .site-logo a { display: block; height: 50px; width: 50px; }
.desktop-nav-wrapper { display: flex; align-items: center; }
header.site-header nav#menu > ul#menu-menu { list-style: none; display: flex; height: 100%; align-items: center; }
header.site-header nav#menu > ul#menu-menu > li.menu-item { display: flex; align-items: center; height: 100%; position: relative; }
header.site-header nav#menu > ul#menu-menu > li.menu-item > a { color: var(--ref-text-soft); font-weight: 500; padding: 0 15px; height: 100%; display: flex; align-items: center; border-bottom: 2px solid transparent; transition: color 0.1s ease, border-color 0.1s ease; font-size: 1rem; white-space: nowrap; }
header.site-header nav#menu > ul#menu-menu > li.menu-item > a:hover { color: var(--ref-text-strong); }
header.site-header nav#menu > ul#menu-menu > li.current-menu-item > a, header.site-header nav#menu > ul#menu-menu > li.menu-item:hover > a { border-bottom-color: var(--ref-accent-primary); color: var(--ref-text-strong); }
header.site-header nav#menu ul li ul.sub-menu { background-color: var(--ref-bg-soft); border: 1px solid var(--ref-border-light); box-shadow: 0 5px 15px rgba(0,0,0,0.3); border-radius: 0 0 var(--ref-radius) var(--ref-radius); margin-top: 0px; padding: 5px 0; min-width: 240px; list-style: none; z-index: 101; position: absolute; top: 100%; left: 0; display: none; opacity: 0; visibility: hidden; transition: opacity 0.15s ease, visibility 0.15s ease; max-height: calc(100vh - 90px); overflow-y: auto; overflow-x: hidden; }
header.site-header nav#menu ul li.menu-item-has-children:hover > ul.sub-menu { display: block; opacity: 1; visibility: visible; }
header.site-header nav#menu ul li ul.sub-menu li.menu-item { padding: 0; margin: 0; display: block; width: 100%; }
header.site-header nav#menu ul li ul.sub-menu li.menu-item a { color: var(--ref-text-soft); padding: 10px 15px; font-size: 0.9rem; font-weight: 400; display: block; white-space: normal; line-height: 1.4; transition: background-color 0.1s ease, color 0.1s ease; }
header.site-header nav#menu ul li ul.sub-menu li.menu-item a:hover { background-color: var(--ref-accent-primary); color: var(--ref-text-strong); }
.header-search-container { margin-left: 20px; }
.header-search-form { display: flex; align-items: center; background-color: var(--ref-bg-soft); border-radius: 20px; border: 1px solid var(--ref-border-light); transition: border-color 0.2s ease; }
.header-search-form:hover { border-color: var(--ref-accent-primary); }
.header-search-field { background: none; border: none; outline: none; padding: 8px 0 8px 15px; color: var(--ref-text-strong); font-family: var(--ref-font); font-size: 0.9rem; width: 120px; transition: width 0.3s ease; }
.header-search-field:focus { width: 180px; }
.header-search-submit { background: none; border: none; cursor: pointer; padding: 8px 15px 8px 5px; color: var(--ref-text-muted); font-size: 1rem; }
.header-search-submit i { transition: color 0.2s ease; }
.header-search-form:hover .header-search-submit i { color: var(--ref-text-strong); }

/* --- 5. ESTILOS DEL CONVERTIDOR (REDISEÑO A WIDGET) --- */
.scalable-text-container { width: 100%; overflow: hidden; display: flex; justify-content: center; }
.the-content #dolarTitle { font-size: clamp(2.1rem, 7.5vw, 3.5rem); color: var(--ref-accent-primary); font-weight: 800; text-align: center; margin-bottom: 5px; display: block; line-height: 1.2; letter-spacing: -1px; text-shadow: 0 0 8px rgba(29, 161, 242, 0.2); white-space: nowrap; }
.the-content #displayedDate { font-size: 0.9rem; color: var(--ref-text-muted); display: block; text-align: center; margin-top: 10px; margin-bottom: 25px; font-weight: 400; }
.the-content #valorDolarTitle { font-size: clamp(1.5rem, 6vw, 2.2rem); color: var(--ref-text-soft); font-weight: 500; line-height: 1.3; margin: 0 auto 20px auto; padding: 8px 0; text-align: center; border-top: 1px solid var(--ref-border-light); border-bottom: 1px solid var(--ref-border-light); max-width: 400px; display: flex; justify-content: center; align-items: center; white-space: nowrap; }
.the-content #valorDolarTitle span { display: inline-block; }
.the-content #valorDolarTitle strong { font-weight: 700; color: var(--ref-text-strong); margin-left: 0.3em; font-size: 1.1em; }
.converter-box { background-color: var(--ref-bg-soft); border: 1px solid var(--ref-border-light); border-radius: var(--ref-radius-card); padding: 25px; margin-top: 30px; max-width: 750px; margin-left: auto; margin-right: auto; }
.converter-box-title { text-align: center; font-size: 1.1rem; font-weight: 600; color: var(--ref-text-strong); margin: 0 0 25px 0; }
.the-content .conversion-container { display: flex; justify-content: center; align-items: flex-end; gap: 15px; margin-bottom: 15px; }
.the-content .field-container { flex: 1; min-width: 0; position: relative; }
.the-content .field-label { color: var(--ref-text-strong); font-size: 0.9rem; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 8px 0; display: flex; align-items: center; justify-content: center; gap: 8px; }
.the-content .field-input { width: 100%; padding: 12px 15px; border: 2px solid var(--ref-border-light); border-radius: var(--ref-radius); font-size: 2.2rem; font-weight: 500; outline: none; color: var(--ref-text-strong); background-color: var(--ref-bg-input); height: 60px; line-height: 1.4; text-align: left; transition: all 0.15s ease; }
.the-content .field-input:hover { background-color: rgba(255, 255, 255, 0.2); border-color: var(--ref-accent-primary); }
.the-content .field-input:focus { background-color: var(--ref-bg-input); border-color: var(--ref-accent-primary); box-shadow: 0 0 0 4px var(--ref-focus-ring); }
.the-content .field-input[readonly] { background-color: rgba(255, 255, 255, 0.1); color: var(--ref-text-muted); cursor: default; opacity: 0.9; }
.the-content #conversionText { font-size: 1rem; color: var(--ref-text-muted); text-align: center; margin-top: 15px; min-height: 1.5em; }
.the-content .middle-button { cursor: pointer; color: var(--ref-text-muted); border-radius: 50%; flex-shrink: 0; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px; background-color: rgba(255, 255, 255, 0.05); transition: all 0.25s ease-in-out; }
.the-content .middle-button:hover { color: var(--ref-accent-primary); background-color: rgba(29, 161, 242, 0.15); box-shadow: 0 0 10px rgba(29, 161, 242, 0.3); transform: rotate(180deg); }
.the-content .middle-button:active { transform: rotate(180deg) scale(0.9); transition-duration: 0.1s; }
.quick-conversion-table { margin: 40px 0; }
.quick-conversion-table table { width: 100%; border-collapse: collapse; background-color: var(--ref-bg-soft); border-radius: var(--ref-radius-card); overflow: hidden; border: 1px solid var(--ref-border-light); }
.quick-conversion-table th, .quick-conversion-table td { padding: 15px; text-align: center; border-bottom: 1px solid var(--ref-border-light); }
.quick-conversion-table thead th { background-color: rgba(29, 161, 242, 0.1); color: var(--ref-accent-primary); font-weight: 600; font-size: 1.1rem; }
.quick-conversion-table tbody tr:last-child td { border-bottom: none; }
.quick-conversion-table tbody td:first-child { font-weight: 500; color: var(--ref-text-strong); }

/* --- 6. ESTILOS DE BLOG Y CONTENIDO --- */
.news-section .news-title { font-size: clamp(1.8rem, 5vw, 2.5rem); color: var(--ref-text-strong); margin-bottom: 25px; border-bottom: 1px solid var(--ref-border-light); padding-bottom: 15px; }
.news-layout-container, .single-article-layout { display: grid; grid-template-columns: 1fr; gap: 40px; }
.breadcrumbs { margin-bottom: 25px; font-size: 0.9em; color: var(--ref-text-muted); }
.breadcrumbs a { color: var(--ref-text-soft); } .breadcrumbs a:hover { color: var(--ref-accent-primary); }
.featured-post { background: var(--ref-bg-soft); border-radius: var(--ref-radius-card); overflow: hidden; margin-bottom: 40px; }
.featured-content { padding: 25px; }
.featured-title { margin: 0 0 15px 0; }
.featured-title a { color: var(--ref-text-strong); font-size: 1.8rem; line-height: 1.3; text-decoration: none; }
.featured-excerpt { color: var(--ref-text-soft); }
.articles-list { display: grid; grid-template-columns: 1fr; gap: 30px; }
.article-item { background: var(--ref-bg-soft); border-radius: var(--ref-radius-card); overflow: hidden; display: flex; flex-direction: column; }
.article-content { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.article-title { margin: 0; }
.article-title a { color: var(--ref-text-strong); font-size: 1.2rem; line-height: 1.4; text-decoration: none; }
.article-read-more { color: var(--ref-accent-primary); font-weight: bold; margin-top: auto; padding-top: 10px; text-decoration: none; }
.category-description { max-width: 800px; margin: -10px auto 30px auto; text-align: center; color: var(--ref-text-soft); font-size: 1.1rem; }
.articles-list-category { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); max-width: none; }
.single-article-title { font-size: clamp(2rem, 6vw, 3rem); color: var(--ref-text-strong); line-height: 1.3; margin-bottom: 15px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 15px; color: var(--ref-text-muted); margin-bottom: 25px; font-size: 0.9em; }
.article-meta span::before { margin-right: 8px; }
.article-meta .author::before { content: '✍️'; } .article-meta .date::before { content: '📅'; } .article-meta .reading-time::before { content: '⏱️'; }
.social-share { display: flex; align-items: center; gap: 10px; margin-bottom: 25px; padding-bottom: 25px; border-bottom: 1px solid var(--ref-border-light); }
.share-btn { color: white; padding: 8px 15px; border-radius: var(--ref-radius); font-size: 0.9em; font-weight: bold; text-decoration: none; }
.share-btn.facebook { background-color: #1877F2; } .share-btn.twitter { background-color: #1DA1F2; } .share-btn.whatsapp { background-color: #25D366; } .share-btn.linkedin { background-color: #0A66C2; }
.single-article-content { line-height: 1.8; font-size: 1.1rem; }
.single-article-content p, .single-article-content ul, .single-article-content h2, .single-article-content h3 { margin-bottom: 1.5em; }
.single-article-content a { color: var(--ref-accent-primary); } .single-article-content a:hover { text-decoration: underline; }
.seo-content-container { max-width: 1000px; margin: 40px auto 0 auto; padding: 0 15px; color: var(--ref-text-soft); }
.seo-content-container .lead { font-size: 1.2rem; color: var(--ref-text-strong); font-weight: 400; line-height: 1.7; margin-bottom: 30px; text-align: center; border-bottom: 1px solid var(--ref-border-light); padding-bottom: 30px; }
.seo-content-container .content-title { font-size: clamp(1.6rem, 5vw, 2.2rem); color: var(--ref-accent-primary); font-weight: 700; margin-top: 40px; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid var(--ref-border-light); letter-spacing: -0.5px; }
.seo-content-container p { margin-bottom: 1.5em; line-height: 1.8; }
.seo-content-container ul { list-style: none; padding-left: 20px; margin-bottom: 1.5em; }
.seo-content-container ul li { position: relative; padding-left: 25px; margin-bottom: 12px; }
.seo-content-container ul li::before { content: '→'; position: absolute; left: 0; top: 0; color: var(--ref-accent-primary); font-weight: bold; }
.info-box { margin: 30px 0; padding: 20px; border-left: 4px solid; border-radius: var(--ref-radius); background-color: var(--ref-bg-soft); }
.info-box h4 { margin-top: 0; margin-bottom: 10px; font-weight: 600; } .info-box p { margin-bottom: 0; }
.info-box.success { border-color: #28a745; } .info-box.success h4 { color: #28a745; }
.info-box.warning { border-color: #ffc107; } .info-box.warning h4 { color: #ffc107; }
.content-grid { display: grid; gap: 25px; margin: 30px 0; } .content-grid.two-columns { grid-template-columns: 1fr 1fr; }
.content-grid .grid-item { background: var(--ref-bg-soft); padding: 20px; border-radius: var(--ref-radius-card); }
.content-grid .grid-item h4 { margin-top: 0; margin-bottom: 10px; color: var(--ref-text-strong); }
.related-posts-container { margin-top: 40px; }
.related-posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-top: 20px; }
.related-post-item { display: flex; flex-direction: column; background-color: var(--ref-bg-soft); border-radius: var(--ref-radius-card); overflow: hidden; text-decoration: none; transition: all 0.2s ease-in-out; border: 1px solid var(--ref-border-light); }
.related-post-item:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3); }
.related-post-content { padding: 15px; flex-grow: 1; }
.related-post-title { font-size: 1.1rem; color: var(--ref-text-strong); line-height: 1.4; margin: 0; font-weight: 600; }
.sidebar-widget { margin-top: 40px; }
.sidebar-categories-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.sidebar-categories-list li a { display: flex; justify-content: space-between; align-items: center; padding: 12px 15px; background-color: var(--ref-bg-soft); border-radius: var(--ref-radius); color: var(--ref-text-soft); font-weight: 500; transition: all 0.2s ease; text-decoration: none;}
.sidebar-categories-list li a:hover { background-color: var(--ref-accent-primary); color: var(--ref-text-strong); }
.sidebar-categories-list li a span { font-size: 0.85em; color: var(--ref-text-muted); background-color: var(--ref-bg-input); padding: 2px 8px; border-radius: 5px; transition: all 0.2s ease; }
.sidebar-categories-list li a:hover span { background-color: rgba(255, 255, 255, 0.2); color: var(--ref-text-strong); }
.faq-container { margin: 40px 0; }
.faq-title { font-size: 1.5rem; color: var(--ref-text-strong); margin-bottom: 20px; border-bottom: 1px solid var(--ref-border-light); padding-bottom: 10px; }
.faq-item { background-color: var(--ref-bg-soft); border: 1px solid var(--ref-border-light); border-radius: var(--ref-radius); margin-bottom: 10px; transition: background-color 0.2s ease; }
.faq-item:hover { background-color: rgba(255, 255, 255, 0.05); }
.faq-question { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; font-weight: 600; color: var(--ref-text-strong); cursor: pointer; list-style: none; font-size: 1.1rem; }
.faq-question::-webkit-details-marker { display: none; }
.faq-icon { color: var(--ref-accent-primary); transition: transform 0.2s ease; flex-shrink: 0; }
.faq-item[open] > .faq-question .faq-icon { transform: rotate(180deg); }
.faq-answer { padding: 0px 20px 20px 20px; color: var(--ref-text-soft); line-height: 1.8; }
.faq-answer p { margin: 0; padding-top: 15px; border-top: 1px solid var(--ref-border-light); }
.recommended-links-box { margin: 40px 0; padding: 25px; border-radius: var(--ref-radius-card); background: var(--ref-bg-soft); border: 1px solid var(--ref-border-light); }
.recommended-links-title { display: flex; align-items: center; gap: 10px; margin: 0 0 20px 0; font-size: 1.5rem; color: var(--ref-text-strong); border-bottom: 1px solid var(--ref-border-light); padding-bottom: 15px; }
.recommended-links-title svg { color: var(--ref-accent-primary); }
.recommended-links-list { list-style: none; padding: 0; margin: 0; }
.recommended-link-item a { color: var(--ref-accent-primary); font-weight: 600; font-size: 1.1rem; }
.recommended-link-item a:hover { text-decoration: underline; }
.article-footer { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--ref-border-light); }
.closing-statement-box { background-color: rgba(29, 161, 242, 0.05); border-left: 4px solid var(--ref-accent-primary); padding: 20px 25px; margin-bottom: 30px; border-radius: 0 var(--ref-radius) var(--ref-radius) 0; }
.closing-statement-box p { color: var(--ref-text-soft); font-size: 1.1rem; line-height: 1.7; margin: 0; }
.closing-statement-box p a { color: var(--ref-accent-primary); font-weight: 700; text-decoration: none; white-space: nowrap; }
.closing-statement-box p a:hover { text-decoration: underline; }
.hashtags-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hashtag-item { display: inline-block; background-color: var(--ref-bg-input); color: var(--ref-text-soft); padding: 6px 15px; border-radius: 20px; font-size: 0.9em; font-weight: 500; transition: all 0.2s ease-in-out; text-decoration: none; }
.hashtag-item:hover { background-color: var(--ref-accent-primary); color: var(--ref-text-strong); transform: translateY(-2px); }

/* --- 6.1. ESTILOS DEL DATA BOX DE NOTICIAS --- */
.daily-data-box { background-color: var(--ref-bg-soft); border: 1px solid var(--ref-border-light); border-radius: var(--ref-radius-card); padding: 15px 20px; margin: 0 0 30px 0; }
.data-box-title { font-size: 1.1rem; font-weight: 600; color: var(--ref-text-strong); margin: 0 0 15px 0; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--ref-border-light); padding-bottom: 10px; }
.data-list { display: flex; justify-content: space-around; gap: 15px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.data-list li { flex: 1; min-width: 140px; }
.data-item-link { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--ref-radius); transition: background-color 0.2s ease; text-decoration: none; }
a.data-item-link:hover { background-color: rgba(255, 255, 255, 0.05); }
.data-icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.data-icon.dollar { background-color: rgba(40, 167, 69, 0.2); color: #28a745; }
.data-icon.euro { background-color: rgba(0, 123, 255, 0.2); color: #007bff; }
.data-icon.uf { background-color: rgba(253, 126, 20, 0.2); color: #fd7e14; }
.data-text { display: flex; flex-direction: column; }
.indicator-name { color: var(--ref-text-muted); font-size: 0.85rem; font-weight: 500; }
.indicator-value { color: var(--ref-text-strong); font-size: 1.2rem; font-weight: 600; line-height: 1.2; }
.data-box-date { text-align: right; font-size: 0.8rem; color: var(--ref-text-muted); margin: 10px 0 0 0; opacity: 0.7; }

/* --- 6.2. WIDGET DE NOTICIAS (TICKER) --- */
.news-ticker-container { display: flex; align-items: center; background-color: var(--ref-bg-soft); border: 1px solid var(--ref-border-light); border-radius: var(--ref-radius); padding: 8px; margin-bottom: 25px; overflow: hidden; gap: 15px; }
.ticker-title { flex-shrink: 0; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--ref-text-strong); background-color: rgba(29, 161, 242, 0.1); padding: 8px 12px; border-radius: 5px; display: flex; align-items: center; gap: 8px; }
.ticker-wrap { flex-grow: 1; overflow: hidden; position: relative; }
.ticker-list { display: flex; list-style: none; padding: 0; margin: 0; white-space: nowrap; animation: scroll-left 30s linear infinite; }
.ticker-wrap:hover .ticker-list { animation-play-state: paused; }
.ticker-item { padding: 0 25px; }
.ticker-item a { color: var(--ref-text-soft); font-size: 0.95rem; font-weight: 500; text-decoration: none; transition: color 0.2s ease; }
.ticker-item a:hover { color: var(--ref-accent-primary); }
@keyframes scroll-left { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- 6.3. OPTIMIZACIÓN DE IMÁGENES --- */
.featured-post img, .article-image, .single-article-image, .sidebar-post img, .related-post-image { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background-color: var(--ref-bg-soft); transition: opacity 0.3s ease-in-out; }
.single-article-image { border-radius: var(--ref-radius-card); margin-bottom: 25px; }

/* --- 7. UTILIDADES --- */
.ad-placeholder { background-color: rgba(255, 255, 255, 0.03); border: 1px dashed var(--ref-border-light); border-radius: var(--ref-radius); display: flex; align-items: center; justify-content: center; text-align: center; transition: background-color 0.3s ease; }
.ad-placeholder:hover { background-color: rgba(255, 255, 255, 0.05); }
.ad-placeholder span { color: var(--ref-text-muted); font-size: 0.9em; padding: 20px; }
.ad-horizontal { min-height: 90px; width: 100%; margin: 40px 0; }
.ad-in-content { min-height: 250px; width: 100%; margin: 30px 0; }
.sidebar-area .ad-vertical { min-height: 600px; width: 100%; margin-bottom: 20px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 40px; font-size: 1rem; flex-wrap: wrap; }
.pagination-link, .pagination-ellipsis { color: var(--ref-text-soft); padding: 10px 15px; border: 1px solid var(--ref-border-light); border-radius: var(--ref-radius); transition: all 0.2s ease; min-width: 45px; text-align: center; text-decoration: none; }
.pagination-link:hover { background-color: var(--ref-accent-primary); color: var(--ref-text-strong); border-color: var(--ref-accent-primary); }
.pagination-link.active { background-color: var(--ref-accent-primary); color: var(--ref-text-strong); border-color: var(--ref-accent-primary); font-weight: bold; pointer-events: none; }
.pagination-link.disabled { color: var(--ref-text-muted); opacity: 0.5; cursor: not-allowed; }
.pagination-link.disabled:hover { background-color: transparent; color: var(--ref-text-muted); border-color: var(--ref-border-light); }
.pagination-ellipsis { border: none; padding: 10px 5px; }

/* --- 7.1. BANNER DE CONSENTIMIENTO DE COOKIES --- */
.cookie-consent-banner { position: fixed; bottom: 0; left: 0; right: 0; background-color: var(--ref-bg-soft); border-top: 1px solid var(--ref-border-light); padding: 15px 25px; z-index: 1001; display: flex; justify-content: space-between; align-items: center; gap: 20px; transform: translateY(100%); opacity: 0; visibility: hidden; transition: transform 0.5s ease, opacity 0.5s ease, visibility 0.5s; }
.cookie-consent-banner.show { transform: translateY(0); opacity: 1; visibility: visible; }
.cookie-text { margin: 0; font-size: 0.9rem; color: var(--ref-text-soft); line-height: 1.6; }
.cookie-text a { color: var(--ref-accent-primary); font-weight: 600; text-decoration: underline; }
.cookie-button { background-color: var(--ref-accent-primary); color: var(--ref-text-strong); padding: 10px 20px; border-radius: var(--ref-radius); font-weight: 600; font-size: 0.9rem; cursor: pointer; white-space: nowrap; transition: background-color 0.2s ease; }
.cookie-button:hover { background-color: var(--ref-accent-dark); }

/* --- 8. NAVEGACIÓN MÓVIL (HAMBURGUESA) --- */
#nav-toggle { display: none; }
.nav-toggle-label { display: none; width: 30px; height: 30px; cursor: pointer; position: relative; z-index: 1001; }
.hamburger, .hamburger::before, .hamburger::after { content: ''; display: block; background-color: var(--ref-text-strong); height: 3px; width: 100%; border-radius: 3px; position: absolute; left: 0; transition: all 0.25s ease-in-out; }
.hamburger { top: 50%; transform: translateY(-50%); }
.hamburger::before { top: -10px; }
.hamburger::after { bottom: -10px; }
#nav-toggle:checked ~ .nav-toggle-label .hamburger { background-color: transparent; }
#nav-toggle:checked ~ .nav-toggle-label .hamburger::before { transform: rotate(45deg); top: 0; }
#nav-toggle:checked ~ .nav-toggle-label .hamburger::after { transform: rotate(-45deg); bottom: 0; }

/* --- 9. DISEÑO RESPONSIVO (MEDIA QUERIES) --- */
@media (min-width: 992px) {
    .nav-toggle-label { display: none; }
    .mobile-nav-panel { display: none; }
    .news-layout-container, .single-article-layout { grid-template-columns: minmax(0, 2.5fr) minmax(0, 1fr); }
    .articles-list { grid-template-columns: 1fr 1fr; }
    .articles-list-category { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991px) {
    .nav-toggle-label { display: block; }
    .desktop-nav-wrapper { display: none; }
    .mobile-nav-panel { position: fixed; top: 0; left: -100%; width: 80%; max-width: 320px; height: 100vh; background-color: var(--ref-bg-soft); z-index: 1000; transition: left 0.3s ease-in-out; border-right: 1px solid var(--ref-border-light); display: flex; flex-direction: column; padding-top: 70px; }
    body.mobile-nav-active .mobile-nav-panel { left: 0; }
    .mobile-nav-panel .header-search-container { padding: 20px; margin-left: 0; border-bottom: 1px solid var(--ref-border-light); }
    .mobile-nav-panel .header-search-field, .mobile-nav-panel .header-search-field:focus { width: 100%; }
    .mobile-nav-panel nav#menu { flex-grow: 1; overflow-y: auto; }
    .mobile-nav-panel ul#menu-menu { display: block; height: auto; }
    .mobile-nav-panel li.menu-item { display: block; width: 100%; border-bottom: 1px solid var(--ref-border-light); }
    .mobile-nav-panel li.menu-item:last-child { border-bottom: none; }
    .mobile-nav-panel li.menu-item a { display: block; padding: 18px 20px; width: 100%; color: var(--ref-text-soft); border-bottom: none !important; font-weight: 500; text-decoration: none; }
    .mobile-nav-panel li.menu-item > a:hover, .mobile-nav-panel li.current-menu-item > a { color: var(--ref-text-strong); background-color: var(--ref-accent-primary); }
    .mobile-nav-panel .menu-item-has-children > a { position: relative; }
    .mobile-nav-panel .menu-item-has-children > a::after { content: '›'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%) rotate(0deg); font-size: 1.5em; font-weight: bold; color: var(--ref-text-muted); transition: transform 0.3s ease-in-out; }
    .mobile-nav-panel .menu-item-has-children.submenu-open > a::after { transform: translateY(-50%) rotate(90deg); }
    .mobile-nav-panel .menu-item-has-children.submenu-open > a { color: var(--ref-text-strong); background-color: var(--ref-accent-primary); }
    .mobile-nav-panel ul.sub-menu { overflow: hidden; max-height: 0; background-color: var(--ref-bg); transition: max-height 0.4s ease-in-out; display: block; position: static; opacity: 1; visibility: visible; box-shadow: none; border: none; }
    .mobile-nav-panel .menu-item-has-children.submenu-open > .sub-menu { max-height: 1000px; border-top: 1px solid var(--ref-border-light); }
    .mobile-nav-panel ul.sub-menu a { padding-left: 40px; font-size: 0.9em; }
    .sidebar-area { border-top: 1px solid var(--ref-border-light); padding-top: 30px; margin-top: 30px; }
    .related-posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    main.content-page { padding: 15px; }
    .the-content .conversion-container { gap: 10px; }
    .the-content .field-label { font-size: 0.8rem; }
    .the-content .field-input { height: 52px; padding: 10px 12px; font-size: 1.8rem; }
    .the-content .middle-button { width: 38px; height: 38px; margin-bottom: 6px; }
    .seo-content-container .lead { font-size: 1.1rem; }
    .content-grid.two-columns { grid-template-columns: 1fr; }
    .news-layout-container, .single-article-layout { gap: 25px; }
    .news-section .news-title { font-size: 1.6rem; }
    .featured-title a { font-size: 1.5rem; }
    .single-article-title { font-size: clamp(1.6rem, 7vw, 2.2rem); }
    .article-title a { font-size: 1.1rem; }
    .social-share { flex-wrap: wrap; gap: 8px; }
    .share-btn { padding: 6px 12px; font-size: 0.8rem; }
    .single-article-content { font-size: 1rem; }
    .featured-content, .article-content { padding: 15px; }
    .ticker-title { display: none; }
    .cookie-consent-banner { flex-direction: column; text-align: center; gap: 15px; }
    .footer-grid { text-align: center; }
    .footer-brand .footer-logo-link, .footer-social-icons { justify-content: center; }
    .footer-bottom-bar { flex-direction: column; text-align: center; }
}

@media (max-width: 576px) {
    .articles-list { grid-template-columns: 1fr; }
    .related-posts-grid { grid-template-columns: 1fr; }
    .related-post-title { font-size: 1rem; }
}
/* --- 6.4. PÁGINA DE HISTÓRICOS --- */
.historical-controls { display: flex; align-items: center; gap: 15px; margin-bottom: 30px; }
.historical-controls label { font-size: 1rem; font-weight: 500; color: var(--ref-text-muted); }

.chart-container { position: relative; height: 400px; margin-bottom: 40px; }
.historical-modules-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.historical-module { background-color: var(--ref-bg-soft); padding: 25px; border-radius: var(--ref-radius-card); }
.module-title { font-size: 1.2rem; margin-top: 0; margin-bottom: 20px; color: var(--ref-text-strong); }

.historical-converter-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 15px; align-items: center; }
.historical-converter-form button { grid-column: 1 / -1; background-color: var(--ref-accent-primary); color: var(--ref-text-strong); padding: 12px; border-radius: var(--ref-radius); font-weight: 600; cursor: pointer; transition: background-color 0.2s ease; }
.historical-converter-form button:hover { background-color: var(--ref-accent-dark); }
.historical-result-text { font-weight: 500; color: var(--ref-text-soft); min-height: 1.5em; }

.historical-table-wrapper { position: relative; max-height: 350px; overflow-y: auto; }
.historical-table { width: 100%; border-collapse: collapse; }
.historical-table th, .historical-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid var(--ref-border-light); }
.historical-table th { font-weight: 600; color: var(--ref-accent-primary); position: sticky; top: 0; background-color: var(--ref-bg-soft); }
.historical-table tbody tr:hover { background-color: rgba(255, 255, 255, 0.03); }

/* Spinner de carga */
.spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--ref-accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
    display: none; /* Oculto por defecto */
}
@keyframes spin { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }

@media (max-width: 768px) {
    .historical-modules-grid { grid-template-columns: 1fr; }
}