html, body {
    overflow-x: hidden !important;
    width: 100vw;
    max-width: 100vw;
}
.mobile-menu {
    width: 100vw;
    max-width: 100vw;
    left: 0;
    right: 0;
    box-sizing: border-box;
}
.mobile-menu {
    min-height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.mobile-menu nav,
.mobile-menu ul {
    flex: 1 1 auto;
}
.mobile-menu ul li a {
    min-height: 48px;
    line-height: 1.3;
    align-items: center;
}
/* Forzar columna y separación en menú móvil */
.mobile-menu ul {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
    margin: 0;
    padding: 0;
}
.mobile-menu ul li {
    width: 100%;
    list-style: none;
}
.mobile-menu ul li a {
    display: block;
    padding: 0.75rem 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: #0d1b12;
    border-radius: 0.5rem;
    transition: background 0.2s, color 0.2s;
}
.mobile-menu ul li a:hover {
    background: #f6f8f6;
    color: var(--color-primary);
}
/**
 * Nodo Digital - Main Stylesheet
 * 
 * @package NodoDigital
 * @since 1.0.0
 */

/* ========================================
   Variables CSS
   ======================================== */
:root {
    --color-primary: #13ec5b;
    --color-primary-hover: #0fdc53;
    --color-bg-light: #f6f8f6;
    --color-bg-dark: #102216;
    --color-text-dark: #0d1b12;
    --color-slate-900: #0f172a;
    --transition-base: all 0.3s ease;
    --shadow-soft: 0 20px 40px -10px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 40px -10px rgba(19, 236, 91, 0.4);
}

/* ========================================
   Reset y Base
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ========================================
   Selection
   ======================================== */
::selection {
    background-color: var(--color-primary);
    color: var(--color-text-dark);
}

::-moz-selection {
    background-color: var(--color-primary);
    color: var(--color-text-dark);
}

/* ========================================
   Utilidades
   ======================================== */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ========================================
   Animaciones
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse-slow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* ========================================
   Header Sticky Enhancements
   ======================================== */
.site-header {
    transition: var(--transition-base);
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Header always fixed and above UI (desktop & mobile) */
:root {
    --site-header-height: 72px; /* default header height */
}

.site-header {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10050 !important;
    background: rgba(255,255,255,0.95) !important;
    backdrop-filter: blur(6px) !important;
}

/* Ensure mobile menu sits below the header */
.mobile-menu {
    z-index: 10040 !important;
}

/* Prevent content from hiding under the header */
body {
    padding-top: var(--site-header-height);
}

@media (max-width: 768px) {
    :root {
        --site-header-height: 64px;
    }
}

/* ========================================
   Botones
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    font-weight: 700;
    border-radius: 0.75rem;
    transition: var(--transition-base);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-dark);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 50px -10px rgba(19, 236, 91, 0.6);
}

.btn-secondary {
    background-color: white;
    color: var(--color-text-dark);
    border: 2px solid #e5e7eb;
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* ========================================
   Cards
   ======================================== */
.card {
    border-radius: 1rem;
    transition: var(--transition-base);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

/* ========================================
   WhatsApp Floating Button
   ======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition-base);
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #20b857;
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float:active {
    transform: scale(0.95);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 1rem;
        right: 1rem;
    }
}

/* ========================================
   Accesibilidad
   ======================================== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: var(--color-text-dark);
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .whatsapp-float,
    .site-header,
    .site-footer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* ========================================
   WordPress Core Compatibility
   ======================================== */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.sticky {
    /* Estilos para posts sticky */
}

.bypostauthor {
    /* Estilos para el autor del post */
}

/* ========================================
   Screen Reader Text
   ======================================== */
.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;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}


