/* 1. CONFIGURACIÓN GLOBAL */
html {
    scroll-behavior: smooth; /* Desplazamiento suave en toda la web */
}

/* Selección de texto personalizada */
::selection {
    background-color: #11182A;
    color: #ffffff;
}

/* Barra de desplazamiento personalizada (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #11182A;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #1a2540;
}

/* 2. CABECERA: Bloqueada con efecto cristal */
.site-header, header#masthead, .main-header-bar {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    width: 100% !important;
    z-index: 99999 !important;
    background-color: rgba(17, 24, 42, 0.92) !important; 
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.site-header a, .site-header .wp-block-navigation-item__label {
    color: #ffffff !important;
}

body {
    padding-top: 100px !important;
}

/* 3. NAVEGACIÓN: Subrayado animado */
.wp-block-navigation-item__label {
    position: relative;
    text-decoration: none;
}
.wp-block-navigation-item__label::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #ffffff;
    transform-origin: bottom right;
    transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
}
.wp-block-navigation-item__label:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* 4. ANIMACIONES DE ENTRADA */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.wp-block-group, .wp-block-columns, .wp-block-post-content {
    animation: fadeInUp 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* 5. EFECTOS DE IMAGEN Y BLOQUES */

/* Imágenes: Zoom + Saturación suave */
.wp-block-post-featured-image img, .wp-block-image img {
    transition: all 0.7s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    filter: saturate(0.9); /* Empiezan un pelín más suaves */
}
.wp-block-post-featured-image:hover img, .wp-block-image:hover img {
    transform: scale(1.03);
    filter: saturate(1.1); /* Ganan color al pasar el ratón */
}

/* Elevación sutil de bloques al pasar el ratón */
.wp-block-columns:hover, .wp-block-group:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

/* 6. BOTONES PREMIUM */
.wp-block-button__link {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    border: none !important;
}
.wp-block-button__link:hover {
    letter-spacing: 1.2px;
    filter: brightness(1.2);
    box-shadow: 0 10px 25px rgba(17, 24, 42, 0.25);
    transform: translateY(-2px);
}
