/* ============================================================
   CSS compartido para páginas de artículos — Canciones Para Dormir
   Hereda el sistema de diseño del index.html
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Quicksand', sans-serif; background-color: #f8f4ff; color: #4a5568; margin: 0; line-height: 1.75; }
:root { --pink: #F7A8B8; --pink-dark: #e0849a; --night: #1a365d; --pink-text: #b8345e; }

/* NAV */
.art-nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,0.92); backdrop-filter: blur(12px);
    border-bottom: 1px solid #fdf2f8;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.art-nav-inner {
    max-width: 900px; margin: 0 auto;
    padding: 14px 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.art-nav-home {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 700; font-size: 0.95rem;
    color: var(--night); text-decoration: none;
    transition: color 0.2s;
}
.art-nav-home:hover { color: var(--pink-text); }
.art-nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.art-nav-pill {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 14px; border-radius: 999px;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
    color: var(--night); background: #fce7ed; text-decoration: none;
    transition: background 0.2s, color 0.2s;
    border: 1px solid rgba(247,168,184,0.35);
}
.art-nav-pill:hover { background: var(--pink); color: #1a365d; }
.art-nav-pill.active { background: var(--night); color: white; border-color: var(--night); }

/* HERO BANNER */
.art-hero {
    background-color: var(--night);
    padding: 56px 24px 48px;
    text-align: center;
}
.art-category {
    display: inline-block; padding: 5px 18px; border-radius: 999px;
    background: rgba(247,168,184,0.2); color: #fce7ed;
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
    margin-bottom: 18px;
}
.art-hero h1 {
    font-family: 'Quicksand', sans-serif;
    color: #fff; font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 700; line-height: 1.2; margin: 0 auto 16px;
    max-width: 720px;
}
.art-hero-intro {
    color: rgba(255,255,255,0.8); font-size: 1rem;
    max-width: 600px; margin: 0 auto;
}

/* BREADCRUMB */
.breadcrumb {
    max-width: 900px; margin: 18px auto 0; padding: 0 24px;
    font-size: 0.78rem; color: #6b7280;
    display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
}
.breadcrumb a { color: var(--pink-text); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }

/* CONTENT */
.art-body { max-width: 900px; margin: 0 auto; padding: 48px 24px 32px; }

.art-section { margin-bottom: 48px; }
.art-section h2 {
    font-family: 'Quicksand', sans-serif;
    color: var(--night); font-size: 1.5rem; font-weight: 700;
    margin: 0 0 16px; padding-bottom: 10px;
    border-bottom: 2px solid var(--pink);
    display: inline-block;
}
.art-section p { margin: 0 0 16px; color: #374151; font-size: 0.97rem; }
.art-section strong { color: var(--night); }

/* INTRO BOX */
.art-intro-box {
    background: #fff; border-left: 5px solid var(--pink);
    padding: 24px 28px; border-radius: 16px;
    box-shadow: 0 8px 24px rgba(247,168,184,0.15);
    margin-bottom: 40px; font-size: 0.97rem; color: #374151;
}

/* HIGHLIGHT BOX */
.art-highlight {
    background: #f8f4ff; border: 1px solid rgba(247,168,184,0.5);
    padding: 24px 28px; border-radius: 16px; margin: 24px 0;
    font-size: 0.95rem; color: #374151;
}

/* ALERT BOX */
.art-alert {
    background: var(--night); color: #fff;
    padding: 24px 28px; border-radius: 16px; margin: 28px 0;
    text-align: center; border: 2px dashed rgba(247,168,184,0.5);
    font-size: 0.95rem;
}
.art-alert strong { color: var(--pink); }

/* DATA CARD */
.art-data-card {
    background: linear-gradient(135deg, var(--night), #2d4a7a);
    color: #fff; padding: 32px; border-radius: 20px;
    text-align: center; margin: 28px 0;
}
.art-data-card .data-value { font-size: 2.2rem; font-weight: 700; color: var(--pink); margin: 8px 0; }
.art-data-card p { margin: 0; color: rgba(255,255,255,0.85); font-size: 0.9rem; }

/* GRID CARDS */
.art-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin: 28px 0; }
.art-grid-card {
    background: var(--night); color: #fff;
    padding: 28px; border-radius: 18px;
    box-shadow: 0 8px 20px rgba(26,54,93,0.15);
}
.art-grid-card h3 { color: var(--pink); margin: 0 0 12px; font-size: 1.1rem; border-bottom: 1px solid rgba(247,168,184,0.25); padding-bottom: 10px; }
.art-grid-card p { font-size: 0.9rem; color: rgba(255,255,255,0.85); margin: 0; }
.art-grid-card strong { color: var(--pink); }

/* SOURCES */
.art-sources {
    background: #f1f4f9; padding: 36px; border-radius: 20px; margin-top: 48px;
}
.art-sources h2 { font-size: 1.25rem; color: var(--night); margin: 0 0 20px; border: none; display: block; }
.art-sources ul { list-style: none; padding: 0; margin: 0; }
.art-sources li {
    padding: 12px 0 12px 28px; position: relative;
    border-bottom: 1px solid #e2e8f0; font-size: 0.9rem; color: #374151;
}
.art-sources li:last-child { border-bottom: none; }
.art-sources li::before { content: "♪"; color: var(--pink-text); position: absolute; left: 0; font-weight: 700; }
.art-sources li strong { color: var(--night); }
.art-sources li em { color: #6b7280; }

/* RELATED ARTICLES */
.art-related { margin-top: 56px; padding-top: 40px; border-top: 2px solid #fce7ed; }
.art-related h2 { font-size: 1.2rem; color: var(--night); font-weight: 700; margin: 0 0 20px; }
.art-related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.art-related-card {
    background: #fff; border-radius: 16px; padding: 20px;
    text-decoration: none; color: inherit;
    border: 1px solid #fce7ed;
    box-shadow: 0 4px 12px rgba(247,168,184,0.12);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex; flex-direction: column; gap: 8px;
}
.art-related-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(247,168,184,0.25); }
.art-related-icon { font-size: 1.6rem; }
.art-related-title { font-weight: 700; font-size: 0.88rem; color: var(--night); line-height: 1.3; }
.art-related-desc { font-size: 0.78rem; color: #6b7280; }

/* FOOTER */
.art-footer {
    background: var(--night); color: rgba(255,255,255,0.7);
    text-align: center; padding: 40px 24px;
    font-size: 0.82rem; margin-top: 64px;
}
.art-footer strong { color: #fff; }
.art-footer a { color: var(--pink); text-decoration: none; font-weight: 600; }
.art-footer a:hover { text-decoration: underline; }

/* BRAND LINK */
.brand-link { color: var(--pink-text); font-weight: 600; text-decoration: none; }
.brand-link:hover { text-decoration: underline; }

/* RESPONSIVE */
@media (max-width: 600px) {
    .art-nav-links { display: none; }
    .art-body { padding: 32px 16px; }
    .art-sources { padding: 24px 20px; }
}
