/* ==========================================================================
   MEXNOTICIAS - SINGLE POST STYLESHEET
   ========================================================================== */

.mex-single-site-main {
    background-color: #ffffff;
    padding-top: 20px;
    padding-bottom: 50px;
}

.mex-single-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

.mex-single-article {
    min-width: 0;
}

/* 1. CATEGORY BADGE */
.mex-single-badge-container {
    margin-bottom: 12px;
}

.mex-single-badge {
    display: inline-block;
    background-color: #ff005b;
    color: #ffffff !important;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 12px;
    line-height: 1;
    border-radius: 2px;
    transform: skewX(-15deg);
    transform-origin: center center;
    text-decoration: none;
}

/* 2. TITLE H1 */
.mex-single-title {
    font-family: 'Oswald', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #111111;
    line-height: 1.2;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    word-break: break-word;
}

/* 3. META (FECHA) */
.mex-single-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666666;
    font-size: 13px;
    margin-bottom: 18px;
}

.mex-single-meta-icon {
    color: #58d0f5;
}

/* 4. FEATURED IMAGE */
.mex-single-featured-image {
    width: 100%;
    margin-bottom: 25px;
    border-radius: 4px;
    overflow: hidden;
}

.mex-single-img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: cover;
}

/* CONTENEDOR FLEX CONTENT + SHARE */
.mex-single-content-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    position: relative;
}

/* 5. SOCIAL SHARE (STICKY) */
.mex-single-share-aside {
    position: sticky;
    top: 90px;
    flex-shrink: 0;
    z-index: 10;
}

.mex-share-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mex-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #ffffff !important;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mex-share-btn:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.mex-share-fb { background-color: #1877f2; }
.mex-share-x  { background-color: #000000; }
.mex-share-wa { background-color: #25d366; }
.mex-share-th { background-color: #000000; }

/* 6. CONTENT BODY */
.mex-single-content-body {
    flex: 1;
    min-width: 0;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #222222;
}

.mex-single-content-body p {
    margin-top: 0;
    margin-bottom: 18px;
}

.mex-single-content-body ul {
    margin: 0 0 18px 20px;
    padding: 0;
    list-style-type: disc;
}

.mex-single-content-body li {
    margin-bottom: 6px;
}

/* 7. TAGS / TEMAS RELACIONADOS */
.mex-single-tags {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #eeeeee;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.mex-single-tags-label {
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #111111;
    text-transform: uppercase;
}

.mex-single-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mex-single-tag-link {
    color: #ff005b !important;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.mex-single-tag-link:hover {
    color: #111111 !important;
}

/* 8. SECCIÓN RELACIONADOS */
.mex-single-related {
    margin-top: 30px;
}

/* METADATOS DE TARJETAS (CATEGORÍA ROSA + FECHA GRIS) */
.mex-grid-meta {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: #777777;
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
    line-height: 1.2;
}

.mex-grid-meta span {
    color: #ff005b;
}

/* PUBLICIDAD EZOIC EN SECCIÓN RELACIONADOS */
.mex-single-related-ad-slot {
    width: 100%;
    min-height: 90px!important;
    margin: 10px 0;
    background-image: linear-gradient(120deg, #fdfbfb 0%, #FCFCFC 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    overflow: hidden;
    box-sizing: border-box;
}

.mex-single-related-ad-placeholder {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.ezoic-ad {
	min-height: 90px!important;
}
.mex-single-related-header {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.mex-single-related-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #181818;
    transform: translateY(-50%);
    z-index: 1;
}

.mex-single-related-title {
    display: inline-block;
    background-color: #ff005b;
    color: #ffffff;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 5px 15px;
    line-height: 1;
    border-radius: 2px;
    transform: skewX(-15deg);
    transform-origin: center center;
    position: relative;
    z-index: 2;
}

/* GRID 3x3 DE ENTRADAS RELACIONADAS */
.mex-single-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 15px;
}

.mex-single-related-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.mex-single-related-thumb {
    width: 100%;
    height: 120px;
    border-radius: 3px;
    overflow: hidden;
    background: #eee;
}

.mex-single-related-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.mex-single-related-card-title {
    margin: 0 !important;
    padding: 0 !important;
}

.mex-single-related-card-title a {
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #303030;
    text-decoration: none;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* SIDEBAR DERECHO */
.mex-single-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mex-sidebar-ad-slot {
    width: 300px;
    min-height: 90px!important;
    margin: 0 auto;
    background-image: linear-gradient(120deg, #fdfbfb 0%, #FCFCFC 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    overflow: hidden;
    box-sizing: border-box;
    flex-shrink: 0;
}

.mex-sidebar-ad-placeholder {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.mex-sidebar-widget-header {
    width: 100%;
    text-align: center;
    margin-bottom: 12px;
    position: relative;
}

.mex-sidebar-widget-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #181818;
    transform: translateY(-50%);
    z-index: 1;
}

.mex-sidebar-widget-title {
    display: inline-block;
    background-color: #ff005b;
    color: #ffffff;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 12px;
    line-height: 1;
    border-radius: 2px;
    transform: skewX(-15deg);
    transform-origin: center center;
    position: relative;
    z-index: 2;
}

.mex-sidebar-widget-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mex-sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.mex-sidebar-thumb {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 3px;
    overflow: hidden;
    background: #eeeeee;
}

.mex-sidebar-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.mex-sidebar-content {
    flex: 1;
    min-width: 0;
}

.mex-sidebar-item-title {
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
}

.mex-sidebar-item-title a {
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #303030;
    text-decoration: none;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* RESPONSIVE */
@media (max-width: 1023px) {
    .mex-single-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 767px) {
    .mex-single-content-container {
        flex-direction: column;
    }
    
    .mex-single-share-aside {
        position: static;
        width: 100%;
        margin-bottom: 15px;
    }

    .mex-share-buttons {
        flex-direction: row;
        justify-content: flex-start;
    }

    .mex-single-title {
        font-size: 24px;
    }

    .mex-single-related-grid {
        grid-template-columns: 1fr;
    }

    .mex-sidebar-ad-slot {
        width: 100%;
        max-width: 300px;
    }
}