/* =============================================
   EL VESTUARIO — Hoja de estilos unificada
   Modo claro (defecto) + Modo oscuro via [data-theme="dark"]
   ============================================= */

:root {
    --primary:        #1b5e20;
    --primary-light:  #2e7d32;
    --primary-pale:   #e8f5e9;
    --gold:           #f9a825;
    --bg:             #f2f4f3;
    --surface:        #ffffff;
    --surface-border: rgba(0,0,0,0.08);
    --text:           #1a1a1a;
    --text-muted:     #555555;
    --heading:        #1b5e20;
    --subheading:     #2e7d32;
    --dato-bg:        #e8f5e9;
    --dato-border:    #4caf50;
    --nav-bg:         #1b5e20;
    --nav-text:       #ffffff;
    --footer-bg:      #1a1a1a;
    --footer-text:    #aaaaaa;
    --footer-link:    #cccccc;
    --share-bg:       #f0f0f0;
    --card-shadow:    0 6px 24px rgba(0,0,0,0.10);
}

[data-theme="dark"] {
    --bg:             #121212;
    --surface:        #1e1e1e;
    --surface-border: rgba(255,255,255,0.07);
    --text:           #e0e0e0;
    --text-muted:     #888888;
    --heading:        #81c784;
    --subheading:     #a5d6a7;
    --dato-bg:        rgba(76,175,80,0.12);
    --dato-border:    #4caf50;
    --nav-bg:         #0d2b10;
    --nav-text:       #ffffff;
    --footer-bg:      #0a0a0a;
    --footer-text:    #666666;
    --footer-link:    #888888;
    --share-bg:       #2a2a2a;
    --card-shadow:    0 6px 24px rgba(0,0,0,0.50);
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    margin: 0;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.85;
    transition: background-color 0.3s, color 0.3s;
}

/* ── HEADER VERDE SUPERIOR ── */
.site-header {
    background-color: var(--nav-bg);
    color: var(--nav-text);
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
    transition: background-color 0.3s;
}

.site-header .logo {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.back-link {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.82rem;
    font-family: 'Segoe UI', sans-serif;
    transition: color 0.2s;
}
.back-link:hover { color: #fff; }

.theme-toggle {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: 'Segoe UI', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background 0.2s;
    white-space: nowrap;
}
.theme-toggle:hover { background: rgba(255,255,255,0.28); }

/* ── HERO / IMAGEN DE PORTADA ── */
.article-hero {
    position: relative;
    height: 340px;
    overflow: hidden;
    background: #000;
}
.article-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.42);
    transition: transform 8s ease;
}
.article-hero:hover .article-hero-bg { transform: scale(1.04); }
.article-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 20%, rgba(0,0,0,0.05) 100%);
}
.article-hero-content {
    position: relative;
    z-index: 2;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 32px 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.category-tag {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 2px;
    margin-bottom: 12px;
    font-family: 'Segoe UI', sans-serif;
}
.article-hero-content h1 {
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    font-weight: 900;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.15;
}
.article-hero-content .meta {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    font-family: 'Segoe UI', sans-serif;
    font-style: italic;
}

/* ── TARJETA CENTRAL DEL ARTÍCULO ── */
.article-card {
    max-width: 860px;
    margin: 32px auto 60px;
    padding: 48px 52px;
    background: var(--surface);
    border-radius: 14px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--surface-border);
    transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
}
@media (max-width: 640px) {
    .article-card { margin: 16px; padding: 28px 20px; }
}

.article-card p {
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 1.4em;
    transition: color 0.3s;
}

.article-card h1 {
    font-size: 2rem;
    color: var(--heading);
    margin: 0 0 8px;
    line-height: 1.2;
    transition: color 0.3s;
}

/* H2 — barra izquierda verde */
.article-card h2,
.article-card .section-h2 {
    font-size: 1.4rem;
    color: var(--heading);
    margin: 2.2em 0 0.6em;
    padding-left: 16px;
    border-left: 4px solid var(--primary);
    font-family: 'Segoe UI', Arial, sans-serif;
    font-weight: 700;
    line-height: 1.3;
    transition: color 0.3s;
}

/* H3 — barra izquierda más delgada */
.article-card h3,
.article-card .section-h3 {
    font-size: 1.15rem;
    color: var(--subheading);
    margin: 1.8em 0 0.5em;
    padding-left: 14px;
    border-left: 3px solid var(--primary-light);
    font-family: 'Segoe UI', Arial, sans-serif;
    font-weight: 700;
    transition: color 0.3s;
}

/* Meta dentro de tarjeta */
.article-card .meta {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.88rem;
    margin-bottom: 28px;
    display: block;
    font-family: 'Segoe UI', sans-serif;
    transition: color 0.3s;
}

/* Dato Élite */
.dato-elite {
    background: var(--dato-bg);
    border-left: 5px solid var(--dato-border);
    padding: 16px 20px;
    margin: 28px 0;
    border-radius: 0 8px 8px 0;
    transition: background 0.3s;
}
.dato-elite p { color: var(--text); margin: 0; }
.dato-elite strong { color: var(--primary); }
[data-theme="dark"] .dato-elite strong { color: var(--subheading); }

/* Sección con div inline border-left (retrocompatible) */
.section-block {
    border-left: 4px solid var(--primary);
    padding-left: 16px;
    margin: 2.2em 0 0.8em;
}
.section-block h3 {
    border: none;
    padding-left: 0;
    color: var(--heading);
    font-size: 1.5rem;
    margin: 0;
}

/* Share box */
.share-box {
    background: var(--share-bg);
    border-radius: 10px;
    padding: 20px;
    margin-top: 40px;
    text-align: center;
    font-family: 'Segoe UI', sans-serif;
    transition: background 0.3s;
}
.share-box p { color: var(--text-muted); margin: 0; }

/* CTA volver */
.article-cta {
    text-align: center;
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px solid var(--surface-border);
}
.btn-back {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    padding: 13px 30px;
    border-radius: 6px;
    font-weight: 700;
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.9rem;
    transition: background 0.2s, transform 0.2s;
}
.btn-back:hover { background: var(--primary-light); transform: translateY(-2px); }

/* ── FOOTER GLOBAL ── */
.global-footer {
    background: var(--footer-bg);
    border-top: 3px solid var(--primary);
    text-align: center;
    padding: 36px 20px;
    color: var(--footer-text);
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.85rem;
    transition: background 0.3s;
}
.global-footer p { margin-bottom: 12px; }
.global-footer a {
    color: var(--footer-link);
    text-decoration: none;
    margin: 0 10px;
    font-weight: 600;
    transition: color 0.2s;
}
.global-footer a:hover { color: var(--primary-light); }

/* ── PÁGINAS LEGALES ── */
.legal-body {
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}
.legal-body h1 { color: var(--heading); font-size: 2rem; margin-bottom: 4px; }
.legal-body h2 {
    color: var(--heading);
    font-size: 1.2rem;
    margin-top: 2em;
    border-left: 4px solid var(--primary);
    padding-left: 14px;
    font-family: 'Segoe UI', sans-serif;
}
.legal-body p, .legal-body li { color: var(--text); }
.legal-body .meta { color: var(--text-muted); font-style: italic; font-size: 0.88rem; }
.legal-body .quote {
    border-left: 4px solid var(--primary-light);
    padding-left: 15px;
    color: var(--text-muted);
    font-style: italic;
    margin: 20px 0;
}
.legal-body label {
    display: block;
    font-weight: bold;
    font-family: 'Segoe UI', sans-serif;
    color: var(--primary);
    margin-top: 16px;
    margin-bottom: 4px;
}
[data-theme="dark"] .legal-body label { color: var(--subheading); }
.legal-body input, .legal-body textarea {
    width: 100%;
    padding: 11px 14px;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    color: var(--text);
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Segoe UI', sans-serif;
    transition: background 0.3s, border 0.3s, color 0.3s;
}
.legal-body textarea { height: 120px; resize: vertical; }
.legal-body .btn-send {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 13px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    width: 100%;
    margin-top: 16px;
    transition: background 0.2s;
}
.legal-body .btn-send:hover { background: var(--primary-light); }
.social-links { text-align: center; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--surface-border); }
.social-links a { margin: 0 14px; text-decoration: none; color: var(--primary); font-weight: bold; }
[data-theme="dark"] .social-links a { color: var(--subheading); }
