/* ==========================================================
   CONTENEDORES
========================================================== */

.sde-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0; /* ANTES: 0 15px — esto desalineaba la categoría e imagen */
}

/* Fullwidth superior: categoría + contextual + imagen */
.sde-single-header-fullwidth {
    max-width: 1320px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Bloque superior completamente sin padding lateral */
.sde-header-editorial,
.sde-meta-primary-tag,
.sde-single-thumb {
    padding-left: 0!important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}



/* ==========================================================
   SINGLE LAYOUT WRAPPER
   ========================================================== */

.sde-single-wrapper {
    width: 100%;
    max-width: 1320px; /* Mantener consistente con .sde-container del tema */
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .sde-single-wrapper {
        padding: 0 16px;
    }
}

/* GRID DE DOS COLUMNAS */
.sde-two-columns {
    display: grid;
    grid-template-columns: minmax(0, 825px) minmax(0, 1fr);
    gap: 64px;
}

.sde-single-article {
    max-width: 825px;
}

/* TITULO */
.sde-single-title {
    font-family: "MJRT", serif;
    font-size: 2.5rem;
    line-height: 2.75rem;
    margin-bottom: 16px;
}

/* EXCERPT */
.sde-single-excerpt {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 24px;
}

/* META PRIMARY TAG */
.sde-meta-primary-tag {
    font-family: "MarcinAnt", serif;
    font-size: 12px;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 12px;
}

/* META BLOCK – alineado EXACTO a la izquierda de la foto */
.sde-single-meta-block {
    max-width: 1320px;
    margin: 30px auto 40px auto;
    padding: 0;                    /* ← sin padding */
    display: flex;
    justify-content: flex-start;   /* alineación izquierda */
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid #d8d8d8;
    padding-bottom: 20px;
}


.sde-meta {
    font-family: "MarcinAnt", serif;
    font-size: 11px;
    text-transform: uppercase;
    color: #222;
    letter-spacing: 0.5px;
}

.sde-meta-date {
    display: inline-block;
}

.sde-meta-time {
    display: inline-block;
}

.sde-meta-time::before {
    content: ' • ';
    margin: 0 6px;
    color: #666;
}

/* BOTONES */
.sde-single-share {
    display: flex;
    gap: 10px;
    position: relative;
    padding-left: 20px;
}

.sde-single-share::before {
    content: '|';
    color: #ccc;
    position: absolute;
    left: 0;
    font-size: 14px;
    line-height: 28px;
}

.sde-share-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f2f2f2;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: background 0.2s;
}

.sde-share-btn:hover {
    background: #e0e0e0;
}

.sde-share-btn svg {
    width: 16px;
    height: 16px;
    display: block;
    color: #000;
}

.sde-share-btn:hover svg {
    color: #444;
}

/* ==========================================================
   IMAGEN DESTACADA
========================================================== */

.sde-single-thumb {
    margin-bottom: 0;
}

.sde-single-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

/* Imagen destacada full-width en mobile */
@media (max-width: 768px) {
    .sde-single-header-fullwidth {
        margin-left: calc(-1 * (100vw - 100%) / 2);
        margin-right: calc(-1 * (100vw - 100%) / 2);
        width: 100vw;
        max-width: 100vw;
        padding-left: 0;
        padding-right: 0;
    }
    
    .sde-hero-media,
    .sde-single-thumb {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    .sde-single-thumb img {
        width: 100%;
        height: auto;
        object-fit: cover;
        display: block;
    }
}

/* ==========================================================
   CONTENIDO
========================================================== */

.sde-single-content {
    margin-bottom: 40px;
}

.sde-single-content p,
.sde-single-content li {
    font-family: "MJRT ROMAN", sans-serif;
    font-size: 1.375rem;
    font-weight: 400;
    line-height: 2rem;
    color: #111111;
    margin-bottom: 1.2em;
}

/* ==========================================================
   EN ESTA NOTA
========================================================== */

.sde-en-esta-nota {
    margin-top: 40px;
    padding-top: 20px;
}

.sde-en-esta-nota::after {
    content: '';
    display: block;
    width: 100%;
    height: 4px;
    background: #000;
    margin-top: 16px;
}

.sde-note-title {
    font-family: "MJRT", serif;
    font-weight: 900;
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: #111;
    padding-bottom: 8px;
    border-bottom: 1px solid #111;
}

.sde-note-tags {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.sde-note-tags li:not(:last-child)::after {
    content: ' - ';
    margin: 0 8px;
    color: #111;
}

.sde-note-tags a {
    font-family: "MarcinAnt", serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #111 !important;
}

/* ==========================================================
   RELACIONADAS
========================================================== */

.sde-relacionadas {
    margin-top: 60px;
    padding-bottom: 30px;
    border-bottom: 1px solid #111;
}

.sde-block-title {
    font-family: "MJRT", serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: #000;
    margin-bottom: 20px;
}

.sde-rel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.sde-rel-item {
    display: block;
}

/* Separadores entre items de noticias relacionadas */
.sde-rel-grid .sde-item-sep {
    grid-column: 1 / -1;
    border: 0;
    border-top: 1px solid #e6e6e6;
    margin: 12px 0;
    height: 1px;
}

.sde-rel-item a {
    display: block;
    text-decoration: none;
}

.sde-rel-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 8px;
}

.sde-rel-title {
    font-family: "MJRT", serif !important;
    font-size: 1.05rem;
    font-weight: 900;
    color: #000 !important;
    margin-top: 8px;
}

/* ==========================================================
   VIDEOS SUGERIDOS
========================================================== */

.sde-videos-sugeridos {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #111;
}

.sde-videos-row {
    display: flex;
    gap: 24px;
    margin-top: 20px;
}

.sde-video-item {
    flex: 1;
}

.sde-video-embed {
    width: 100%;
    margin-bottom: 12px;
}

.sde-video-embed .embed-wrap {
    width: 100%;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.sde-video-embed .embed-wrap iframe,
.sde-video-embed .embed-wrap video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.sde-video-title {
    margin-top: 8px;
    font-size: 1.05rem;
    line-height: 1.4;
}

.sde-video-title a {
    font-family: "MJRT", serif !important;
    font-weight: 900;
    color: #000 !important;
    text-decoration: none;
}

.sde-video-title a:hover {
    text-decoration: underline;
}

/* ==========================================================
   SIDEBAR
========================================================== */

.sde-sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding-left: 15px;
    padding-right: 15px;
}

@media (max-width: 768px) {
    .sde-sidebar {
        padding: 0;
        margin: 0;
        width: 100%;
    }
}

.sde-sidebar-section {
    margin-bottom: 40px;
}

.sde-sidebar-section:first-child {
    padding-top: 40px;
}

.sde-sidebar-section:nth-child(2) {
    padding-bottom: 40px;
}

.sde-sidebar-title {
    font-family: "MJRT", serif !important;
    font-weight: 900 !important;
     text-transform: uppercase;
    margin-bottom: 12px;
    font-size: 0.75rem!important;
    padding-bottom: 8px;
    border-bottom: 1px solid #000;
    color: #111 !important;
}

.sde-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sde-sidebar-list li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e6e6e6;
}

.sde-sidebar-list li:last-child {
    border-bottom: none;
}

.sde-sidebar-list a {
    font-family: "MJRT", serif !important;
    font-weight: 900 !important;
    font-size: 0.875rem !important;
    line-height: 1.125rem !important;
    color: #000 !important;
    text-decoration: none;
    display: block;
}

.sde-sidebar-list a:hover {
    text-decoration: underline;
}

.sde-sidebar-item-title {
    font-family: "MJRT", serif !important;
    font-size: 0.75rem;
    line-height: 0.9rem;
    font-weight: 900 !important;
    color: #111 !important;
    text-decoration: none;
    display: block;
}

.sde-sidebar-item-title:hover {
    text-decoration: underline;
}

.sde-sidebar-meta {
    font-family: "MarcinAnt", serif;
    font-size: 11px;
    color: #ED3338;
    margin-top: 2px;
}

/* ==========================================================
   HEADER EDITORIAL
========================================================== */

.sde-header-editorial {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 24px;
    padding-bottom: 4px;
    border-bottom: 1px solid #111;
    position: relative;
    z-index: 2;
}

.sde-header-editorial-right {
    margin-top: -4px;
}

.sde-header-editorial-left {
    flex: 1;
}

.sde-header-editorial-right {
    flex: 2;
    display: flex;
    justify-content: flex-end;
}

.sde-header-category {
    color: #000 !important;
    font-family: "MJRT", serif;
    font-weight: 900;
    font-size: 26px;
    padding-bottom: 4px;
    border-bottom: 4px solid #000;
    text-decoration: none;
}

.sde-header-contextual {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: auto;          /* ← ya no ocupa todo el ancho */
    margin-left: auto;    /* ← empuja el nav hacia la derecha */
}

.sde-header-contextual ul {
    display: flex;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
    white-space: nowrap;      /* ← evita saltos de línea */
}


.sde-header-contextual a {
    font-family: "MarcinAnt", serif;
    text-transform: uppercase;
    font-size: 11px;
    color: #111 !important;
    text-decoration: none;
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1024px) {
    .sde-two-columns {
        grid-template-columns: 1fr;
    }
    
    .sde-single-title {
        font-size: 2rem;
    }
    
    .sde-single-title,
    .sde-single-excerpt,
    .sde-single-meta-block {
        padding-left: 40px;
        padding-right: 40px;
    }

    .sde-rel-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sde-videos-row {
        flex-wrap: wrap;
    }
    
    .sde-video-item {
        flex: 0 0 calc(50% - 12px);
    }
}

@media (max-width: 768px) {
    .sde-single-title {
        font-size: 1.7rem;
        line-height: 2rem;
    }

    .sde-single-title,
    .sde-single-excerpt,
    .sde-single-meta-block {
        padding-left: 24px;
        padding-right: 24px;
    }

    .sde-rel-grid {
        grid-template-columns: 1fr;
    }

    .sde-videos-row {
        flex-direction: column;
    }
    
    .sde-video-item {
        flex: 1 1 100%;
    }
    
    .sde-relacionadas,
    .sde-videos-sugeridos,
    .sde-en-esta-nota {
        margin-top: 40px;
        margin-bottom: 40px;
    }

    /* Header editorial - respetar ancho del wrapper */
    .sde-header-editorial {
        flex-direction: column;
        align-items: flex-start;
        border-bottom: 4px solid #000;
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        max-width: 100%;
    }

    .sde-header-editorial-right {
        width: 100%;
        border-bottom: 1px solid #000;
    }
    
    .sde-header-contextual ul {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    /* Hero text - remover paddings heredados */
    .sde-hero-text {
        padding-left: 0;
        padding-right: 0;
        width: 100%;
        max-width: 100%;
    }
    
    /* Meta block - remover paddings/margins heredados */
    .sde-single-meta-block {
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        max-width: 100%;
    }
}



.sde-hero-media {
    padding: 0;
    margin: 0;
}

.sde-single-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

/* Bloque A: texto con padding */
.sde-hero-text {
    padding: 40px 100px;
}

@media (max-width: 768px) {
    .sde-hero-text {
        padding: 24px 0;
    }
}

/* ==========================================================
   VIDEOS DESTACADOS EN SINGLE
========================================================== */

.sde-videos-single-section {
    background: #ffffff;
    padding: 40px 0;
    margin-top: 40px;
}

.sde-videos-single__header {
    margin-bottom: 24px;
}

.sde-videos-single__title {
    font-family: "MJRT BLACK", "MJRT", serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: #000 !important;
}

.sde-videos-single__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.sde-videos-single__item {
    display: block;
}

/* Títulos de videos en negro con MJRT Black */
.sde-videos-single__item .post-title a {
    font-family: "MJRT BLACK", "MJRT", serif !important;
    font-size: 1rem !important;
    font-weight: 900 !important;
    color: #000 !important;
    text-decoration: none;
    line-height: 1.25;
    display: block;
    margin-top: 6px;
}

.sde-videos-single__item .post-title a:hover {
    color: #333 !important;
    text-decoration: underline;
}

/* Responsive para videos single */
@media (max-width: 1024px) {
    .sde-videos-single__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sde-videos-single__grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   Inline related block inside single content
   ========================================================== */

.sde-single-article .sde-related-inline {
    margin: 32px 0;
}

.sde-single-article .sde-related-inline__sep {
    border: 0;
    border-top: 1px solid #000;
    margin: 4px 0 16px;
}

.sde-single-article .sde-related-inline__sep--bottom {
    margin-top: 16px;
    margin-bottom: 0;
}

/* Asegurar que el item list se integre bien al ancho del artículo */
.sde-single-article .sde-related-inline .sde-mixed3__item--list {
    margin: 0;
}

/* ==========================================================
   Fix: ocultar hr externos alrededor del bloque inline
   ========================================================== */

.sde-single-article .sde-related-inline-wrapper {
    margin: 32px 0;
}

/* Ocultar hr ANTERIOR */
.sde-single-article hr:last-of-type {
    display: block;
}

.sde-single-article hr + .sde-related-inline-wrapper {
    display: none;
}

/* Ocultar hr POSTERIOR */
.sde-single-article .sde-related-inline-wrapper + hr {
    display: none;
}

/* ==========================================================
   INLINE RELATED — MOBILE LAYOUT
   ========================================================== */

@media (max-width: 768px) {
    .sde-single-article .sde-related-inline .sde-mixed3__item--list {
        display: grid;
        grid-template-columns: 96px 1fr;
        gap: 12px;
        align-items: start;
    }

    .sde-single-article .sde-related-inline .sde-mixed3__thumb-list {
        flex-shrink: 0;
    }

    .sde-single-article .sde-related-inline .sde-mixed3__thumb-list img {
        width: 96px;
        height: 96px;
        object-fit: cover;
        display: block;
        border-radius: 2px;
    }

    .sde-single-article .sde-related-inline .sde-mixed3__body {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .sde-single-article .sde-related-inline .sde-mixed3__meta {
        margin-bottom: 6px;
    }

    .sde-single-article .sde-related-inline .sde-mixed3__title {
        margin: 0;
    }

    .sde-single-article .sde-related-inline .sde-mixed3__title a {
        font-size: 1rem;
        line-height: 1.25;
    }

    .sde-single-article .sde-related-inline .cat {
        font-size: 0.7rem;
    }
}

/* ==========================================================
   SINGLE — Responsive meta block (mobile alignment left)
   ========================================================== */

@media (max-width: 768px) {

    /* Contenedor general del meta */
    .sde-single-meta-block {
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* ← ALINEADO A LA IZQUIERDA */
        gap: 6px;
        margin-bottom: 20px;
    }

    /* Fecha y hora limpias, sin márgenes heredados */
    .sde-single-meta-date,
    .sde-single-meta-time {
        margin: 0;
        padding: 0;
        line-height: 1.3;
    }

    /* Ocultar separador vertical en mobile */
    .sde-single-meta-sep {
        display: none !important;
    }

    /* Redes sociales debajo de fecha y hora */
    .sde-single-meta-social {
        display: flex;
        gap: 8px;
        margin-top: 8px;
    }

    /* Ajuste de botones para que no ocupen demasiado */
    .sde-single-meta-social a {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

