:root {
    --transition-speed: 0.3s;
    --header-h: 70px; /* Altura Header */

    --header-glass: rgba(255, 255, 255, 0.85) !important; /* Cristal Blanco */
    --header-border: rgba(0, 0, 0, 0.05);
}

body.dark-mode {
    --header-glass: rgba(1, 17, 39, 0.65) !important;
    --header-border: rgba(0, 0, 0, 0.05);
}

@view-transition {
    navigation: auto;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        interpolate-size: allow-keywords;
    }
}

*,
::after,
::before {
    box-sizing: border-box;
    padding: 0;
}
body {
    background-color: var(--body-bg, #fff);
    color: var(--theme-text-main);
    font-family: var(--font-body);
    font-size: var(--size-body);
    line-height: 1.6;
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

h1 {
    font-size: var(--size-h1);
}
h2 {
    font-size: var(--size-h2);
}
h3 {
    font-size: var(--size-h3);
}
h4 {
    font-size: var(--size-h4);
}

/* --- GLOBAL --- */
a,
a:hover {
    color: var(--theme-color-link);
    text-decoration: none;
}

ol,
ul {
    list-style: none;
}

/* Contenedor */
.container,
.site-content-wrapper {
    max-width: var(--container-width);
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Imágenes y Botones */
img,
.wp-block-image img {
    border-radius: var(--img-radius);
    max-width: 100%;
    height: auto;
}

.button,
input[type="submit"],
.btn,
.wp-block-button__link {
    background-color: var(--btn-bg) !important;
    color: var(--btn-text) !important;
    border-radius: var(--btn-radius) !important;
    padding: var(--btn-padding) !important;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s;
}
button:hover {
    opacity: 0.9;
}

/* --- SISTEMA DE LAYOUT GRID --- */

/* Contenedor del Grid (debes usar esta clase en tu HTML) */
.mainter-grid-layout {
    display: grid;
    /* Móvil por defecto: 1 columna */
    grid-template-columns: 100%;
    gap: var(--grid-gap);
    margin: 1rem 0;
}

/* Escritorio (Solo si la pantalla es grande) */
@media (min-width: 992px) {
    .mainter-grid-layout {
        /* La Magia: 1fr (Main) y Porcentaje (Sidebar) */
        grid-template-columns: 1fr var(--sidebar-width);
    }

    /* Si se ocultó el sidebar por layout-logic.php, volvemos a 1 columna */
    body.no-sidebar .mainter-grid-layout,
    body.full-width-layout .mainter-grid-layout {
        grid-template-columns: 100% !important;
    }
}

/* --- Header & Footer --- */
.mainter-header {
    background: var(--header-bg);
    color: var(--header-text);
    box-shadow: 0px 4px 8px rgba(0, 21, 64, 0.3);
}
.mainter-header a {
    color: var(--header-text);
}
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
}

.my-2 {
    margin-top: 1rem;
    margin-bottom: 1rem;
}
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    position: relative;
}
.site-branding img {
    max-height: 50px;
    width: auto;
}
.site-branding .site-title {
    margin: 0;
    font-size: 1.5rem;
}
@media (min-width: 992px) {
    .mobile-close,
    .mobile-toggle {
        display: none;
    }
    .main-navigation .menu-list {
        display: flex;
        gap: 30px;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    .main-navigation a {
        text-decoration: none;
        font-weight: 500;
        transition: opacity 0.3s;
    }
    .main-navigation a:hover {
        opacity: 0.7;
    }
}
@media (max-width: 991px) {
    .mobile-toggle {
        display: block;
        background: 0 0;
        border: none;
        cursor: pointer;
        z-index: 200;
    }
    .mobile-toggle .bar {
        display: block;
        width: 25px;
        height: 3px;
        background: currentColor;
        margin: 5px 0;
    }
    .main-navigation {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--header-bg);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        padding: 60px 20px 20px;
        transition: left 0.3s ease-in-out;
        z-index: 1000;
        display: block !important;
    }
    .main-navigation.is-open {
        left: 0;
    }
    .main-navigation .menu-list {
        display: flex;
        flex-direction: column;
        gap: 20px;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    .main-navigation a {
        font-size: 1.1rem;
        display: block;
        padding-bottom: 10px;
    }
    .mobile-close {
        position: absolute;
        top: 15px;
        right: 15px;
        background: 0 0;
        border: none;
        font-size: 2rem;
        line-height: 1;
        cursor: pointer;
    }
    body.menu-open::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
}
@media (min-width: 992px) {
    .main-navigation .menu-item-has-children {
        position: relative;
    }
    .main-navigation .menu-item-has-children > a::after {
        content: "";
        display: inline-block;
        margin-left: 6px;
        vertical-align: middle;
        border-top: 4px solid currentColor;
        border-left: 4px solid transparent;
        border-right: 4px solid transparent;
        opacity: 0.5;
    }
    .main-navigation .sub-menu {
        display: block;
        visibility: hidden;
        opacity: 0;
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 220px;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
        padding: 10px 0;
        list-style: none;
        margin: 15px 0 0 0;
        z-index: 999;
        transform: translateY(10px);
        transition: all 0.3s ease;
    }
    .main-navigation .sub-menu::before {
        content: "";
        position: absolute;
        top: -6px;
        left: 20px;
        width: 12px;
        height: 12px;
        background: #fff;
        transform: rotate(45deg);
        box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.04);
    }
    .main-navigation .menu-item-has-children:hover > .sub-menu {
        visibility: visible;
        opacity: 1;
        margin-top: 10px;
        transform: translateY(0);
    }
    .main-navigation .sub-menu li {
        display: block;
    }
    .main-navigation .sub-menu a {
        display: block;
        padding: 10px 20px;
        color: #333;
        font-size: 0.95rem;
        white-space: nowrap;
        transition: background 0.2s;
    }
    .main-navigation .sub-menu a:hover {
        background-color: #f3f4f6;
        color: var(--theme-color-brand, #4f46e5);
    }
}
@media (max-width: 991px) {
    .main-navigation .sub-menu {
        position: static;
        box-shadow: none;
        background: 0 0;
        padding: 0 0 0 15px;
        margin: 10px 0;
        border-left: 2px solid #eee;
        display: block;
    }
    .main-navigation .sub-menu a {
        font-size: 1rem;
        padding: 8px 0;
        color: #666;
    }
    .main-navigation .menu-item-has-children > a::after {
        float: right;
        margin-top: 5px;
    }
}
@media (min-width: 992px) {
    button.dropdown-toggle {
        display: none;
    }
    .main-navigation .menu-item-has-children > a::after {
        content: "";
        display: inline-block;
        width: 6px;
        height: 6px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        border-top: 0;
        border-left: 0;
        transform: rotate(45deg);
        margin-left: 8px;
        vertical-align: middle;
        margin-top: -3px;
        transition: transform 0.3s ease;
        opacity: 0.7;
    }
    .main-navigation .menu-item-has-children:hover > a::after {
        transform: rotate(225deg);
        margin-top: 3px;
        opacity: 1;
    }
}
@media (max-width: 991px) {
    .main-navigation .menu-item-has-children {
        position: relative;
    }
    .main-navigation .menu-item-has-children > a::after {
        display: none;
    }
    button.dropdown-toggle {
        position: absolute;
        top: -10px;
        right: 0;
        width: 44px;
        height: 44px;
        background: 0 0;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
        outline: 0;
    }
    button.dropdown-toggle .chevron {
        display: block;
        width: 6px;
        height: 6px;
        border-right: 2px solid #666;
        border-bottom: 2px solid #666;
        transform: rotate(45deg);
        margin-top: -3px;
        transition:
            transform 0.3s ease,
            border-color 0.3s ease;
    }
    .main-navigation .sub-menu {
        display: none;
        padding-left: 0;
        margin: 0;
    }
    .main-navigation .sub-menu a {
        padding-left: 30px !important;
        font-size: 0.95rem;
    }
    .menu-item-has-children.submenu-active > .sub-menu {
        display: block;
        animation: slideDown 0.3s ease;
    }
    .menu-item-has-children.submenu-active > .dropdown-toggle .chevron {
        transform: rotate(225deg);
        margin-top: 3px;
        border-color: var(--theme-color-brand, #4f46e5);
    }
}
.theme-toggle {
    background: 0 0;
    border: 2px solid transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--header-text);
    transition: background 0.3s ease;
}
.theme-toggle:hover {
    background: rgba(125, 125, 125, 0.1);
}
.theme-toggle .icon-moon {
    display: none;
}
.theme-toggle .icon-sun {
    display: block;
}
body.dark-mode .theme-toggle .icon-sun {
    display: none;
}
body.dark-mode .theme-toggle .icon-moon {
    display: block;
    color: #fbbf24;
}
body.dark-mode input,
body.dark-mode textarea {
    background-color: #374151;
    color: #fff;
    border-color: #4b5563;
}
.main-navigation-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.post-card {
    background-color: var(--card-bg, #fff) !important;
    border-color: var(--card-border, #e5e7eb) !important;
}
.header-search-icon {
    background: 0 0;
    border: none;
    box-shadow: none;
    outline: 0;
    padding: 0;
    cursor: pointer;
}
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.96);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.search-overlay.is-active {
    opacity: 1;
    visibility: visible;
}
.search-container {
    width: 90%;
    max-width: 800px;
    text-align: center;
    position: relative;
}
.mainter-clean-form {
    position: relative;
    width: 100%;
    margin: 0 auto;
}
.search-field-hero {
    width: 100%;
    background: #f3f4f6;
    border: 2px solid transparent;
    border-radius: 50px;
    font-size: 2rem;
    font-weight: 300;
    color: #111827;
    padding: 20px 70px 20px 30px;
    outline: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
.search-field-hero::placeholder {
    color: #9ca3af;
    opacity: 1;
}
.search-field-hero:focus {
    background: #fff;
    border-color: var(--theme-color-brand, #e25822);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}
.search-submit-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: 0 0;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 10px;
    transition:
        color 0.3s,
        transform 0.2s;
    border-radius: 50%;
}
.search-submit-icon:hover {
    color: var(--theme-color-brand, #e25822);
    background: rgba(0, 0, 0, 0.05);
    transform: translateY(-50%) translateX(3px);
}
.search-hint {
    margin-top: 25px;
    font-size: 0.9rem;
    color: #6b7280;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s 0.2s;
}
.search-overlay.is-active .search-hint {
    opacity: 1;
    transform: translateY(0);
}
.search-hint span {
    background: #e5e7eb;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 600;
    color: #374151;
}
.close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    background: 0 0;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 10px;
    transition:
        transform 0.3s,
        color 0.3s;
    z-index: 100;
    border-radius: 50%;
}
.close-btn:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    transform: rotate(90deg);
}
@media (max-width: 768px) {
    .search-field-hero {
        font-size: 1.5rem;
        padding: 15px 50px 15px 25px;
    }
    .search-submit-icon {
        right: 10px;
        padding: 8px;
    }
    .close-btn {
        top: 20px;
        right: 20px;
    }
}
body.full-width-layout #primary,
body.no-sidebar #primary {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    margin-right: 0 !important;
}
body.full-width-layout #secondary,
body.no-sidebar #secondary {
    display: none !important;
}
body.full-width-layout .site-content,
body.no-sidebar .site-content {
    display: block !important;
}
.footer-lower {
    background-color: var(--footer-bg, #0f172a);
    color: var(--footer-text, #94a3b8);
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}
.footer-lower-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.copyright-text {
    font-weight: 500;
}
.footer-bottom-right-area {
    display: flex;
    align-items: center;
    gap: 20px;
}
.footer-inline-widget .menu,
.footer-inline-widget ul {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.footer-inline-widget li {
    margin: 0;
    padding: 0;
    border: none;
}
.footer-inline-widget a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}
.footer-inline-widget a:hover {
    color: var(--theme-color-brand, #e25822);
}
@media (max-width: 768px) {
    .footer-lower-content {
        flex-direction: column-reverse;
        text-align: center;
    }
    .footer-bottom-right-area {
        width: 100%;
        justify-content: center;
    }
    .footer-inline-widget ul {
        justify-content: center;
    }
}
.mainter-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.mainter-links-list.mode-text a {
    font-size: 0.9rem;
    font-weight: 500;
}
.mainter-links-list.mode-icons {
    gap: 15px;
}
.mainter-links-list.mode-icons a {
    font-size: 1.2rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transition: all 0.3s ease;
}
.mainter-links-list.mode-icons a:hover {
    background: var(--theme-color-brand, #e25822);
    color: #fff;
    transform: translateY(-3px);
}
.mainter-links-list.mode-icons a svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    display: block;
}
.mainter-links-list.mode-icons a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: #94a3b8;
    transition: all 0.3s ease;
}
.mainter-links-list.mode-icons a:hover {
    background: var(--theme-color-brand, #e25822);
    color: #fff;
    transform: translateY(-3px);
}
.footer-lower-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-bottom-left-area {
    display: flex;
    align-items: center;
    font-weight: 500;
}
.footer-bottom-right-area {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
@media (max-width: 768px) {
    .footer-lower-content {
        flex-direction: column-reverse;
        text-align: center;
    }
    .footer-bottom-left-area,
    .footer-bottom-right-area {
        justify-content: center;
        width: 100%;
    }
}
.blog-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
@media (max-width: 480px) {
    .blog-grid-layout {
        grid-template-columns: 1fr;
    }
}
.is-sidebar-sticky #secondary,
.is-sidebar-sticky .widget-area {
    position: -webkit-sticky;
    position: sticky;
    top: 20px;
    align-self: start;
    height: fit-content;
}
@media (max-width: 991px) {
    .is-sidebar-sticky #secondary,
    .is-sidebar-sticky .widget-area {
        position: static;
    }
}
.mainter-ad {
    display: block;
    margin: 20px auto;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    clear: both;
}
.mainter-ad::before {
    content: "Publicidad";
    display: block;
    font-size: 10px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}
.ad-header {
    margin-top: 10px;
    margin-bottom: 10px;
}
.ad-sidebar {
    margin-bottom: 30px;
}
.mainter-pagination {
    margin: 40px 0;
    width: 100%;
    display: flex;
    justify-content: center;
}
.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.nav-links a,
.nav-links span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    color: #4b5563;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}
.nav-links a:hover {
    border-color: var(--theme-color-brand, #e25822);
    color: var(--theme-color-brand, #e25822);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
.nav-links span.current {
    background: var(--theme-color-brand, #e25822);
    border-color: var(--theme-color-brand, #e25822);
    color: #fff;
    box-shadow: 0 4px 10px rgba(226, 88, 34, 0.3);
    pointer-events: none;
}
.nav-links svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5px;
}
body.dark-mode .nav-links a,
body.dark-mode .nav-links span.dots {
    background: #1f2937;
    border-color: #374151;
    color: #e5e7eb;
    box-shadow: none;
}
body.dark-mode .nav-links a:hover {
    border-color: var(--theme-color-brand, #e25822);
    background: #374151;
}
body.dark-mode .nav-links span.current {
    background: var(--theme-color-brand, #e25822);
    color: #fff;
}
body.dark-mode .search-overlay {
    background: rgba(10, 10, 10, 0.96);
}
body.dark-mode .search-field-hero {
    background: #1f2937;
    color: #fff;
    box-shadow: none;
}
body.dark-mode .search-field-hero::placeholder {
    color: #6b7280;
}
body.dark-mode .search-field-hero:focus {
    background: #111827;
    border-color: var(--theme-color-brand, #e25822);
}
body.dark-mode .search-submit-icon {
    color: #9ca3af;
}
body.dark-mode .search-submit-icon:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}
body.dark-mode .search-hint {
    color: #9ca3af;
}
body.dark-mode .search-hint span {
    background: #374151;
    color: #e5e7eb;
}
body.dark-mode .close-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}
body.dark-mode .header-search-icon svg {
    color: #fff;
}
body.dark-mode .mobile-toggle svg {
    color: #fff;
}
.mainter-widget-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.post-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: var(--card-bg, #fff);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    width: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.post-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.post-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    height: 100%;
}
.post-card-image {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.post-card:hover .post-card-image img {
    transform: scale(1.08);
}
.post-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.card-title {
    font-size: clamp(1.05rem, 4vw, 1.15rem) !important;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: var(--theme-text-main, #fff);
}
.card-meta {
    font-size: 0.8rem;
    color: #9ca3af;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}
.post-card.style-basic {
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.post-card.style-basic .post-card-image {
    height: 220px;
}
.post-card.style-overlay {
    height: 320px;
    background-color: #000;
}
.post-card.style-overlay .post-card-image {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 1;
}
.post-card.style-overlay .card-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 40%,
        rgba(0, 0, 0, 0.8) 100%
    );
    z-index: 2;
}
.post-card.style-overlay .post-card-content {
    position: relative;
    z-index: 3;
    justify-content: flex-end;
    color: #fff;
}
.post-card.style-overlay .card-title {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.post-card.style-overlay .card-meta {
    color: rgba(255, 255, 255, 0.8);
}
.post-card.style-modern {
    background: var(--card-bg, #fff);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    padding: 12px;
}
.post-card.style-modern .post-card-image {
    height: 200px;
    border-radius: 12px;
    margin-bottom: 10px;
}
.post-card.style-modern .post-card-content {
    padding: 10px 10px 15px 10px;
}
.post-card.style-modern .card-title {
    font-size: 1.25rem;
}
.post-card.style-modern .card-meta::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background: var(--theme-color-brand, #e25822);
    margin-top: 15px;
    border-radius: 2px;
}
.widget-area .post-card.style-modern {
    padding: 8px;
}
.widget-area .post-card.style-modern .post-card-image {
    height: 160px;
}
.widget-area .post-card.style-overlay {
    height: 200px;
}
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}
.footer-upper {
    padding: 70px 0 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background-color: var(--footer-bg, #0f172a);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.footer-widget-title {
    color: var(--theme-text-main, #fff);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-social-bio {
    color: var(--theme-text-main, #fff);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 25px;
    max-width: 90%;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col ul li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.footer-col ul li:last-child {
    border-bottom: none;
}
.footer-col ul li a {
    color: var(--theme-text-main, #fff);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: block;
}
.footer-col ul li a:hover {
    color: var(--theme-color-brand, #e25822);
    transform: translateX(5px);
}
.mainter-social-horizontal a {
    display: inline-block;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.6);
}
.mainter-social-horizontal a:hover {
    color: var(--theme-color-brand, #e25822);
    transform: translateX(5px);
}
.mainter-social-horizontal a svg {
    width: 18px;
    height: 18px;
}
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .footer-social-bio {
        max-width: 100%;
    }
}
@media (max-width: 600px) {
    .footer-upper {
        padding: 50px 0 20px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
}
.mainter-social-horizontal {
    display: flex;
    gap: 15px;
    border-bottom: none !important;
}
.mainter-social-horizontal li {
    border-bottom: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.mainter-social-horizontal a svg {
    width: 20px;
    height: 20px;
    color: #94a3b8;
    transition: 0.3s;
}
.mainter-social-horizontal a:hover svg {
    color: var(--theme-color-brand, #e25822);
}
.hero-section {
    padding: 40px 0;
}
.hero-title-section {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 25px;
}
.hero-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .hero-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: 220px 220px;
        height: 460px;
    }
    .hero-item-big {
        grid-column: span 2;
        grid-row: span 2;
    }
    .hero-item-small {
        grid-column: span 1;
        grid-row: span 1;
    }
}
.hero-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    transition: transform 0.3s;
}
.hero-item:hover {
    transform: translateY(-3px);
}
.hero-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}
.hero-img-wrap {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}
.hero-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}
.hero-item:hover img {
    transform: scale(1.05);
}
.hero-style-basic .hero-item {
    background: var(--card-bg, #fff);
    box-shadow: rgba(0, 0, 0, 0.05) 0 4px 6px -1px;
    display: flex;
    flex-direction: column;
}
.hero-style-basic .hero-img-wrap {
    position: relative;
    height: 60%;
}
.hero-style-basic .hero-content {
    position: relative;
    z-index: 2;
    padding: 15px;
    height: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero-style-basic .hero-title {
    font-size: clamp(0.85rem, 2.5vw, 0.96rem) !important;
    color: var(--theme-text-main, #fff);
    margin: 0;
}
.hero-style-basic .hero-item-big .hero-title {
    font-size: clamp(1.2rem, 4vw, 1.6rem) !important;
}
.hero-style-basic .hero-overlay-gradient {
    display: none;
}
.hero-style-basic .hero-badge {
    display: none;
}
.hero-style-modern .hero-item {
    background: #000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
.hero-style-modern .hero-overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 60%);
    z-index: 2;
}
.hero-style-modern .hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    z-index: 3;
}
.hero-style-modern .hero-title {
    color: #fff;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    margin: 0;
    font-size: clamp(0.86rem, 2.5vw, 1rem) !important;
}
.hero-style-modern .hero-item-big .hero-title {
    font-size: clamp(1.2rem, 4vw, 1.6rem) !important;
}
.hero-style-modern .hero-badge {
    background: var(--theme-color-brand, #e25822);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    position: absolute;
    top: -15px;
    left: 15px;
    z-index: 3;
}
.hero-style-overlay .hero-item {
    background: #000;
    border-radius: 0;
}
.hero-style-overlay .hero-overlay-gradient {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    transition: 0.3s;
    z-index: 2;
}
.hero-style-overlay .hero-item:hover .hero-overlay-gradient {
    background: rgba(0, 0, 0, 0.2);
}
.hero-style-overlay .hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    text-align: center;
    width: 80%;
}
.hero-style-overlay .hero-title {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.hero-style-overlay .hero-badge {
    display: none;
}
.hero-style-modern .hero-meta {
    color: #fff;
}
.hero-style-overlay .hero-meta {
    color: #fff;
}
@media (max-width: 767px) {
    .hero-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 15px;
        padding-bottom: 20px;
        height: auto;
        grid-template-columns: unset;
        grid-template-rows: unset;
        padding-left: 15px;
        padding-right: 15px;
        margin-left: -15px;
        margin-right: -15px;
        width: calc(100% + 30px);
    }
    .hero-grid::-webkit-scrollbar {
        display: none;
    }
    .hero-grid {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .hero-item {
        flex: 0 0 85%;
        height: 380px;
        scroll-snap-align: center;
        border-radius: 12px;
    }
    .hero-style-basic .hero-item {
        flex-direction: column;
    }
    .hero-style-basic .hero-img-wrap {
        height: 60%;
    }
    .hero-style-basic .hero-content {
        height: 40%;
    }
    .hero-style-modern .hero-content {
        padding: 15px;
    }
    .hero-style-overlay .hero-content {
        width: 90%;
    }
}

/* APLICACIÓN ESPECÍFICA (Listados) */
.card-title {
    font-size: var(--size-list);
}
.style-overlay .card-title {
    font-size: var(--size-feat);
}

/* =========================================
   MAINTER HEADER: AUTOMÁTICO
   ========================================= */

/* 1. ESTILOS BASE */
.site-header {
    width: 100%;
    z-index: 1000;
    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

/* 2. FIXED (Añade padding al body) */
body.mainter-fixed {
    padding-top: var(
        --header-h
    ); /* Empuja el contenido exactamente la altura */
}
body.mainter-fixed .site-header {
    position: fixed;
    top: 0;
    left: 0;
    box-shadow: 0 1px 3px rgba(0, 21, 65, 0.5); /* Sombra sutil */
}

/* 3. BLUR / GLASS (Se activa con el checkbox) */
body.mainter-glass .site-header {
    background: var(--header-glass); /* Aquí cambia a transparente solo */
    backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid var(--header-border);
}
