/*
 Theme Name:   Humahuaca Digital Theme
 Description:  Tema hijo para el portal de noticias Humahuaca Digital
 Author:       Vanesa Quiroz
 Template:     Divi
 Version:      1.0.0
*/

/* ── SISTEMA DE DISEÑO GLOBAL ─────────────────────────── */
:root {
    --obsidiana: #050706;
    --esmeralda: #00C853;
    --policial:  #FF1744;
    --sports:    #00E5FF;
    --sociedad:  #D1C4E9;
    --hueso:     #E8E3D3;
}

/* ── BASE ─────────────────────────────────────────────── */
html,
body,
#page-container,
#et-main-area,
#et-boc,
.et-boc,
#main-content,
.container,
#content-area {
    background-color: #050706 !important;
    background-image: none !important;
}

body {
    color: #E8E3D3 !important;
    font-family: 'Montserrat', sans-serif !important;
}

/* ── DIVI: SECCIONES FILAS COLUMNAS ──────────────────── */
.et_pb_section,
.et_pb_section_first,
.et_pb_row,
.et_pb_column,
.et_pb_module,
.et_pb_code,
.et_pb_code_inner,
.et_pb_text_inner,
.et_pb_with_border,
.et-db #et-boc .et-l .et_pb_section,
.et-db #et-boc .et-l .et_pb_row,
div[class*="et_pb_"] {
    background-color: #050706 !important;
    background-image: none !important;
}

.et_pb_row {
    border: none !important;
    box-shadow: none !important;
}

/* ── SIDEBAR Y ÁREAS ─────────────────────────────────── */
#left-area,
#right-area,
#sidebar,
.et_pb_widget_area,
.page-content,
.entry-content {
    background-color: #050706 !important;
}

/* ── TIPOGRAFÍA GLOBAL ───────────────────────────────── */
h1, h2, h3, h4, h5, h6,
.et_pb_text,
.et_pb_text p,
.et_pb_module p,
.et_pb_slide_description,
.et_pb_post_title h1 {
    color: #E8E3D3 !important;
    font-family: 'Montserrat', sans-serif !important;
}

/* ── LINKS ───────────────────────────────────────────── */
a,
a:visited,
a:link {
    color: #E8E3D3 !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
}
a:hover {
    color: #00C853 !important;
}

/* ── HEADER ──────────────────────────────────────────── */
#main-header.glass-header,
header#main-header {
    background: rgba(13, 15, 14, 0.98) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
}
#main-header .nav li a,
.et_pb_menu .nav li a {
    color: #E8E3D3 !important;
}
#main-header .nav li a:hover,
.et_pb_menu .nav li a:hover {
    color: #00C853 !important;
}

/* ── FOOTER ──────────────────────────────────────────── */
#main-footer,
#footer-widgets,
.et_pb_footer_columns_wrap {
    background-color: #000 !important;
    color: #E8E3D3 !important;
    border-top: 1px solid rgba(255,255,255,0.05);
}
#main-footer a,
#footer-widgets a {
    color: rgba(232,227,211,0.5) !important;
}
#main-footer a:hover,
#footer-widgets a:hover {
    color: #00C853 !important;
}

/* ── BLOG / ENTRADAS ─────────────────────────────────── */
.et_pb_post,
.et_pb_posts,
article.et_pb_post {
    background-color: #0d0f0e !important;
    border: 1px solid rgba(255,255,255,0.05);
}
.et_pb_post h2 a,
.et_pb_post h1 a {
    color: #E8E3D3 !important;
}
.et_pb_post h2 a:hover,
.et_pb_post h1 a:hover {
    color: #00C853 !important;
}
.post-meta,
.post-meta a,
.et_pb_post .post-meta {
    color: rgba(232,227,211,0.4) !important;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ── TIPOGRAFÍA DE CONTENIDO ─────────────────────────── */
.entry-content p,
.et_pb_post_content p {
    font-size: 1.1rem;
    line-height: 1.85;
    color: rgba(232, 227, 211, 0.85);
    margin-bottom: 1.5em;
}

/* ── COPETE ──────────────────────────────────────────── */
.entry-content p:first-of-type strong,
.et_pb_post_content p:first-of-type strong {
    display: block;
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(232, 227, 211, 0.9);
    font-weight: 700;
    margin-top: 25px;
    margin-bottom: 35px;
    border-left: 3px solid #00C853;
    padding-left: 20px;
}

/* ── VOLANTA ─────────────────────────────────────────── */
.hd-volanta {
    color: #00C853 !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3em !important;
    margin-bottom: 12px !important;
    display: block !important;
}

/* ── SINGLE ──────────────────────────────────────────── */
body.single,
body.single #page-container,
body.single #et-main-area,
body.single #main-content {
    background-color: #050706 !important;
}
.hd-single-wrap {
    margin-top: 0 !important;
    padding-top: 20px !important;
}

/* ── SCROLLBAR ───────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #050706; }
::-webkit-scrollbar-thumb { background: #00C853; }

/* ── PORTADA ─────────────────────────────────────────── */
.hd-portada-wrap {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    background: #050706;
}
.hd-portada-main { min-width: 0; }

/* ── BANNERS ─────────────────────────────────────────── */

/* Banner en grilla — ocupa todo el ancho entre filas */
.hd-banner-grilla {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 0;
    background: #050706;
}
.hd-banner-grilla img,
.hd-banner-grilla a,
.hd-banner-grilla a img {
    max-width: 100%;
    height: auto !important;
    display: block;
}

/* Banner en sidebar — se adapta al ancho del contenedor */
.hd-sidebar-ad__inner {
    padding: 12px;
}
.hd-sidebar-ad__inner img,
.hd-sidebar-ad__inner a,
.hd-sidebar-ad__inner a img {
    width: 100% !important;
    height: auto !important;
    display: block;
    max-width: 100%;
}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 900px) {
    .hd-portada-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .entry-content p:first-of-type strong,
    .et_pb_post_content p:first-of-type strong {
        font-size: 1.1rem;
        padding-left: 15px;
    }
    /* En mobile el banner de grilla puede tener menos padding */
    .hd-banner-grilla {
        padding: 4px 0;
    }
}

/* ── CATEGORÍAS Y ARCHIVOS ───────────────────────────── */
body.category h1,
body.category h2,
body.category h3,
body.archive h1,
body.archive h2,
body.archive h3 {
    color: #E8E3D3 !important;
}
body.category .hd-volanta,
body.archive .hd-volanta {
    color: #00C853 !important;
}
body.category a,
body.archive a {
    color: #E8E3D3 !important;
}
