/* ==========================================================================
   MEXNOTICIAS - 404, AUTHOR, SEARCH & PAGE STYLESHEET
   ========================================================================== */

.mex-404-site-main,
.mex-author-site-main,
.mex-search-site-main,
.mex-page-site-main {
    background-color: #ffffff;
    padding-top: 10px;
    padding-bottom: 40px;
}

/* CLASE UNIVERSAL ACCESIBILIDAD (OCULTA TEXTO SOLO VISUALMENTE) */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

/* ESTILOS PARA SEARCHFORM.PHP */
.mex-search-form {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.mex-search-input-group {
    display: flex;
    align-items: center;
    border: 1px solid #111111;
    border-radius: 3px;
    overflow: hidden;
    background-color: #ffffff;
}

.mex-search-field {
    flex: 1;
    border: none !important;
    padding: 10px 14px !important;
    font-family: 'Roboto', sans-serif !important;
    font-size: 14px !important;
    color: #111111 !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.mex-search-field::placeholder {
    color: #888888;
}

.mex-search-submit {
    background-color: #111111;
    color: #ffffff;
    border: none;
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.mex-search-submit:hover {
    background-color: #ff005b;
}

/* PUBLICIDAD BÚSQUEDA */
.mex-search-ad-slot-top,
.mex-search-ad-slot-bottom {
    width: 100%;
    max-width: 970px;
    min-height: 90px;
    margin: 15px auto 25px 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-search-ad-slot-feed {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 100px;
    margin: 10px 0;
    background-image: linear-gradient(120deg, #fdfbfb 0%, #FCFCFC 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 10px;
    box-sizing: border-box;
}

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

/* PÁGINA DE BÚSQUEDA */
.mex-search-wrapper {
    width: 100%;
    max-width: 1210px;
    margin: 20px auto 40px auto;
    padding: 0 15px;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

.mex-search-header-container {
    margin-bottom: 30px;
}

.mex-search-results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px 18px;
}

.mex-search-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.mex-search-thumb {
    width: 100%;
    height: 190px;
    border-radius: 3px;
    overflow: hidden;
    background-color: #f4f4f4;
}

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

.mex-search-title {
    margin: 0 !important;
    padding: 0 !important;
}

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

.mex-search-title a:hover {
    color: #ff005b;
}

.mex-search-excerpt {
    font-size: 13px;
    color: #555555;
    line-height: 1.45;
}

.mex-search-load-more-container {
    margin-top: 35px;
    text-align: center;
}

.mex-search-btn-more {
    display: inline-block;
    padding: 12px 30px;
    border: 1.5px solid #111111;
    background-color: #111111;
    color: #ffffff !important;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mex-search-btn-more:hover {
    background-color: #ff005b;
    border-color: #ff005b;
}

.mex-search-btn-more.loading {
    opacity: 0.7;
    cursor: wait;
}

.mex-search-no-results {
    background: #fdfdfd;
    border: 1px solid #eeeeee;
    border-radius: 4px;
    padding: 35px 20px;
    text-align: center;
    margin-bottom: 40px;
}

.mex-search-no-results-msg {
    font-size: 15px;
    color: #666666;
    margin-bottom: 20px;
}

.mex-search-form-box {
    max-width: 450px;
    margin: 0 auto;
}

/* PÁGINA 404 */
.mex-404-wrapper {
    width: 100%;
    max-width: 1210px;
    margin: 20px auto 40px auto;
    padding: 0 15px;
    box-sizing: border-box;
    text-align: center;
    font-family: 'Roboto', sans-serif;
}

.mex-404-container {
    background: #fdfdfd;
    border: 1px solid #eeeeee;
    border-radius: 4px;
    padding: 40px 20px;
    box-sizing: border-box;
}

.mex-404-code {
    font-family: 'Oswald', sans-serif;
    font-size: 110px;
    font-weight: 700;
    color: #111111;
    line-height: 1;
    margin: 0 0 10px 0 !important;
    letter-spacing: -2px;
}

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

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

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

.mex-404-description {
    font-size: 15px;
    color: #666666;
    max-width: 650px;
    margin: 0 auto 25px auto;
    line-height: 1.6;
}

.mex-404-btn {
    display: inline-block;
    background-color: #111111;
    color: #ffffff !important;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 10px 24px;
    border-radius: 3px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.mex-404-btn:hover {
    background-color: #ff005b;
}

/* PÁGINAS ESTÁTICAS (page.php) */
.mex-page-wrapper {
    width: 100%;
    max-width: 1210px;
    margin: 20px auto 50px auto;
    padding: 0 15px;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

.mex-page-header {
    margin-bottom: 25px;
}

.mex-page-content {
    font-size: 16px;
    line-height: 1.7;
    color: #222222;
    background: #ffffff;
    padding: 35px;
    border: 1px solid #eeeeee;
    border-radius: 4px;
    box-sizing: border-box;
}

.mex-page-content h1,
.mex-page-content h2,
.mex-page-content h3,
.mex-page-content h4 {
    font-family: 'Oswald', sans-serif;
    color: #111111;
    margin-top: 25px;
    margin-bottom: 12px;
    line-height: 1.25;
}

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

.mex-page-content ul,
.mex-page-content ol {
    margin: 0 0 20px 25px;
    padding: 0;
}

.mex-page-content li {
    margin-bottom: 8px;
}

/* PÁGINA DE AUTOR */
.mex-author-wrapper {
    width: 100%;
    max-width: 1210px;
    margin: 20px auto 35px auto;
    padding: 0 15px;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

.mex-author-card {
    display: flex;
    align-items: center;
    gap: 25px;
    background-color: #fdfdfd;
    border: 1px solid #eeeeee;
    border-radius: 4px;
    padding: 30px;
    box-sizing: border-box;
}

.mex-author-avatar {
    flex-shrink: 0;
}

.mex-author-avatar-img {
    width: 110px !important;
    height: 110px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ff005b;
    display: block;
}

.mex-author-info {
    flex: 1;
    min-width: 0;
}

.mex-author-name {
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #111111;
    margin: 8px 0 6px 0 !important;
    line-height: 1.2;
}

.mex-author-bio {
    font-size: 14px;
    color: #666666;
    margin: 0;
    line-height: 1.5;
}

/* RESPONSIVE */
@media (max-width: 1023px) {
    .mex-search-results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .mex-search-results-grid {
        grid-template-columns: 1fr;
    }
    .mex-404-code {
        font-size: 75px;
    }
    .mex-author-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .mex-author-info .mex-grid-header-container {
        text-align: center !important;
    }
    .mex-page-content {
        padding: 20px;
    }
}