/* ==========================================================================
   Self-Hosted Fonts - @font-face Declarations
   All fonts hosted locally for performance and to avoid CDN dependencies
   ========================================================================== */

/* Cairo - Regular 400 (Body text, buttons, inputs) */
@font-face {
    font-family: 'Cairo';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/cairo-v400-regular.woff2') format('woff2');
}

/* Hind Vadodara - Bold 700 (Headings H3-H6, navigation items) */
@font-face {
    font-family: 'Hind Vadodara';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/hind-vadodara-v700-bold.woff2') format('woff2');
}

/* Big Shoulders Display - SemiBold 600 (H1, H2 large titles) */
@font-face {
    font-family: 'Big Shoulders Display';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/big-shoulders-display-v600-semibold.woff2') format('woff2');
}

/* Rakkas - Regular 400 (Main menu navigation) */
@font-face {
    font-family: 'Rakkas';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/rakkas-v400-regular.woff2') format('woff2');
}

/* Heebo - Light 300 (Secondary text, icon lists) */
@font-face {
    font-family: 'Heebo';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/heebo-v300-light.woff2') format('woff2');
}
/* ==========================================================================
   PlanaMayor Theme - Main Stylesheet
   Mobile-First Responsive Design
   ========================================================================== */

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    /* Colors */
    --color-primary: #f70d28;
    --color-primary-hover: #d00a22;
    --color-dark: #292929;
    --color-text: #404040;
    --color-bg-light: #f6f7f8;
    --color-white: #ffffff;
    --color-black: #000000;
    
    /* Typography */
    --font-body: 'Cairo', sans-serif;
    --font-headings: 'Hind Vadodara', sans-serif;
    --font-display: 'Big Shoulders Display', display;
    --font-menu: 'Rakkas', display;
    --font-secondary: 'Heebo', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Container widths */
    --container-mobile: 100%;
    --container-tablet: 768px;
    --container-desktop: 1200px;
    --container-wide: 1400px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

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

html {
    font-size: 93.75%; /* 15px base */
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1rem; /* 15px */
    line-height: 1.5;
    color: var(--color-text);
    background-color: var(--color-bg-light);
}

/* ==========================================================================
   Typography
   ========================================================================== */

/* Body text */
body, button, input, select, textarea {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.5em;
}

/* Headings base */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: 700;
    line-height: 1.1em;
    color: var(--color-black);
    margin-bottom: var(--spacing-sm);
}

/* H1 - Large titles */
h1 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 2.33rem; /* 35px mobile */
    line-height: 1.4em;
}

/* H2 - Section titles */
h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 2rem; /* 30px mobile */
    line-height: 1.3em;
}

/* H3 */
h3 {
    font-family: var(--font-headings);
    font-size: 1.33rem; /* 20px mobile */
    line-height: 1.3em;
}

/* H4-H6 */
h4 {
    font-family: var(--font-headings);
    font-size: 1.2rem;
    line-height: 1.2em;
}

h5 {
    font-family: var(--font-headings);
    font-size: 1.1rem;
    line-height: 1.2em;
}

h6 {
    font-family: var(--font-headings);
    font-size: 0.87rem;
    line-height: 1.25em;
}

/* Links */
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* Paragraphs */
p {
    margin-bottom: var(--spacing-sm);
}

/* Text alignment */
.text-left {
    text-align: left;
}

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

.text-right {
    text-align: right;
}

/* ==========================================================================
   Layout - Container
   ========================================================================== */
.site-container {
    width: 100%;
    max-width: var(--container-mobile);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

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

/* Top Bar */
.header-topbar {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: var(--spacing-xs) 0;
    font-size: 0.87rem;
}

.topbar-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    align-items: center;
}

.topbar-info,
.topbar-social {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.topbar-info a,
.topbar-social a {
    color: var(--color-white);
    font-family: var(--font-secondary);
    font-weight: 300;
    font-size: 0.93rem;
}

.topbar-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.topbar-social a:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: scale(1.1);
}

.topbar-social a svg {
    width: 16px;
    height: 16px;
}

/* Ocultar redes sociales en móvil (solo en top bar) */
@media (max-width: 767px) {
    .topbar-social {
        display: none;
    }
}

/* Main Header */
.header-main {
    background-color: var(--color-white);
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid #e0e0e0;
}

.header-main-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--spacing-md);
    min-height: 100px;
}

/* Header Widget Areas */
.header-widget-left,
.header-widget-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-widget-left {
    justify-content: flex-start;
}

.header-widget-right {
    justify-content: flex-end;
}

.header-widget {
    color: var(--color-text);
}

.header-widget .widget-title {
    display: none; /* Ocultar títulos en header */
}

/* Estilos para widget de búsqueda en header */
.header-widget-right .search-form {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
}

.header-widget-right .search-form input[type="search"] {
    padding: 0.6rem 3rem 0.6rem 1rem;
    border: 1px solid #ddd;
    background-color: #f5f5f5;
    color: var(--color-text);
    border-radius: 25px;
    font-size: 0.9rem;
    min-width: 220px;
    transition: all 0.3s ease;
}

.header-widget-right .search-form input[type="search"]::placeholder {
    color: #999;
}

.header-widget-right .search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: var(--color-white);
    box-shadow: 0 2px 8px rgba(247, 13, 40, 0.15);
}

.header-widget-right .search-form button,
.header-widget-right .search-form input[type="submit"] {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    padding: 0;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-widget-right .search-form button::before,
.header-widget-right .search-form input[type="submit"]::before {
    content: '🔍';
    font-size: 1rem;
    display: block;
}

.header-widget-right .search-form button:hover,
.header-widget-right .search-form input[type="submit"]:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-50%) scale(1.05);
}

/* Estilos para widget de clima en header */
.header-widget-left .widget {
    font-size: 0.85rem;
    color: var(--color-text);
}

.header-widget-left .widget * {
    color: var(--color-text) !important;
}

/* Logo centrado */
.site-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.site-logo .custom-logo-link {
    display: block;
    line-height: 0;
}

.site-logo img,
.site-logo .custom-logo {
    max-width: 215px;
    height: auto;
    display: block;
}

/* Si no hay logo, mostrar el título del sitio */
.site-logo .site-title-link {
    display: block;
    text-decoration: none;
}

.site-logo .site-title {
    font-size: 1.5rem;
    color: var(--color-text);
    margin: 0;
    font-weight: 700;
    text-transform: uppercase;
}

/* Mobile controls container */
.mobile-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

/* Header secondary needs relative position */
.header-secondary .site-container {
    position: relative;
}

/* Mobile search toggle */
.mobile-search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.mobile-search-toggle:hover {
    background-color: var(--color-primary-hover);
    transform: scale(1.05);
}

.mobile-search-toggle svg {
    width: 16px;
    height: 16px;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0;
}

/* En móvil, ocultar widgets del header */
@media (max-width: 767px) {
    .header-main-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .header-widget-left,
    .header-widget-right {
        display: none;
    }
    
    .site-logo {
        justify-content: center;
    }
}

/* Main navigation */
.main-navigation {
    width: 100%;
}

/* Menu drawer para móvil */
.main-navigation {
    position: relative;
}

/* IMPORTANTE: Ocultar el menú principal en móvil (solo botón hamburguesa) */
@media (max-width: 767px) {
    .main-navigation .main-menu {
        display: none !important;
    }
}

/* Contenedor wrapper del menú móvil */
.mobile-menu-wrapper {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background-color: var(--color-dark);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease-in-out;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
}

/* IMPORTANTE: Ocultar wrapper móvil en desktop */
@media (min-width: 768px) {
    .mobile-menu-wrapper {
        display: none !important;
    }
}

.mobile-menu-wrapper.active {
    right: 0;
}

/* Footer/Logo del menú móvil (abajo) */
.mobile-menu-footer {
    display: none; /* Oculto por defecto, se muestra vía JS */
    flex-shrink: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    margin: 0;
    background-color: rgba(0, 0, 0, 0.3);
    border-top: 2px solid var(--color-primary);
    justify-content: center;
    align-items: center;
}

.mobile-menu-wrapper.active .mobile-menu-footer {
    display: flex;
}

.mobile-menu-footer a {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-footer a:hover {
    opacity: 0.8;
}

/* Logo del menú móvil */
.mobile-menu-logo {
    max-width: 140px;
    height: auto;
    display: block;
}

/* Nombre del sitio (fallback si no hay logo) */
.mobile-menu-site-name {
    font-family: var(--font-headings);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Redes sociales en el menú móvil (arriba del logo) */
.mobile-menu-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    flex-shrink: 0;
    background-color: var(--color-dark);
    border-top: 2px solid var(--color-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--color-white);
    transition: all 0.3s ease;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-social a:hover {
    background-color: var(--color-primary);
    transform: scale(1.1);
}

.mobile-menu-social a svg {
    width: 20px;
    height: 20px;
}

/* Menú principal dentro del wrapper */
.main-menu {
    list-style: none;
    width: 100%;
    flex: 1;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.main-menu li {
    width: 100%;
}

.main-menu li a {
    display: block;
    font-family: var(--font-headings);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-white);
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    transition: all 0.3s ease;
}

.main-menu li a:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding-left: 2.5rem;
}

/* Overlay oscuro (menu y búsqueda) */
.menu-overlay,
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.active,
.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Búsqueda móvil overlay */
.mobile-search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1rem;
    background-color: var(--color-white);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.mobile-search-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-search-modal .search-form {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.mobile-search-modal .search-form input[type="search"] {
    width: 100%;
    padding: 1rem 4rem 1rem 1.5rem;
    border: 2px solid #ddd;
    background-color: #f5f5f5;
    color: var(--color-text);
    border-radius: 50px;
    font-size: 1.1rem;
}

.mobile-search-modal .search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: var(--color-white);
}

.mobile-search-modal .search-form button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    padding: 0;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-search-modal .search-form button::before {
    content: '🔍';
    font-size: 1.2rem;
}

.mobile-search-modal .close-search {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-text);
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
}

/* Secondary Header */
.header-secondary {
    background-color: #eeeeee;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid #e2e2e2;
}

.secondary-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
}

.secondary-menu li a {
    font-family: var(--font-headings);
    font-size: 0.87rem;
    font-weight: 600;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: var(--spacing-xs) var(--spacing-sm);
    transition: color var(--transition-fast);
}

.secondary-menu li a:hover {
    color: var(--color-primary);
}

/* ==========================================================================
   Content Sections
   ========================================================================== */

/* Section container */
.content-section {
    padding: var(--spacing-lg) 0;
    background-color: var(--color-white);
    margin-bottom: var(--spacing-md);
}

.content-section.bg-light {
    background-color: var(--color-bg-light);
}

.section-title {
    font-size: 1.6rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-xs);
    border-bottom: 3px solid var(--color-primary);
    text-transform: uppercase;
}

/* Post Grid */
.post-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

/* Post Card */
.post-card {
    background-color: var(--color-white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.post-card-image {
    position: relative;
    width: 100%;
    padding-top: 60%; /* 5:3 aspect ratio */
    overflow: hidden;
    background-color: var(--color-bg-light);
}

.post-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card-content {
    padding: var(--spacing-md);
}

.post-card-category {
    display: inline-block;
    font-size: 0.73rem;
    font-weight: 600;
    color: #1B1B1B;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-xs);
    padding-bottom: 3px;
    border-bottom: 2px solid var(--color-primary);
    pointer-events: none;
}

.post-card-title {
    font-size: 1.2rem;
    line-height: 1.3em;
    margin-bottom: var(--spacing-xs);
}

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

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

.post-card-excerpt {
    font-size: 0.93rem;
    color: var(--color-text);
    line-height: 1.5em;
    margin-bottom: var(--spacing-sm);
}

.post-card-meta {
    font-size: 0.8rem;
    color: var(--color-text);
    font-family: var(--font-secondary);
    font-weight: 300;
}

/* Featured Section */
.featured-section {
    background-color: var(--color-white);
    padding: var(--spacing-lg) 0;
}

.featured-post {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.featured-post-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background-color: var(--color-bg-light);
}

.featured-post-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-post-content {
    padding: var(--spacing-sm);
}

.featured-post-title {
    font-size: 1.8rem;
    line-height: 1.2em;
    margin-bottom: var(--spacing-sm);
}

/* Buttons */
.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.73rem;
    line-height: 1em;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-white);
    background-color: var(--color-primary);
    padding: 1rem 2rem;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.btn:hover {
    background-color: var(--color-primary-hover);
    color: var(--color-white);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ==========================================================================
   Responsive - Tablet (768px+)
   ========================================================================== */
@media (min-width: 768px) {
    /* Container */
    .site-container {
        max-width: var(--container-tablet);
        padding: 0 var(--spacing-md);
    }
    
    /* Typography - scale up */
    h1 {
        font-size: 4rem; /* 60px */
    }
    
    h2 {
        font-size: 3.33rem; /* 50px */
    }
    
    h3 {
        font-size: 1.6rem; /* 24px */
    }
    
    /* Top bar */
    .topbar-container {
        flex-direction: row;
        justify-content: space-between;
    }
    
    /* Header main - mantener grid de 3 columnas */
    .header-main-container {
        grid-template-columns: 1fr auto 1fr;
        gap: var(--spacing-lg);
    }
    
    .site-logo img {
        max-width: 260px;
    }
    
    /* Widget areas más visibles */
    .header-widget-left,
    .header-widget-right {
        min-width: 200px;
    }
    
    /* Navigation - horizontal on tablet */
    .mobile-controls {
        display: none !important;
    }
    
    /* Ocultar wrapper y footer móvil en desktop */
    .mobile-menu-wrapper {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        background-color: transparent !important;
        box-shadow: none !important;
        flex-direction: row !important;
        overflow-y: visible !important;
    }
    
    .mobile-menu-footer {
        display: none !important;
    }
    
    .main-menu {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        background-color: transparent !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: row !important;
        gap: 0;
        box-shadow: none !important;
        overflow-y: visible !important;
        justify-content: center;
    }
    
    .main-menu li {
        position: relative;
    }
    
    .main-menu li a {
        border-bottom: none;
        padding: var(--spacing-sm) var(--spacing-md);
        font-family: var(--font-headings);
        font-size: 0.87rem;
        font-weight: 600;
        color: var(--color-text);
        text-transform: uppercase;
        letter-spacing: 1.2px;
        position: relative;
        transition: color 0.3s ease;
    }
    
    /* Subrayado hover estilo original */
    .main-menu li a::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 50%;
        width: 0;
        height: 2px;
        background-color: var(--color-primary);
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }
    
    .main-menu li a:hover {
        background-color: transparent;
        color: var(--color-primary);
        padding-left: var(--spacing-md);
    }
    
    .main-menu li a:hover::after {
        width: 100%;
    }
    
    /* Post grid - 2 columns */
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
    
    /* Featured post - side by side */
    .featured-post {
        grid-template-columns: 1fr 1fr;
    }
}

/* ==========================================================================
   Responsive - Desktop (1025px+)
   ========================================================================== */
@media (min-width: 1025px) {
    /* Container */
    .site-container {
        max-width: var(--container-desktop);
        padding: 0 var(--spacing-lg);
    }
    
    /* Typography - full scale */
    h1 {
        font-size: 4.07rem; /* 61px */
    }
    
    h2 {
        font-size: 4rem; /* 60px */
    }
    
    h3 {
        font-size: 1.87rem; /* 28px */
    }
    
    h4 {
        font-size: 1.47rem; /* 22px */
    }
    
    .site-logo img {
        max-width: 305px;
    }
    
    /* Widget areas desktop */
    .header-widget-left,
    .header-widget-right {
        min-width: 250px;
    }
    
    /* Post grid - 3 columns */
    .post-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-xl);
    }
    
    /* Featured post - 60/40 split */
    .featured-post {
        grid-template-columns: 3fr 2fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* ==========================================================================
   Responsive - Wide Desktop (1400px+)
   ========================================================================== */
@media (min-width: 1400px) {
    .site-container {
        max-width: var(--container-wide);
    }
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */
.site-footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    margin-top: var(--spacing-xxl);
}

.footer-widgets {
    margin-bottom: var(--spacing-xl);
}

.footer-widgets-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.footer-widget-area {
    color: var(--color-white);
}

.footer-widget-area .widget-title {
    color: var(--color-white);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-xs);
    border-bottom: 2px solid var(--color-primary);
}

.footer-widget-area a {
    color: var(--color-white);
}

.footer-widget-area a:hover {
    color: var(--color-primary);
}

.site-info {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    text-align: center;
    font-size: 0.87rem;
}

.site-info p {
    margin-bottom: var(--spacing-xs);
}

.site-info .copyright {
    color: rgba(255, 255, 255, 0.8);
}

.site-info .credits {
    color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 768px) {
    .footer-widgets-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .site-info {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .site-info p {
        margin-bottom: 0;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    .header-topbar,
    .header-secondary,
    .mobile-menu-toggle,
    .btn,
    .site-footer {
        display: none;
    }
    
    body {
        background-color: white;
        color: black;
    }
}
/**
 * Widgets Styles
 * Estilos para widgets personalizados del tema
 * 
 * @package PlanaMayor_Theme
 * @since 1.0.0
 */

/* ==========================================================================
   Widget de Búsqueda Personalizado
   ========================================================================== */

.planamayor-search-widget {
    margin-bottom: var(--spacing-lg);
}

.planamayor-search-widget-wrapper {
    width: 100%;
}

.planamayor-search-form {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
    width: 100%;
}

.planamayor-search-field {
    width: 100%;
    padding: 0.85rem 3.5rem 0.85rem 1.25rem;
    border: 2px solid #ddd;
    background-color: #f5f5f5;
    color: var(--color-text);
    border-radius: 30px;
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.planamayor-search-field::placeholder {
    color: #999;
}

.planamayor-search-field:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: var(--color-white);
    box-shadow: 0 3px 12px rgba(247, 13, 40, 0.15);
}

.planamayor-search-submit {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    padding: 0;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.planamayor-search-submit:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-50%) scale(1.05);
}

.planamayor-search-submit:active {
    transform: translateY(-50%) scale(0.95);
}

.planamayor-search-submit svg {
    width: 20px;
    height: 20px;
}

/* Screen reader only text (para accesibilidad) */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Estilos para el título del widget si se usa */
.planamayor-search-widget .widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
    font-family: var(--font-headings);
}

/* Responsive para móvil */
@media (max-width: 767px) {
    .planamayor-search-field {
        padding: 0.75rem 3.25rem 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .planamayor-search-submit {
        width: 38px;
        height: 38px;
    }
    
    .planamayor-search-submit svg {
        width: 18px;
        height: 18px;
    }
}

/* ==========================================================================
   Widget de Reloj
   ========================================================================== */

.planamayor-clock-widget {
    margin-bottom: var(--spacing-lg);
}

.planamayor-clock-widget-wrapper {
    text-align: center;
    padding: 1.5rem 1rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, #e60a2e 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(247, 13, 40, 0.2);
}

/* Fecha */
.planamayor-clock-date {
    font-family: var(--font-headings);
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.75rem;
    text-transform: capitalize;
    letter-spacing: 0.5px;
}

/* Hora principal */
.planamayor-clock-time {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    font-family: var(--font-headings);
    font-weight: 700;
    color: var(--color-white);
    font-size: 2.5rem;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.planamayor-clock-hours,
.planamayor-clock-minutes,
.planamayor-clock-seconds {
    min-width: 1.5em;
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

.planamayor-clock-separator {
    opacity: 0.8;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0.3; }
}

.planamayor-clock-period {
    font-size: 1rem;
    margin-left: 0.5rem;
    opacity: 0.9;
}

/* Zona horaria */
.planamayor-clock-timezone {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Estilos para el título del widget */
.planamayor-clock-widget .widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
    font-family: var(--font-headings);
}

/* Responsive para móvil - Reloj */
@media (max-width: 767px) {
    .planamayor-clock-widget-wrapper {
        padding: 1.25rem 0.75rem;
    }
    
    .planamayor-clock-time {
        font-size: 2rem;
    }
    
    .planamayor-clock-date {
        font-size: 0.85rem;
    }
    
    .planamayor-clock-period {
        font-size: 0.9rem;
    }
    
    .planamayor-clock-timezone {
        font-size: 0.7rem;
    }
}
/**
 * Pagination Styles
 * Estilos modernos y responsive para paginación de WordPress
 * 
 * @package PlanaMayor_Theme
 * @since 1.0.1
 */

/* ========================================
   PAGINATION CONTAINER
   ======================================== */

.pagination,
.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 50px 0;
    padding: 20px 0;
}

/* ========================================
   PAGE NUMBERS
   ======================================== */

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    color: var(--color-text);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Efecto de hover sutil */
.page-numbers::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(247, 13, 40, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: 0;
}

.page-numbers:hover::before {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.page-numbers:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(247, 13, 40, 0.15);
}

.page-numbers:active {
    transform: translateY(0);
}

/* ========================================
   CURRENT PAGE (ACTIVE)
   ======================================== */

.page-numbers.current {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: white;
    border-color: var(--color-primary);
    box-shadow: 0 4px 16px rgba(247, 13, 40, 0.3);
    cursor: default;
    pointer-events: none;
}

/* ========================================
   PREV / NEXT BUTTONS
   ======================================== */

.page-numbers.prev,
.page-numbers.next {
    min-width: auto;
    padding: 0 16px;
    font-weight: 700;
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(247, 13, 40, 0.2);
}

.page-numbers.prev:hover,
.page-numbers.next:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(247, 13, 40, 0.35);
}

.page-numbers.prev::before,
.page-numbers.next::before {
    display: none;
}

/* Flechas con símbolos más modernos */
.page-numbers.prev {
    padding-left: 12px;
}

.page-numbers.next {
    padding-right: 12px;
}

/* ========================================
   DOTS (ELLIPSIS)
   ======================================== */

.page-numbers.dots {
    border: none;
    background: transparent;
    color: var(--color-text-light);
    cursor: default;
    pointer-events: none;
    font-weight: 700;
    letter-spacing: 2px;
}

.page-numbers.dots:hover {
    transform: none;
    box-shadow: none;
}

.page-numbers.dots::before {
    display: none;
}

/* ========================================
   DISABLED STATE
   ======================================== */

.page-numbers[disabled],
.page-numbers.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* ========================================
   PAGINATION INFO (opcional)
   ======================================== */

.pagination-info {
    text-align: center;
    margin-top: 15px;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablets */
@media (max-width: 1024px) {
    .pagination,
    .nav-links {
        gap: 6px;
        margin: 40px 0;
    }
    
    .page-numbers {
        min-width: 40px;
        height: 40px;
        padding: 0 10px;
        font-size: 0.9rem;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .pagination,
    .nav-links {
        gap: 5px;
        margin: 30px 0;
        padding: 15px 0;
        flex-wrap: wrap;
    }
    
    .page-numbers {
        min-width: 38px;
        height: 38px;
        padding: 0 8px;
        font-size: 0.875rem;
        border-radius: 6px;
    }
    
    /* Ocultar algunos números en móvil para mejor UX */
    .page-numbers:not(.current):not(.prev):not(.next):not(.dots) {
        display: none;
    }
    
    /* Mostrar solo actual, anterior y siguiente en móvil */
    .page-numbers.current,
    .page-numbers.current + .page-numbers,
    .page-numbers.current - .page-numbers {
        display: inline-flex;
    }
    
    /* Mostrar siempre los botones de navegación */
    .page-numbers.prev,
    .page-numbers.next {
        display: inline-flex;
    }
    
    /* Ajustar botones prev/next en móvil */
    .page-numbers.prev,
    .page-numbers.next {
        min-width: auto;
        padding: 0 12px;
        flex: 0 0 auto;
    }
    
    /* Hacer el botón actual más prominente en móvil */
    .page-numbers.current {
        font-size: 1rem;
        min-width: 44px;
        height: 44px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .pagination,
    .nav-links {
        gap: 4px;
        margin: 25px 0;
    }
    
    .page-numbers {
        min-width: 36px;
        height: 36px;
        font-size: 0.813rem;
    }
    
    .page-numbers.prev,
    .page-numbers.next {
        padding: 0 10px;
        font-size: 0.813rem;
    }
    
    .page-numbers.current {
        min-width: 40px;
        height: 40px;
        font-size: 0.938rem;
    }
}

/* ========================================
   ALTERNATIVE COMPACT STYLE (para espacios reducidos)
   ======================================== */

.pagination.compact .page-numbers,
.nav-links.compact .page-numbers {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    font-size: 0.875rem;
    border-radius: 6px;
}

.pagination.compact,
.nav-links.compact {
    gap: 5px;
    margin: 30px 0;
}

/* ========================================
   DARK MODE SUPPORT (opcional, para futuro)
   ======================================== */

@media (prefers-color-scheme: dark) {
    .page-numbers {
        background: #2a2a2a;
        border-color: #404040;
        color: #e0e0e0;
    }
    
    .page-numbers:hover {
        background: #333333;
        border-color: var(--color-primary);
    }
    
    .page-numbers.current {
        background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
        border-color: var(--color-primary);
    }
}

/* ========================================
   ANIMACIONES AVANZADAS (opcional)
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-numbers {
    animation: fadeInUp 0.3s ease-out backwards;
}

.page-numbers:nth-child(1) { animation-delay: 0.05s; }
.page-numbers:nth-child(2) { animation-delay: 0.1s; }
.page-numbers:nth-child(3) { animation-delay: 0.15s; }
.page-numbers:nth-child(4) { animation-delay: 0.2s; }
.page-numbers:nth-child(5) { animation-delay: 0.25s; }
.page-numbers:nth-child(6) { animation-delay: 0.3s; }
.page-numbers:nth-child(7) { animation-delay: 0.35s; }

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */

.page-numbers:focus {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
    z-index: 1;
}

.page-numbers:focus:not(:focus-visible) {
    outline: none;
}

/* Screen reader only text */
.pagination .screen-reader-text,
.nav-links .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
