/* Estilos para páginas /cotizaciones/historico/{especie}/hoy/ */

.hoy-bc { padding: 12px 0; font-size: 13px; color: #64748b; }
.hoy-bc ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 0; }
.hoy-bc li::after { content: ">"; margin: 0 6px; color: #94a3b8; }
.hoy-bc li:last-child::after { content: ""; }
.hoy-bc a { color: #64748b; text-decoration: none; }
.hoy-bc a:hover { color: #2563eb; }

.hoy-title { font-size: 24px; font-weight: 700; margin: 8px 0 16px; color: #1a1a2e; }
.hoy-h2 { font-size: 18px; font-weight: 600; margin: 24px 0 12px; color: #334155; }

.hoy-card {
    background: #fff; border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    padding: 24px; margin-bottom: 20px;
}
.dark .hoy-card {
    background: var(--surface-dark, #1e293b);
    box-shadow: 0 1px 3px rgba(0,0,0,.3);
}

.hoy-big-value { font-size: 36px; font-weight: 700; letter-spacing: -1px; }
.hoy-big-unit { font-size: 14px; color: #64748b; margin-left: 4px; }
.hoy-big-change { font-size: 20px; font-weight: 600; margin-left: 12px; }
.hoy-big-change.positive { color: #16a34a; }
.hoy-big-change.negative { color: #dc2626; }
.hoy-big-change.neutral { color: #64748b; }

.hoy-details {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px; margin-top: 16px;
}
.hoy-detail-item { text-align: center; padding: 8px; }
.hoy-detail-label { font-size: 12px; color: #64748b; text-transform: uppercase; letter-spacing: .5px; }
.hoy-detail-val { font-size: 18px; font-weight: 600; margin-top: 2px; }

.hoy-table-wrap {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
}
table.hoy-data { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 480px; }
table.hoy-data th {
    text-align: left; padding: 8px 10px; border-bottom: 2px solid #e2e8f0;
    font-weight: 600; color: #475569; font-size: 12px; text-transform: uppercase; white-space: nowrap;
}
table.hoy-data td { padding: 8px 10px; border-bottom: 1px solid #f1f5f9; white-space: nowrap; }
table.hoy-data tr:hover { background: #f8fafc; }
table.hoy-data .num { text-align: right; font-variant-numeric: tabular-nums; }
table.hoy-data .positive { color: #16a34a; }
table.hoy-data .negative { color: #dc2626; }
table.hoy-data .neutral { color: #64748b; }
table.hoy-data a { color: #2563eb; text-decoration: none; }
table.hoy-data a:hover { text-decoration: underline; }

.dark table.hoy-data th { color: #94a3b8; border-bottom-color: #334155; }
.dark table.hoy-data td { border-bottom-color: #1e293b; }
.dark table.hoy-data tr:hover { background: rgba(255,255,255,.03); }

.hoy-seo-text { font-size: 15px; color: #475569; line-height: 1.7; margin: 16px 0; }
.hoy-seo-text a { color: #2563eb; text-decoration: none; }
.hoy-seo-text a:hover { text-decoration: underline; }

.hoy-related { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 24px; }
.hoy-related a {
    padding: 6px 14px; background: #e2e8f0; border-radius: 20px;
    font-size: 13px; color: #334155; text-decoration: none;
    transition: background .15s, color .15s;
}
.hoy-related a:hover { background: #2563eb; color: #fff; text-decoration: none; }
.dark .hoy-related a { background: #334155; color: #cbd5e1; }
.dark .hoy-related a:hover { background: #2563eb; color: #fff; }

/* Responsive */
@media (max-width: 600px) {
    .hoy-title { font-size: 20px; }
    .hoy-h2 { font-size: 16px; }
    .hoy-card { padding: 16px; border-radius: 8px; }
    .hoy-big-value { font-size: 28px; }
    .hoy-big-change { display: block; margin: 6px 0 0; font-size: 18px; }
    .hoy-big-unit { display: block; margin: 2px 0 0; }
    .hoy-details { grid-template-columns: 1fr 1fr; gap: 8px; }
    .hoy-detail-val { font-size: 16px; }
    .hoy-detail-label { font-size: 11px; }
    .hoy-related a { padding: 8px 14px; font-size: 14px; }
    .hoy-bc { padding: 8px 0; }
    .hoy-bc ol { gap: 2px; }
    .hoy-bc li::after { margin: 0 4px; }
    .hoy-seo-text { font-size: 14px; }
    table.hoy-data { font-size: 13px; }
    table.hoy-data th, table.hoy-data td { padding: 6px 8px; }
}
@media (max-width: 380px) {
    .hoy-big-value { font-size: 24px; }
    .hoy-details { grid-template-columns: 1fr; }
    .hoy-title { font-size: 18px; }
}
