/* ==========================================================================
   MEXNOTICIAS - CATEGORY GRID STYLESHEET
   ========================================================================== */

.mex-cat-wrapper {
    width: 100%;
    max-width: 1210px;
    margin: 0 auto 50px auto;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

/* BANNER PUBLICITARIO EZOIC SUPERIOR (HASTA 970x250) */
.mex-cat-top-ad-slot {
    width: 100%;
    min-height: 90px!important;
    margin: 0 auto 20px auto;
    background-image: linear-gradient(120deg, #fdfbfb 0%, #FCFCFC 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 10px;
    overflow: hidden;
    box-sizing: border-box;
}

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

.mex-cat-header-container {
    width: 100%;
    text-align: center;
    margin-bottom: 15px;
    position: relative;
}

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

.mex-cat-header-label {
    display: inline-block;
    background-color: #ff005b;
    color: #ffffff !important;
    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;
    text-decoration: none;
}

/* GRID CONTENEDOR DE 3 COLUMNAS SIMÉTRICAS */
.mex-cat-grid-container {
    display: grid;
    grid-template-columns: 320px 1fr 320px;
    gap: 15px;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.mex-cat-col {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
}

.mex-cat-title,
.mex-cat-title-hero,
.mex-cat-title-mini {
    margin: 0 !important;
    padding: 0 !important;
}

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

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

.mex-cat-meta,
.mex-cat-meta-white {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    margin: 0 0 3px 0 !important;
    padding: 0 !important;
    line-height: 1;
}

.mex-cat-meta { color: #777777; }
.mex-cat-meta span,
.mex-cat-meta-white span { color: #ff005b; }
.mex-cat-meta-white { color: #dddddd; }

/* COLUMNA 1 (IZQUIERDA - ALTURA COMPLETA) */
.mex-cat-col-1 .mex-cat-card-standard {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    min-width: 0;
    gap: 6px;
}

.mex-cat-thumb {
    width: 100%;
    flex: 0 0 250px;
    min-height: 185px;
    overflow: hidden;
    border-radius: 3px;
}

.mex-cat-img-fixed {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mex-cat-content {
    flex-shrink: 0;
}

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

/* COLUMNA 2 (HERO CENTRAL) */
.mex-cat-col-2 {
    overflow: hidden;
}

.mex-cat-card-hero {
    width: 100%;
    height: 600px;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    background: #000000;
}

.mex-cat-hero-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
    z-index: 1;
}

.mex-cat-hero-bg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

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

.mex-cat-gradient-mask {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 85%;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%) !important;
    z-index: 20 !important;
    pointer-events: none;
}

.mex-cat-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    z-index: 30 !important;
    overflow: hidden;
}

.mex-cat-title-hero {
    font-family: 'Oswald', sans-serif !important;
    font-size: 28px !important;
    font-weight: 700;
    color: #ffffff !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.15 !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.mex-cat-excerpt-hero {
    font-family: 'Montserrat', sans-serif !important;
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 13px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

/* COLUMNA 3 (DERECHA) */
.mex-cat-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 6px;
    min-height: 0;
}

.mex-cat-card-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 0;
    width: 100%;
    flex: 1;
}

.mex-cat-mini-thumb {
    width: 115px;
    height: 100%;
    max-height: 90px;
    flex-shrink: 0;
    border-radius: 3px;
    overflow: hidden;
}

.mex-cat-img-mini {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mex-cat-mini-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
    margin: 0;
    min-width: 0;
    overflow: hidden;
}

.mex-cat-title-mini a {
    font-family: 'Oswald', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700;
    color: #303030 !important;
    text-decoration: none;
    line-height: 1.15 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    margin: 0;
}

.mex-cat-btn-more {
    display: block;
    width: 100%;
    padding: 8px;
    text-align: center;
    border: 1.5px solid #222222;
    color: #222222 !important;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    border-radius: 3px;
    margin-top: 8px;
    box-sizing: border-box;
    flex-shrink: 0;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.mex-cat-btn-more:hover {
    background-color: #222222;
    color: #ffffff !important;
}

/* RESPONSIVE */
@media (min-width: 768px) and (max-width: 1023px) {
    .mex-cat-wrapper { padding: 0 15px; margin-bottom: 40px; }
    .mex-cat-top-ad-slot { width: 100%; max-width: 100%; }
    .mex-cat-grid-container { display: grid; grid-template-columns: 320px 1fr; gap: 20px; }
    .mex-cat-col-1 { grid-column: 1; grid-row: 1; }
    .mex-cat-col-2 { grid-column: 2; grid-row: 1; }
    .mex-cat-col-3 { grid-column: 1 / span 2; grid-row: 2; margin-top: 15px; }
    .mex-cat-thumb { width: 100%; height: auto; aspect-ratio: 320 / 145; }
}

@media (max-width: 767px) {
    .mex-cat-wrapper { padding: 0 15px; margin-bottom: 40px; }
    .mex-cat-top-ad-slot { width: 100%; min-height: 100px; margin-bottom: 15px; }
    .mex-cat-grid-container { display: flex; flex-direction: column; gap: 25px; }
    .mex-cat-col { width: 100%; height: auto; }
    .mex-cat-thumb { width: 100%; height: 180px; }
    .mex-cat-card-hero { height: 380px; }
    .mex-cat-ad-slot { width: 300px; height: 250px; }
}