/* ============================================
   SABANETA PRIMERO – MAIN CSS
   Portal de Noticias Profesional
   Version: 2.0
   ============================================ */

/* === CSS CUSTOM PROPERTIES === */
:root {
    --sp-primary: #FFC107;
    --sp-primary-dark: #E5AC00;
    --sp-secondary: #E85D2C;
    --sp-black: #000000;
    --sp-black-dark: #111111;
    --sp-white: #FFFFFF;
    --sp-gray-100: #F8F9FA;
    --sp-gray-200: #E9ECEF;
    --sp-gray-300: #DEE2E6;
    --sp-gray-400: #CED4DA;
    --sp-gray-500: #ADB5BD;
    --sp-gray-600: #6C757D;
    --sp-gray-700: #495057;
    --sp-gray-800: #343A40;
    --sp-gray-900: #212529;
    --sp-font-title: 'Merriweather', Georgia, serif;
    --sp-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --sp-shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --sp-shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --sp-shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --sp-shadow-hover: 0 12px 40px rgba(0,0,0,0.18);
    --sp-radius: 6px;
    --sp-radius-lg: 10px;
    --sp-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --sp-container: 1240px;
    --sp-header-height: 60px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--sp-font-body);
    font-weight: 400;
    line-height: 1.7;
    color: var(--sp-gray-900);
    background: var(--sp-gray-100);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

#main-content {
    overflow-x: hidden;
    max-width: 100vw;
}

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

iframe, video, embed, object {
    max-width: 100%;
}

table {
    max-width: 100%;
    overflow-x: auto;
    display: block;
    word-break: keep-all;
}

pre, code {
    max-width: 100%;
    overflow-x: auto;
    word-break: break-all;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--sp-transition);
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--sp-font-title);
    font-weight: 700;
    line-height: 1.3;
    color: var(--sp-black);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* === CONTAINER === */
.sp-container {
    width: 100%;
    max-width: var(--sp-container);
    margin: 0 auto;
    padding: 0 20px;
}

/* === SCREEN READER === */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--sp-white);
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0,0,0,0.6);
    clip: auto !important;
    color: var(--sp-black);
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ============================================
   TOP BAR – ÚLTIMA HORA
   ============================================ */
.sp-topbar {
    background: var(--sp-black);
    color: var(--sp-white);
    font-size: 0.8125rem;
    height: 40px;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    z-index: 1000;
}

.sp-topbar .sp-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.sp-topbar__left {
    display: flex;
    align-items: center;
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.sp-topbar__label {
    background: var(--sp-primary);
    color: var(--sp-black);
    font-weight: 700;
    font-size: 0.6875rem;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 3px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.sp-topbar__pulse {
    width: 8px;
    height: 8px;
    background: var(--sp-secondary);
    border-radius: 50%;
    animation: sp-pulse 1.5s ease-in-out infinite;
}

@keyframes sp-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.sp-ticker-wrap {
    overflow: hidden;
    flex: 1;
    margin-left: 15px;
    height: 40px;
    display: flex;
    align-items: center;
    position: relative;
}

.sp-ticker-wrap::before,
.sp-ticker-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30px;
    z-index: 2;
    pointer-events: none;
}

.sp-ticker-wrap::before {
    left: 0;
    background: linear-gradient(90deg, var(--sp-black), transparent);
}

.sp-ticker-wrap::after {
    right: 0;
    background: linear-gradient(270deg, var(--sp-black), transparent);
}

.sp-ticker {
    display: flex;
    animation: sp-ticker-scroll 30s linear infinite;
    white-space: nowrap;
}

.sp-ticker:hover {
    animation-play-state: paused;
}

.sp-ticker__item {
    padding: 0 25px;
    white-space: nowrap;
    font-size: 0.8125rem;
    display: flex;
    align-items: center;
}

.sp-ticker__item::before {
    content: '•';
    color: var(--sp-primary);
    margin-right: 8px;
    font-size: 1rem;
}

.sp-ticker__item a {
    color: var(--sp-white);
    transition: color var(--sp-transition);
}

.sp-ticker__item a:hover {
    color: var(--sp-primary);
}

@keyframes sp-ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.sp-topbar__right {
    font-size: 0.8125rem;
    color: var(--sp-gray-400);
    white-space: nowrap;
    padding-left: 20px;
    flex-shrink: 0;
}

/* ============================================
   HEADER PRINCIPAL
   ============================================ */
.sp-header {
    background: var(--sp-white);
    border-bottom: 1px solid var(--sp-gray-200);
    padding: 15px 0;
    position: relative;
    z-index: 999;
}

.sp-header .sp-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.sp-header__logo {
    flex-shrink: 0;
}

.sp-header__logo img {
    max-height: 80px;
    max-width: 280px;
    width: auto;
}

.sp-header__logo-text {
    font-family: var(--sp-font-title);
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--sp-black);
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.sp-header__logo-text span {
    color: var(--sp-primary);
}

.sp-header__banner {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sp-header__banner-inner {
    max-width: 728px;
    width: 100%;
}

.sp-header__banner img {
    width: 100%;
    max-height: 90px;
    object-fit: contain;
}

.sp-ad-placeholder {
    background: linear-gradient(135deg, var(--sp-gray-100), var(--sp-gray-200));
    border: 2px dashed var(--sp-gray-300);
    border-radius: var(--sp-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--sp-gray-500);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px;
    text-align: center;
    transition: all var(--sp-transition);
    line-height: 1.4;
}

.sp-ad-placeholder:hover {
    border-color: var(--sp-primary);
    color: var(--sp-gray-700);
}

.sp-ad-placeholder--header {
    height: 90px;
    max-width: 728px;
    margin: 0 auto;
}

.sp-ad-placeholder--sidebar {
    height: 250px;
    max-width: 300px;
    margin: 0 auto;
}

.sp-ad-placeholder--inline {
    height: 90px;
    max-width: 728px;
    margin: 30px auto;
}

.sp-header__social {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.sp-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--sp-gray-600);
    font-size: 1rem;
    transition: all var(--sp-transition);
    border: 1px solid var(--sp-gray-200);
}

.sp-social-icon:hover {
    background: var(--sp-primary);
    color: var(--sp-black);
    border-color: var(--sp-primary);
    transform: translateY(-2px);
}

.sp-social-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ============================================
   NAVIGATION PRINCIPAL
   ============================================ */
.sp-nav {
    background: var(--sp-black);
    position: relative;
    z-index: 998;
}

.sp-nav.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: var(--sp-shadow-lg);
    animation: sp-slideDown 0.3s ease;
}

@keyframes sp-slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.sp-nav .sp-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sp-nav__menu {
    display: flex;
    align-items: stretch;
}

.sp-nav__item {
    position: relative;
}

.sp-nav__link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 18px;
    height: var(--sp-header-height);
    color: var(--sp-white);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--sp-transition);
    white-space: nowrap;
    position: relative;
}

.sp-nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--sp-primary);
    transition: width var(--sp-transition);
}

.sp-nav__link:hover,
.sp-nav__link--active {
    color: var(--sp-primary);
}

.sp-nav__link:hover::after,
.sp-nav__link--active::after {
    width: 100%;
}

.sp-nav__link .sp-icon-home {
    font-size: 1.125rem;
}

.sp-nav__arrow {
    font-size: 0.625rem;
    transition: transform var(--sp-transition);
}

.sp-nav__item:hover > .sp-nav__arrow {
    transform: rotate(180deg);
}

/* Dropdown */
.sp-nav__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--sp-white);
    border-radius: 0 0 var(--sp-radius) var(--sp-radius);
    box-shadow: var(--sp-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--sp-transition);
    z-index: 1000;
}

.sp-nav__item:hover > .sp-nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sp-nav__dropdown-item {
    display: block;
    padding: 12px 20px;
    color: var(--sp-gray-700);
    font-size: 0.875rem;
    border-bottom: 1px solid var(--sp-gray-100);
    transition: all var(--sp-transition);
}

.sp-nav__dropdown-item:hover {
    background: var(--sp-gray-100);
    color: var(--sp-primary-dark);
    padding-left: 25px;
}

.sp-nav__dropdown-item:last-child {
    border-bottom: none;
}

/* Search button */
.sp-nav__search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: var(--sp-header-height);
    color: var(--sp-white);
    font-size: 1.125rem;
    transition: all var(--sp-transition);
    cursor: pointer;
}

.sp-nav__search-btn:hover {
    color: var(--sp-primary);
}

.sp-nav__search-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Mobile menu toggle */
.sp-nav__mobile-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    color: var(--sp-white);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
}

.sp-hamburger {
    width: 22px;
    height: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sp-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--sp-white);
    border-radius: 2px;
    transition: all var(--sp-transition);
}

/* ============================================
   SEARCH OVERLAY
   ============================================ */
.sp-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.sp-search-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.sp-search-overlay__inner {
    width: 90%;
    max-width: 700px;
    transform: translateY(30px);
    transition: transform 0.4s ease;
}

.sp-search-overlay.is-active .sp-search-overlay__inner {
    transform: translateY(0);
}

.sp-search-overlay__form {
    display: flex;
    border-bottom: 3px solid var(--sp-primary);
}

.sp-search-overlay__input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--sp-white);
    font-size: 2rem;
    font-family: var(--sp-font-title);
    padding: 15px 0;
    outline: none;
}

.sp-search-overlay__input::placeholder {
    color: var(--sp-gray-600);
}

.sp-search-overlay__submit {
    color: var(--sp-primary);
    font-size: 1.5rem;
    padding: 0 15px;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform var(--sp-transition);
}

.sp-search-overlay__submit:hover {
    transform: scale(1.1);
}

.sp-search-overlay__submit svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.sp-search-overlay__close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: var(--sp-white);
    font-size: 2rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--sp-transition);
    background: none;
    border: none;
}

.sp-search-overlay__close:hover {
    background: rgba(255,255,255,0.1);
    color: var(--sp-primary);
}

.sp-search-overlay__close svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* ============================================
   MOBILE NAVIGATION DRAWER
   ============================================ */
.sp-mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100%;
    background: var(--sp-black-dark);
    z-index: 10001;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.sp-mobile-nav.is-active {
    transform: translateX(0);
}

.sp-mobile-nav__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sp-mobile-nav__title {
    color: var(--sp-white);
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sp-mobile-nav__close {
    color: var(--sp-white);
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--sp-transition);
    background: none;
    border: none;
}

.sp-mobile-nav__close:hover {
    background: rgba(255,255,255,0.1);
    color: var(--sp-primary);
}

.sp-mobile-nav__close svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.sp-mobile-nav__search {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sp-mobile-nav__search-form {
    display: flex;
    background: rgba(255,255,255,0.08);
    border-radius: var(--sp-radius);
    overflow: hidden;
}

.sp-mobile-nav__search-input {
    flex: 1;
    background: none;
    border: none;
    color: var(--sp-white);
    padding: 10px 15px;
    font-size: 0.875rem;
    outline: none;
}

.sp-mobile-nav__search-input::placeholder {
    color: var(--sp-gray-500);
}

.sp-mobile-nav__search-submit {
    color: var(--sp-primary);
    padding: 0 12px;
    background: none;
    border: none;
    cursor: pointer;
}

.sp-mobile-nav__search-submit svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.sp-mobile-nav__list {
    padding: 10px 0;
}

.sp-mobile-nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    color: var(--sp-gray-300);
    font-size: 0.9375rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all var(--sp-transition);
}

.sp-mobile-nav__link:hover,
.sp-mobile-nav__link--active {
    color: var(--sp-primary);
    background: rgba(255,255,255,0.03);
    padding-left: 25px;
}

.sp-mobile-nav__sub {
    display: none;
    background: rgba(0,0,0,0.3);
}

.sp-mobile-nav__sub.is-open {
    display: block;
}

.sp-mobile-nav__sub .sp-mobile-nav__link {
    padding-left: 40px;
    font-size: 0.875rem;
}

.sp-mobile-nav__social {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.sp-mobile-nav__social .sp-social-icon {
    color: var(--sp-gray-400);
    border-color: rgba(255,255,255,0.15);
}

.sp-mobile-nav__social .sp-social-icon:hover {
    background: var(--sp-primary);
    color: var(--sp-black);
    border-color: var(--sp-primary);
}

.sp-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
}

.sp-mobile-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   HERO SLIDER
   ============================================ */
.sp-hero {
    position: relative;
    overflow: hidden;
    background: var(--sp-black);
}

.sp-hero__slides {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.sp-hero__slide {
    min-width: 100%;
    position: relative;
    aspect-ratio: 16/7;
    overflow: hidden;
}

.sp-hero__slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 6s ease;
}

.sp-hero__slide.is-active .sp-hero__slide-img {
    transform: scale(1.05);
}

.sp-hero__slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 40px 40px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
}

.sp-hero__slide-cat {
    display: inline-block;
    background: var(--sp-primary);
    color: var(--sp-black);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 3px;
    margin-bottom: 12px;
}

.sp-hero__slide-title {
    font-family: var(--sp-font-title);
    font-size: 2rem;
    font-weight: 900;
    color: var(--sp-white);
    line-height: 1.25;
    margin-bottom: 10px;
    max-width: 700px;
}

.sp-hero__slide-title a {
    color: var(--sp-white);
    transition: color var(--sp-transition);
}

.sp-hero__slide-title a:hover {
    color: var(--sp-primary);
}

.sp-hero__slide-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--sp-gray-300);
    font-size: 0.8125rem;
}

.sp-hero__slide-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.sp-hero__slide-excerpt {
    color: var(--sp-gray-300);
    font-size: 0.9375rem;
    margin-top: 10px;
    max-width: 600px;
    line-height: 1.6;
}

/* Slider Controls */
.sp-hero__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.5);
    color: var(--sp-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all var(--sp-transition);
    z-index: 10;
    backdrop-filter: blur(5px);
}

.sp-hero__arrow:hover {
    background: var(--sp-primary);
    color: var(--sp-black);
}

.sp-hero__arrow svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.sp-hero__arrow--prev {
    left: 20px;
}

.sp-hero__arrow--next {
    right: 20px;
}

.sp-hero__dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.sp-hero__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: all var(--sp-transition);
}

.sp-hero__dot.is-active {
    background: var(--sp-primary);
    width: 28px;
    border-radius: 5px;
}

/* ============================================
   CONTENT AREA
   ============================================ */
.sp-content-area {
    padding: 40px 0 60px;
}

.sp-content-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
}

.sp-main-content {
    min-width: 0;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.sp-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    border-bottom: 3px solid var(--sp-black);
    padding-bottom: 12px;
}

.sp-section-title {
    font-family: var(--sp-font-title);
    font-size: 1.375rem;
    font-weight: 900;
    color: var(--sp-black);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-left: 15px;
}

.sp-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 4px;
    background: var(--sp-primary);
    border-radius: 2px;
}

.sp-section-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--sp-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color var(--sp-transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.sp-section-link:hover {
    color: var(--sp-primary-dark);
}

/* ============================================
   FEATURED POSTS (DESTACADOS)
   ============================================ */
.sp-featured {
    margin-bottom: 40px;
}

.sp-featured__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.sp-featured-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--sp-radius-lg);
    background: var(--sp-black);
    cursor: pointer;
}

.sp-featured-card__img-wrap {
    width: 100%;
    min-height: 320px;
    overflow: hidden;
}

.sp-featured-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sp-featured-card:hover .sp-featured-card__img {
    transform: scale(1.08);
}

.sp-featured-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 25px 25px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
}

.sp-featured-card__cat {
    display: inline-block;
    background: var(--sp-primary);
    color: var(--sp-black);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: 3px;
    margin-bottom: 8px;
}

.sp-featured-card__title {
    font-family: var(--sp-font-title);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--sp-white);
    line-height: 1.3;
    margin-bottom: 8px;
}

.sp-featured-card__title a {
    color: var(--sp-white);
}

.sp-featured-card__title a:hover {
    color: var(--sp-primary);
}

.sp-featured-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--sp-gray-400);
    font-size: 0.75rem;
}

.sp-featured-card__excerpt {
    color: var(--sp-gray-300);
    font-size: 0.8125rem;
    margin-top: 8px;
    line-height: 1.5;
}

/* ============================================
   POST CARDS GRID (ÚLTIMAS NOTICIAS)
   ============================================ */
.sp-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.sp-post-card {
    background: var(--sp-white);
    border-radius: var(--sp-radius-lg);
    overflow: hidden;
    box-shadow: var(--sp-shadow-sm);
    transition: all var(--sp-transition);
}

.sp-post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sp-shadow-hover);
}

.sp-post-card__img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.sp-post-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sp-post-card:hover .sp-post-card__img {
    transform: scale(1.08);
}

.sp-post-card__cat {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--sp-primary);
    color: var(--sp-black);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: 3px;
    z-index: 2;
}

.sp-post-card__body {
    padding: 20px;
}

.sp-post-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--sp-gray-500);
    font-size: 0.75rem;
    margin-bottom: 10px;
}

.sp-post-card__meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sp-post-card__title {
    font-family: var(--sp-font-title);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--sp-black);
    line-height: 1.35;
    margin-bottom: 10px;
}

.sp-post-card__title a {
    color: var(--sp-black);
    transition: color var(--sp-transition);
}

.sp-post-card__title a:hover {
    color: var(--sp-secondary);
}

.sp-post-card__excerpt {
    font-size: 0.875rem;
    color: var(--sp-gray-600);
    line-height: 1.6;
    margin-bottom: 15px;
}

.sp-post-card__read-more {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--sp-secondary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all var(--sp-transition);
}

.sp-post-card__read-more:hover {
    color: var(--sp-primary-dark);
    gap: 8px;
}

/* ============================================
   LATEST POSTS GRID (ÚLTIMAS NOTICIAS – 2 COL)
   ============================================ */
.sp-latest {
    margin-top: 40px;
}

.sp-latest-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sp-sidebar {
    position: sticky;
    top: 80px;
    max-width: 100%;
    overflow: hidden;
}

.sp-widget {
    background: var(--sp-white);
    border-radius: var(--sp-radius-lg);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--sp-shadow-sm);
    overflow: hidden;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.sp-widget__title {
    font-family: var(--sp-font-title);
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 12px;
    margin-bottom: 18px;
    border-bottom: 3px solid var(--sp-black);
    position: relative;
}

.sp-widget__title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--sp-primary);
}

/* Recent Posts Widget */
.sp-recent-post {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--sp-gray-100);
}

.sp-recent-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sp-recent-post:first-child {
    padding-top: 0;
}

.sp-recent-post__img {
    width: 80px;
    height: 60px;
    border-radius: var(--sp-radius);
    object-fit: cover;
    flex-shrink: 0;
}

.sp-recent-post__content {
    min-width: 0;
}

.sp-recent-post__title {
    font-family: var(--sp-font-title);
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 4px;
}

.sp-recent-post__title a {
    color: var(--sp-black);
}

.sp-recent-post__title a:hover {
    color: var(--sp-secondary);
}

.sp-recent-post__date {
    font-size: 0.6875rem;
    color: var(--sp-gray-500);
}

/* Categories Widget */
.sp-cat-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--sp-gray-100);
    font-size: 0.875rem;
    color: var(--sp-gray-700);
    transition: all var(--sp-transition);
}

.sp-cat-list__item:hover {
    color: var(--sp-secondary);
    padding-left: 5px;
}

.sp-cat-list__item:last-child {
    border-bottom: none;
}

.sp-cat-list__count {
    background: var(--sp-gray-100);
    color: var(--sp-gray-600);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}

/* Social Widget */
.sp-social-widget {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.sp-social-widget__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 12px 5px;
    border-radius: var(--sp-radius);
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--sp-white);
    transition: all var(--sp-transition);
}

.sp-social-widget__link:hover {
    transform: translateY(-3px);
    color: var(--sp-white);
}

.sp-social-widget__link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.sp-social-widget__link--facebook { background: #1877F2; }
.sp-social-widget__link--instagram { background: linear-gradient(45deg, #F09433, #E6683C, #DC2743, #CC2366, #BC1888); }
.sp-social-widget__link--youtube { background: #FF0000; }
.sp-social-widget__link--tiktok { background: var(--sp-black); }
.sp-social-widget__link--x { background: var(--sp-black); }
.sp-social-widget__link--whatsapp { background: #25D366; }

/* ============================================
   SINGLE POST
   ============================================ */
.sp-single {
    background: var(--sp-white);
    border-radius: var(--sp-radius-lg);
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: var(--sp-shadow-sm);
}

.sp-single__header {
    margin-bottom: 25px;
}

.sp-single__cat {
    display: inline-block;
    background: var(--sp-primary);
    color: var(--sp-black);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 3px;
    margin-bottom: 15px;
}

.sp-single__title {
    font-family: var(--sp-font-title);
    font-size: 2rem;
    font-weight: 900;
    color: var(--sp-black);
    line-height: 1.25;
    margin-bottom: 15px;
}

.sp-single__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    color: var(--sp-gray-500);
    font-size: 0.8125rem;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--sp-gray-200);
}

.sp-single__meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.sp-single__meta a {
    color: var(--sp-secondary);
    font-weight: 600;
}

.sp-single__featured-img {
    width: 100%;
    border-radius: var(--sp-radius-lg);
    margin-bottom: 25px;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.sp-single__content {
    font-size: 1.0625rem;
    line-height: 1.85;
    color: var(--sp-gray-800);
}

.sp-single__content p {
    margin-bottom: 1.5em;
}

.sp-single__content h2,
.sp-single__content h3,
.sp-single__content h4 {
    margin-top: 1.5em;
    margin-bottom: 0.75em;
}

.sp-single__content img {
    border-radius: var(--sp-radius);
    margin: 1.5em 0;
}

.sp-single__content blockquote {
    border-left: 4px solid var(--sp-primary);
    padding: 20px 25px;
    margin: 1.5em 0;
    background: var(--sp-gray-100);
    border-radius: 0 var(--sp-radius) var(--sp-radius) 0;
    font-style: italic;
    color: var(--sp-gray-700);
}

.sp-single__content ul,
.sp-single__content ol {
    padding-left: 1.5em;
    margin-bottom: 1.5em;
}

.sp-single__content ul li {
    list-style: disc;
    margin-bottom: 0.5em;
}

.sp-single__content ol li {
    list-style: decimal;
    margin-bottom: 0.5em;
}

.sp-single__content a {
    color: var(--sp-secondary);
    text-decoration: underline;
}

.sp-single__content a:hover {
    color: var(--sp-primary-dark);
}

/* Tags */
.sp-single__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--sp-gray-200);
}

.sp-single__tag {
    display: inline-block;
    background: var(--sp-gray-100);
    color: var(--sp-gray-700);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    transition: all var(--sp-transition);
}

.sp-single__tag:hover {
    background: var(--sp-primary);
    color: var(--sp-black);
}

/* Share */
.sp-single__share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--sp-gray-200);
}

.sp-single__share-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--sp-gray-700);
}

.sp-single__share-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--sp-white);
    font-size: 0.875rem;
    transition: all var(--sp-transition);
}

.sp-single__share-link:hover {
    transform: translateY(-3px);
    color: var(--sp-white);
}

.sp-single__share-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.sp-single__share-link--facebook { background: #1877F2; }
.sp-single__share-link--x { background: var(--sp-black); }
.sp-single__share-link--whatsapp { background: #25D366; }

/* Author Box */
.sp-author-box {
    display: flex;
    gap: 20px;
    background: var(--sp-gray-100);
    border-radius: var(--sp-radius-lg);
    padding: 25px;
    margin-top: 30px;
}

.sp-author-box__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.sp-author-box__name {
    font-family: var(--sp-font-title);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.sp-author-box__bio {
    font-size: 0.875rem;
    color: var(--sp-gray-600);
    line-height: 1.6;
}

/* Related Posts */
.sp-related {
    margin-top: 40px;
}

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

/* ============================================
   COMMENTS
   ============================================ */
.sp-comments {
    background: var(--sp-white);
    border-radius: var(--sp-radius-lg);
    padding: 35px;
    box-shadow: var(--sp-shadow-sm);
}

.sp-comments__title {
    font-family: var(--sp-font-title);
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--sp-gray-200);
}

.sp-comment {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid var(--sp-gray-100);
}

.sp-comment__avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sp-comment__author {
    font-weight: 700;
    font-size: 0.9375rem;
    margin-bottom: 3px;
}

.sp-comment__date {
    font-size: 0.75rem;
    color: var(--sp-gray-500);
    margin-bottom: 8px;
}

.sp-comment__text {
    font-size: 0.875rem;
    color: var(--sp-gray-700);
    line-height: 1.6;
}

.sp-comment__reply {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--sp-secondary);
    margin-top: 8px;
    display: inline-block;
}

.sp-comment__reply:hover {
    color: var(--sp-primary-dark);
}

/* Comment Form */
.sp-comment-form textarea {
    width: 100%;
    min-height: 120px;
    border: 2px solid var(--sp-gray-200);
    border-radius: var(--sp-radius);
    padding: 15px;
    font-size: 0.875rem;
    resize: vertical;
    transition: border-color var(--sp-transition);
    outline: none;
}

.sp-comment-form textarea:focus {
    border-color: var(--sp-primary);
}

.sp-comment-form input[type="text"],
.sp-comment-form input[type="email"],
.sp-comment-form input[type="url"] {
    width: 100%;
    border: 2px solid var(--sp-gray-200);
    border-radius: var(--sp-radius);
    padding: 12px 15px;
    font-size: 0.875rem;
    transition: border-color var(--sp-transition);
    outline: none;
    margin-bottom: 15px;
}

.sp-comment-form input:focus {
    border-color: var(--sp-primary);
}

.sp-comment-form .sp-btn {
    margin-top: 15px;
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.sp-breadcrumbs {
    padding: 15px 0;
    font-size: 0.8125rem;
    color: var(--sp-gray-500);
}

.sp-breadcrumbs a {
    color: var(--sp-gray-600);
    transition: color var(--sp-transition);
}

.sp-breadcrumbs a:hover {
    color: var(--sp-secondary);
}

.sp-breadcrumbs__sep {
    margin: 0 8px;
    color: var(--sp-gray-400);
}

/* ============================================
   ARCHIVE / CATEGORY PAGE
   ============================================ */
.sp-archive-header {
    background: var(--sp-white);
    border-radius: var(--sp-radius-lg);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--sp-shadow-sm);
}

.sp-archive-header__label {
    font-size: 0.8125rem;
    color: var(--sp-gray-500);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.sp-archive-header__title {
    font-family: var(--sp-font-title);
    font-size: 1.75rem;
    font-weight: 900;
}

.sp-archive-header__desc {
    font-size: 0.9375rem;
    color: var(--sp-gray-600);
    margin-top: 8px;
}

/* ============================================
   PAGINATION
   ============================================ */
.sp-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 40px;
}

.sp-pagination a,
.sp-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--sp-radius);
    transition: all var(--sp-transition);
}

.sp-pagination a {
    background: var(--sp-white);
    color: var(--sp-gray-700);
    box-shadow: var(--sp-shadow-sm);
}

.sp-pagination a:hover {
    background: var(--sp-primary);
    color: var(--sp-black);
}

.sp-pagination .current {
    background: var(--sp-black);
    color: var(--sp-white);
}

/* ============================================
   SEARCH RESULTS
   ============================================ */
.sp-search-header {
    background: var(--sp-white);
    border-radius: var(--sp-radius-lg);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--sp-shadow-sm);
}

.sp-search-header__title {
    font-family: var(--sp-font-title);
    font-size: 1.5rem;
    font-weight: 800;
}

.sp-search-header__query {
    color: var(--sp-secondary);
}

/* ============================================
   404 PAGE
   ============================================ */
.sp-404 {
    text-align: center;
    padding: 80px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.sp-404__number {
    font-family: var(--sp-font-title);
    font-size: 8rem;
    font-weight: 900;
    color: var(--sp-primary);
    line-height: 1;
    margin-bottom: 15px;
}

.sp-404__title {
    font-family: var(--sp-font-title);
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.sp-404__text {
    color: var(--sp-gray-600);
    font-size: 1.0625rem;
    margin-bottom: 30px;
}

.sp-404__search {
    max-width: 400px;
    margin: 0 auto 20px;
    display: flex;
    border: 2px solid var(--sp-gray-300);
    border-radius: 50px;
    overflow: hidden;
}

.sp-404__search input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    outline: none;
}

.sp-404__search button {
    background: var(--sp-primary);
    color: var(--sp-black);
    padding: 0 20px;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

/* ============================================
   BUTTONS
   ============================================ */
.sp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: var(--sp-radius);
    transition: all var(--sp-transition);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.sp-btn--primary {
    background: var(--sp-primary);
    color: var(--sp-black);
}

.sp-btn--primary:hover {
    background: var(--sp-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--sp-shadow-md);
}

.sp-btn--secondary {
    background: var(--sp-secondary);
    color: var(--sp-white);
}

.sp-btn--secondary:hover {
    background: #D04E20;
    transform: translateY(-2px);
    box-shadow: var(--sp-shadow-md);
    color: var(--sp-white);
}

.sp-btn--outline {
    background: transparent;
    color: var(--sp-black);
    border: 2px solid var(--sp-gray-300);
}

.sp-btn--outline:hover {
    border-color: var(--sp-primary);
    color: var(--sp-primary-dark);
}

/* ============================================
   FOOTER
   ============================================ */
.sp-footer {
    background: var(--sp-black);
    color: var(--sp-gray-400);
    padding: 50px 0 0;
}

.sp-footer__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sp-footer__logo img {
    max-height: 60px;
    max-width: 220px;
    margin-bottom: 15px;
}

.sp-footer__logo-text {
    font-family: var(--sp-font-title);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--sp-white);
    margin-bottom: 15px;
}

.sp-footer__logo-text span {
    color: var(--sp-primary);
}

.sp-footer__desc {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--sp-gray-500);
}

.sp-footer__title {
    font-family: var(--sp-font-title);
    font-size: 1rem;
    font-weight: 800;
    color: var(--sp-white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--sp-primary);
    display: inline-block;
}

.sp-footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.875rem;
    color: var(--sp-gray-400);
}

.sp-footer__contact-item svg {
    width: 16px;
    height: 16px;
    fill: var(--sp-primary);
    flex-shrink: 0;
    margin-top: 3px;
}

.sp-footer__contact-item a {
    color: var(--sp-gray-400);
    transition: color var(--sp-transition);
}

.sp-footer__contact-item a:hover {
    color: var(--sp-primary);
}

.sp-footer__social {
    display: flex;
    gap: 10px;
}

.sp-footer__social .sp-social-icon {
    color: var(--sp-gray-400);
    border-color: rgba(255,255,255,0.15);
}

.sp-footer__social .sp-social-icon:hover {
    background: var(--sp-primary);
    color: var(--sp-black);
    border-color: var(--sp-primary);
}

.sp-footer__bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--sp-gray-500);
}

.sp-footer__bottom a {
    color: var(--sp-primary);
}

/* ============================================
   PAGE TEMPLATE
   ============================================ */
.sp-page {
    background: var(--sp-white);
    border-radius: var(--sp-radius-lg);
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: var(--sp-shadow-sm);
}

.sp-page__title {
    font-family: var(--sp-font-title);
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--sp-gray-200);
}

.sp-page__content {
    font-size: 1.0625rem;
    line-height: 1.85;
    color: var(--sp-gray-800);
}

.sp-page__content p {
    margin-bottom: 1.5em;
}

/* ============================================
   WORDPRESS DEFAULTS
   ============================================ */
.alignleft {
    float: left;
    margin: 0 1.5em 1em 0;
}

.alignright {
    float: right;
    margin: 0 0 1em 1.5em;
}

.aligncenter {
    display: block;
    margin: 1em auto;
}

.wp-caption {
    max-width: 100%;
    margin-bottom: 1em;
}

.wp-caption-text {
    font-size: 0.8125rem;
    color: var(--sp-gray-500);
    text-align: center;
    padding: 8px 0;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin: 1.5em 0;
}

.gallery-item {
    margin: 0;
}

.gallery-item img {
    border-radius: var(--sp-radius);
}

.wp-block-image {
    margin: 1.5em 0;
}

.wp-block-image img {
    border-radius: var(--sp-radius);
}

/* ============================================
   AUTHOR PAGE
   ============================================ */
.sp-author-header {
    display: flex;
    align-items: center;
    gap: 25px;
    background: var(--sp-white);
    border-radius: var(--sp-radius-lg);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--sp-shadow-sm);
}

.sp-author-header__avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sp-author-header__name {
    font-family: var(--sp-font-title);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.sp-author-header__bio {
    font-size: 0.9375rem;
    color: var(--sp-gray-600);
    line-height: 1.6;
}

/* ============================================
   LOADING & UTILITY
   ============================================ */
.sp-skeleton {
    background: linear-gradient(90deg, var(--sp-gray-200) 25%, var(--sp-gray-100) 50%, var(--sp-gray-200) 75%);
    background-size: 200% 100%;
    animation: sp-shimmer 1.5s infinite;
    border-radius: var(--sp-radius);
}

@keyframes sp-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================
   RESPONSIVE – TABLET
   ============================================ */
@media (max-width: 1024px) {
    :root {
        --sp-container: 100%;
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }

    .sp-header .sp-container {
        flex-wrap: wrap;
        gap: 15px;
    }

    .sp-header__banner {
        order: 3;
        flex-basis: 100%;
    }

    .sp-content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .sp-sidebar {
        position: static;
        max-width: 100%;
        overflow: hidden;
    }

    .sp-widget {
        padding: 20px;
        max-width: 100%;
    }

    .sp-featured__grid {
        grid-template-columns: 1fr;
    }

    .sp-featured-card__img-wrap {
        min-height: 260px;
    }

    .sp-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sp-latest-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }


    .sp-social-widget {
        grid-template-columns: repeat(3, 1fr);
    }

    .sp-recent-post__img {
        width: 70px;
        height: 50px;
    }

    .sp-related__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sp-hero__slide-title {
        font-size: 1.5rem;
    }

    .sp-hero__slide {
        aspect-ratio: 16/9;
    }

    .sp-nav__menu {
        display: none;
    }

    .sp-nav__mobile-toggle {
        display: flex;
    }

    .sp-nav__search-btn {
        display: flex;
    }

    .sp-footer__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .sp-header__social {
        display: none;
    }
}

/* ============================================
   RESPONSIVE – MOBILE
   ============================================ */
@media (max-width: 768px) {
    .sp-container {
        padding: 0 15px;
        max-width: 100vw;
    }

    * {
        max-width: 100vw;
    }

    .sp-hero__slide-overlay,
    .sp-single__content,
    .sp-page__content {
        word-break: break-word;
        overflow-wrap: break-word;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.125rem; }

    .sp-topbar__right {
        display: none;
    }

    .sp-header {
        padding: 10px 0;
    }

    .sp-header__logo img {
        max-height: 50px;
        max-width: 200px;
    }

    .sp-header__logo-text {
        font-size: 1.375rem;
    }

    .sp-hero__slide {
        aspect-ratio: 4/3;
    }

    .sp-hero__slide-overlay {
        padding: 30px 20px 25px;
    }

    .sp-hero__slide-title {
        font-size: 1.25rem;
    }

    .sp-hero__slide-excerpt {
        display: none;
    }

    .sp-hero__arrow {
        width: 38px;
        height: 38px;
    }

    .sp-hero__arrow--prev {
        left: 10px;
    }

    .sp-hero__arrow--next {
        right: 10px;
    }

    .sp-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sp-latest-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .sp-related__grid {
        grid-template-columns: 1fr;
    }

    .sp-single {
        padding: 20px;
    }

    .sp-single__title {
        font-size: 1.5rem;
    }

    .sp-single__content {
        font-size: 1rem;
    }

    .sp-comments {
        padding: 20px;
    }

    .sp-content-area {
        padding: 25px 0 40px;
    }

    .sp-widget {
        padding: 15px;
    }

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

    .sp-social-widget {
        grid-template-columns: repeat(2, 1fr);
    }

    .sp-recent-post__img {
        width: 65px;
        height: 48px;
    }

    .sp-ad-placeholder--sidebar {
        height: 200px;
    }

    .sp-ad-placeholder--header,
    .sp-ad-placeholder--inline {
        height: 60px;
        font-size: 0.6875rem;
    }

    .sp-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .sp-author-box {
        flex-direction: column;
        text-align: center;
    }

    .sp-author-header {
        flex-direction: column;
        text-align: center;
    }

    .sp-ad-placeholder--header {
        height: 60px;
        font-size: 0.6875rem;
    }

    .sp-ad-placeholder--inline {
        height: 60px;
    }
}

/* ============================================
   RESPONSIVE – SMALL MOBILE
   ============================================ */
@media (max-width: 480px) {
    h1 { font-size: 1.25rem; }
    h2 { font-size: 1.125rem; }

    .sp-topbar {
        height: 35px;
        font-size: 0.75rem;
    }

    .sp-topbar__label {
        font-size: 0.5625rem;
        padding: 2px 8px;
    }

    .sp-header__logo-text {
        font-size: 1.125rem;
    }

    .sp-hero__slide-title {
        font-size: 1.0625rem;
    }

    .sp-hero__slide-cat {
        font-size: 0.5625rem;
    }

    .sp-hero__slide-meta {
        font-size: 0.6875rem;
    }

    .sp-featured-card__img-wrap {
        min-height: 200px;
    }

    .sp-featured-card__title {
        font-size: 1rem;
    }

    .sp-single__title {
        font-size: 1.25rem;
    }

    .sp-single__meta {
        font-size: 0.75rem;
        gap: 10px;
    }

    .sp-social-widget {
        grid-template-columns: repeat(2, 1fr);
    }

    .sp-404__number {
        font-size: 5rem;
    }

    .sp-page {
        padding: 20px;
    }

    .sp-page__title {
        font-size: 1.5rem;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .sp-topbar,
    .sp-header__social,
    .sp-nav,
    .sp-hero,
    .sp-sidebar,
    .sp-footer,
    .sp-search-overlay,
    .sp-mobile-nav,
    .sp-mobile-overlay,
    .sp-ad-placeholder,
    .sp-single__share,
    .sp-pagination,
    .sp-comments {
        display: none !important;
    }

    body {
        background: white;
        color: black;
        font-size: 12pt;
    }

    .sp-single {
        box-shadow: none;
        border: none;
    }

    a {
        color: black;
    }
}

/* ============================================
   WORDPRESS ADMIN BAR FIX
   ============================================ */
body.admin-bar .sp-nav.is-sticky {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .sp-nav.is-sticky {
        top: 46px;
    }
}

/* ============================================
   GUTENBERG ALIGNMENT SUPPORT
   ============================================ */
.sp-single__content .alignwide {
    margin-left: -35px;
    margin-right: -35px;
    max-width: calc(100% + 70px);
}

.sp-single__content .alignfull {
    margin-left: calc(-35px - 20px);
    margin-right: calc(-35px - 20px);
    max-width: calc(100% + 70px + 40px);
}

@media (max-width: 768px) {
    .sp-single__content .alignwide {
        margin-left: -20px;
        margin-right: -20px;
        max-width: calc(100% + 40px);
    }

    .sp-single__content .alignfull {
        margin-left: -20px;
        margin-right: -20px;
        max-width: calc(100% + 40px);
    }
}
