/* ===============================
   ELEMPRESARIAL PREMIUM STYLE
================================ */

body {
    font-family: 'Inter', sans-serif;
    background: #f4f6f8;
    color: #2e2e2e;
    line-height: 1.75;
}

/* CONTENEDOR MÁS AIRE */
.container {
    max-width: 1200px;
}

/* TITULOS PRINCIPALES */
h1, h2, h3 {
    letter-spacing: -0.5px;
}

h1 {
    font-weight: 800;
}

h2 {
    font-weight: 700;
}

/* HERO DESTACADO */
.featured-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.featured-image {
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

/* CARDS */
.card {
    border-radius: 10px;
}

.card-title {
    font-weight: 700;
}

/* ARTICLE CONTENT */
.article-content h2 {
    font-size: 1.7rem;
    font-weight: 700;
    margin-top: 2.8rem;
    margin-bottom: 1rem;
    color: #1f3c5c;
}

.article-content p {
    font-size: 1.1rem;
    margin-bottom: 1.3rem;
}

.article-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.article-content ul li {
    margin-bottom: 0.6rem;
}

/* SIDEBAR */
.sidebar-wrapper {
    position: relative;
}

.sidebar-block {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

/* BOTONES */
.btn-outline-primary {
    border-color: #1f3c5c;
    color: #1f3c5c;
    border-radius: 50px;
    padding: 6px 18px;
}

.btn-outline-primary:hover {
    background-color: #1f3c5c;
    color: #fff;
}

/* NAVBAR */
.navbar-brand {
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* RESPONSIVE AJUSTES */
@media (max-width: 991px) {
    .sidebar-wrapper {
        margin-top:15px;
    }

    .featured-title {
        font-size: 1.6rem;
    }
}
.sidebar-block img {
    transition: transform 0.3s ease;
}

.sidebar-block img:hover {
    transform: scale(1.02);
}

@media (max-width: 992px) {
    .sidebar-block {
        margin-bottom: 20px;
    }
}
/* ==============================
   SIDEBAR ESTILO EDITORIAL
============================== */

.sidebar-box {
    margin-bottom: 40px;
}

.sidebar-title {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.sidebar-line {
    width: 50px;
    height: 2px;
    background: #1f3c5c; /* Azul corporativo */
    margin-bottom: 15px;
}

.sidebar-links li {
    margin-bottom: 10px;
}

.sidebar-links a {
    text-decoration: none;
    color: #222;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar-links a:hover {
    color: #1f3c5c;
    padding-left: 6px;
}

.sidebar-box small {
    color: #666;
}
/* ==============================
   FOOTER EDITORIAL ELEMPRESARIAL
============================== */

.ep-footer-top{
  background:#ffffff;
  border-top:1px solid #e9eef3;
}

.ep-footer-title{
  font-size:.9rem;
  font-weight:800;
  letter-spacing:1px;
  text-transform:uppercase;
  color:#1f3c5c;
  margin-bottom:.4rem;
}

.ep-footer-line{
  width:48px;
  height:2px;
  background:#1f3c5c;
  opacity:.85;
  margin-bottom:1.25rem;
}

.ep-footer-logo{
  height:42px;
  width:auto;
}

.ep-footer-text{
  color:#4b5563;
  font-size:.95rem;
  line-height:1.55;
  margin-bottom:.75rem;
}

.ep-footer-link{
  color:#1f3c5c;
  text-decoration:none;
  font-weight:700;
}
.ep-footer-link:hover{ text-decoration:underline; }

.ep-footer-thumb{
  display:block;
  width:86px;
  height:54px;
  border-radius:8px;
  overflow:hidden;
  flex:0 0 auto;
  box-shadow:0 6px 18px rgba(15,47,107,.12);
}
.ep-footer-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.ep-footer-article{
  color:#1f2937;
  text-decoration:none;
  font-weight:700;
  line-height:1.25;
  display:inline-block;
}
.ep-footer-article:hover{
  color:#1f3c5c;
  text-decoration:underline;
}

.ep-footer-date{
  color:#6b7280;
  font-size:.85rem;
  margin-top:.25rem;
}

.ep-footer-divider{
  border-bottom:1px solid #eef2f6;
}

.ep-footer-rank{
  width:28px;
  height:28px;
  border-radius:999px;
  background:#1f3c5c;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  font-size:.85rem;
  flex:0 0 auto;
  margin-top:15px;
}

/* Bottom dark bar */
.ep-footer-bottom{
  background:#0f2f6b;
  color:rgba(255,255,255,.86);
}

.ep-social{
  width:42px;
  height:42px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.22);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  text-decoration:none;
  transition:all .2s ease;
}
.ep-social:hover{
  transform:translateY(-1px);
  border-color:rgba(255,255,255,.45);
  background:rgba(255,255,255,.08);
}

.ep-footer-legal a{
  color:rgba(255,255,255,.9);
  text-decoration:none;
}
.ep-footer-legal a:hover{ text-decoration:underline; }

.ep-footer-hr{
  border-color:rgba(255,255,255,.18);
}

.ep-footer-copy{
  color:rgba(255,255,255,.78);
}


/* ============ Header estilo medio editorial ============ */
.ep-topbar{
  background:#233a52; /* gris azulado */
  color:rgba(255,255,255,.92);
  font-size:.88rem;
}
.ep-topbar a{ color:rgba(255,255,255,.92); text-decoration:none; }
.ep-topbar a:hover{ text-decoration:underline; }

.ep-topbadge{
  background:#2fbf57;
  color:#fff;
  font-weight:800;
  letter-spacing:.6px;
  text-transform:uppercase;
  padding:.22rem .6rem;
  border-radius:.35rem;
  font-size:.78rem;
}

.ep-brandbar{
  background:#fff;
  border-bottom:1px solid #e9eef3;
}

.ep-logo{
  height:90px;
  width:auto;
}

/* ==============================
   HEADER: LOGO + BANNER COMPACTO
============================== */

.ep-brandbar{
  background:#fff;
  border-bottom:1px solid #e9eef3;
}

/* Fila compacta: NO estira altura */
.ep-brand-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;               /* aire entre logo y banner */
}

/* Logo */
.ep-brand-left{ flex:0 0 auto; }
.ep-logo{
  height:90px;
  width:auto;
}

/* Columna banner: NO ocupa más de lo necesario */
.ep-brand-right{
  flex:0 0 auto;          /* clave: que no se “estire” */
  display:flex;
  align-items:center;
  justify-content:flex-end;
}

/* Banner compacto tipo 728x90 pero controlado */
.ep-ad-link{ display:inline-flex; align-items:center; }

.ep-ad-compact{
  width: 720px;           /* objetivo desktop */
  height: 90px;           /* objetivo desktop */
  max-width: 720px;       /* evita crecer más */
  max-height: 90px;
  object-fit: contain;    /* no recorta */
  display:block;
  border-radius:10px;
  /* Quita fondo para que no parezca “bloque” */
  background: transparent;
  box-shadow: 0 10px 26px rgba(15,47,107,.10);
}

/* Si tu pantalla es menor que 1200px, reduce un poco el banner */
@media (max-width: 1200px){
  .ep-ad-compact{
    width: 560px;
    height: 70px;
    max-width: 560px;
    max-height: 70px;
  }
}

/* Tablet: aún más pequeño */
@media (max-width: 992px){
  .ep-ad-compact{
    width: 420px;
    height: 56px;
    max-width: 420px;
    max-height: 56px;
  }
}

/* Móvil: oculto (lo más editorial y limpio) */
@media (max-width: 768px){
  .ep-brand-right{ display:none; }
  .ep-logo{ height:52px; }
}
}
.ep-nav{
  background:#fff;
  border-bottom:2px solid #1f3c5c;
}
.ep-nav .nav-link{
  font-weight:700;
  color:#1f3c5c !important;
  text-transform:uppercase;
  letter-spacing:.5px;
  font-size:.86rem;
}
.ep-nav .nav-link:hover{
  color:#0f2f6b !important;
}
.ep-nav .dropdown-menu{
  border-radius:12px;
  border:1px solid #e9eef3;
  box-shadow:0 18px 40px rgba(15,47,107,.12);
}
.ep-nav .dropdown-item{
  font-weight:600;
  padding:.55rem 1rem;
}
.ep-nav .dropdown-item:hover{
  background:#f3f7fb;
  color:#0f2f6b;
}

.ep-search{
  width:240px;
}
@media (max-width: 991px){
  .ep-search{ width:100%; }
  .ep-ad-wrap{ display:none; } /* en móvil ocultamos banner para limpiar */
}
/* ==============================
   TOP POST SLIDER (ticker)
============================== */

.ep-topbar{
  background:#233a52;
  color:rgba(255,255,255,.92);
  font-size:.88rem;
}

.ep-topbadge{
  background:#2fbf57;
  color:#fff;
  font-weight:800;
  letter-spacing:.6px;
  text-transform:uppercase;
  padding:.22rem .6rem;
  border-radius:.35rem;
  font-size:.78rem;
  flex:0 0 auto;
}

/* ancho controlado para el slider */
.ep-top-carousel{
  width:min(620px, 72vw);
  overflow:hidden;
}

/* estilo del enlace */
.ep-toplink{
  color:rgba(255,255,255,.92);
  text-decoration:none;
  font-weight:700;
  display:block;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  line-height:1.25;
}

.ep-toplink:hover{
  text-decoration:underline;
}

/* en móvil estrechamos el ticker */
@media (max-width: 576px){
  .ep-top-carousel{ width: 68vw; }
}
/* ===============================
   HERO SLIDER ELEMPRESARIAL
================================ */

.hero-main {
    height: 420px;
}

.hero-img {
    height: 420px;
    object-fit: cover;
}

.hero-side {
    height: 205px;
}

.hero-img-small {
    height: 205px;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0.1));
}

.hero-text {
    position: absolute;
    bottom: 20px;
    left: 25px;
    right: 25px;
    color: #fff;
}

.hero-text h2 {
    font-weight: 800;
    font-size: 1.8rem;
    line-height: 1.3;
}

.hero-text-small {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    color: #fff;
}

.hero-text-small h6 {
    font-weight: 700;
    font-size: 1rem;
}

@media (max-width: 991px) {
    .hero-main,
    .hero-img {
        height: 300px;
    }

    .hero-side,
    .hero-img-small {
        height: 160px;
    }
}
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    padding: 15px;
}
/* ===============================
   SIDEBAR PREMIUM ELEMPRESARIAL
================================ */

.sidebar-box{
    background:#ffffff;
    padding:22px;
    border-radius:12px;
    box-shadow:0 8px 22px rgba(15,47,107,.06);
    margin-bottom:40px;
}

.sidebar-title{
    font-size:.8rem;
    font-weight:800;
    letter-spacing:1.5px;
    text-transform:uppercase;
    color:#1f3c5c;
}

.sidebar-line{
    width:42px;
    height:2px;
    background:#1f3c5c;
    margin:12px 0 20px 0;
}

.sidebar-links-advanced li{
    padding:10px 0;
    border-bottom:1px solid #eef2f6;
}

.sidebar-links-advanced li:last-child{
    border-bottom:none;
}

.sidebar-links-advanced a{
    text-decoration:none;
    color:#1f2937;
    font-weight:600;
    line-height:1.35;
    transition:all .25s ease;
    display:block;
}

.sidebar-links-advanced a:hover{
    color:#1f3c5c;
    padding-left:6px;
}
.hero-overlay{
    pointer-events: none;
}
/* ===============================
   HERO CAPTION PREMIUM
================================ */

.hero-text{
    position:absolute;
    bottom:25px;
    left:25px;
    right:25px;
}

.hero-caption{
    background:rgba(0,0,0,0.25);
    padding:20px 25px;
    border-radius:14px;
    backdrop-filter: blur(6px); /* efecto premium */
    -webkit-backdrop-filter: blur(6px);
    max-width:85%;
}

.hero-caption h2{
    color:#ffffff;
    font-weight:800;
    font-size:1.9rem;
    line-height:1.3;
    margin:0;
}

/* VERSION PEQUEÑA */

.hero-text-small{
    position:absolute;
    bottom:15px;
    left:15px;
    right:15px;
}

.hero-caption-small{
    background:rgba(0,0,0,0.25);
    padding:12px 15px;
    border-radius:12px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.hero-caption-small h6{
    color:#ffffff;
    font-weight:700;
    font-size:1rem;
    margin:0;
}

/* Hover elegante */

.hero-main:hover img,
.hero-side:hover img{
    transform:scale(1.05);
}

.hero-main img,
.hero-side img{
    transition:transform .5s ease;
}
.hero-text{
    position:absolute;
    bottom:30px;
    left:30px;
    right:30px;
}

.hero-caption{
    display:inline-block;
    background:rgba(0,0,0,0.2);
    padding:18px 24px;
    border-radius:16px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    max-width:100%;
}

.hero-caption h2{
    color:#fff;
    font-weight:800;
    font-size:1.9rem;
    line-height:1.25;
    margin:0;
}

.hero-caption-small{
    display:inline-block;
    background:rgba(0,0,0,0.2);
    padding:10px 14px;
    border-radius:12px;
}

.hero-caption-small h6{
    color:#fff;
    font-weight:700;
    margin:0;
}
/* =========================================
   SIDEBAR — BLOQUE EDITORIAL UNIFICADO
========================================= */

.ep-sidecard{
  background:#fff;
  border-radius:14px;
  box-shadow:0 10px 26px rgba(15,47,107,.06);
  border:1px solid #eef2f6;
  padding:18px 18px 8px;
}

.ep-sidecard__title{
  font-size:.85rem;
  font-weight:800;
  letter-spacing:1px;
  text-transform:uppercase;
  color:#1f3c5c;
  margin:0 0 10px;
}

.ep-sidecard__line{
  width:46px;
  height:2px;
  background:#1f3c5c;
  opacity:.9;
  margin-bottom:12px;
}

.ep-sidecard__list{
  list-style:none;
  padding:0;
  margin:0;
}

.ep-sidecard__item{
  padding:12px 0;
  border-bottom:1px solid #eef2f6;
}

.ep-sidecard__item:last-child{
  border-bottom:none;
}

.ep-sidecard__link{
  display:block;
  text-decoration:none;
  color:#111827;
  font-weight:700;
  line-height:1.25;
  transition:all .2s ease;
}

.ep-sidecard__link:hover{
  color:#1f3c5c;
  transform:translateX(4px);
}
/* =========================================
   ELEMPRESARIAL DARK MODE
========================================= */

body.dark-mode{
    background:#0f172a;
    color:#e5e7eb;
}

/* Contenedores */
body.dark-mode .card,
body.dark-mode .sidebar-box,
body.dark-mode .ep-sidecard,
body.dark-mode .sidebar-block{
    background:#1e293b;
    border:1px solid #2e3b52;
    box-shadow:0 10px 28px rgba(0,0,0,.45);
}

/* Títulos */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3{
    color:#f8fafc;
}

body.dark-mode .article-content h2{
    color:#60a5fa;
}

/* Párrafos */
body.dark-mode .article-content p{
    color:#d1d5db;
}

/* Links */
body.dark-mode a{
    color:#93c5fd;
}

body.dark-mode a:hover{
    color:#60a5fa;
}

/* Navbar */
body.dark-mode .ep-nav{
    background:#111827;
    border-bottom:2px solid #60a5fa;
}

body.dark-mode .ep-nav .nav-link{
    color:#e5e7eb !important;
}

body.dark-mode .ep-nav .nav-link:hover{
    color:#60a5fa !important;
}

/* Header */
body.dark-mode .ep-brandbar{
    background:#111827;
    border-bottom:1px solid #1f2937;
}

/* Sidebar */
body.dark-mode .ep-sidecard__link{
    color:#e5e7eb;
}

body.dark-mode .ep-sidecard__link:hover{
    color:#60a5fa;
}

/* Footer */
body.dark-mode .ep-footer-top{
    background:#111827;
    border-top:1px solid #1f2937;
}

body.dark-mode .ep-footer-bottom{
    background:#020617;
}

/* Hero overlay más elegante */
body.dark-mode .hero-overlay{
    background:linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.2));
}

/* Botones */
body.dark-mode .btn-outline-primary{
    border-color:#60a5fa;
    color:#60a5fa;
}

body.dark-mode .btn-outline-primary:hover{
    background:#60a5fa;
    color:#0f172a;
}
/* =========================================
   ECONOMIST STYLE
========================================= */

body.economist-mode{
    background:#ffffff;
    color:#111;
}

body.economist-mode h1,
body.economist-mode h2{
    font-family: Georgia, serif;
    font-weight:700;
}

body.economist-mode .ep-nav{
    border-bottom:3px solid #e3120b;
}

body.economist-mode .article-content h2{
    color:#e3120b;
}

body.economist-mode .ep-sidecard{
    border-left:4px solid #e3120b;
}
/* =========================================
   BLOOMBERG STYLE
========================================= */

body.bloomberg-mode{
    background:#f7f7f7;
    color:#111;
}

body.bloomberg-mode h1,
body.bloomberg-mode h2{
    font-weight:900;
    letter-spacing:-1px;
}

body.bloomberg-mode .ep-nav{
    border-bottom:3px solid #000;
}

body.bloomberg-mode .article-content h2{
    color:#000;
}

body.bloomberg-mode .ep-sidecard{
    border:1px solid #000;
    box-shadow:none;
}
/* ================= SECCIONES SIDEBAR ================= */

.ep-section-link {
    display: block;
    background: #f8f9fa;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: #000;
    transition: all 0.2s ease;
    text-align: center;
}

.ep-section-link:hover {
    background: #146c43;
    color: #fff;
}
.hero-wrapper{
  overflow:hidden;
  border-radius:18px;
}

.hero-img{
  width:100%;
  height:520px;
  object-fit:cover;
}

.hero-sec-img-wrapper{
  width:120px;
  height:90px;
  overflow:hidden;
  border-radius:10px;
  flex-shrink:0;
}

.hero-sec-img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.article-thumb{
  height:180px;
  object-fit:cover;
}

.card-img-wrapper{
  overflow:hidden;
}

.article-card:hover{
  transform:translateY(-4px);
  transition:all .3s ease;
}

.strategic-card:hover{
  background:#f8fafc;
  transition:all .3s ease;
}

.more-read-item:hover{
  transform:translateX(4px);
  transition:all .3s ease;
}
.meta-premium{
  font-size: .78rem;
  letter-spacing: .6px;
  margin-bottom: 8px;
}

.meta-cat{
  font-weight: 700;
  color:#1e3a8a;
}

.meta-date,
.meta-read{
  color:#6b7280;
}

.meta-sep{
  margin:0 6px;
  color:#cbd5e1;
}

.meta-author{
  margin-top:15px;
  font-weight:500;
  font-size:.85rem;
  color:#111827;
}

.hero-img{
  width:100%;
  height:520px;
  object-fit:cover;
  border-radius:12px;
}

.hero-sec-img{
  width:100%;
  height:180px;
  object-fit:cover;
  border-radius:10px;
}

.card-thumb{
  width:100%;
  height:200px;
  object-fit:cover;
}

.card-body{
  padding:1rem;
}

.meta-cat{
  font-size:.75rem;
  font-weight:700;
  text-transform:uppercase;
  color:#1e3a8a;
}

.meta-cat a{
  text-decoration:none;
  color:#1e3a8a;
}

.meta-cat a:hover{
  text-decoration:underline;
}

.meta-info{
  font-size:.8rem;
  color:#6b7280;
}

.meta-read{
  font-size:.8rem;
  color:#9ca3af;
  margin-top:15px;
}
/* ===============================
   CATEGORY HUB PREMIUM
================================= */

.category-header {
    margin-bottom: 2.5rem;
}

.category-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: .75rem;
}

.category-header p {
    font-size: 1.1rem;
    color: #5f6368;
    max-width: 900px;
}

/* Breadcrumb */
.ep-breadcrumb {
    font-size: .9rem;
    margin-bottom: 1rem;
}

.ep-breadcrumb a {
    text-decoration: none;
    color: #6c757d;
}

.ep-breadcrumb a:hover {
    color: #000;
}

/* Tarjetas hijas */
.category-card {
    position: relative;
    padding: 1.5rem;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #eee;
    transition: transform .25s ease, box-shadow .25s ease;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

/* Línea lateral de identidad */
.category-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    border-radius: 10px 0 0 10px;
}

/* Colores por eje */
.cat-estrategia::before { background:#1e3a8a; }
.cat-salud::before { background:#198754; }
.cat-productividad::before { background:#fd7e14; }
.cat-ia::before { background:#6f42c1; }
.cat-finanzas::before { background:#343a40; }
.cat-marco::before { background:#0f3057; }

/* Icono */
.category-icon {
    font-size: 1.4rem;
    margin-bottom: .5rem;
    display: inline-block;
}

/* Contador artículos */
.category-count {
    font-size: .85rem;
    color: #6c757d;
    margin-top: .5rem;
}

/* Claim editorial */
.category-claim {
    font-size: 1rem;
    font-weight: 600;
    margin-top: .5rem;
    color: #495057;
}
/* ===============================
   HERO SLIDER
================================ */

.hero-section{
    margin: 25px 0 35px 0;
}

.hero-image,
.hero-small{
    position: relative;
    overflow: hidden;
    border-radius: 18px;
}

.hero-image{
    height: 480px;
}

.hero-small{
    height: 235px;
}

.hero-image img,
.hero-small img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.hero-image:hover img,
.hero-small:hover img{
    transform: scale(1.04);
}

.hero-overlay{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 35px 28px 22px 28px;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.8) 0%,
        rgba(0,0,0,0.5) 45%,
        rgba(0,0,0,0.0) 100%
    );
    color: white;
}

.hero-overlay h2,
.hero-overlay h4{
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.hero-overlay h2{
    font-size: 1.9rem;
}

.hero-overlay h4{
    font-size: 1rem;
}

.hero-author{
    font-size: 0.85rem;
    margin-top:15px;
    opacity: 0.9;
}

.carousel-control-prev-icon,
.carousel-control-next-icon{
    background-color: rgba(0,0,0,0.6);
    border-radius: 50%;
    padding: 16px;
}


/* ===============================
   EJES
================================ */

.ejes-section{
    padding: 30px 0 20px 0;
}

.ejes-title{
    font-weight: 700;
    font-size: 1.6rem;
    margin-bottom: 30px;
}

.eje-card{
    background:#fff;
    border-radius:16px;
    padding:22px;
    transition:.25s ease;
    border:1px solid #f0f0f0;
    height:100%;
}

.eje-card:hover{
    transform:translateY(-4px);
    box-shadow:0 12px 30px rgba(0,0,0,0.05);
}

.eje-name{
    font-weight:700;
    font-size:1.05rem;
    margin-bottom:8px;
}

.eje-desc{
    font-size:.85rem;
    color:#6c757d;
    margin-bottom:12px;
}

.eje-meta{
    font-size:.75rem;
    font-weight:600;
    text-transform:uppercase;
    letter-spacing:.5px;
}


/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 992px){
    .hero-image,
    .hero-small{
        height: 320px;
    }
}
.hero-img{
    object-fit: cover;
    border-radius: 12px;
}

.hero-title{
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.15;
}

.hero-excerpt{
    font-size: 1rem;
    color: #555;
}

.meta-linea{
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    font-size: 0.85rem;
}

.meta-autor{
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.meta-avatar{
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.meta-item{
    color: #666;
}

.meta-categorias{
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: .5px;
}

.meta-categorias a{
    color: #c40000;
    font-weight: 600;
    text-decoration: none;
}

.meta-categorias a:hover{
    text-decoration: underline;
}
/* ================= BANNER HEADER ================= */

.ep-bannerbar{
padding:25px 0;
background:#f7f7f7;
border-top:1px solid #eee;
border-bottom:1px solid #eee;
}

.ep-banner{
width:100%;
max-width:970px;
margin:auto;
text-align:center;
}

.ep-banner img{
width:100%;
height:auto;
display:block;
margin:auto;
object-fit:contain;
}

/* ================= RESPONSIVE ================= */

@media (max-width:992px){

.ep-banner{
max-width:728px;
}

}

@media (max-width:576px){

.ep-banner{
max-width:320px;
}

}

/* FIX GLOBAL ESPACIADO */
.main-content{margin-top:15px!important;}
.portada-section{margin-top:15px!important;}
.ep-bannerbar{padding:6px 0!important;}
.ep-banner{height:120px!important;}
/* ===============================
TÍTULO
=============================== */

.ep-title{
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.2;
    max-width: 900px;
}

/* ===============================
SUBTÍTULO
=============================== */

.ep-subtitle{
    font-size: 1.1rem;
    color: #666;
    margin-top: 10px;
}

/* ===============================
RESUMEN (CLAVES)
=============================== */

.ep-resumen-box{
    background: #fff8e6;
    border-left: 4px solid #f0b429;
    padding: 18px;
    margin-bottom: 25px;
    border-radius: 6px;
}

.ep-resumen-head{
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ep-resumen-text{
    color: #333;
}

/* ===============================
CONTENIDO
=============================== */

.ep-content p{
    margin-bottom: 18px;
    line-height: 1.6;
}

/* primer párrafo más potente */
.ep-content p:first-child{
    font-size: 1.15rem;
    font-weight: 500;
}

/* ===============================
BLOQUES
=============================== */

.ep-block{
    margin-bottom: 25px;
}
/* =========================================
RITMO EDITORIAL ELEMPRESARIAL
========================================= */

/* CONTENEDOR GLOBAL */
.main-content{
    margin-top:10px;
}

/* BLOQUES GENERALES */
.section-block{
    padding:28px 0;
}

.section-tight{
    padding:18px 0;
}

.section-hero{
    padding:10px 0 20px 0;
}

/* TITULOS EDITORIALES (ESTÁNDAR WEB) */

.block-header{
    display:flex;
    align-items:center;
    margin-bottom:18px;
}

.block-title{
    font-size:1.25rem;
    font-weight:700;
    letter-spacing:.5px;
    text-transform:uppercase;
    margin-right:15px;
    color:#1c2e4a;
}

.block-line{
    flex:1;
    height:3px;
    background:linear-gradient(
        to bottom,
        #dcdcdc 0px,
        #dcdcdc 1px,
        transparent 1px,
        transparent 2px,
        #dcdcdc 2px,
        #dcdcdc 3px
    );
}

/* CARDS BASE (UNIFICACIÓN TOTAL) */

.card-clean{
    background:#fff;
    border:none;
    transition:.2s;
}

.card-clean:hover{
    transform:translateY(-3px);
}

/* TIPOGRAFÍA GLOBAL */

body{
    color:#1c2e4a;
}

a{
    text-decoration:none;
}

a:hover{
    text-decoration:none;
}

/* ELIMINAMOS EL CAOS DE BOOTSTRAP */

.my-5,
.mt-5,
.mb-5{
    margin:0 !important;
}
/* ===============================
WIDGET MÁS LEÍDOS FINAL
=============================== */

/* CONTENEDOR */
.ep-widget-clean{
    border-left:2px solid #e5e7eb;
    padding-left:16px;
}

/* HEADER */
.ep-title-lines{
    display:flex;
    align-items:center;
    margin-bottom:22px; /* 🔥 MÁS AIRE */
}

.ep-title-lines span{
    margin:0 12px;
    font-size:12px;
    font-weight:700;
    letter-spacing:1px;
    text-transform:uppercase;
    color:#1f3c5c;
}

/* TIMELINE */
.ep-timeline{
    border-left:1px solid #e5e7eb;
    padding-left:18px;
}

/* ITEM */
.ep-item{
    position:relative;
    margin-bottom:20px; /* 🔥 MÁS SEPARACIÓN */
}

/* DOT */
.ep-dot{
    width:6px;
    height:6px;
    background:#1f3c5c;
    border-radius:50%;
    position:absolute;
    left:-22px;
    top:7px;
}

/* TITULO (🔴 AQUÍ ESTABA EL PROBLEMA) */
.ep-item-title{
    font-size:0.95rem;
    font-weight:700;
    color:#1f3c5c; /* 👈 color base editorial */
    text-decoration:none;
    display:block;
    line-height:1.3;
    margin-bottom:6px;
}

/* SOLO HOVER EN AZUL */
.ep-item-title:hover{
    color:#0d6efd;
}

/* AUTOR */
.ep-item-author{
    font-size:0.78rem;
    color:#6c757d;
    margin-bottom:4px;
}

.ep-item-author a{
    color:#6c757d;
    text-decoration:none;
}

/* META */
.ep-item-meta{
    font-size:0.72rem;
    color:#9aa4b2;
}
/* ===============================
COOKIES ELEMPRESARIAL
================================ */

.ep-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 24px;
    z-index: 99999;
    padding: 0 18px;
    font-family: inherit;
}

.ep-cookie-card {
    max-width: 1180px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid rgba(15, 48, 87, 0.12);
    border-radius: 22px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22);
    padding: 22px 24px;
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 18px;
    align-items: center;
}

.ep-cookie-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: #E8F1F8;
    color: #0F3057;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
}

.ep-cookie-content h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0F3057;
}

.ep-cookie-content p {
    margin: 0 0 8px;
    color: #475569;
    font-size: 0.94rem;
    line-height: 1.45;
}

.ep-cookie-content a {
    color: #0F3057;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
}

.ep-cookie-content a:hover {
    text-decoration: underline;
}

.ep-cookie-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.ep-cookie-btn {
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all .18s ease;
    white-space: nowrap;
}

.ep-cookie-btn-primary {
    background: #0F3057;
    border-color: #0F3057;
    color: #ffffff;
}

.ep-cookie-btn-primary:hover {
    background: #1B4F72;
    border-color: #1B4F72;
}

.ep-cookie-btn-outline {
    background: #ffffff;
    border-color: #0F3057;
    color: #0F3057;
}

.ep-cookie-btn-outline:hover {
    background: #E8F1F8;
}

.ep-cookie-btn-light {
    background: #F8FAFC;
    border-color: #CBD5E1;
    color: #334155;
}

.ep-cookie-btn-light:hover {
    background: #E2E8F0;
}

/* MODAL */

.ep-cookie-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.62);
    z-index: 100000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ep-cookie-modal-card {
    width: 100%;
    max-width: 620px;
    background: #ffffff;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 30px 90px rgba(0,0,0,0.28);
}

.ep-cookie-modal-card h3 {
    color: #0F3057;
    font-weight: 800;
    margin-bottom: 20px;
}

.ep-cookie-option {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    padding: 18px 0;
    border-bottom: 1px solid #E5E7EB;
}

.ep-cookie-option strong {
    color: #0F3057;
}

.ep-cookie-option p {
    margin: 5px 0 0;
    color: #64748B;
    font-size: 0.94rem;
}

.ep-cookie-option input {
    width: 22px;
    height: 22px;
    accent-color: #0F3057;
}

.ep-cookie-modal-actions {
    margin-top: 26px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* MOBILE */

@media (max-width: 768px) {
    .ep-cookie-banner {
        bottom: 14px;
        padding: 0 12px;
    }

    .ep-cookie-card {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 14px;
    }

    .ep-cookie-icon {
        display: none;
    }

    .ep-cookie-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
    }

    .ep-cookie-btn {
        width: 100%;
    }

    .ep-cookie-modal-card {
        padding: 24px;
    }

    .ep-cookie-modal-actions {
        flex-direction: column-reverse;
    }
}
