/* =========================================================
   LETRA G — Estilos globales modernos
   ========================================================= */

:root {
    --azul:        #1b3a6b;
    --azul-oscuro: #122850;
    --azul-claro:  #2a5298;
    --acento:      #5b9fd4;
    --bg:          #f0f2f5;
    --card-bg:     #ffffff;
    --text:        #1a1a2e;
    --muted:       #6c757d;
    --border:      #e0e4ea;
    --shadow-sm:   0 2px 8px rgba(0,0,0,.08);
    --shadow-md:   0 4px 20px rgba(0,0,0,.13);
    --radius:      10px;
    --transition:  .25s ease;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
}

/* ---- Acento rojo superior ---- */
.topbar-accent {
    height: 3px;
    background: linear-gradient(90deg, var(--acento) 0%, #a8cce8 50%, var(--acento) 100%);
}

/* ---- Barra de redes ---- */
.topbar-social {
    background: var(--azul-oscuro);
    font-size: .78rem;
    padding: .3rem 0;
}
.topbar-social a {
    color: rgba(255,255,255,.6);
    text-decoration: none;
    transition: color var(--transition);
}
.topbar-social a:hover { color: #fff; }

/* ---- Navbar ---- */
.navbar-letrag {
    background: var(--azul) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,.25);
    padding: .5rem 0;
}
.navbar-letrag .nav-link {
    color: rgba(255,255,255,.85) !important;
    font-weight: 600;
    font-size: .88rem;
    padding: .5rem .75rem !important;
    border-radius: 5px;
    transition: all var(--transition);
    position: relative;
}
.navbar-letrag .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 50%; right: 50%;
    height: 2px;
    background: var(--acento);
    transition: all var(--transition);
    border-radius: 2px;
}
.navbar-letrag .nav-link:hover { color: #fff !important; }
.navbar-letrag .nav-link:hover::after { left: 10%; right: 10%; }
.navbar-letrag .dropdown-toggle::after { margin-left: 4px; }
.dropdown-menu {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    background: #1a2e52;
    z-index: 9999;
}
.dropdown-item {
    color: rgba(255,255,255,.8);
    font-size: .87rem;
    padding: .5rem 1.2rem;
    transition: all var(--transition);
}
.dropdown-item:hover {
    background: var(--acento);
    color: #fff;
}

/* ---- Hero ---- */
.hero-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}
.hero-card img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    transition: transform .5s ease;
    display: block;
}
.hero-card:hover img { transform: scale(1.03); }
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,.92) 0%,
        rgba(0,0,0,.65) 28%,
        rgba(0,0,0,.15) 55%,
        transparent 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 1.8rem;
}
.badge-section {
    display: inline-block;
    background: var(--acento);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: .25em .75em;
    border-radius: 4px;
    margin-bottom: .5rem;
}
.hero-date { color: rgba(255,255,255,.65); font-size: .78rem; margin-bottom: .4rem; }
.hero-title {
    color: #fff;
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 .5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.hero-synopsis {
    color: rgba(255,255,255,.8);
    font-size: .9rem;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- Sub-cards ---- */
.sub-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    background: #0a0f1e;
}
.sub-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    transition: transform .4s ease;
    display: block;
}
.sub-card:hover img { transform: scale(1.05); }
.sub-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10,15,35,.96) 0%,
        rgba(10,15,35,.75) 25%,
        rgba(10,15,35,.4)  50%,
        rgba(10,15,35,.15) 75%,
        rgba(10,15,35,.04) 92%,
        transparent 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: .8rem;
}
.sub-overlay .sec-tag {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--acento);
    letter-spacing: .05em;
    margin-bottom: .25rem;
}
.sub-overlay h6 {
    color: #fff;
    font-size: .83rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    text-shadow: 0 1px 4px rgba(0,0,0,.5);
}

/* ---- Divisor de sección ---- */
.section-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0 1rem;
}
.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--border);
}
.section-divider-label {
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--azul);
    white-space: nowrap;
    padding: .3em .8em;
    border: 2px solid var(--acento);
    border-radius: 4px;
    background: #fff;
}

/* ---- News cards ---- */
.news-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    border: none;
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.news-card .card-img-wrap {
    overflow: hidden;
    height: 170px;
}
.news-card .card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.news-card:hover .card-img-wrap img { transform: scale(1.06); }
.badge-sec {
    display: inline-block;
    background: var(--azul);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: .2em .55em;
    border-radius: 3px;
}
.news-card h5 {
    font-size: .93rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.leer-mas {
    color: var(--acento);
    font-weight: 700;
    font-size: .8rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    transition: gap var(--transition);
}
.leer-mas:hover { gap: .5rem; color: var(--acento); }

/* ---- Sidebar ---- */
.sidebar-widget {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.sidebar-title {
    background: var(--azul);
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: .65rem 1.1rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: .4rem;
    border-left: 4px solid var(--acento);
}
.sidebar-body { padding: 1rem; }

/* Galería en sidebar */
.gal-thumb { overflow: hidden; border-radius: 6px; }
.gal-thumb img { width: 100%; height: 75px; object-fit: cover; border-radius: 6px; transition: transform .3s; }
.gal-thumb:hover img { transform: scale(1.05); }

/* Botones de redes */
.btn-red-social {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .45rem .9rem;
    border-radius: 6px;
    color: #fff;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity var(--transition);
}
.btn-red-social:hover { opacity: .88; color: #fff; }

/* ---- Footer ---- */
.footer-letrag {
    background: linear-gradient(135deg, #0d2040 0%, var(--azul) 100%);
    color: rgba(255,255,255,.7);
    border-top: 3px solid var(--acento);
    margin-top: 3rem;
}
.footer-letrag h6 {
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 1rem;
    padding-bottom: .4rem;
    border-bottom: 1px solid rgba(255,255,255,.15);
}
.footer-letrag a {
    color: rgba(255,255,255,.6);
    text-decoration: none;
    font-size: .88rem;
    display: block;
    padding: .2rem 0;
    transition: color var(--transition);
}
.footer-letrag a:hover { color: #fff; }
.footer-bottom {
    background: rgba(0,0,0,.25);
    font-size: .78rem;
    color: rgba(255,255,255,.45);
    padding: .75rem 1rem;
    text-align: center;
}
.footer-bottom a { color: rgba(255,255,255,.55); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ---- Breadcrumb ---- */
.breadcrumb { font-size: .82rem; background: none; padding: 0; }
.breadcrumb-item a { color: var(--azul); text-decoration: none; }
.breadcrumb-item.active { color: var(--muted); }

/* ---- Artículo detalle ---- */
.article-wrap {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.article-img { width: 100%; height: auto; object-fit: unset; display: block; }
.article-body { padding: 2rem; }
.article-titulo { font-size: 1.65rem; font-weight: 800; line-height: 1.25; color: var(--text); }
.article-sintesis { font-size: 1.05rem; font-weight: 600; color: #444; line-height: 1.6; border-left: 3px solid var(--acento); padding-left: .9rem; }
.article-cuerpo { font-size: .97rem; color: #555; line-height: 1.8; white-space: pre-line; }

/* Share buttons */
.share-btn {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .45rem .9rem; border-radius: 6px;
    font-size: .83rem; font-weight: 700; text-decoration: none;
    transition: opacity .2s;
}
.share-btn:hover { opacity: .85; }
.share-fb { background: #1877f2; color: #fff; }
.share-tw { background: #000; color: #fff; }
.share-wa { background: #25d366; color: #fff; }

/* ---- Search form ---- */
.search-box input {
    border: 2px solid var(--border);
    border-right: none;
    border-radius: 6px 0 0 6px;
    font-size: .88rem;
}
.search-box input:focus {
    border-color: var(--azul);
    box-shadow: none;
}
.search-box button {
    border-radius: 0 6px 6px 0;
    background: var(--azul);
    border-color: var(--azul);
}

/* ---- Relacionadas ---- */
.rel-card { background: var(--card-bg); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); }
.rel-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.rel-card img { width: 100%; height: 130px; object-fit: cover; }
.rel-card .rel-body { padding: .75rem; }
.rel-card h6 { font-size: .85rem; font-weight: 700; line-height: 1.3; margin: 0; }

/* ---- Utilities ---- */
.text-rojo { color: var(--acento) !important; }
.bg-azul   { background: var(--azul) !important; }
