﻿/* =========================
   ElHoroscopoChino - Base UI
   ========================= */

:root {
    --hc-text: #1f2937;
    --hc-muted: #6b7280;
    --hc-border: rgba(0,0,0,.10);
    --hc-bg: #ffffff;
    --hc-card: #ffffff;
    --hc-radius: 14px;
    --hc-shadow: 0 8px 24px rgba(0,0,0,.06);
}

/* Mejoras globales de legibilidad */
html {
    -webkit-text-size-adjust: 100%;
}

body {
    color: var(--hc-text);
    background: var(--hc-bg);
    line-height: 1.55;
    text-rendering: optimizeLegibility;
}

a {
    text-underline-offset: 3px;
}

/* Un ancho de lectura razonable para textos largos */
.hc-prose {
    max-width: 70ch;
}

/* Jerarquía tipográfica (mobile-first) */
h1, .h1 {
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

h2, .h2 {
    font-weight: 750;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

h3, .h3 {
    font-weight: 700;
    line-height: 1.25;
}

h1, .h1 {
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}

h2, .h2 {
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
}

h3, .h3 {
    font-size: clamp(1.1rem, 1.8vw, 1.25rem);
}

p {
    margin-bottom: .9rem;
}

ul, ol {
    padding-left: 1.2rem;
}

li {
    margin-bottom: .35rem;
}

/* Cards y secciones */
.hc-card {
    background: var(--hc-card);
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius);
    box-shadow: var(--hc-shadow);
}

    .hc-card .hc-card-body {
        padding: 1rem;
    }

@media (min-width: 768px) {
    .hc-card .hc-card-body {
        padding: 1.25rem;
    }
}

.hc-section-title {
    margin-bottom: .35rem;
}

.hc-muted {
    color: var(--hc-muted);
}

.hc-divider {
    border-top: 1px solid var(--hc-border);
}

/* Chips (labels) */
.hc-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .25rem .6rem;
    border-radius: 999px;
    border: 1px solid var(--hc-border);
    background: rgba(0,0,0,.03);
    font-size: .85rem;
}

/* Mejoras sobre navbar en mobile */
.navbar .nav-link {
    font-weight: 600;
}

/* Listas de links “relacionados” */
.hc-linklist a {
    text-decoration: none;
}

    .hc-linklist a:hover {
        text-decoration: underline;
    }

/* Tablas más amigables en mobile */
table {
    width: 100%;
}

.table {
    border-radius: 12px;
    overflow: hidden;
}

/* Footer */
.hc-footer small, .hc-footer .text-body-secondary {
    line-height: 1.5;
}
