/*
Theme Name: Sin Pausa
Theme URI: http://localhost:8080
Author: Sin Pausa
Description: Estilos principales del tema Sin Pausa.
Version: 2.0
*/

/* =========================================================
   VARIABLES
========================================================= */
:root {
    --sp-navy: #071a3a;
    --sp-navy-2: #0b2147;
    --sp-blue: #00a8e8;
    --sp-blue-dark: #078dcc;
    --sp-red: #ec006c;
    --sp-white: #ffffff;
    --sp-bg: #f4f7fa;
    --sp-border: #e1e7ee;
    --sp-text: #10213f;
    --sp-muted: #667085;
    --sp-shadow: 0 10px 30px rgba(7, 26, 58, .08);
    --sp-shadow-lg: 0 18px 45px rgba(7, 26, 58, .12);
    --sp-radius: 18px;
    --sp-radius-sm: 10px;
}

/* =========================================================
   RESET / BASE
========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    background: var(--sp-bg);
    color: var(--sp-text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--sp-blue);
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.container {
    width: min(1680px, calc(100% - 80px));
    margin-inline: auto;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
    position: relative;
    z-index: 1000;
    background: var(--sp-white);
    border-bottom: 1px solid var(--sp-border);
}

/* Barra superior */
.top-bar {
    min-height: 48px;
    background: var(--sp-navy);
    color: var(--sp-white);
}

.top-bar-inner {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.country,
.live-indicator {
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    font-weight: 800;
}

.country {
    gap: 8px;
}

.live-indicator {
    gap: 10px;
}

.live-dot {
    width: 10px;
    height: 10px;
    display: inline-block;
    flex: 0 0 10px;
    border-radius: 50%;
    background: var(--sp-red);
    box-shadow: 0 0 0 7px rgba(236, 0, 108, .12);
}

/* =========================================================
   HEADER PRINCIPAL — BANNER SIN PAUSA
   ========================================================= */
.main-header {
    position: relative;
    width: 100%;
    height: 305px;
    min-height: 305px;
    max-height: 305px;
    overflow: hidden;
    background-color: #000;
    background-image: url("https://sinpausa.net/wp-content/uploads/2026/09/ChatGPT-Image-3-sept-2026-04_06_18-p.m-1.png");
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: center 35%;
}

/* La imagen ya contiene el logo principal. */
.site-branding,
.main-header .site-branding {
    display: none !important;
}

/* El menú horizontal del banner queda fuera.
   El menú funcional es el botón "Categorías" de la barra inferior. */
.main-navigation,
.main-header .main-navigation {
    display: none !important;
}

.header-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 305px;
    min-height: 305px;
    margin: 0;
    padding: 0;
}

/* =========================================================
   BARRA INFERIOR — CATEGORÍAS + BUSCADOR + LO ÚLTIMO
   ========================================================= */
.category-bar {
    position: relative;
    z-index: 100;
    width: 100%;
    margin: 0;
    padding: 0;
    background: var(--sp-navy);
    color: var(--sp-white);
    border-top: 1px solid rgba(0, 168, 232, .45);
}

.category-bar-inner {
    position: relative;
    min-height: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Botón de menú */
.category-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    flex: 0 0 auto;
    height: 36px;
    margin: 0;
    padding: 0 14px;
    border: 0;
    border-radius: 9px;
    background: rgba(255, 255, 255, .08);
    color: var(--sp-white);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.category-toggle:hover,
.category-toggle[aria-expanded="true"] {
    background: var(--sp-blue);
    color: var(--sp-white);
}

.category-toggle-icon {
    display: inline-block;
    font-size: 15px;
    line-height: 1;
    transition: transform .25s ease;
}

.category-toggle[aria-expanded="true"] .category-toggle-icon {
    transform: rotate(90deg);
}

/* Acciones de la derecha */
.category-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    margin-left: auto;
    flex: 0 0 auto;
}

.category-actions .header-search {
    position: static;
    top: auto;
    right: auto;
    z-index: auto;
    transform: none;
    flex: 0 0 auto;
    width: auto;
    margin: 0;
}

/* Buscador */
.header-search {
    position: static;
    width: auto;
    margin: 0;
    transform: none;
}

.header-search form {
    display: flex;
    width: 330px;
    max-width: 100%;
    height: 44px;
    margin: 0;
}

.header-search input[type="search"] {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: 44px;
    margin: 0;
    padding: 0 15px;
    border: 1px solid var(--sp-border);
    border-right: 0;
    border-radius: 10px 0 0 10px;
    outline: none;
    background: var(--sp-white);
    color: var(--sp-text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    box-shadow: none;
}

.header-search input[type="search"]::placeholder {
    color: #98a7ba;
}

.header-search input[type="search"]:focus {
    border-color: var(--sp-blue);
}

.header-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 44px;
    flex: 0 0 54px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0 10px 10px 0;
    background: #061a3a;
    color: var(--sp-white);
    font-size: 0;
    transition: background .2s ease;
}

.header-search button:hover {
    background: var(--sp-blue);
}

.header-search button svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--sp-white);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* "Lo último" */
.category-actions .category-latest,
.category-latest {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    color: var(--sp-white) !important;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.category-latest::before {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: var(--sp-red);
    box-shadow: 0 0 0 5px rgba(236, 0, 108, .18);
}

/* =========================================================
   MENÚ DESPLEGABLE DE CATEGORÍAS
   ========================================================= */
.category-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 200;
    max-height: 0;
    overflow: hidden;
    background: var(--sp-white);
    box-shadow: 0 18px 40px rgba(7, 26, 58, .18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: max-height .3s ease, opacity .25s ease, transform .25s ease, visibility .25s ease;
}

.category-dropdown.is-open {
    max-height: 460px;
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.category-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 6px;
    padding: 22px 0;
}

.category-dropdown-link {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 11px 14px;
    border-radius: 9px;
    color: var(--sp-navy) !important;
    font-size: 14px;
    font-weight: 700;
    transition: background .2s ease, color .2s ease;
}

.category-dropdown-link:hover {
    background: #e8f7fd;
    color: var(--sp-blue-dark) !important;
}

/* =========================================================
   RESPONSIVE DEL HEADER
   ========================================================= */
@media (max-width: 1200px) {
    .main-header,
    .header-inner {
        height: 285px;
        min-height: 285px;
        max-height: 285px;
    }

    .header-search form {
        width: 300px;
    }
}

@media (max-width: 991px) {
    .main-header,
    .header-inner {
        height: 250px;
        min-height: 250px;
        max-height: 250px;
    }

    .category-bar-inner {
        min-height: 56px;
        height: 56px;
    }

    .category-actions {
        gap: 12px;
    }

    .header-search form {
        width: 300px;
    }
}

@media (max-width: 767px) {
    .top-bar,
    .top-bar-inner {
        min-height: 44px;
    }

    .country,
    .live-indicator {
        font-size: 13px;
    }

    .main-header,
    .header-inner {
        height: 190px;
        min-height: 190px;
        max-height: 190px;
    }

    .main-header {
        background-size: auto 100%;
        background-position: center 35%;
    }

    .category-bar-inner {
        min-height: 52px;
        height: 52px;
        gap: 10px;
    }

    .category-toggle {
        height: 36px;
        padding: 0 12px;
        font-size: 13px;
    }

    .category-actions {
        gap: 8px;
    }

    .header-search form {
        width: 220px;
        height: 40px;
    }

    .header-search input[type="search"],
    .header-search button {
        height: 40px;
    }

    .header-search button {
        width: 46px;
        flex-basis: 46px;
    }

    .category-latest {
        font-size: 11px;
        gap: 7px;
    }
}

@media (max-width: 520px) {
    .container {
        width: min(100% - 24px, 1680px);
    }

    .main-header,
    .header-inner {
        height: 175px;
        min-height: 175px;
        max-height: 175px;
    }

    .main-header {
        background-size: auto 100%;
        background-position: center 35%;
    }

    .category-bar-inner {
        min-height: 50px;
        height: 50px;
    }

    .category-actions {
        gap: 6px;
    }

    .header-search form {
        width: 175px;
    }

    .header-search input[type="search"] {
        padding: 0 10px;
    }

    .category-latest {
        font-size: 10px;
        gap: 5px;
    }

    .category-latest::before {
        width: 7px;
        height: 7px;
        flex-basis: 7px;
    }
}

@media (max-width: 420px) {
    .category-actions .category-latest {
        display: none;
    }

    .header-search form {
        width: 190px;
    }

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

/* =========================================================
   CONTENIDO GENERAL
========================================================= */
.site-main {
    min-height: 600px;
}

.section {
    padding: 60px 0;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.section-title {
    margin: 0;
    color: var(--sp-navy);
    font-size: 32px;
    line-height: 1.15;
}

.section-description {
    margin: 8px 0 0;
    color: var(--sp-muted);
}

/* =========================================================
   HERO
========================================================= */
.hero {
    position: relative;
    overflow: hidden;
    padding: 70px 0;
    background:
        radial-gradient(circle at 90% 15%, rgba(0,168,232,.18), transparent 25%),
        linear-gradient(135deg, var(--sp-navy), var(--sp-navy-2));
    color: var(--sp-white);
}

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(250px, .6fr);
    align-items: center;
    gap: 45px;
}

.hero-label {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--sp-blue);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0 0 18px;
    color: var(--sp-white);
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1;
    letter-spacing: -3px;
}

.hero p {
    max-width: 680px;
    margin: 0;
    color: #d8e3ef;
    font-size: 18px;
}

.hero-logo {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo img {
    width: 250px !important;
    height: 250px !important;
    max-width: 250px !important;
    max-height: 250px !important;
    object-fit: contain;
}

/* =========================================================
   NOTICIAS
========================================================= */
.noticias {
    background: var(--sp-bg);
}

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

.noticia {
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--sp-white);
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    box-shadow: var(--sp-shadow);
    transition: transform .25s ease, box-shadow .25s ease;
}

.noticia:hover {
    transform: translateY(-4px);
    box-shadow: var(--sp-shadow-lg);
}

.noticia > a {
    display: block;
}

.noticia-imagen {
    display: block;
    width: 100%;
    height: 230px;
    object-fit: cover;
    object-position: center;
}

.noticia-imagen-default {
    width: 100%;
    height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e9eef4, #f8fafc);
    color: var(--sp-navy);
    font-size: 18px;
    font-weight: 900;
}

.noticia-contenido {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 22px;
}

.noticia-categoria {
    display: inline-block;
    margin-bottom: 9px;
    color: var(--sp-blue-dark);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.noticia h3 {
    margin: 0 0 12px;
    color: var(--sp-navy);
    font-size: 21px;
    line-height: 1.3;
}

.noticia p {
    margin: 0 0 18px;
    color: var(--sp-muted);
    font-size: 14px;
}

.noticia-meta {
    margin-top: auto;
    padding-top: 13px;
    border-top: 1px solid var(--sp-border);
    color: var(--sp-muted);
    font-size: 12px;
}

/* =========================================================
   CATEGORÍAS
========================================================= */
.categorias {
    background: var(--sp-white);
}

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

.categoria {
    padding: 22px 18px;
    text-align: center;
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius-sm);
    background: var(--sp-white);
    color: var(--sp-navy);
    font-weight: 800;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.categoria:hover {
    background: var(--sp-navy);
    color: var(--sp-white);
    transform: translateY(-3px);
}

/* =========================================================
   PUBLICIDAD
========================================================= */
.sin-pausa-ad-section {
    width: 100%;
    padding: 30px 0 20px;
    background: var(--sp-bg);
}

.sin-pausa-ads-carousel {
    position: relative;
    width: min(100%, 1100px);
    height: 280px;
    margin: 0 auto;
    overflow: hidden;
    background: var(--sp-white);
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    box-shadow: var(--sp-shadow);
}

.sin-pausa-ads-carousel .carousel-item {
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.sin-pausa-ad-slide {
    width: 100%;
    height: 280px;
    display: grid;
    grid-template-columns: 58% 42%;
    overflow: hidden;
    background: var(--sp-white);
}

.sin-pausa-ad-media {
    position: relative;
    min-width: 0;
    min-height: 0;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #eef2f7;
}

.sin-pausa-ad-media img,
.sin-pausa-ad-image,
.sin-pausa-ad-images img,
.sin-pausa-ad-images .sin-pausa-ad-image {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: center;
}

.sin-pausa-ad-media video,
.sin-pausa-ad-video {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    background: #000;
}

.sin-pausa-ad-images {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sin-pausa-ad-content {
    width: 100%;
    height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: 30px;
    background: var(--sp-white);
}

.sin-pausa-ad-company {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 11px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e8f7fd;
    color: var(--sp-blue-dark);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.sin-pausa-ad-content h2 {
    margin: 0 0 10px;
    color: var(--sp-navy);
    font-size: 28px;
    line-height: 1.15;
}

.sin-pausa-ad-content p {
    margin: 0 0 18px;
    color: var(--sp-muted);
    font-size: 14px;
    line-height: 1.55;
}

.sin-pausa-ad-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 10px 16px;
    border-radius: 9px;
    background: var(--sp-blue);
    color: var(--sp-white) !important;
    font-size: 13px;
    font-weight: 800;
}

.sin-pausa-ad-button:hover {
    background: var(--sp-navy);
    color: var(--sp-white) !important;
}

.sin-pausa-ad-no-media {
    width: 100%;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #edf4ff, #f8fafc);
    color: var(--sp-muted);
}

/* =========================================================
   SIDEBAR
========================================================= */
.single-noticia-sidebar {
    min-width: 0;
}

.sidebar-box {
    margin-bottom: 18px;
    padding: 22px;
    background: var(--sp-white);
    border: 1px solid var(--sp-border);
    border-radius: 14px;
    box-shadow: var(--sp-shadow);
}

.sidebar-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.sidebar-heading-line {
    width: 4px;
    height: 22px;
    flex: 0 0 4px;
    border-radius: 4px;
    background: var(--sp-blue);
}

.sidebar-heading h3 {
    margin: 0;
    color: var(--sp-navy);
    font-size: 20px;
    line-height: 1.2;
}

.sidebar-noticias-list {
    display: flex;
    flex-direction: column;
}

.sidebar-noticia {
    display: flex;
    gap: 11px;
    padding: 13px 0;
    border-bottom: 1px solid var(--sp-border);
}

.sidebar-noticia:first-child {
    padding-top: 0;
}

.sidebar-noticia:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.sidebar-noticia-link {
    display: flex;
    width: 100%;
    gap: 11px;
}

.sidebar-noticia-image-wrapper {
    width: 82px;
    height: 66px;
    flex: 0 0 82px;
    overflow: hidden;
    border-radius: 8px;
    background: #edf1f5;
}

.sidebar-noticia-imagen {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
}

.sidebar-noticia-info {
    min-width: 0;
    flex: 1;
}

.sidebar-noticia-categoria {
    display: block;
    margin-bottom: 3px;
    color: var(--sp-blue-dark);
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.sidebar-noticia-info h4 {
    margin: 0 0 5px;
    color: var(--sp-navy);
    font-size: 13px;
    line-height: 1.35;
}

.sidebar-noticia-fecha {
    color: var(--sp-muted);
    font-size: 10px;
}

.sidebar-categorias {
    display: flex;
    flex-direction: column;
}

.sidebar-categorias a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--sp-border);
    color: var(--sp-navy);
    font-size: 13px;
    font-weight: 700;
}

.sidebar-categorias a:last-child {
    border-bottom: 0;
}

.categoria-count {
    min-width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border-radius: 50px;
    background: #e8f7fd;
    color: var(--sp-navy);
    font-size: 11px;
    font-weight: 900;
}

.sidebar-empty {
    margin: 0;
    color: var(--sp-muted);
    font-size: 13px;
}

/* =========================================================
   SINGLE NOTICIA
========================================================= */
.single-page {
    padding: 55px 0 80px;
    background: var(--sp-bg);
}

.single-noticia-top {
    margin-bottom: 28px;
}

.single-noticia-top .container {
    max-width: 1200px;
}

.single-noticia-categoria {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--sp-blue-dark);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.single-noticia-title {
    max-width: 1000px;
    margin: 0 0 14px;
    color: var(--sp-navy);
    font-size: clamp(38px, 4.5vw, 62px);
    line-height: 1.05;
    letter-spacing: -2.5px;
    font-weight: 800;
}

.single-noticia-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--sp-muted);
    font-size: 13px;
}

.single-noticia-meta-separator {
    color: #c5ccd5;
}

.single-noticia-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 30px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.single-noticia-column {
    min-width: 0;
}

.single-noticia-main {
    overflow: hidden;
    background: var(--sp-white);
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    box-shadow: var(--sp-shadow);
}

.single-noticia-imagen {
    width: 100%;
    margin: 0;
    overflow: hidden;
    background: #edf1f5;
}

.single-noticia-imagen img {
    display: block;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 650px;
    margin: 0 !important;
    object-fit: cover;
}

.single-noticia-content {
    padding: 36px 42px 42px;
}

.single-noticia-content p {
    margin: 0 0 22px;
    color: #344054;
    font-size: 18px;
    line-height: 1.85;
}

.single-noticia-content h2 {
    margin: 38px 0 15px;
    color: var(--sp-navy);
    font-size: 30px;
    line-height: 1.25;
}

.single-noticia-content h3 {
    margin: 30px 0 12px;
    color: var(--sp-navy);
    font-size: 24px;
    line-height: 1.3;
}

.single-noticia-content ul,
.single-noticia-content ol {
    margin: 0 0 25px;
    padding-left: 25px;
    color: #344054;
    font-size: 17px;
    line-height: 1.8;
}

.single-noticia-content li {
    margin-bottom: 7px;
}

.single-noticia-content blockquote {
    margin: 30px 0;
    padding: 20px 25px;
    border-left: 4px solid var(--sp-blue);
    background: #e8f7fd;
    color: var(--sp-navy);
    font-size: 18px;
    font-style: italic;
}

.single-noticia-content img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 650px !important;
    margin: 25px auto !important;
    border-radius: 10px;
    object-fit: contain;
}

.single-noticia-content a {
    color: var(--sp-blue-dark);
    font-weight: 700;
}

/* =========================================================
   AUTOR / NAVEGACIÓN SINGLE
========================================================= */
.single-noticia-author {
    margin: 0 42px 40px;
    padding: 22px;
    border-top: 1px solid var(--sp-border);
    background: #fafbfc;
    border-radius: 10px;
}

.single-author-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.single-author-mark {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--sp-blue);
    color: var(--sp-white);
    font-size: 17px;
}

.single-author-logo strong {
    display: block;
    color: var(--sp-navy);
    font-size: 16px;
}

.single-author-logo span {
    display: block;
    margin-top: 2px;
    color: var(--sp-muted);
    font-size: 13px;
}

.single-noticia-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 0 42px 42px;
}

.single-nav-link {
    min-width: 0;
    min-height: 105px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px 20px;
    background: #f9fafb;
    border: 1px solid var(--sp-border);
    border-radius: 12px;
    color: var(--sp-navy);
}

.single-nav-label {
    display: block;
    margin-bottom: 6px;
    color: var(--sp-muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.single-nav-title {
    display: block;
    color: var(--sp-navy);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
}

.single-nav-empty {
    min-height: 105px;
}

.volver-inicio {
    display: inline-flex;
    margin-top: 15px;
    padding: 11px 18px;
    border-radius: 8px;
    background: var(--sp-navy);
    color: var(--sp-white);
    font-weight: 800;
}

.volver-inicio:hover {
    background: var(--sp-blue);
    color: var(--sp-white);
}

/* =========================================================
   FOOTER
========================================================= */
.site-footer {
    margin-top: 0;
    overflow-x: hidden;
    background: var(--sp-navy);
    color: var(--sp-white);
}

.footer-inner {
    padding: 60px 0 34px;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-brand {
    max-width: 360px;
}

.footer-brand h2 {
    margin: 0 0 10px;
    color: var(--sp-white);
    font-size: 28px;
}

.footer-brand p {
    max-width: 450px;
    margin: 0;
    color: #b8c5d3;
}

.footer-column h3 {
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    color: var(--sp-white);
    font-size: 16px;
}

.footer-column a {
    display: block;
    margin-bottom: 8px;
    color: #b8c5d3;
    font-size: 14px;
}

.footer-column a:hover {
    color: var(--sp-blue);
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,.10);
    color: #b8c5d3;
    font-size: 12px;
}

/* =========================================================
   FOOTER — REFINAMIENTO VISUAL
   =========================================================

   El logo ya es blanco/transparente (pensado para fondo
   oscuro), así que NO necesita ninguna tarjeta blanca
   detrás -se ve directo sobre el navy del footer.

   Las listas de "Secciones" no usan los bullets por
   defecto del navegador, con más aire entre líneas.
   ========================================================= */

/* Logo del footer (sin tarjeta, el logo ya es blanco/transparente) */
.footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 22px;
}

.footer-logo img {
    width: 170px !important;
    max-width: 170px !important;
    height: auto !important;
    max-height: 100px !important;
    margin: 0 !important;
    object-fit: contain;
}

.footer-logo-fallback {
    display: block;
    color: var(--sp-white);
    font-size: 20px;
    font-weight: 900;
    line-height: 1.1;
}

.footer-description {
    color: #b8c5d3;
    font-size: 14px;
    line-height: 1.7;
}

/* Listas de secciones sin bullets */
.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column li:last-child {
    margin-bottom: 0;
}

.footer-column ul a {
    margin-bottom: 0;
    transition: color .2s ease, transform .2s ease;
}

.footer-column ul a:hover {
    color: var(--sp-blue);
}

.footer-social {
    text-align: center;
}

.footer-social h3 {
    margin-bottom: 18px;
}

/* =========================================================
   REDES SOCIALES (widget propio del tema)
========================================================= */
.sin-pausa-social-wrapper {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.sin-pausa-social-button {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sp-blue), var(--sp-blue-dark));
    color: var(--sp-white);
    box-shadow: 0 10px 30px rgba(0,168,232,.32);
}

.sin-pausa-social-icon {
    font-size: 21px;
    font-weight: 900;
}

.sin-pausa-social-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(.95);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.sin-pausa-social-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.sin-pausa-social-item {
    min-width: 135px;
    padding: 10px 16px;
    border: 1px solid var(--sp-border);
    border-radius: 999px;
    background: var(--sp-white);
    color: var(--sp-text);
    font-size: .84rem;
    font-weight: 800;
    text-align: center;
    box-shadow: var(--sp-shadow);
}

.sin-pausa-social-item:hover {
    background: var(--sp-blue);
    border-color: var(--sp-blue);
    color: var(--sp-white);
}


/* =========================================================
   BLOQUES NATIVOS DE WORDPRESS (GUTENBERG)
   ========================================================= */

/* Bloque nativo "Iconos de redes sociales" (por si acaso) */
.wp-block-social-links .wp-social-link svg {
    fill: var(--sp-white) !important;
}


/* =========================================================
   ICONOS DE REDES SOCIALES DEL FOOTER (footer.php)
   =========================================================

   Estas son las clases REALES que usa el theme
   (.social-icon dentro de .footer-social-links).
   ========================================================= */

.footer-social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
    transition: background .2s ease, transform .2s ease;
}

.social-icon svg {
    width: 22px;
    height: 22px;
}

.social-icon svg path {
    fill: var(--sp-white) !important;
}

.social-icon:hover {
    background: var(--sp-blue);
    transform: translateY(-2px);
}


/* =========================================================
   REFUERZO DE CENTRADO — REDES SOCIALES DEL FOOTER
   =========================================================

   NUEVO: por si otra regla (como .footer-column a, que
   agrega display:block y margin-bottom a TODOS los
   enlaces dentro de las columnas del footer) le estaba
   ganando en especificidad a la fila de iconos, esto lo
   fuerza a quedar centrado y sin ese margen extra sin
   importar el orden en que aparezcan las reglas.
   ========================================================= */

.footer-social .footer-social-links {
    display: flex !important;
    justify-content: center !important;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.footer-social .social-icon {
    margin-bottom: 0 !important;
}


/* =========================================================
   FORZAR EL CENTRADO REAL DEL ÍCONO DENTRO DEL CÍRCULO
   =========================================================

   NUEVO: ".footer-column a" (más arriba en este archivo)
   tiene más especificidad que ".social-icon" y le estaba
   ganando, forzando "display: block" en el enlace en vez
   de "inline-flex". Eso sacaba el SVG de su centrado y lo
   dejaba pegado a una esquina del círculo. Esto lo
   corrige con !important para que gane siempre.
   ========================================================= */

.footer-social .social-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.footer-social .social-icon svg {
    display: block;
    margin: 0 auto;
}

/* Bloque nativo "Categorías" (lista con contador) */
.wp-block-categories-list,
.wp-block-categories {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wp-block-categories-list li,
.wp-block-categories li {
    border-bottom: 1px solid var(--sp-border);
    padding: 10px 0;
}

.wp-block-categories-list a,
.wp-block-categories a {
    color: var(--sp-navy);
    font-weight: 700;
    font-size: 13px;
}

.wp-block-categories-list a:hover,
.wp-block-categories a:hover {
    color: var(--sp-blue);
}

/* Bloque nativo "Paginación de la consulta" (Query Pagination) */
.wp-block-query-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.wp-block-query-pagination-previous,
.wp-block-query-pagination-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--sp-border);
    border-radius: 8px;
    background: var(--sp-white);
    color: var(--sp-navy) !important;
}

.wp-block-query-pagination-previous:hover,
.wp-block-query-pagination-next:hover {
    background: var(--sp-navy);
    color: var(--sp-white) !important;
}

/* =========================================================
   PÁGINA DE INICIO (front-page.php)
   ========================================================= */

.home-hero {
    padding: 40px 0;
    background: var(--sp-bg);
}

.home-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

/* Carrusel principal */
.home-carousel {
    position: relative;
    border-radius: var(--sp-radius);
    overflow: hidden;
    box-shadow: var(--sp-shadow-lg);
    background: var(--sp-navy);
}

.home-carousel-slides {
    position: relative;
    width: 100%;
    height: 480px;
}

.home-carousel-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease, visibility .5s ease;
}

.home-carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.home-carousel-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.home-carousel-image-default {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--sp-navy), var(--sp-navy-2));
    color: var(--sp-white);
    font-weight: 900;
    font-size: 22px;
    letter-spacing: 2px;
}

.home-carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7,26,58,0) 25%, rgba(7,26,58,.92) 100%);
}

.home-carousel-content {
    position: relative;
    z-index: 3;
    padding: 40px;
    max-width: 700px;
    color: var(--sp-white);
}

.home-carousel-category {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--sp-blue);
    color: var(--sp-white);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.home-carousel-title {
    margin: 0 0 12px;
    color: var(--sp-white);
    font-size: clamp(24px, 3vw, 40px);
    line-height: 1.15;
}

.home-carousel-excerpt {
    max-width: 600px;
    margin: 0 0 20px;
    color: #d8e3ef;
    font-size: 15px;
    line-height: 1.6;
}

.home-carousel-button {
    display: inline-flex;
    padding: 11px 20px;
    border-radius: 8px;
    background: var(--sp-white);
    color: var(--sp-navy);
    font-weight: 800;
}

.home-carousel-button:hover {
    background: var(--sp-blue);
    color: var(--sp-white);
}

.home-carousel-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.16);
    color: var(--sp-white);
    font-size: 16px;
    transform: translateY(-50%);
    transition: background .2s ease;
}

.home-carousel-arrow:hover {
    background: var(--sp-blue);
}

.home-carousel-prev {
    left: 16px;
}

.home-carousel-next {
    right: 16px;
}

.home-carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 18px;
    z-index: 4;
    display: flex;
    gap: 6px;
    transform: translateX(-50%);
}

.home-carousel-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
}

.home-carousel-dot.active {
    width: 22px;
    border-radius: 999px;
    background: var(--sp-white);
}

.home-carousel-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 480px;
    text-align: center;
    color: #b8c5d3;
}

.home-empty-icon {
    margin-bottom: 10px;
    font-size: 2.4rem;
}

/* Sidebar del hero */
.home-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.home-sidebar-card {
    padding: 20px;
    background: var(--sp-white);
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius-sm);
    box-shadow: var(--sp-shadow);
}

.home-sidebar-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.home-sidebar-heading span {
    width: 4px;
    height: 20px;
    flex: 0 0 4px;
    border-radius: 4px;
    background: var(--sp-blue);
}

.home-sidebar-heading h2 {
    margin: 0;
    color: var(--sp-navy);
    font-size: 18px;
}

.home-ad-box {
    padding: 20px;
    text-align: center;
    border: 1px dashed var(--sp-border);
    border-radius: 10px;
    background: var(--sp-bg);
}

.home-ad-label {
    display: block;
    margin-bottom: 10px;
    color: var(--sp-muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .1em;
}

.home-ad-content strong {
    display: block;
    color: var(--sp-navy);
    font-size: 16px;
}

.home-ad-content span {
    color: var(--sp-muted);
    font-size: 13px;
}


/* =========================================================
   PUBLICIDAD DINÁMICA (template-parts/publicidad.php)
   =========================================================

   NUEVO: Estas son las clases reales que usa el
   componente de publicidad (.sin-pausa-publicidad y
   derivados), distintas a .home-ad-box (que era el
   placeholder estático de ejemplo). No tenían ningún
   estilo, por eso se veían como texto plano sin diseño.
   ========================================================= */

.sin-pausa-publicidad {
    display: block;
    overflow: hidden;
    background: var(--sp-bg);
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius-sm);
}

.sin-pausa-publicidad-link {
    display: block;
    color: inherit;
}

.sin-pausa-publicidad-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eef2f7;
}

.sin-pausa-publicidad-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.sin-pausa-publicidad-link:hover .sin-pausa-publicidad-image {
    transform: scale(1.05);
}

.sin-pausa-publicidad-info {
    padding: 14px;
}

.sin-pausa-publicidad-label {
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--sp-navy);
    color: var(--sp-white);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sin-pausa-publicidad-info h3 {
    margin: 0;
    color: var(--sp-navy);
    font-size: 14px;
    line-height: 1.3;
}

.sin-pausa-publicidad-vacio {
    padding: 20px;
    text-align: center;
    background: var(--sp-bg);
    border: 1px dashed var(--sp-border);
    border-radius: 10px;
}

.sin-pausa-publicidad-vacio p {
    margin: 8px 0 0;
    color: var(--sp-muted);
    font-size: 13px;
}


/* =========================================================
   CARRUSEL DE BANNERS HORIZONTALES
   (template-parts/publicidad-banner.php)
   =========================================================

   Banner de ancho completo debajo del menú, con varias
   imágenes rotando automáticamente, cada una con su
   propio enlace. Toda la imagen es clicable.
   ========================================================= */

.sin-pausa-banner-section {
    width: 100%;
    padding: 18px 0;
}

.sin-pausa-banner-carousel {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 14px;
    background: var(--sp-navy);
    box-shadow: var(--sp-shadow);
}

.sin-pausa-banner-track {
    position: relative;
    width: 100%;
    height: clamp(90px, 14vw, 200px);
}

.sin-pausa-banner-slide {
    position: absolute;
    inset: 0;
    display: block;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease, visibility .5s ease;
}

.sin-pausa-banner-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Fondo desenfocado: rellena el espacio vacío */
.sin-pausa-banner-bg {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(22px) brightness(.55);
    transform: scale(1.15);
}

/* Imagen nítida: nunca se recorta */
.sin-pausa-banner-fg {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sin-pausa-banner-dots {
    position: absolute;
    left: 50%;
    bottom: 10px;
    z-index: 3;
    display: flex;
    gap: 6px;
    transform: translateX(-50%);
}

.sin-pausa-banner-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .4);
    cursor: pointer;
}

.sin-pausa-banner-dot.is-active {
    width: 20px;
    border-radius: 999px;
    background: var(--sp-white);
}

@media (max-width: 767.98px) {

    .sin-pausa-banner-section {
        padding: 12px 0;
    }

    .sin-pausa-banner-carousel {
        border-radius: 10px;
    }

    .sin-pausa-banner-track {
        height: clamp(70px, 22vw, 140px);
    }
}

.home-sidebar-news {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.home-sidebar-news-item {
    display: flex;
    gap: 10px;
}

.home-sidebar-news-image {
    display: block;
    width: 70px;
    height: 56px;
    flex: 0 0 70px;
    overflow: hidden;
    border-radius: 8px;
    background: #eef2f7;
}

.home-sidebar-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-sidebar-news-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--sp-muted);
    font-weight: 900;
}

.home-sidebar-news-category {
    display: block;
    margin-bottom: 4px;
    color: var(--sp-blue-dark);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.home-sidebar-news-content h3 {
    margin: 0;
    font-size: 13px;
    line-height: 1.35;
}

.home-sidebar-news-content h3 a {
    color: var(--sp-navy);
}

/* Encabezados de sección (Últimas noticias / Categorías) */
.home-section {
    padding: 55px 0;
}

.home-section-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
}

.home-section-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--sp-blue-dark);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.home-section-heading h2 {
    margin: 0;
    color: var(--sp-navy);
    font-size: 28px;
}

.home-section-heading p {
    margin: 6px 0 0;
    color: var(--sp-muted);
}

.home-section-link {
    color: var(--sp-blue);
    font-weight: 800;
    font-size: 14px;
}

/* Grid de últimas noticias */
.home-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.home-news-card {
    overflow: hidden;
    background: var(--sp-white);
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    box-shadow: var(--sp-shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}

.home-news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sp-shadow-lg);
}

.home-news-image {
    display: block;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.home-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-news-image-default {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    background: linear-gradient(135deg, #e9eef4, #f8fafc);
    color: var(--sp-navy);
    font-weight: 900;
}

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

.home-news-category {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--sp-blue-dark);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.home-news-content h3 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.3;
}

.home-news-content h3 a {
    color: var(--sp-navy);
}

.home-news-content p {
    margin: 0 0 14px;
    color: var(--sp-muted);
    font-size: 13px;
    line-height: 1.55;
}

.home-news-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--sp-border);
    color: var(--sp-muted);
    font-size: 12px;
}

.home-news-read {
    color: var(--sp-blue);
    font-weight: 800;
}

/* Grid de categorías */
.home-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.home-category-card {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 24px;
    background: var(--sp-white);
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius-sm);
    color: var(--sp-navy);
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.home-category-card:hover {
    background: var(--sp-navy);
    color: var(--sp-white);
    transform: translateY(-3px);
}

.home-category-label {
    display: block;
    margin-bottom: 6px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .1em;
    opacity: .6;
}

.home-category-content h3 {
    margin: 0 0 6px;
    font-size: 20px;
}

.home-category-count {
    font-size: 12px;
    opacity: .75;
}

.home-category-arrow {
    font-size: 20px;
}

.home-empty {
    padding: 45px;
    text-align: center;
    color: var(--sp-muted);
    background: var(--sp-white);
    border: 1px dashed var(--sp-border);
    border-radius: var(--sp-radius-lg);
}

/* Responsive de la portada */
@media (max-width: 991px) {

    .home-hero-layout {
        grid-template-columns: 1fr;
    }

    .home-carousel-slides {
        height: 400px;
    }

    .home-carousel-empty {
        height: 400px;
    }

    .home-news-grid,
    .home-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {

    .home-carousel-slides {
        height: 340px;
    }

    .home-carousel-empty {
        height: 340px;
    }

    .home-carousel-content {
        padding: 22px;
    }

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


/* =========================================================
   FORMULARIOS / WORDPRESS
========================================================= */
.form-control,
.form-select {
    border-color: var(--sp-border);
    border-radius: 9px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--sp-blue);
    box-shadow: 0 0 0 .2rem rgba(0,168,232,.13);
}

.aligncenter {
    display: block;
    margin-inline: auto;
}

.alignleft {
    float: left;
    margin: 0 25px 20px 0;
}

.alignright {
    float: right;
    margin: 0 0 20px 25px;
}

/* =========================================================
   RESPONSIVE - TABLET
========================================================= */
@media (max-width: 1200px) {
    .container {
        width: min(94%, 1200px);
    }

    .header-inner {
        min-height: 205px;
    }

    .site-logo img,
    .site-logo-image {
        width: 185px !important;
        max-width: 185px !important;
    }

    .main-navigation {
        max-width: calc(100% - 430px);
    }

    .main-navigation .nav-link {
        padding-inline: 11px;
        font-size: 15px;
    }

    .header-search form {
        width: 300px;
    }

    .noticias-grid {
        gap: 18px;
    }

    .sin-pausa-ad-slide {
        grid-template-columns: 55% 45%;
    }
}

/* =========================================================
   TABLET PEQUEÑA
========================================================= */
@media (max-width: 991px) {
    .header-inner {
        min-height: 190px;
    }

    .site-logo img,
    .site-logo-image {
        width: 170px !important;
        max-width: 170px !important;
    }

    .main-navigation {
        max-width: calc(100% - 350px);
        gap: 2px;
    }

    .main-navigation .nav-link {
        padding: 7px 8px;
        font-size: 14px;
    }

    .header-search form {
        width: 250px;
        height: 46px;
    }

    .header-search input[type="search"],
    .header-search button {
        height: 46px;
    }

    .header-search button {
        width: 52px;
    }

    .noticias-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .categorias-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .single-noticia-layout {
        grid-template-columns: minmax(0, 1fr) 270px;
    }

    .footer-main {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

/* =========================================================
   MÓVIL
========================================================= */
@media (max-width: 767px) {
    .container {
        width: min(94%, 1200px);
    }

    .top-bar {
        min-height: 40px;
    }

    .top-bar-inner {
        min-height: 40px;
    }

    .country,
    .live-indicator {
        font-size: 12px;
    }

    .live-dot {
        width: 8px;
        height: 8px;
        flex-basis: 8px;
    }

    .main-header {
        padding: 12px 0 0;
    }

    .header-inner {
        min-height: 180px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding-bottom: 12px;
    }

    .site-branding {
        position: static;
        transform: none;
        margin: 4px auto 8px;
    }

    .site-logo img,
    .site-logo-image {
        width: 155px !important;
        max-width: 155px !important;
        max-height: 110px !important;
    }

    .main-navigation {
        position: static;
        transform: none;
        width: 100%;
        max-width: 100%;
        order: 2;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 2px 0 5px;
        scrollbar-width: none;
    }

    .main-navigation::-webkit-scrollbar {
        display: none;
    }

    .main-navigation .nav-link {
        flex: 0 0 auto;
        padding: 8px 12px;
        font-size: 14px;
    }

    .header-search {
        position: static;
        transform: none;
        order: 3;
        width: 100%;
        margin-top: 8px;
    }

    .header-search form {
        width: 100%;
        height: 44px;
    }

    .header-search input[type="search"],
    .header-search button {
        height: 44px;
    }

    .header-search button {
        width: 52px;
    }

    .category-inner {
        min-height: 48px;
        gap: 18px;
    }

    .category-inner a {
        font-size: 12px;
    }

    .section {
        padding: 45px 0;
    }

    .section-title {
        font-size: 27px;
    }

    .hero {
        padding: 50px 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .hero h1 {
        font-size: 46px;
    }

    .noticias-grid,
    .categorias-grid {
        grid-template-columns: 1fr;
    }

    .noticia-imagen,
    .noticia-imagen-default {
        height: 220px;
    }

    .single-noticia-layout {
        grid-template-columns: 1fr;
    }

    .single-noticia-sidebar {
        position: static;
    }

    .single-noticia-title {
        font-size: 38px;
        letter-spacing: -1.5px;
    }

    .single-noticia-content {
        padding: 28px 24px 32px;
    }

    .single-noticia-content p {
        font-size: 17px;
        line-height: 1.75;
    }

    .single-noticia-author {
        margin-inline: 24px;
    }

    .single-noticia-navigation {
        grid-template-columns: 1fr;
        margin-inline: 24px;
    }

    .sin-pausa-ads-carousel {
        height: auto;
        border-radius: 14px;
    }

    .sin-pausa-ads-carousel .carousel-item {
        height: auto;
    }

    .sin-pausa-ad-slide {
        display: flex;
        flex-direction: column;
        height: auto;
    }

    .sin-pausa-ad-media {
        height: 210px;
        min-height: 210px;
    }

    .sin-pausa-ad-media img,
    .sin-pausa-ad-image,
    .sin-pausa-ad-images img,
    .sin-pausa-ad-images .sin-pausa-ad-image {
        width: 100% !important;
        height: 100% !important;
        max-height: 210px !important;
    }

    .sin-pausa-ad-content {
        height: auto;
        min-height: 180px;
        padding: 22px;
    }

    .sin-pausa-ad-content h2 {
        font-size: 21px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* =========================================================
   CELULAR PEQUEÑO
========================================================= */
@media (max-width: 480px) {
    .top-right {
        display: none;
    }

    .header-inner {
        min-height: 175px;
    }

    .site-logo img,
    .site-logo-image {
        width: 135px !important;
        max-width: 135px !important;
        max-height: 95px !important;
    }

    .main-navigation .nav-link {
        font-size: 13px;
        padding-inline: 10px;
    }

    .category-inner {
        gap: 15px;
    }

    .category-inner a {
        font-size: 11px;
    }

    .hero h1 {
        font-size: 37px;
    }

    .hero-logo img {
        width: 180px !important;
        height: 180px !important;
        max-width: 180px !important;
        max-height: 180px !important;
    }

    .single-noticia-title {
        font-size: 32px;
    }

    .single-noticia-content {
        padding: 24px 20px 28px;
    }

    .single-noticia-author {
        margin-inline: 20px;
    }

    .single-noticia-navigation {
        margin-inline: 20px;
    }

    .sin-pausa-ad-media {
        height: 175px;
        min-height: 175px;
    }

    .sin-pausa-ad-media img,
    .sin-pausa-ad-image,
    .sin-pausa-ad-images img,
    .sin-pausa-ad-images .sin-pausa-ad-image {
        max-height: 175px !important;
    }

    .sin-pausa-ad-content {
        padding: 18px;
    }

    .sin-pausa-ad-content h2 {
        font-size: 19px;
    }
}

/* =========================================================
   NAVEGACIÓN ENTRE NOTICIAS (single.php)
   =========================================================

   NUEVO: convierte los enlaces de "Noticia anterior" /
   "Noticia siguiente" en tarjetas tipo botón, en vez del
   texto plano por defecto de WordPress.
   ========================================================= */

.single-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 40px 0;
}

.single-navigation-prev,
.single-navigation-next {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 90px;
    padding: 18px 22px;
    background: var(--sp-white);
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius-sm);
    box-shadow: var(--sp-shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.single-navigation-prev:hover,
.single-navigation-next:hover {
    transform: translateY(-2px);
    border-color: var(--sp-blue);
    box-shadow: var(--sp-shadow);
}

.single-navigation-next {
    align-items: flex-end;
    text-align: right;
}

.single-navigation .nav-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    color: var(--sp-blue-dark);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.single-navigation .nav-title {
    color: var(--sp-navy);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
}

.single-navigation-empty {
    min-height: 90px;
}

@media (max-width: 767.98px) {

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

    .single-navigation-next {
        align-items: flex-start;
        text-align: left;
    }
}


/* =========================================================
   PÁGINA DE NOTICIA INDIVIDUAL (single.php) — CLASES REALES
   =========================================================

   NUEVO: single.php usa nombres de clase distintos a los
   que ya existían en este archivo (ej. "single-noticia-
   category" en inglés vs "single-noticia-categoria" en
   español, "single-noticia-body" en vez de "single-
   noticia-content" para el cuerpo). Por eso el badge de
   categoría, el cuerpo del artículo, la caja del autor,
   las tarjetas del sidebar y el anuncio secundario se
   veían como texto plano sin ningún diseño.
   ========================================================= */

/* Badge de categoría arriba del título */
.single-noticia-category {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #e8f7fd;
    color: var(--sp-blue-dark);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* Imagen destacada */
.single-noticia-featured-image {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: var(--sp-radius);
    margin: 20px 0 0;
}

/* Cuerpo del artículo (the_content()) */
.single-noticia-body {
    margin: 26px 0 34px;
}

.single-noticia-body p {
    margin: 0 0 22px;
    color: #344054;
    font-size: 18px;
    line-height: 1.85;
}

.single-noticia-body h2 {
    margin: 38px 0 15px;
    color: var(--sp-navy);
    font-size: 30px;
    line-height: 1.25;
}

.single-noticia-body h3 {
    margin: 30px 0 12px;
    color: var(--sp-navy);
    font-size: 24px;
    line-height: 1.3;
}

.single-noticia-body ul,
.single-noticia-body ol {
    margin: 0 0 25px;
    padding-left: 25px;
    color: #344054;
    font-size: 17px;
    line-height: 1.8;
}

.single-noticia-body li {
    margin-bottom: 7px;
}

.single-noticia-body blockquote {
    margin: 30px 0;
    padding: 20px 25px;
    border-left: 4px solid var(--sp-blue);
    background: #e8f7fd;
    color: var(--sp-navy);
    font-size: 18px;
    font-style: italic;
}

.single-noticia-body img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    margin: 25px auto !important;
    border-radius: 10px;
}

.single-noticia-body a {
    color: var(--sp-blue-dark);
    font-weight: 700;
}

/* Caja del autor */
.single-author-box {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 32px 0;
    padding: 18px 20px;
    background: #fafbfc;
    border: 1px solid var(--sp-border);
    border-radius: 12px;
}

.single-author-avatar {
    flex: 0 0 auto;
}

.author-avatar-image {
    display: block;
    border-radius: 50%;
}

.single-author-name {
    margin: 0;
    color: var(--sp-navy);
    font-weight: 800;
    font-size: 15px;
}

.single-author-description {
    margin: 2px 0 0;
    color: var(--sp-muted);
    font-size: 13px;
}

/* Tarjetas del sidebar (Publicidad / Últimas noticias / Información) */
.sidebar-widget {
    padding: 20px;
    margin-bottom: 20px;
    background: var(--sp-white);
    border: 1px solid var(--sp-border);
    border-top: 3px solid var(--sp-blue);
    border-radius: var(--sp-radius-sm);
    box-shadow: var(--sp-shadow);
}

.sidebar-widget h3 {
    position: relative;
    margin: 0 0 16px;
    padding-left: 14px;
    color: var(--sp-navy);
    font-size: 18px;
}

.sidebar-widget h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 4px;
    border-radius: 4px;
    background: var(--sp-blue);
}

/* Anuncio estático de respaldo (hero-ad / hero-ad-secondary) */
.hero-ad {
    padding: 20px;
    text-align: center;
    border: 1px dashed var(--sp-border);
    border-radius: 10px;
    background: var(--sp-bg);
}

.hero-ad .ad-label {
    display: block;
    margin-bottom: 10px;
    color: var(--sp-muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.hero-ad .ad-content strong {
    display: block;
    color: var(--sp-navy);
    font-size: 16px;
}

.hero-ad .ad-content span {
    color: var(--sp-muted);
    font-size: 13px;
}

/* Lista de "Últimas noticias" del sidebar */
.sidebar-news-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--sp-border);
}

.sidebar-news-item:first-child {
    padding-top: 0;
}

.sidebar-news-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.sidebar-news-image {
    display: block;
    width: 72px;
    height: 58px;
    flex: 0 0 72px;
    object-fit: cover;
    border-radius: 8px;
    background: #eef2f7;
}

.sidebar-news-category {
    display: block;
    margin-bottom: 4px;
    color: var(--sp-blue-dark);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.sidebar-news-title {
    display: block;
    color: var(--sp-navy);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}


/* =========================================================
   TOUCH
========================================================= */
@media (hover: none) and (pointer: coarse) {
    .noticia:hover,
    .categoria:hover {
        transform: none;
    }
}


/* =========================================================
   PÁGINA DE CATEGORÍA (category.php) — CLASES REALES
   =========================================================

   NUEVO: category.php reutiliza .sidebar-widget, .hero-ad
   y .sidebar-news-* (que ya tenían CSS de single.php), pero
   introduce clases propias nuevas (.category-header,
   .category-card, .category-pagination, etc.) y una
   variante en inglés de "category-count" que no coincidía
   con la vieja ".categoria-count" en español.
   ========================================================= */

.category-page {
    padding: 40px 0 70px;
}

/* Encabezado de la categoría */
.category-header {
    margin-bottom: 36px;
}

.category-header-label {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--sp-navy);
    color: var(--sp-white);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.category-header h1 {
    margin: 0 0 12px;
    color: var(--sp-navy);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.1;
    letter-spacing: -1px;
}

.category-description {
    max-width: 720px;
    margin: 0;
    color: var(--sp-muted);
    font-size: 16px;
    line-height: 1.7;
}

/* Layout de dos columnas (noticias + sidebar) */
.category-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 30px;
    align-items: start;
}

/* Grid de tarjetas de noticias */
.category-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.category-card {
    overflow: hidden;
    background: var(--sp-white);
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    box-shadow: var(--sp-shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sp-shadow-lg);
}

.category-card-image-link {
    display: block;
}

.category-card-image {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.category-card-image-default {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 190px;
    background: linear-gradient(135deg, #e9eef4, #f8fafc);
    color: var(--sp-navy);
    font-weight: 900;
}

.category-card-content {
    padding: 18px;
}

.category-card-category {
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #e8f7fd;
    color: var(--sp-blue-dark);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.category-card-content h2 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.3;
}

.category-card-content h2 a {
    color: var(--sp-navy);
}

.category-card-content p {
    margin: 0 0 14px;
    color: var(--sp-muted);
    font-size: 13.5px;
    line-height: 1.55;
}

.category-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--sp-border);
    color: var(--sp-muted);
    font-size: 12px;
}

.category-card-read-more {
    color: var(--sp-blue);
    font-weight: 800;
}

/* Paginación (usa las clases nativas de WordPress page-numbers) */
.category-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 34px;
}

.category-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--sp-border);
    border-radius: 8px;
    background: var(--sp-white);
    color: var(--sp-navy);
    font-weight: 700;
    font-size: 13px;
}

.category-pagination .page-numbers.current {
    background: var(--sp-navy);
    border-color: var(--sp-navy);
    color: var(--sp-white);
}

.category-pagination .page-numbers:hover:not(.current) {
    border-color: var(--sp-blue);
    color: var(--sp-blue);
}

.category-pagination .page-numbers.dots {
    border: 0;
    background: transparent;
}

/* Lista "Últimas noticias" del sidebar (reutiliza .sidebar-news-item) */
.category-latest-news {
    display: flex;
    flex-direction: column;
}

.sidebar-news-date {
    display: block;
    margin-top: 3px;
    color: var(--sp-muted);
    font-size: 10.5px;
}

/* Lista de todas las categorías con contador */
.category-sidebar-list {
    display: flex;
    flex-direction: column;
}

.category-sidebar-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--sp-border);
    color: var(--sp-navy);
    font-size: 13px;
    font-weight: 700;
}

.category-sidebar-list a:first-child {
    padding-top: 0;
}

.category-sidebar-list a:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.category-sidebar-list a:hover {
    color: var(--sp-blue-dark);
}

.category-count {
    min-width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border-radius: 50px;
    background: #e8f7fd;
    color: var(--sp-navy);
    font-size: 11px;
    font-weight: 900;
}

/* Estado vacío (sin noticias en la categoría) */
.category-empty {
    padding: 60px 24px;
    text-align: center;
    background: var(--sp-white);
    border: 1px dashed var(--sp-border);
    border-radius: var(--sp-radius-lg);
}

.category-empty h2 {
    margin: 0 0 10px;
    color: var(--sp-navy);
}

.category-empty p {
    margin: 0 0 20px;
    color: var(--sp-muted);
}

/* Botón genérico de marca (también usado en single.php) */
.carousel-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 9px;
    background: var(--sp-navy);
    color: var(--sp-white) !important;
    font-weight: 800;
    font-size: 14px;
    transition: background .2s ease, transform .2s ease;
}

.carousel-button:hover {
    background: var(--sp-blue);
    color: var(--sp-white) !important;
    transform: translateY(-1px);
}

@media (max-width: 991px) {

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

@media (max-width: 600px) {

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


/* =========================================================
   AISLAMIENTO DEL FOOTER
   ========================================================= */
.site-footer {
    position: relative;
    z-index: 1;
    clear: both;
    overflow: visible;
}

.site-footer .footer-inner,
.site-footer .footer-main,
.site-footer .footer-bottom {
    position: relative;
}

.site-footer .footer-main {
    display: grid;
}
