/* CONFIGURACIÓN GENERAL */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #E6EAF0;
    color: #0A1B3D;
}


/* BARRA SUPERIOR */

.top-bar {
    background-color: #06142D;
    color: #FFFFFF;
    font-size: 12px;
}

.top-bar-content {
    max-width: 1200px;
    margin: auto;
    min-height: 42px;
    padding: 7px 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.current-date {
    text-transform: capitalize;
    color: #E6EAF0;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}


/* SELECTOR DE IDIOMAS */

.language-selector {
    background-color: transparent;
    color: white;
    border: 1px solid #526581;
    padding: 7px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.language-selector option {
    color: #0A1B3D;
}


/* BUSCADOR */

.search-form {
    display: flex;
    background-color: white;
    border-radius: 4px;
    overflow: hidden;
}

.search-form input {
    border: none;
    outline: none;
    padding: 8px 10px;
    width: 180px;
    font-size: 12px;
}

.search-form button {
    background-color: #00A8FF;
    color: white;
    border: none;
    padding: 0 13px;
    cursor: pointer;
    font-size: 19px;
}


/* ENCABEZADO PRINCIPAL */

.main-header {
    background-color: #0A1B3D;
    text-align: center;
    padding: 12px 20px;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-container a {
    display: block;
    max-width: 370px;
    width: 100%;
}

.main-logo {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}


/* MENÚ DE NAVEGACIÓN FUTURISTA */

.main-nav {
    background: linear-gradient(
        180deg,
        #061225 0%,
        #091A35 100%
    );

    border-top: 1px solid rgba(0, 168, 255, 0.25);
    border-bottom: 2px solid #00A8FF;

    box-shadow:
        0 0 12px rgba(0, 168, 255, 0.15),
        inset 0 -2px 10px rgba(0, 168, 255, 0.08);
}

.nav-content {
    max-width: 1200px;
    margin: auto;

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

    gap: 12px;
    padding: 14px 12px;
}

/* BOTONES */

.main-nav a {
    position: relative;

    flex: 0 0 auto;
    text-align: center;

    color: #EAF8FF;
    text-decoration: none;

    padding: 14px 22px;

    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.6px;

    background: linear-gradient(
        145deg,
        #1B426D 0%,
        #102D50 35%,
        #081B33 75%,
        #061426 100%
    );

    border: 3px solid #168DD1;

    border-radius: 16px;

    clip-path: polygon(
        14px 0,
        100% 0,
        calc(100% - 14px) 100%,
        0 100%
    );

    box-shadow:
        0 3px 0 #04101F,
        0 5px 10px rgba(0, 0, 0, 0.45),
        0 0 8px rgba(0, 168, 255, 0.30),
        0 0 18px rgba(0, 168, 255, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 0 12px rgba(0, 168, 255, 0.10);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease;

    overflow: hidden;
}

/* EFECTO LUMINOSO INTERIOR */

.main-nav a::before {
    content: "";

    position: absolute;

    top: 0;
    left: -100%;

    width: 100%;
    height: 100%;

    background: linear-gradient(
        110deg,
        transparent,
        rgba(0, 168, 255, 0.18),
        transparent
    );

    transition: left 0.4s ease;
}

/* LÍNEA LUMINOSA */

.main-nav a::after {
    content: "";

    position: absolute;

    bottom: 4px;
    left: 15%;
    width: 70%;
    height: 2px;

    background: #00CFFF;

    box-shadow:
        0 0 5px #00CFFF,
        0 0 10px #00A8FF;

    transform: scaleX(0);

    transition: transform 0.3s ease;
}

/* HOVER */

.main-nav a:hover {
    color: #FFFFFF;

    background: linear-gradient(
        180deg,
        #1A4778 0%,
        #10345C 55%,
        #0A2342 100%
    );

    border-color: #00CFFF;

    transform: translateY(-3px);

    box-shadow:
        0 4px 0 #03101F,
        0 0 10px rgba(0, 217, 255, 0.85),
        0 0 25px rgba(0, 168, 255, 0.65),
        0 0 45px rgba(0, 168, 255, 0.35),
        0 0 70px rgba(0, 168, 255, 0.18),
        inset 0 0 15px rgba(0, 217, 255, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.main-nav a:hover::before {
    left: 100%;
}

.main-nav a:hover::after {
    transform: scaleX(1);
}

/* CATEGORÍA ACTIVA */

.main-nav a.active {
    color: #FFFFFF;

    background: linear-gradient(
        180deg,
        #087CC2 0%,
        #07558D 50%,
        #06375F 100%
    );

    border-color: #00D4FF;

    box-shadow:
        0 3px 0 #03101F,
        0 0 10px #00BFFF,
        0 0 25px rgba(0, 217, 255, 0.85),
        0 0 45px rgba(0, 168, 255, 0.55),
        0 0 70px rgba(0, 168, 255, 0.30),
        inset 0 0 18px rgba(0, 229, 255, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.main-nav a.active::after {
    transform: scaleX(1);

    background: #FFFFFF;

    box-shadow:
        0 0 6px #FFFFFF,
        0 0 12px #00D4FF;
}

/* CLIC */

.main-nav a:active {
    transform: translateY(1px);
}

/* ADAPTACIÓN A PANTALLAS PEQUEÑAS */

@media (max-width: 768px) {

    .nav-content {
        gap: 8px;
        padding: 10px;
    }

    .main-nav a {
        font-size: 13px;
        padding: 11px 15px;
    }

}

/* CONTENIDO PRINCIPAL */

.container {
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px;
}


/* PRESENTACIÓN */

.welcome-section {
    background-color: white;
    padding: 55px 30px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 40px;
}

.welcome-section h1 {
    font-size: 34px;
    margin-bottom: 15px;
}

.welcome-section p {
    color: #64748B;
    font-size: 17px;
}


/* ÚLTIMAS NOTICIAS */

.news-section h2 {
    margin-bottom: 20px;
    font-size: 24px;
}

.news-placeholder {
    background-color: white;
    padding: 45px;
    text-align: center;
    border-radius: 8px;
    color: #64748B;
}


/* PIE DE PÁGINA */

.main-footer {
    background-color: #0A1B3D;
    color: white;
    text-align: center;
    padding: 25px;
    font-size: 13px;
    line-height: 1.8;
}


/* DISEÑO RESPONSIVE */

@media (max-width: 768px) {

    .top-bar-content {
        flex-direction: column;
        padding: 12px;
    }

    .top-actions {
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-logo {
        max-width: 100%;
    }

    .main-nav a {
        padding: 13px 10px;
        font-size: 13px;
    }

    .welcome-section h1 {
        font-size: 27px;
    }

}


@media (max-width: 480px) {

    .logo-container a {
        max-width: 300px;
    }

    .search-form input {
        width: 145px;
    }

    .main-nav a {
        padding: 11px 8px;
        font-size: 12px;
    }

    .welcome-section {
        padding: 35px 20px;
    }

}
/* =================================
   SANCHEZBYTWO - PORTADA EDITORIAL
================================= */


/* ENCABEZADOS DE SECCIÓN */

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #00A8FF;
    padding-bottom: 12px;
    margin-bottom: 22px;
}

.section-heading h2 {
    font-size: 25px;
    color: #0A1B3D;
}

.section-heading a {
    color: #008FE0;
    text-decoration: none;
    font-size: 14px;
}


/* NOTICIAS DESTACADAS */

.featured-section {
    margin-bottom: 45px;
}

.section-heading span {
    font-size: 11px;
    font-weight: bold;
    color: #008FE0;
    letter-spacing: 1px;
}

.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 18px;
    min-height: 420px;
}

.featured-main {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    min-height: 420px;
}

.featured-main img {
    width: 100%;
    height: 100%;
    position: absolute;
    object-fit: cover;
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 35px;
    color: white;
    background: linear-gradient(
        transparent,
        rgba(0, 0, 0, 0.9)
    );
}

.featured-overlay h2 {
    font-size: 29px;
    margin: 12px 0;
}

.featured-overlay p {
    font-size: 14px;
}


/* NOTICIAS SECUNDARIAS */

.featured-secondary {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 18px;
}

.featured-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    min-height: 200px;
}

.featured-card img {
    width: 100%;
    height: 100%;
    position: absolute;
    object-fit: cover;
}

.featured-card-content {
    position: absolute;
    bottom: 0;
    padding: 20px;
    width: 100%;
    color: white;
    background: linear-gradient(
        transparent,
        rgba(0, 0, 0, 0.9)
    );
}

.featured-card-content h3 {
    margin-top: 8px;
    font-size: 18px;
}


/* ETIQUETAS */

.category-tag {
    display: inline-block;
    background: #00A8FF;
    color: white;
    padding: 5px 9px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 0.5px;
}


/* ESPACIO PUBLICITARIO */

.advertising-space {
    min-height: 100px;
    background: #F4F6F9;
    border: 1px dashed #BCC8D8;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    color: #8995A5;
    font-size: 12px;
    letter-spacing: 2px;
}


/* TARJETAS DE NOTICIAS */

.content-section {
    margin-bottom: 50px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.news-card-content {
    padding: 20px;
}

.news-card-content h3 {
    margin: 12px 0;
    font-size: 18px;
    line-height: 1.4;
}

.news-card-content p {
    color: #64748B;
    font-size: 14px;
}


/* BLOQUES TEMÁTICOS */

.category-banner {
    padding: 45px;
    border-radius: 8px;
    color: white;
    background: linear-gradient(
        110deg,
        #0A1B3D,
        #007FC5
    );
}

.category-banner h3 {
    font-size: 27px;
    margin-bottom: 12px;
}

.category-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.category-box {
    background: white;
    padding: 30px;
    border-radius: 8px;
    border-top: 4px solid #00A8FF;
}

.category-box h3 {
    margin-bottom: 12px;
}

.category-box p {
    color: #64748B;
    font-size: 14px;
}


/* ADAPTACIÓN A MÓVILES */

@media (max-width: 768px) {

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .featured-secondary {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 200px;
    }

    .news-grid {
        grid-template-columns: 1fr 1fr;
    }

    .category-columns {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 480px) {

    .news-grid {
        grid-template-columns: 1fr;
    }

    .featured-secondary {
        grid-template-columns: 1fr;
        grid-template-rows: 200px 200px;
    }

    .featured-overlay h2 {
        font-size: 22px;
    }

    .section-heading h2 {
        font-size: 20px;
    }

}
/* =================================
   SANCHEZBYTWO - PÁGINA DE ARTÍCULO
================================= */

.article-page {
    background: #FFFFFF;
    padding: 40px;
    border-radius: 8px;
    max-width: 950px;
    margin: 0 auto;
}

.article-category {
    display: inline-block;
    background: #00A8FF;
    color: #FFFFFF;
    padding: 7px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.article-page h1 {
    color: #0A1B3D;
    font-size: 36px;
    line-height: 1.25;
    margin-bottom: 20px;
}

.article-excerpt {
    color: #64748B;
    font-size: 19px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.article-image {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 35px;
}

.article-content {
    color: #263449;
    font-size: 17px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.article-content p {
    margin-bottom: 20px;
}

.article-source {
    border-top: 1px solid #E6EAF0;
    margin-top: 40px;
    padding-top: 20px;
    color: #64748B;
    font-size: 14px;
}

.article-source a {
    display: inline-block;
    margin-top: 10px;
    color: #008FE0;
    text-decoration: none;
}

.article-source a:hover {
    text-decoration: underline;
}


/* ARTÍCULOS EN MÓVILES */

@media (max-width: 768px) {

    .article-page {
        padding: 25px;
    }

    .article-page h1 {
        font-size: 29px;
    }

    .article-excerpt {
        font-size: 17px;
    }

    .article-content {
        font-size: 16px;
    }

}

@media (max-width: 480px) {

    .article-page {
        padding: 20px;
    }

    .article-page h1 {
        font-size: 25px;
    }

}
/* IMÁGENES SIN CONTENIDO */

.news-image-placeholder {
    width: 100%;
    height: 190px;
    background: linear-gradient(
        135deg,
        #0A1B3D,
        #007FC5
    );
}

/* ENLACES DE NOTICIAS */

.featured-main a,
.featured-card a,
.news-card a {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.featured-main a:hover h2,
.featured-card a:hover h3,
.news-card a:hover h3 {
    color: #00A8FF;
}

.featured-main a:hover .featured-overlay h2,
.featured-card a:hover .featured-card-content h3 {
    color: #FFFFFF;
}
/* DESCRIPCIÓN DE CATEGORÍAS */

.category-description {
    color: #64748B;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 25px;
}
/* =====================================
   PAGINA DE BUSQUEDA
===================================== */

.search-page {
    background: #E6EAF0;
    color: #0A1B3D;
    min-height: 100vh;
}

.search-header {
    background: #0A1B3D;
    text-align: center;
}

.search-logo {
    padding: 18px 0;
}

.search-logo img {
    width: 250px;
    max-width: 85%;
    height: auto;
}

.search-navigation {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 28px;
    padding: 15px 20px;
    border-top: 1px solid rgba(255,255,255,0.12);
    border-bottom: 3px solid #00A8FF;
}

.search-navigation a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.search-navigation a:hover {
    color: #00A8FF;
}

.search-container {
    max-width: 1100px;
    margin: 35px auto;
    padding: 0 20px;
    min-height: 400px;
}

.search-heading {
    border-bottom: 2px solid #00A8FF;
    margin-bottom: 25px;
    padding-bottom: 12px;
}

.search-heading h1 {
    margin: 0 0 8px;
    font-size: 28px;
}

.search-heading p {
    margin: 0;
    color: #536174;
}

.search-main-form {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.search-main-form input {
    flex: 1;
    min-width: 0;
    padding: 14px;
    border: 1px solid #CCD4DF;
    border-radius: 5px;
    font-size: 15px;
}

.search-main-form button {
    background: #00A8FF;
    color: #FFFFFF;
    border: none;
    padding: 0 28px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

.search-main-form button:hover {
    background: #0788CC;
}

.search-results-title {
    font-size: 20px;
    margin-bottom: 22px;
}

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

.search-result-card {
    background: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(10,27,61,0.10);
    transition: transform 0.2s, box-shadow 0.2s;
}

.search-result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 7px 18px rgba(10,27,61,0.16);
}

.search-result-card a {
    display: block;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

.search-result-image,
.search-result-placeholder {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.search-result-placeholder {
    background: linear-gradient(135deg, #0A1B3D, #007FC2);
}

.search-result-content {
    padding: 18px;
}

.search-category {
    display: inline-block;
    background: #00A8FF;
    color: #FFFFFF;
    padding: 5px 9px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
}

.search-result-content h3 {
    font-size: 18px;
    line-height: 1.4;
    margin: 13px 0 10px;
}

.search-result-content p {
    color: #536174;
    font-size: 14px;
    line-height: 1.6;
}

.search-read-more {
    display: inline-block;
    color: #008ED8;
    font-weight: bold;
    font-size: 13px;
    margin-top: 8px;
}

.search-empty {
    background: #FFFFFF;
    padding: 35px;
    text-align: center;
    border-radius: 8px;
}

.search-footer {
    background: #0A1B3D;
    color: #FFFFFF;
    text-align: center;
    padding: 25px 15px;
    font-size: 13px;
}

/* Adaptacion a celulares */

@media (max-width: 850px) {
    .search-results-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .search-navigation {
        gap: 15px;
    }
}

@media (max-width: 550px) {
    .search-results-grid {
        grid-template-columns: 1fr;
    }

    .search-main-form {
        flex-direction: column;
    }

    .search-main-form button {
        padding: 13px;
    }

    .search-heading h1 {
        font-size: 23px;
    }
}
/* =========================================
   SANCHEZBYTWO - COOKIE CONSENT MODAL
========================================= */

.cookie-banner {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(5, 15, 35, 0.78);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    animation: cookieOverlayIn 0.3s ease;
}

.cookie-banner-content {
    width: 100%;
    max-width: 540px;
    padding: 38px;
    background: #FFFFFF;
    border-radius: 14px;
    border-top: 5px solid #00A8FF;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.30);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 25px;
    animation: cookieModalIn 0.35s ease;
}

.cookie-banner-content::before {
    content: "SANCHEZBYTWO";
    display: block;
    color: #0A1B3D;
    font-family: 'Montserrat', sans-serif;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-align: center;
}

.cookie-banner-message {
    color: #465267;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.9;
    text-align: center;
    margin: 0;
}

.cookie-banner-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    width: 100%;
}

.cookie-button {
    flex: 1;
    min-height: 48px;
    padding: 13px 20px;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cookie-button-accept {
    background: #00A8FF;
    color: #FFFFFF;
    border: 2px solid #00A8FF;
}

.cookie-button-accept:hover {
    background: #008ED6;
    border-color: #008ED6;
}

.cookie-button-reject {
    background: #FFFFFF;
    color: #0A1B3D;
    border: 2px solid #0A1B3D;
}

.cookie-button-reject:hover {
    background: #0A1B3D;
    color: #FFFFFF;
}

.cookie-button:focus-visible {
    outline: 3px solid #00A8FF;
    outline-offset: 4px;
}

/* ANIMACIONES */

@keyframes cookieOverlayIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes cookieModalIn {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ADAPTACIÓN A MÓVILES */

@media (max-width: 600px) {
    .cookie-banner {
        padding: 18px;
    }

    .cookie-banner-content {
        padding: 28px 22px;
        gap: 20px;
    }

    .cookie-banner-content::before {
        font-size: 19px;
    }

    .cookie-banner-message {
        font-size: 13px;
        line-height: 1.8;
    }

    .cookie-banner-actions {
        flex-direction: column;
        gap: 10px;
    }

    .cookie-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner,
    .cookie-banner-content {
        animation: none;
    }
}

/* ==========================================
   SANCHEZBYTWO - AJUSTE FINAL DE CABECERA
   Logotipo protagonista y animación ambiental
========================================== */

.main-header {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 350px;
    padding: 24px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background:
        radial-gradient(ellipse at 50% 48%, rgba(0, 168, 255, 0.20) 0%, transparent 55%),
        linear-gradient(112deg, #07152F 0%, #0A1B3D 48%, #09254A 100%);
}

.main-header::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -45% -15%;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 28% 50%, rgba(0, 168, 255, 0.14), transparent 32%),
        radial-gradient(ellipse at 72% 48%, rgba(39, 123, 255, 0.13), transparent 35%);
    filter: blur(24px);
    animation: sb2HeaderDrift 20s ease-in-out infinite alternate;
}

.main-header::after {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: 0;
    height: 2px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(0, 168, 255, 0.85), transparent);
    box-shadow: 0 0 16px rgba(0, 168, 255, 0.35);
}

.logo-container {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-container a {
    display: block;
    width: min(100%, 560px);
    line-height: 0;
}

.main-logo {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    filter: drop-shadow(0 5px 20px rgba(0, 168, 255, 0.16));
    animation: sb2LogoGlow 9s ease-in-out infinite;
}

@keyframes sb2HeaderDrift {
    from { transform: translate3d(-1.5%, -1%, 0) scale(1); opacity: 0.72; }
    to { transform: translate3d(1.5%, 1%, 0) scale(1.05); opacity: 1; }
}

@keyframes sb2LogoGlow {
    0%, 76%, 100% { filter: drop-shadow(0 5px 20px rgba(0, 168, 255, 0.16)); }
    86% { filter: drop-shadow(0 5px 25px rgba(0, 168, 255, 0.34)); }
}

@media (max-width: 768px) {
    .main-header { min-height: 260px; padding: 20px 16px; }
    .logo-container a { width: min(100%, 520px); }
}

@media (max-width: 480px) {
    .main-header { min-height: 190px; padding: 16px 12px; }
    .logo-container a { width: min(100%, 420px); }
}

@media (prefers-reduced-motion: reduce) {
    .main-header::before,
    .main-logo { animation: none !important; }
}



/* ==========================================================
   SANCHEZBYTWO - CABECERA EN CAPAS
   Fondo completo + planeta animado + logotipo fijo
   ========================================================== */

.main-header {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    min-height: clamp(250px, 27vw, 370px);
    padding: 24px clamp(12px, 3vw, 40px);
    display: flex;
    justify-content: center;
    align-items: center;
    background: #06142D;
}

.header-background {
    position: absolute;
    inset: 0;
    z-index: -3;
    background-image: url("../images/header-background.19cb3e2e0fce.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.header-globe {
    position: absolute;
    z-index: -1;
    width: clamp(210px, 31vw, 390px);
    aspect-ratio: 1 / 1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 22px rgba(0, 168, 255, 0.38));
}


.logo-container {
    position: relative;
    z-index: 2;
    width: min(100%, 1250px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-container a {
    display: block;
    width: 100%;
    line-height: 0;
    text-align: center;
}

.main-logo {
    display: block;
    width: 100%;
    max-width: 1250px;
    max-height: 300px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 5px 18px rgba(0, 0, 0, 0.34));
    animation: sb2LogoGlow 9s ease-in-out infinite;
}


@keyframes sb2LogoGlow {
    0%, 76%, 100% {
        filter: drop-shadow(0 5px 18px rgba(0, 0, 0, 0.34));
    }
    86% {
        filter: drop-shadow(0 5px 24px rgba(0, 168, 255, 0.34));
    }
}

@media (max-width: 768px) {
    .main-header {
        min-height: 245px;
        padding: 18px 12px;
    }

    .header-globe {
        width: clamp(190px, 48vw, 285px);
        height: auto;
    }

    .main-logo {
        max-height: 210px;
    }
}

@media (max-width: 480px) {
    .main-header {
        min-height: 190px;
        padding: 14px 8px;
    }

    .header-globe {
        width: 190px;
        height: auto;
    }

    .main-logo {
        max-height: 165px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .header-globe-image,
    .main-logo {
        animation: none !important;
    }
}


/* ==========================================================
   GLOBO 3D REAL - reemplaza la rotación 2D anterior
   ========================================================== */
.header-globe {
    width: clamp(190px, 22vw, 280px);
    height: auto;
    aspect-ratio: 1 / 1;
    overflow: visible;
    transform: translate(-50%, -50%);
    display: block;
    filter: drop-shadow(0 0 22px rgba(0, 168, 255, 0.30));
}

.header-globe canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.header-globe-fallback {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, rgba(93, 215, 255, 0.9), rgba(0, 91, 180, 0.65) 42%, rgba(0, 18, 54, 0.9) 72%, transparent 74%);
    box-shadow:
        inset -18px -12px 35px rgba(0, 0, 0, 0.48),
        0 0 28px rgba(0, 168, 255, 0.35);
    opacity: 0.65;
}

@media (max-width: 768px) {
    .header-globe {
        width: 220px;
    }
}

@media (max-width: 480px) {
    .header-globe {
        width: 170px;
    }
}
/* =========================================================
   SUBCATEGORÍAS Y SECCIONES DE NOTICIAS
   SANCHEZBYTWO
   ========================================================= */


/* MENÚ HORIZONTAL DE SUBCATEGORÍAS */

.subcategory-navigation {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 25px 0 35px;
    padding: 15px 0;
    border-bottom: 1px solid #e5e9f0;
}

.subcategory-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border: 1px solid #dce3ed;
    border-radius: 25px;
    background: #ffffff;
    color: #0A1B3D;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.subcategory-link:hover {
    background: #0A1B3D;
    border-color: #0A1B3D;
    color: #ffffff;
}

.subcategory-link.active {
    background: #00A8FF;
    border-color: #00A8FF;
    color: #ffffff;
}


/* SECCIONES DE NOTICIAS */

.category-news-section {
    margin-top: 35px;
    margin-bottom: 45px;
}

.category-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e9f0;
}

.category-section-heading h2 {
    position: relative;
    margin: 0;
    padding-left: 14px;
    color: #0A1B3D;
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 800;
}

.category-section-heading h2::before {
    content: "";
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 0;
    width: 4px;
    border-radius: 3px;
    background: #00A8FF;
}


/* AJUSTES DE LAS TARJETAS */

.category-news-section .news-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-news-section .news-card:hover {
    transform: translateY(-4px);
}


/* DISEÑO RESPONSIVE */

@media (max-width: 768px) {

    .subcategory-navigation {
        gap: 8px;
        margin: 20px 0 28px;
        padding: 12px 0;
    }

    .subcategory-link {
        padding: 8px 14px;
        font-size: 12px;
    }

    .category-news-section {
        margin-top: 28px;
        margin-bottom: 35px;
    }

    .category-section-heading h2 {
        font-size: 19px;
    }

}

@media (max-width: 480px) {

    .subcategory-navigation {
        gap: 7px;
    }

    .subcategory-link {
        padding: 7px 12px;
        font-size: 11px;
    }

    .category-section-heading h2 {
        font-size: 17px;
    }

}


/* ==========================================================
   SANCHEZBYTWO - CATEGORY SIDEBAR LAYOUT
   ========================================================== */

.category-content-wrapper.has-subcategories {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
    margin-top: 25px;
}

/* SIDEBAR */

.category-sidebar {
    width: 100%;
    position: sticky;
    top: 20px;
}

.category-sidebar .subcategory-navigation {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.category-sidebar .subcategory-link {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 13px 16px;
    text-decoration: none;
    text-align: left;
    border-radius: 9px;
    transition: all 0.25s ease;
}

.category-sidebar .subcategory-link:hover {
    transform: translateX(4px);
}

.category-sidebar .subcategory-link.active {
    font-weight: 700;
}

/* ÁREA PRINCIPAL DE NOTICIAS */

.category-main-content {
    min-width: 0;
    width: 100%;
}

.category-main-content .category-news-section {
    margin-top: 0;
    margin-bottom: 35px;
}

.category-main-content .news-grid {
    width: 100%;
}

/* RESPONSIVE - TABLETS */

@media (max-width: 900px) {

    .category-content-wrapper.has-subcategories {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 20px;
    }

}

/* RESPONSIVE - MÓVILES */

@media (max-width: 650px) {

    .category-content-wrapper.has-subcategories {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .category-sidebar {
        position: static;
    }

    .category-sidebar .subcategory-navigation {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding: 12px;
        scrollbar-width: thin;
    }

    .category-sidebar .subcategory-link {
        width: auto;
        min-width: max-content;
        white-space: nowrap;
        text-align: center;
        padding: 11px 15px;
    }

    .category-sidebar .subcategory-link:hover {
        transform: none;
    }

}


/* ==========================================================
   SANCHEZBYTWO - EXPLORE WORLD CATEGORY CARDS
   ========================================================== */

.explore-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.explore-category-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    border: 1px solid rgba(0, 174, 255, 0.18);
    border-top: 4px solid #00aeff;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(11, 29, 61, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease,
                border-color 0.25s ease;
}

.explore-category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(11, 29, 61, 0.13);
    border-color: rgba(0, 174, 255, 0.45);
}

.explore-category-card > a {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 110px;
    padding: 22px 24px;
    box-sizing: border-box;
    text-decoration: none;
    color: #0b1d3d;
}

.explore-category-card > a:visited {
    color: #0b1d3d;
}

.explore-category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: rgba(0, 174, 255, 0.10);
    font-size: 30px;
    transition: transform 0.25s ease, background 0.25s ease;
}

.explore-category-card:hover .explore-category-icon {
    transform: scale(1.08);
    background: rgba(0, 174, 255, 0.17);
}

.explore-category-card h3 {
    margin: 0;
    flex: 1;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    color: #0b1d3d;
}

.explore-category-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #00aeff;
    color: #ffffff;
    font-size: 20px;
    transition: transform 0.25s ease;
}

.explore-category-card:hover .explore-category-arrow {
    transform: translateX(4px);
}

/* TABLETS */

@media (max-width: 900px) {

    .explore-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

}

/* MÓVILES */

@media (max-width: 600px) {

    .explore-category-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .explore-category-card > a {
        min-height: 95px;
        padding: 18px;
        gap: 14px;
    }

    .explore-category-icon {
        width: 52px;
        height: 52px;
        font-size: 26px;
        border-radius: 12px;
    }

    .explore-category-card h3 {
        font-size: 1rem;
    }

}

/* ==========================================
   SANCHEZBYTWO - LANGUAGE SELECTOR
   ========================================== */

.language-selector-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    min-width: 26px;
}

.language-selector {
    cursor: pointer;
}

.language-flag img {
    width: 32px;
    height: 22px;
    object-fit: cover;
    display: block;
}

.main-nav a.active {
    background: linear-gradient(
        180deg,
        #245080 0%,
        #16365C 100%
    );

    color: #00A8FF;
    border-color: #00A8FF;

    box-shadow:
        0 3px 0 #07162B,
        0 4px 10px rgba(0, 168, 255, 0.20);
}

.main-nav a.active::after {
    transform: scaleX(1);
}