/* --------------------------------------------------
   Branding DM — Tipografía corporativa fichero dm.css
   -------------------------------------------------- */

@import url("https://fonts.googleapis.com/css2?family=Merriweather+Sans:wght@300;400;500;600;700;800&display=swap");
:root {
    /* Tipografía corporativa */
    --home-5-title-font: "Merriweather Sans", sans-serif;
    --home-5-body-font: "Merriweather Sans", sans-serif;
    --brand-blue: #537FE7;
}
body {
    font-family: "Merriweather Sans", sans-serif;
}

/* --------------------------------------------------
   Override títulos display / hero
   -------------------------------------------------- */

a.title-hover {
    font-family: "Merriweather Sans", sans-serif;
}

/* --------------------------------------------------
   Neutralizar tipografía display del theme
   -------------------------------------------------- */

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: "Merriweather Sans", sans-serif;
}

/* Textos especiales y bloques editoriales */
p,
a,
span,
button {
    font-family: "Merriweather Sans", sans-serif;
}

ul li {
    color: inherit;
}


/* --------------------------------------------------
   Botones y CTAs
   -------------------------------------------------- */

a.echo-py-btn,
a.text-capitalize.echo-py-btn,
button {
    font-family: "Merriweather Sans", sans-serif;
}

/* --------------------------------------------------
   Bloques especiales / editoriales
   -------------------------------------------------- */

section p,
.echo-hero-discription,
.echo-newsletter p {
    font-family: "Merriweather Sans", sans-serif;
}


/* --------------------------------------------------
   Fix números feature area (desktop)
   -------------------------------------------------- */

.echo-feature-area-option-number {
    flex-basis: 80px;   /* ancho fijo estable */
    flex-shrink: 0;     /* evita que se comprima */
}

.echo-feature-area-option-number h3 {
    line-height: 1;     /* evita salto vertical */
    margin-bottom: 0;   /* elimina espacio innecesario */
    white-space: nowrap; /* nunca partir 01 / 02 */
}


/**
 * ---------------------------------------------------------
 * Imagen flotante derecha responsive
 * - Se adapta al tamaño real de la imagen
 * - Mantiene aire visual
 * - Funciona bien en desktop y móvil
 * ---------------------------------------------------------
 */
.img-float-right {
    position: absolute;
    right: clamp(20px, 4vw, 60px);
    top: 50%;
    transform: translateY(-50%) scale(1);
    max-width: 35%;
    pointer-events: none;
    transition: transform 0.4s ease;
}

/* Imagen interna */
.img-float-right img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Hover suave */
.echo-software-download-full-content-bg:hover .img-float-right {
    transform: translateY(-50%) scale(1.08);
}

/* Tablet */
@media (max-width: 991px) {
    .img-float-right {
        max-width: 45%;
        right: 20px;
    }
}

/* Móvil */
@media (max-width: 767px) {
    .img-float-right {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        margin: 30px auto 0;
        max-width: 70%;
        text-align: center;
    }
}


/**
 * ---------------------------------------------------------
 * Imagen a sangre derecha (bleed)
 * - Pegada al borde derecho del bloque
 * - Escala suave en hover
 * - Responsive sin romper layout
 * ---------------------------------------------------------
 */
.img-bleed-right {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%) scale(1);
    height: 100%;
    max-width: 40%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    pointer-events: none;
    transition: transform 0.4s ease;
}

/* Imagen */
.img-bleed-right img {
    height: 100%;
    width: auto;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Hover */
.echo-software-download-full-content-bg:hover .img-bleed-right {
    transform: translateY(-50%) scale(1.08);
}

/* Tablet */
@media (max-width: 991px) {
    .img-bleed-right {
        max-width: 50%;
    }
}

/* Móvil */
@media (max-width: 767px) {
    .img-bleed-right {
        position: relative;
        top: auto;
        right: auto;
        height: auto;
        max-width: 100%;
        transform: none;
        margin-top: 24px;
        justify-content: center;
    }

    .img-bleed-right img {
        width: 100%;
        height: auto;
        max-height: 280px;
    }
}


/* --------------------------------------------------
   Hero title — ajustar tamaño
   -------------------------------------------------- */

.echo-hero-title {
    margin-bottom: 0;
}

.echo-hero-title a.title-hover {
    display: block;      /* evita cálculos raros inline */
    font-size: 42px;      /* ajusta aquí */
    line-height: 1.2;
}

/* Tablet */
@media (max-width: 991px) {
    .echo-hero-title a.title-hover {
        font-size: 34px;
        line-height: 1.15;
    }
}

/* Móvil */
@media (max-width: 767px) {
    .echo-hero-title a.title-hover {
        font-size: 26px;
        line-height: 1.2;
    }
}



/* --------------------------------------------------
   Hero - artículos relacionados
   -------------------------------------------------- */

.echo-hero-relacionados ul {
    padding-left: 0;
}

.echo-hero-relacionados li {
    position: relative;
    padding-left: 16px;       /* espacio para el triángulo */
    line-height: 1.45;
}

.echo-hero-relacionados li::before {
    content: "▶";
    position: absolute;
    left: 0;
    top: 0.1em;
    font-size: 0.7em;
    color: var(--brand-blue);
}

.echo-hero-relacionados a {
    text-decoration: none;
    font-weight: 500;
}

.echo-hero-relacionados a:hover {
    text-decoration: underline;
}


/* --------------------------------------------------
   Hero - Entradilla enlazada sin efecto hover
   -------------------------------------------------- */

.echo-hero-discription .title-hover,
.echo-hero-discription .title-hover:hover {
    background-size: 0 0;     /* mata el subrayado animado */
    text-decoration: none;
    cursor: pointer;
}


/* --------------------------------------------------
   Hero - Pie de foto
   -------------------------------------------------- */

.echo-hero-figure {
    margin: 0;
}

.echo-hero-caption {
    margin-top: 6px;
    font-size: 1rem;
    line-height: 1.3;
    color: #666;
    text-align: right;
}

.echo-hero-caption-author {
    margin-left: 6px;
    color: #999;
    font-style: italic;
}

/* --------------------------------------------------
   Hero - Pie de foto (Dark mode)
   -------------------------------------------------- */

html[data-theme="dark"] .echo-hero-caption {
    color: rgba(255, 255, 255, 0.75);
}

html[data-theme="dark"] .echo-hero-caption-author {
    color: rgba(255, 255, 255, 0.55);
}


/* --------------------------------------------------
   Home - Destacadas (columna derecha)
   -------------------------------------------------- */

.echo-home-1-hero-area-top-story .echo-story-text h4 {
    margin: 0;
    line-height: 1.1;          /* el h4 no mete aire */
}

.echo-home-1-hero-area-top-story .echo-story-text h4 a {
    display: block;          /* controla la caja */
    font-size: 18px;
    line-height: 1.4;        /* interlineado real */
    font-weight: 600;
}

/* Tablet */
@media (max-width: 991px) {
    .echo-home-1-hero-area-top-story .echo-story-text h4 a {
        font-size: 16px;
        line-height: 1.15;
    }
}

/* Móvil */
@media (max-width: 767px) {
    .echo-home-1-hero-area-top-story .echo-story-text h4 a {
        font-size: 15px;
        line-height: 1.2;
    }
}


/* --------------------------------------------------
   Vídeos verticales estilo reels / noticias
   -------------------------------------------------- */

.video-vertical-card {
    position: relative;
}

/* Contenedor 9:16 */
.video-vertical-media {
    position: relative;
    display: block;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: 6px;
}

/* Imagen */
.video-vertical-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.video-vertical-media:hover img {
    transform: scale(1.05);
}

/* Degradado para legibilidad */
.video-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,.80) 0%,
        rgba(0,0,0,.45) 35%,
        rgba(0,0,0,.10) 55%,
        rgba(0,0,0,0) 70%
    );
    z-index: 1;
}

/* Título dentro del vídeo (zona media-baja) */
.video-title-inside {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 64px;
    color: #fff;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 600;
    z-index: 2;

    /* limitar a 3 líneas (estándar + webkit) */
    display: -webkit-box;
    overflow: hidden;

    line-clamp: 3;              /* estándar */
    -webkit-line-clamp: 3;      /* compatibilidad */
    -webkit-box-orient: vertical;
}

/*
.video-title-inside {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 64px;
    color: #fff;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 600;
    z-index: 2;

    /* limitar a 3 líneas * /
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
    */

/* Play */
/*
.video-play {
    position: absolute;
    bottom: 18px;
    left: 16px;
    font-size: 18px;
    color: #fff;
    opacity: .9;
    z-index: 2;
}
    */

/* --------------------------------------------------
   Botón PLAY central potente
   -------------------------------------------------- */

   /*
.video-play {
    position: absolute;
    inset: 0;
    z-index: 3;

    display: flex;
    align-items: center;
    justify-content: center;

    pointer-events: none; /* el click sigue siendo del card * /

    font-size: 64px;
    color: #fff;

    opacity: 0.95;
    line-height: 1;

    transform: translateX(4px);

    transition: opacity .25s ease, transform .25s ease;
}

/* Círculo detrás del play * /
.video-play::before {
    content: '';
    position: absolute;

    width: 84px;
    height: 84px;
    border-radius: 50%;

    background: rgba(0,0,0,.45);
    backdrop-filter: blur(2px);
}
    */

    /* --------------------------------------------------
   Botón PLAY central (SVG, centrado real)
   -------------------------------------------------- */

.video-play {
    position: absolute;
    inset: 0;
    z-index: 3;

    display: flex;
    align-items: center;
    justify-content: center;

    pointer-events: none;
    opacity: 0.95;

    transition: opacity .25s ease, transform .25s ease;
}

.video-play-icon {
    width: 84px;
    height: 84px;
}

/* Círculo */
.video-play-icon circle {
    fill: rgba(0, 0, 0, 0.45);
}

/* Triángulo */
.video-play-icon polygon {
    fill: #fff;
}

/* Hover desktop: ligero zoom */
@media (hover: hover) {
    .video-vertical-media:hover .video-play {
        transform: scale(1.05);
    }
}


/* Duración */
.video-duration {
    position: absolute;
    bottom: 18px;
    right: 16px;
    font-size: 14px;
    color: #fff;
    opacity: .85;
    z-index: 2;
}

.echo-video-vertical-area {
    padding-top: 80px;
    padding-bottom: 80px;
}


@media (max-width: 768px) {
    .echo-video-vertical-area {
        padding: 60px 0;
    }
}

.video-vertical-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* --------------------------------------------------
   Estado reproduciendo: ocultar overlays
   -------------------------------------------------- */

.video-vertical-media.is-playing .video-play,
.video-vertical-media.is-playing .video-title-inside,
.video-vertical-media.is-playing .video-duration {
    opacity: 0;
    pointer-events: none;
}

/* Transición suave */
.video-play,
.video-title-inside,
.video-duration {
    transition: opacity .25s ease;
}

/* --------------------------------------------------
   Móvil: el play NUNCA se oculta
   -------------------------------------------------- */

@media (hover: none) {
    .video-vertical-media.is-playing .video-play {
        opacity: 1;
        pointer-events: none;
    }
}


/* --------------------------------------------------
   Modal vídeo vertical: ajuste a viewport
   -------------------------------------------------- */

#videoModal .modal-dialog {
    max-width: 420px;            /* ancho tipo reel */
    margin: 1.75rem auto;
}

#videoModal .modal-content {
    background: #000;
}

#videoModal .modal-body {
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* El truco importante */
#videoModal video {
    max-height: 80vh;            /* NUNCA más alto que la pantalla */
    width: auto;
    max-width: 100%;
    object-fit: contain;
}


@media (max-width: 576px) {
    #videoModal .modal-dialog {
        max-width: 100%;
        margin: 0;
    }

    #videoModal video {
        max-height: 100vh;
    }
}

/* --------------------------------------------------
   Botón cerrar modal vídeo (reels)
   -------------------------------------------------- */

.video-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;

    width: 36px;
    height: 36px;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;

    font-size: 20px;
    line-height: 36px;
    text-align: center;

    cursor: pointer;
}

.video-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* --------------------------------------------------
   DM — Cita (anular capitalización del theme)
   -------------------------------------------------- */

.echo-quote-area h2.quote-title {
    text-transform: none !important;
}

.echo-quote-area h2.quote-title::first-letter {
    text-transform: none !important;
}


/* --------------------------------------------------
   Sidebar / Banda derecha — Top stories / Relacionados
   -------------------------------------------------- */

.echo-home-1-hero-area-top-story .echo-story-text h6 {
    font-size: 14px;      /* antes ~16–17px */
    line-height: 1.25;    /* menos aire vertical */
    font-weight: 500;
}

/* Tablet */
@media (max-width: 991px) {
    .echo-home-1-hero-area-top-story .echo-story-text h6 {
        font-size: 13.5px;
        line-height: 1.3;
    }
}

/* Móvil */
@media (max-width: 767px) {
    .echo-home-1-hero-area-top-story .echo-story-text h6 {
        font-size: 13px;
        line-height: 1.35;
    }
}

/* --------------------------------------------------
   DM — Cl Blocks destacado (Obispo / Carta)
   -------------------------------------------------- */

.dm-cl-featured {
    background-color: var(--brand-blue);
    padding-top: 36px;
    padding-bottom: 36px;
}

/* Reducimos aire respecto a otras sections */
@media (max-width: 767px) {
    .dm-cl-featured {
        padding-top: 24px;
        padding-bottom: 24px;
    }
}

/* Caja interior en blanco */
.dm-cl-featured .echo-cl-blocks-full-content {
    background-color: #ffffff;
    padding: 32px;
}

/* Ajuste de padding responsive */
@media (max-width: 767px) {
    .dm-cl-featured .echo-cl-blocks-full-content {
        padding: 20px;
    }
}
/* --------------------------------------------------
   DM — Cl Blocks institucional
   -------------------------------------------------- */

/* Sección exterior (blanco, poco aire) */
section.echo-cl-blocks-area.dm-cl-featured {
    background-color: #ffffff !important;
    padding-top: 32px !important;
    padding-bottom: 32px !important;
}

/* Bloque interior en azul corporativo */
section.echo-cl-blocks-area.dm-cl-featured .echo-cl-blocks-full-content {
    background-color: var(--brand-blue);
    padding: 32px;
}

/* Responsive */
@media (max-width: 767px) {
    section.echo-cl-blocks-area.dm-cl-featured {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }

    section.echo-cl-blocks-area.dm-cl-featured .echo-cl-blocks-full-content {
        padding: 20px;
    }
}

/* --------------------------------------------------
   Texto sobre fondo azul
   -------------------------------------------------- */

section.echo-cl-blocks-area.dm-cl-featured,
section.echo-cl-blocks-area.dm-cl-featured p,
section.echo-cl-blocks-area.dm-cl-featured a,
section.echo-cl-blocks-area.dm-cl-featured h3 {
    color: #ffffff;
}

/* Título */
section.echo-cl-blocks-area.dm-cl-featured h3 a {
    color: #ffffff;
}

/* Autor en blanco con menos peso */
section.echo-cl-blocks-area.dm-cl-featured .echo-cl-blocks-title p {
    opacity: 0.9;
}

/* Botón leer más */
section.echo-cl-blocks-area.dm-cl-featured .home-2-read-more-btn a {
    color: #ffffff;
    border-color: rgba(255,255,255,0.4);
}

section.echo-cl-blocks-area.dm-cl-featured .home-2-read-more-btn a:hover {
    opacity: 0.85;
}

/**
 * --------------------------------------------------
 * CF Featured — Dark mode
 * --------------------------------------------------
 */

html[data-theme=dark] section.echo-cl-blocks-area.dm-cl-featured {
    background: linear-gradient(
        180deg,
        #0b1220,
        #0f172a
    );
}

/* Texto general */
html[data-theme=dark] section.echo-cl-blocks-area.dm-cl-featured,
html[data-theme=dark] section.echo-cl-blocks-area.dm-cl-featured p,
html[data-theme=dark] section.echo-cl-blocks-area.dm-cl-featured a,
html[data-theme=dark] section.echo-cl-blocks-area.dm-cl-featured h3 {
    color: rgba(255, 255, 255, 0.82);
}

/* Título */
html[data-theme=dark] section.echo-cl-blocks-area.dm-cl-featured h3 a {
    color: rgba(255, 255, 255, 0.9);
}

/* Autor / meta */
html[data-theme=dark] section.echo-cl-blocks-area.dm-cl-featured
.echo-cl-blocks-title p {
    opacity: 0.75;
}

/* Botón leer más */
html[data-theme=dark] section.echo-cl-blocks-area.dm-cl-featured
.home-2-read-more-btn a {
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.25);
}

html[data-theme=dark] section.echo-cl-blocks-area.dm-cl-featured
.home-2-read-more-btn a:hover {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.45);
}


/* Ocultamos ambos por defecto */
.rts-go-dark,
.rts-go-light {
    display: none;
}

/* Cuando estamos en modo oscuro → mostrar SOL */
html[data-theme="dark"] .rts-go-light {
    display: inline-block;
}

/* Cuando NO estamos en modo oscuro → mostrar LUNA */
html:not([data-theme="dark"]) .rts-go-dark {
    display: inline-block;
}



/* --------------------------------------------------
   DM — Subrayado animado blanco SOLO en hover
   -------------------------------------------------- */

section.echo-cl-blocks-area.dm-cl-featured .title-hover {
    background-size: 0% 2px;
    background-image: linear-gradient(#ffffff, #ffffff);
}

section.echo-cl-blocks-area.dm-cl-featured .title-hover:hover {
    background-size: 100% 2px;
}

/**
 * ------------------------------------------------------------
 * Header Banner — Avisos / Llamadas de interés
 * ------------------------------------------------------------
 */

.echo-header-top.echo-header-banner {
    background: linear-gradient(
        90deg,
        rgba(30, 58, 138, 0.06),
        rgba(30, 58, 138, 0.10)
    );
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 10px 0;
}

.echo-header-banner .banner-text {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1e3a8a; /* azul corporativo */
    letter-spacing: 0.02em;
}

.echo-header-top.echo-header-banner {
    margin-top: 8px;   /* ajusta: 6–12px suele ir bien */
}

/**
 * ------------------------------------------------------------
 * Header Banner — Dark mode
 * ------------------------------------------------------------
 */

/**
 * ------------------------------------------------------------
 * Header Banner — Dark mode (Echo-style)
 * ------------------------------------------------------------
 */

html[data-theme=dark] .echo-header-top.echo-header-banner {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.04),
        rgba(255, 255, 255, 0.08)
    );
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

html[data-theme=dark] .echo-header-banner .banner-text {
    color: #ffffffcc;
}


/* --------------------------------------------------
   Listado de artículos — reducir titular
   -------------------------------------------------- */

.echo-list-title > a.title-hover {
    font-size: 1.85rem;   /* ~20px */
    line-height: 1.35;
}

/* --------------------------------------------------
   Sidebar institucional - bullets
   -------------------------------------------------- */

/* --------------------------------------------------
   Sidebar — efecto hover tipo menú superior
   -------------------------------------------------- */

.sidebar-menu .nav-item a {
    position: relative;
    display: inline-block;
    padding-left: 0;
    color: inherit;
    transition: all 0.5s ease;
}

/* Bullet oculto por defecto */
.sidebar-menu .nav-item a::before {
    content: "•";
    position: absolute;
    left: 0;
    opacity: 0;
    transform: translateX(-6px);
    transition: all 0.5s ease;
    color: var(--color-primary, #4a6cf7); /* azul Echo */
}

/* Hover */
.sidebar-menu .nav-item a:hover {
    padding-left: 14px;
    color: var(--color-primary, #4a6cf7);
}

/* Bullet visible al hover */
.sidebar-menu .nav-item a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* --------------------------------------------------
   Separador de menú
   -------------------------------------------------- */

.menu-separator {
    height: 1px;
    margin: 8px 12px;  
    margin: 6px 0;
    background-color: rgba(255,255,255,0.15);
    pointer-events: none;
}

/* Ajuste específico para mobile si quieres */
.mobile-menu .menu-separator {
    background-color: rgba(255,255,255,0.2);
}

.menu-separator {
    display: block;
}


/* --------------------------------------------------
   Sidebar contextual — Dark mode
   -------------------------------------------------- */

html[data-theme="dark"] .sidebar-block {
    color: rgba(255, 255, 255, 0.82);
}

html[data-theme="dark"] .sidebar-block h5,
html[data-theme="dark"] .sidebar-block h6 {
    color: rgba(255, 255, 255, 0.9);
}

html[data-theme="dark"] .sidebar-menu .nav-item a {
    color: rgba(255, 255, 255, 0.78);
}

/* Hover coherente en dark */
html[data-theme="dark"] .sidebar-menu .nav-item a:hover {
    color: #7aa2ff; /* azul ligeramente más luminoso */
}

/* Bullet en dark */
html[data-theme="dark"] .sidebar-menu .nav-item a::before {
    color: #7aa2ff;
}



/* ==================================================
   DM — Feature Area (compacto y editorial)
   ================================================== */

/* Contenedor general */
.echo-feature-area-last-content-text {
    margin-bottom: 8px;
}

.echo-feature-area-last-content-text h3 {
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.echo-feature-area-last-content-text h3 a.title-hover {
    display: block;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 600;
}

/* --------------------------------------------------
   META (minutos / views)
   -------------------------------------------------- */

.echo-feature-area-last-content-read-view {
    margin-top: 2px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.echo-feature-area-last-content-read-view a {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    opacity: 0.85;
    text-decoration: none;
}

.echo-feature-area-last-content-read-view i {
    font-size: 14px;
    opacity: 0.9;
}

/* --------------------------------------------------
   TABLET
   -------------------------------------------------- */

@media (max-width: 991px) {

    .echo-feature-area-last-content-text h3 a.title-hover {
        font-size: 17px;
        line-height: 1.25;
    }

    .echo-feature-area-last-content-read-view {
        font-size: 13px;
        gap: 14px;
    }
}

/* --------------------------------------------------
   MÓVIL
   -------------------------------------------------- */

@media (max-width: 767px) {

    .echo-feature-area-last-content-text h3 a.title-hover {
        font-size: 15px;
        line-height: 1.3;
    }

    .echo-feature-area-last-content-read-view {
        font-size: 12.5px;
        gap: 12px;
    }
}

/* --------------------------------------------------
   DARK MODE
   -------------------------------------------------- */

html[data-theme="dark"] 
.echo-feature-area-last-content-text h3 a.title-hover {
    color: rgba(255,255,255,0.9);
}

html[data-theme="dark"] 
.echo-feature-area-last-content-read-view a {
    color: rgba(255,255,255,0.75);
}

/* --------------------------------------------------
   Article — Author Top avanzado
-------------------------------------------------- */

.article-author-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 18px 0 28px;
}

.article-author-top .author-avatar img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.article-author-top .author-name a {
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
}

.article-author-top .author-extra {
    margin-top: 4px;
    font-size: 13px;
    opacity: 0.8;
}

.article-author-top .meta-item {
    margin-right: 15px;
}

.article-author-top .meta-item i {
    margin-right: 6px;
}

/* Dark mode */
html[data-theme=dark] .article-author-top {
    color: rgba(255,255,255,0.85);
}

html[data-theme=dark] .article-author-top a {
    color: rgba(255,255,255,0.9);
}

html[data-theme=dark] .article-author-top a:hover {
    color: var(--brand-blue);
}


/* --------------------------------------------------
   Sidebar artículo — relacionados
   Solo afecta al interior del artículo
-------------------------------------------------- */

.sidebar-relacionados .echo-story-picture {
    height: 90px;           /* ajustable */
    overflow: hidden;
}

.sidebar-relacionados .echo-story-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ==========================================================
   Dibujos Fano
   ========================================================== */

/* ---------------------------------
   Select año
--------------------------------- */

.dibujo-year-select-wrapper {
    margin-bottom: 30px;
}

.dibujo-year-select {
    padding: 10px 18px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fff;
    color: #111;
    min-width: 180px;
}

[data-theme="dark"] .dibujo-year-select {
    background: #1f1f1f;
    border: 1px solid #444;
    color: #eee;
}


/* ---------------------------------
   Item dibujo
--------------------------------- */

.dibujo-item {
    margin-bottom: 45px;
    gap: 50px;              /* 👈 AQUÍ el aire */
}

/* Imagen */

.dibujo-img {
    flex: 0 0 280px;
}

.dibujo-img img {
    width: 100%;
    height: auto;
    border: 3px solid #f4c200;
    border-radius: 6px;
}

/* Texto */

.dibujo-text {
    flex: 1;
}

.dibujo-cita {
    font-size: 20px;
    line-height: 1.6;
    font-weight: 500;
    margin-bottom: 15px;
}

.dibujo-fecha {
    font-size: 14px;
    opacity: .75;
}


/* ---------------------------------
   Responsive
--------------------------------- */

@media (max-width: 991px) {

    .dibujo-item {
        flex-direction: column;
        gap: 20px;
    }

    .dibujo-img {
        flex: unset;
        max-width: 320px;
    }
}


/* ---------------------------------
   Dark mode
--------------------------------- */

[data-theme="dark"] .dibujo-cita {
    color: #eee;
}

[data-theme="dark"] .dibujo-fecha {
    color: #aaa;
}

[data-theme="dark"] .dibujo-img img {
    border-color: #d4a017;
}


html[data-theme="dark"] .modal-content {
    background-color: #1a1d24 !important;
    color: #ffffff;
}

/* Botón cerrar modal según modo */
html[data-theme="dark"] .modal .btn-close {
    filter: invert(1);
}

/* --------------------------------------------------
   Latest slider – forzar imagen a ocupar todo
-------------------------------------------------- */

.echo-latest-news-img {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.echo-latest-news-img img.img-hover {
    width: 100%;
    height: 100% !important;   /* fuerza sobre height:auto */
    object-fit: cover;
    object-position: center;
    display: block;
}
