/**
 * Oyes Golf Magazine - Main Styles
 * Esquema de colores: #0f172a (principal), #38bdf8 (acento), #fbbf24 (dorado)
 */

/* ========================================
   Variables y Reset
======================================== */

:root {
    --color-primary: #0f172a;
    --color-accent: #38bdf8;
    --color-gold: #fbbf24;
    --color-text: #1e293b;
    --color-text-light: #64748b;
    --color-bg: #f8fafc;
    --color-bg-alt: #ffffff;
    --color-border: #e2e8f0;
    --color-gray-100: #f1f5f9;
    --color-gray-300: #cbd5e1;
    --color-gray-600: #475569;
    --color-gray-800: #1e293b;
}

/* ========================================
   Header
======================================== */

.site-header {
    background: var(--color-primary);
    color: #fff;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-branding svg {
    width: 32px;
    height: 32px;
    fill: var(--color-accent);
}

.site-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.site-title a {
    color: #fff;
    text-decoration: none;
}

.site-title a:hover {
    color: var(--color-accent);
}

.site-description {
    display: none;
}

/* Navegación principal */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-navigation li {
    margin: 0;
    position: relative;
}

.main-navigation a {
    color: var(--color-gray-300);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 24px 0;
    display: block;
    transition: color 0.3s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: #fff;
}

/* Submenús */
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-primary);
    min-width: 200px;
    padding: 10px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    flex-direction: column;
    gap: 0;
}

.main-navigation ul li:hover > ul {
    display: flex;
}

.main-navigation ul ul a {
    padding: 12px 20px;
}

/* Iconos del header */
.header-icons {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-left: 20px;
}

.header-icon {
    color: var(--color-gray-300);
    cursor: pointer;
    transition: all 0.3s ease;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.header-icon:hover {
    color: #fff;
}

.header-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

/* Efecto especial para el ícono de búsqueda */
.header-search-icon {
    position: relative;
}

.header-search-icon::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.3s ease;
}

.header-search-icon:hover::before {
    background: rgba(56, 189, 248, 0.1);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.3);
}

.header-search-icon:hover {
    color: var(--color-accent);
    transform: scale(1.05);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    margin-left: 15px;
}

.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
}

/* ========================================
   Slider Principal
======================================== */

.hero-slider {
    padding: 8px 0 5px;
}

.hero-slider .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Contenido Principal
======================================== */

.site-main {
    padding: 8px 0 30px;
}

.content-area {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.no-sidebar .content-area {
    grid-template-columns: 1fr;
    max-width: 900px;
}

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

/* ========================================
   Cards de Entradas
======================================== */

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

.post-card {
    background: var(--color-bg-alt);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--color-border);
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
}

.post-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--color-gray-100);
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.post-card-content {
    padding: 24px;
}

.post-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
}

.post-card-image .post-categories {
    position: absolute;
}

.post-category {
    display: inline-block;
    padding: 6px 14px;
    background: var(--color-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0;
    transition: background 0.3s ease;
}

.post-category:hover {
    background: var(--color-accent);
    color: #fff;
}

.post-card-content .post-categories {
    position: static;
    margin-bottom: 12px;
}

.post-card-title {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 12px;
    color: var(--color-primary);
}

.post-card-title a {
    color: var(--color-primary);
}

.post-card-title a:hover {
    color: var(--color-accent);
}

.post-card-excerpt {
    color: var(--color-text-light);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.post-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--color-text-light);
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-meta svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ========================================
   Entrada Individual
======================================== */

.single-post .entry-header {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.entry-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-primary);
    margin: 0 0 20px;
}

.entry-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: var(--color-text-light);
    font-size: 15px;
}

.entry-featured-image {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
}

.entry-featured-image img {
    width: 100%;
    height: auto;
}

.entry-content {
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-text);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: var(--color-primary);
    font-weight: 700;
    margin: 40px 0 20px;
    line-height: 1.3;
}

.entry-content h2 {
    font-size: 32px;
}

.entry-content h3 {
    font-size: 26px;
}

.entry-content h4 {
    font-size: 22px;
}

.entry-content p {
    margin-bottom: 24px;
}

.entry-content a {
    color: var(--color-accent);
    text-decoration: underline;
}

.entry-content a:hover {
    color: var(--color-primary);
}

.entry-content img {
    border-radius: 8px;
    margin: 30px 0;
}

.entry-content ul,
.entry-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.entry-content li {
    margin-bottom: 10px;
}

/* ========================================
   Sidebar
======================================== */

.sidebar {
    position: sticky;
    top: 90px;
    align-self: flex-start;
}

.widget {
    background: var(--color-bg-alt);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-accent);
}

.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}

.widget li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.widget a {
    color: var(--color-text);
    transition: color 0.3s ease;
}

.widget a:hover {
    color: var(--color-accent);
}

/* Widget de posts recientes personalizado */
.recent-posts-widget {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recent-post-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}

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

.recent-post-thumb {
    flex-shrink: 0;
    width: 100%;
    height: 180px;
    border-radius: 0;
    overflow: hidden;
    position: relative;
}

.recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recent-post-item:hover .recent-post-thumb img {
    transform: scale(1.05);
}

.recent-post-content {
    flex: 1;
}

.recent-post-category {
    display: inline-block;
    padding: 4px 10px;
    background: var(--color-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.recent-post-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 8px;
}

.recent-post-title a {
    color: var(--color-primary);
}

.recent-post-title a:hover {
    color: var(--color-accent);
}

.recent-post-date {
    font-size: 12px;
    color: var(--color-text-light);
    display: block;
}

/* ========================================
   Footer
======================================== */

.site-footer {
    background: var(--color-primary);
    color: var(--color-gray-300);
    padding: 50px 0 30px;
    margin-top: 80px;
}

.footer-widgets {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-widget {
    margin-bottom: 0;
}

.footer-widget-title {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-widget li {
    margin-bottom: 0;
    padding: 0;
    border: none;
}

.footer-widget a {
    color: var(--color-gray-300);
    transition: color 0.3s ease;
    display: block;
    padding: 8px 0;
    font-size: 14px;
}

.footer-widget a:hover {
    color: #fff;
    padding-left: 5px;
}

/* Widget de posts recientes en el footer */
.footer-widget .recent-posts-widget {
    gap: 15px;
}

.footer-widget .recent-post-item {
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widget .recent-post-thumb {
    height: 120px;
}

.footer-widget .recent-post-category {
    background: var(--color-accent);
}

.footer-widget .recent-post-title a {
    color: var(--color-gray-300);
}

.footer-widget .recent-post-title a:hover {
    color: #fff;
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 30px 20px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-logo svg {
    width: 28px;
    height: 28px;
    fill: var(--color-accent);
}

.footer-logo span {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

.footer-copyright {
    color: var(--color-gray-300);
    font-size: 14px;
}

/* ========================================
   Paginación
======================================== */

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 50px 0;
}

.pagination a,
.pagination span {
    padding: 10px 16px;
    background: var(--color-bg-alt);
    color: var(--color-text);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination a:hover {
    background: var(--color-primary);
    color: #fff;
}

.pagination .current {
    background: var(--color-accent);
    color: #fff;
}

/* ========================================
   Búsqueda
======================================== */

.search-form {
    display: flex;
    gap: 8px;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 15px;
}

.search-form button {
    padding: 12px 24px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-form button:hover {
    background: var(--color-accent);
}

/* ========================================
   404 Page
======================================== */

.error-404 {
    text-align: center;
    padding: 100px 20px;
}

.error-404 h1 {
    font-size: 120px;
    color: var(--color-primary);
    margin: 0;
    line-height: 1;
}

.error-404 h2 {
    font-size: 32px;
    color: var(--color-text);
    margin: 20px 0;
}

.error-404 p {
    font-size: 18px;
    color: var(--color-text-light);
    margin-bottom: 30px;
}

/* ========================================
   Responsive Design
======================================== */

@media (max-width: 1024px) {
    .content-area {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .main-navigation {
        display: none;
    }
    
    .main-navigation.mobile-active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-primary);
        padding: 20px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    .main-navigation.mobile-active ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-navigation.mobile-active a {
        padding: 12px 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .post-card-title {
        font-size: 18px;
    }
    
    .post-card-content {
        padding: 20px;
    }
    
    .entry-title {
        font-size: 32px;
    }
    
    .entry-content {
        font-size: 16px;
    }
    
    .entry-content h2 {
        font-size: 26px;
    }
    
    .entry-content h3 {
        font-size: 22px;
    }
    
    .site-footer {
        padding: 40px 0 20px;
        margin-top: 60px;
    }
    
    .hero-slider {
        padding: 20px 0;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* ========================================
   Widget de Imagen (Nativo de WordPress)
======================================== */

.widget_media_image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
}

.widget_media_image a {
    display: block;
    transition: opacity 0.3s ease;
}

.widget_media_image a:hover {
    opacity: 0.85;
}

/* ========================================
   Sección de Revistas Destacadas en Portada
======================================== */

.featured-magazines-section {
    max-width: 1280px;
    margin: 0 auto 20px;
    padding: 0 20px;
}

.featured-magazines-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
}

.featured-magazines-container {
    min-width: 0;
}

.featured-magazines-header {
    margin-bottom: 30px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--color-border);
@media (min-width: 769px) and (max-width: 1200px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* ========================================
   Widget de Imagen (Nativo de WordPress)
======================================== */

.widget_media_image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
}

.widget_media_image a {
    display: block;
    transition: opacity 0.3s ease;
}

.widget_media_image a:hover {
    opacity: 0.85;
}

/* ========================================
   Modal de Búsqueda
======================================== */

/* ======================================== 
   MODAL DE BÚSQUEDA - DISEÑO COMPACTO Y ELEGANTE
   ======================================== */

.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-modal.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.search-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.search-modal-content {
    position: relative;
    background: #ffffff;
    width: 90%;
    max-width: 500px;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    z-index: 10000;
}

.search-modal.active .search-modal-content {
    transform: translateY(0);
}

.search-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    color: #6b7280;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    transition: all 0.2s ease;
    font-weight: 300;
}

.search-modal-close:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.search-modal-title {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    letter-spacing: -0.025em;
}

.search-modal-form {
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
    z-index: 1;
}

.search-modal-input {
    flex: 1;
    width: 100%;
    padding: 12px 12px 12px 44px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 15px;
    color: #1f2937;
    background: #f9fafb;
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.search-modal-input:focus {
    outline: none;
    border-color: #9ca3af;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.1);
}

.search-modal-input::placeholder {
    color: #9ca3af;
}

.search-modal-submit {
    padding: 12px 20px;
    background: #2c2c2c;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.search-modal-submit:hover {
    background: #1a1a1a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.search-modal-submit:active {
    transform: translateY(0);
}

.search-results {
    margin-top: 30px;
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    padding: 15px;
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.2s ease;
}

.search-result-item:hover {
    background: #f9fafb;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 5px;
}

.search-result-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s ease;
}

.search-result-title a:hover {
    color: #6b7280;
}

.search-result-excerpt {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

.search-result-meta {
    font-size: 13px;
    color: #9ca3af;
    margin-top: 8px;
}

.search-loading {
    text-align: center;
    padding: 40px 20px;
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top-color: #6b7280;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.search-loading p {
    margin-top: 15px;
    color: #6b7280;
    font-size: 15px;
}

.search-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.search-no-results svg {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    opacity: 0.3;
}

/* ========================================
   Sección de Revistas Destacadas - Diseño Compacto
======================================== */

.featured-magazines-section {
    max-width: 1280px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.featured-magazines-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
}

.featured-magazines-container {
    min-width: 0;
}

/* Lista compacta de revistas */
.featured-magazines-compact {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.featured-magazine-item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 16px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-magazine-item:hover {
    border-color: #9ca3af;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Miniatura */
.featured-magazine-thumb {
    width: 60px;
    height: 90px;
    overflow: hidden;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    flex-shrink: 0;
}

.featured-magazine-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-magazine-item:hover .featured-magazine-thumb img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.featured-magazine-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.featured-magazine-no-image svg {
    width: 28px;
    height: 28px;
}

/* Info */
.featured-magazine-info {
    min-width: 0;
    flex: 1;
}

.featured-magazine-title-compact {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 6px;
    color: #1f2937;
}

.featured-magazine-title-compact a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-magazine-title-compact a:hover {
    color: #6b7280;
}

.featured-magazine-meta-compact {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #9ca3af;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.featured-meta-category {
    padding: 2px 8px;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 2px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-size: 10px;
}

/* Botón de descarga */
.featured-magazine-download-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: #ffffff;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.featured-magazine-download-btn:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.featured-magazine-download-btn svg {
    width: 18px;
    height: 18px;
}

/* Sidebar de la portada */
.sidebar-home {
    position: sticky;
    top: 90px;
    align-self: flex-start;
}

/* Responsive */
@media (max-width: 1024px) {
    .featured-magazines-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar-home {
        position: static;
    }
}

@media (max-width: 768px) {
    .featured-magazines-section {
        margin-bottom: 30px;
    }
    
    .featured-magazine-item {
        grid-template-columns: 50px 1fr auto;
        gap: 12px;
        padding: 12px;
    }
    
    .featured-magazine-thumb {
        width: 50px;
        height: 75px;
    }
    
    .featured-magazine-title-compact {
        font-size: 14px;
    }
    
    .featured-magazine-download-btn {
        width: 34px;
        height: 34px;
    }
    
    .featured-magazine-download-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .search-modal-content {
        padding: 20px;
        max-width: 95%;
    }
    
    .search-modal-title {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .search-input-wrapper {
        flex-direction: column;
        gap: 8px;
    }
    
    .search-modal-submit {
        width: 100%;
    }
}

/* ======================================== 
   RESPONSIVE - MODAL DE BÚSQUEDA
   ======================================== */

@media (max-width: 480px) {
    .search-modal {
        padding-top: 10vh;
    }
    
    .search-modal-content {
        padding: 18px;
    }
}


/* === Ajustes v4.9.1 ===
   - Lupa del header: estilo icono circular, sin botón cuadrado.
   - Espaciado compacto bajo el hero/encabezado en la home.
*/
.header-search-icon{
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: color 0.3s ease;
    color: var(--color-gray-300);
}
.header-search-icon:hover{ 
    color: #fff;
    background: none;
}
.header-search-icon:focus{ outline: 2px solid var(--color-accent); outline-offset: 2px; }
.header-search-icon svg{ width: 22px; height: 22px; display: block; }

/* Espacio más elegante/pequeño similar al de arriba */
.home .site-main{ padding-top: 12px; }
.home .content-area .page-header,
.home .content-area .section-header{
    margin: 0 0 12px !important;
    padding: 0 !important;
}


/* Espaciado debajo del slider principal: igual que arriba */
.hero-slider { padding-bottom: 6px !important; margin-bottom: 8px !important; }
.hero-slider + .content-area { margin-top: 8px !important; }
.site-main { padding-top: 8px !important; }

/* Por si algún contenedor del slider trae margen extra */
.hero-slider .container,
.hero-slider .slick-slider,
.hero-slider .portadas-banner,
.hero-slider .swiper,
.hero-slider .swiper-wrapper {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}


/* === Ajustes v4.9.3 === */
/* Espaciado debajo del slider: aún más compacto y profesional */
.hero-slider{padding:4px 0 0 !important;margin:0 !important;}
.hero-slider .container{padding-bottom:0 !important;margin-bottom:0 !important;}
.hero-slider + .content-area{margin-top:6px !important;}
.site-main{padding-top:6px !important;padding-bottom:24px !important;}
.posts-grid{margin-top:10px !important}

/* Lupa como ícono puro */
.header-search-icon{
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.3s ease;
  color: var(--color-gray-300);
}
.header-search-icon svg{width:22px;height:22px;display:block;}
.header-search-icon:hover{color:#fff;}
.header-search-icon:focus{outline:2px solid var(--color-accent); outline-offset:2px;}
/* Oculta cualquier texto accidental dentro del botón */
.header-search-icon *:not(svg){display:none !important;}

/* Modal de búsqueda a lo "command palette" */
.search-modal{
  position: fixed; inset: 0;
  display: none; align-items: center; justify-content: center;
  z-index: 9999;
}
.search-modal.active{display:flex;}
.search-modal-overlay{
  position:absolute; inset:0; background: rgba(2,6,23,.55);
  backdrop-filter: blur(3px);
}
.search-modal-content{
  position:relative; width:min(720px, 92vw);
  background: #0f172a; color:#e2e8f0;
  border:1px solid rgba(255,255,255,.15);
  border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.45);
  padding: 18px 18px;
}
.search-modal-title{display:none;}
.search-modal-form{margin:0;}
.search-input-wrapper{display:flex; align-items:center; gap:10px;}
.search-icon{opacity:.9; flex:0 0 auto;}
.search-modal-input{
  flex:1;
  padding: 12px 14px;
  background:#0b1220;
  border:1px solid rgba(148,163,184,.3);
  border-radius: 10px;
  color:#e2e8f0; font-size:16px;
}
.search-modal-input::placeholder{color:#94a3b8;}
.search-modal-submit{display:none;} /* Entra con Enter */
.search-modal-close{
  position:absolute; top:8px; right:10px;
  background:transparent; border:0; color:#e2e8f0; font-size:22px; cursor:pointer;
}

/* Evita desplazamiento del layout al abrir modal */
body.modal-open, body.ogm-modal-open {
    overflow: hidden;
}

/* ========================================
   Search Icon Button
======================================== */
#ogm-open-search {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease;
}

#ogm-open-search svg {
    width: 20px !important;
    height: 20px !important;
    display: block;
    color: #cbd5e1;
}

#ogm-open-search:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

/* ========================================
   Hero Slider Spacing - Ajuste del usuario
======================================== */
.hero-slider {
    padding: 24px 0 0px !important;
    margin: 0 !important;
}

.hero-slider .container {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* ========================================
   Content Area Spacing
======================================== */
.site-main {
    padding-top: 0 !important;
    padding-bottom: 20px !important;
}

.content-area {
    margin-top: 0 !important;
}

.main-content {
    margin-top: 0 !important;
}

.posts-grid {
    margin-top: 0 !important;
}

/* Ocultar buscadores inline legacy */
.site-header .search-form,
.header-container .search-form,
.search-modal {
    display: none !important;
    visibility: hidden !important;
}

