/* Global theme styles (keep minimal). */
/* Mobile-first. Use only 3 breakpoint tiers. */

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

.skip-to-content {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 100000;
    background: var(--color-primary, #009DDF);
    color: #fff;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    border-radius: 0 0 8px 0;
}
.skip-to-content:focus {
    position: fixed;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    clip: auto;
    overflow: visible;
}

/* ========================================
   CSS Reset (Minimal)
   ======================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6,
p, ul, ol, li,
blockquote, pre,
figure, figcaption {
    margin: 0;
    padding: 0;
}

/* ========================================
   Base typography (mobile-first)
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family);
    color: var(--color-text);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-wrap: balance;
}

h1 {
    font-size: 2rem;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

h2 {
    font-size: 1.625rem;
    line-height: 1.2;
    margin-bottom: 1.125rem;
}

h3 {
    font-size: 1.375rem;
    line-height: 1.25;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.175rem;
    line-height: 1.3;
    margin-bottom: 0.875rem;
}

h5 {
    font-size: 1.0625rem;
    line-height: 1.35;
    margin-bottom: 0.75rem;
}

h6 {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    text-wrap: pretty;
}

p:last-child {
    margin-bottom: 0;
}

ul, ol {
    margin-bottom: 1.25rem;
    padding-left: 1.25rem;
}

ul li, ol li {
    margin-bottom: 0.375rem;
    line-height: 1.6;
}

ul li:last-child, ol li:last-child {
    margin-bottom: 0;
}

blockquote {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid var(--color-primary);
    font-style: italic;
    line-height: 1.6;
}

strong, b {
    font-weight: 700;
}

small {
    font-size: 0.875rem;
}

/* Tablet */
@media (min-width: 768px) {
    h1 { font-size: 2.5rem; margin-bottom: 1.5rem; }
    h2 { font-size: 2rem; margin-bottom: 1.25rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    h5 { font-size: 1.125rem; }
}

/* Desktop */
@media (min-width: 992px) {
    h1 { font-size: 3rem; margin-bottom: 1.75rem; }
    h2 { font-size: 2.25rem; margin-bottom: 1.5rem; }
    h3 { font-size: 1.625rem; }
}

ul, ol {
    /* list-style: none; */
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font: inherit;
}

input, textarea, select {
    font: inherit;
    margin: 0;
}

img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    max-width: 100%;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* ========================================
   CSS Custom Properties (Design Tokens)
   ======================================== */
:root {
    /* Colors */
    --color-primary: #009DDF;
    --color-primary-light: #3DD9E4;
    --color-primary-dark: #0087C1;
    --color-secondary: #36C3C1;
    --color-secondary-dark: #2FA8A6;
    --color-text: #323232;
    --color-text-light: #999;
    --color-bg-light: #F6FCFC;
    --color-white: #FFFFFF;
    --color-border: #E0E0E0;
    
    /* Typography */
    --font-family: 'DM Sans', sans-serif;
    --font-size-base: 16px;
    --font-size-sm: 14px;
    --font-size-lg: 18px;
    --font-size-xl: 20px;
    --font-size-xxl: 36px;
    --line-height-base: 1.6;
    --line-height-tight: 1.15;
    --line-height-relaxed: 1.7;
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 60px;
    --spacing-xxxl: 80px;
    
    /* Border radius */
    --radius-sm: 25px;
    --radius-md: 50px;
    --radius-lg: 50px;
    
    /* Transitions */
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;
}

/* ========================================
   GLOBAL
   ======================================== */

html,
body {
    font-family: var(--font-family);
    line-height: 1.5;
}

img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   Header wrap (fixed, hide on scroll down)
   ======================================== */
.site-header-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}
@media (min-width: 992px){
    .site-header-wrap{
        position: sticky;
    }
}

.site-header-wrap.is-hidden {
    transform: translateY(-100%);
}

/* ========================================
   Topbar
   ======================================== */
.site-topbar {
    background-color: var(--color-bg-light);
    padding: 12px 0;
    border-bottom: 1px solid #E0E0E0;
}

.site-topbar .container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.topbar-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-size: 14px;
}

.topbar-phone-label {
    color: var(--color-text);
    font-weight: 500;
}

.topbar-phone-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.topbar-phone-number {
    color: #36C3C1;
    font-weight: 500;
}

.topbar-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--color-white);
    border: 1px solid #E0E0E0;
    border-radius: 25px;
    padding: 8px 16px;
    width: 100%;
    max-width: 320px;
}

.topbar-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    color: var(--color-text);
    background: transparent;
}

.topbar-search-input::placeholder {
    color: var(--color-text-light);
}

.topbar-search-icon {
    width: 18px;
    height: 18px;
    color: var(--color-text-light);
}

.topbar-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.topbar-search-btn:hover .topbar-search-icon {
    color: var(--color-primary);
}

/* ========================================
   Header
   ======================================== */
/* ========================================
   Header Redesign (3 Rows)
   ======================================== */

.site-header {
    background-color: var(--color-white);
    padding: 12px 0;
    position: relative;
    z-index: 100;
}

.header-main-row {
    min-height: 80px;
}

.site-logo-img {
    height: 60px;
    width: auto;
}

/* Header Search (Pill) */
.header-search {
    flex: 1;
    max-width: 460px;
    position: relative;
    margin: 0 40px;
}

.header-search-input {
    width: 100%;
    background-color: var(--color-white);
    border-radius: 50px;
    padding: 12px 24px;
    padding-right: 50px;
    font-size: 13px;
    color: var(--color-text);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    f5f5f5: all 0.2s ease;
    background-color: #f5f5f5;
    border: none;
}

.header-search-input:focus {
    border-color: var(--color-primary-light);
    outline: none;
    box-shadow: 0 2px 10px rgba(61, 217, 228, 0.15);
}

.header-search-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-search-icon {
    width: 19px;
    height: 19px;
    display: block;
}

/* Buttons */

.header-actions{
        gap: .4rem;
}
.btn-header {
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 43px;
}

.btn-header-icon {
    width: 18px;
    height: 15px;
    flex-shrink: 0;
}

.btn-header-primary {
    background-color: var(--color-primary);
    color: #FFFFFF;
}

.btn-header-primary:hover {
    background-color: #0087C1;
    color: #FFFFFF;
}

.btn-header-secondary {
    background-color: #36C3C1;
    color: #FFFFFF;
}

.btn-header-secondary:hover {
    background-color: #2FA8A6;
    color: #FFFFFF;
}

/* Navigation Row */
.site-navbar {
    background-color: #FFFFFF;
    border-top: 1px solid #E0E0E0;
    position: relative;
    z-index: 999;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 20px 0;
    list-style: none;
    position: relative;
}

.nav-menu li {position: relative; list-style: none;}
.nav-menu li:has(.desktop-sub-menu-level-2) {position: relative;}

.nav-menu a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
    padding: 8px 0;
}

.nav-menu a:hover,
.nav-menu li.current-menu-item a {
    color: var(--color-primary);
}

.nav-menu .menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background-image: url('../img/icon-right-arrow.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    /* transform: rotate(90deg); */
    margin-left: 4px;
    transition: transform var(--transition-base);
}

/* ========================================
   Desktop Submenus
   3 modos:
   (1) 1 nivel        → lista simple bajo el padre
   (2) 2 niveles sin imágenes → lista + flyout lateral (default)
   (3) 2 niveles con tarjetas/ACF content → grid horizontal con imágenes
   ======================================== */

/* Base: hidden state shared by level-1 y level-2 */
.site-navbar .desktop-sub-menu {
    position: absolute;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
    padding: 0;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 1000;
}

.site-navbar .desktop-sub-menu li {
    position: relative;
    list-style: none;
    margin: 0;
}

/* ----- Default Level-1 (modes 1 & 2): clean list dropdown ----- */
.site-navbar .desktop-sub-menu-level-1 {
    top: 100%;
    left: 50%;
    transform: translate(-50%, -12px);
    min-width: 240px;
    max-width: 320px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.site-navbar .nav-menu > li:hover > .desktop-sub-menu-level-1,
.site-navbar .nav-menu > li:focus-within > .desktop-sub-menu-level-1 {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.site-navbar .desktop-sub-menu-level-1 > li > a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.3;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.site-navbar .desktop-sub-menu-level-1 > li > a:hover,
.site-navbar .desktop-sub-menu-level-1 > li.current-menu-item > a {
    background-color: var(--color-bg-light);
    color: var(--color-primary);
}

/* Indicador → flyout para items con hijos (modo 2) */
.site-navbar .desktop-sub-menu-level-1 > li.menu-item-has-children > a::after {
    content: '';
    width: 12px;
    height: 12px;
    background-image: url('../img/icon-right-arrow.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin-left: auto;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.site-navbar .desktop-sub-menu-level-1 > li.menu-item-has-children:hover > a::after {
    transform: translateX(3px);
}

/* ----- Level-2 flyout (modo 2: lista lateral) ----- */
.site-navbar .desktop-sub-menu-level-2 {
    top: -1px;
    left: 100%;
    margin-left: 8px;
    transform: translate(-8px, 0);
    min-width: 240px;
    max-width: 320px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.site-navbar .desktop-sub-menu-level-1 > li:hover > .desktop-sub-menu-level-2,
.site-navbar .desktop-sub-menu-level-1 > li:focus-within > .desktop-sub-menu-level-2 {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(0, 0);
}

.site-navbar .desktop-sub-menu-level-2 > li > a {
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.3;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.site-navbar .desktop-sub-menu-level-2 > li > a:hover,
.site-navbar .desktop-sub-menu-level-2 > li.current-menu-item > a {
    background-color: var(--color-bg-light);
    color: var(--color-primary);
}

/* Flip flyout a la izquierda en los últimos items para no salirse */
.site-navbar .nav-menu > li:nth-last-child(-n+2) .desktop-sub-menu-level-1 > li > .desktop-sub-menu-level-2 {
    left: auto;
    right: 100%;
    margin-left: 0;
    margin-right: 8px;
    transform: translate(8px, 0);
}
.site-navbar .nav-menu > li:nth-last-child(-n+2) .desktop-sub-menu-level-1 > li:hover > .desktop-sub-menu-level-2 {
    transform: translate(0, 0);
}

/* "Puente" invisible para no perder el hover entre level-1 y level-2 */
.site-navbar .desktop-sub-menu-level-1 > li.menu-item-has-children > .desktop-sub-menu-level-2::before {
    content: '';
    position: absolute;
    top: 0;
    left: -8px;
    width: 8px;
    height: 100%;
}
.site-navbar .nav-menu > li:nth-last-child(-n+2) .desktop-sub-menu-level-2::before {
    left: auto;
    right: -8px;
}

/* ========================================
   Modo 3: rich grid con tarjetas/imágenes
   Solo cuando hay items con ACF content
   ======================================== */
/* Mode 3: panel grande con grid 4xN de tarjetas
   - El panel ocupa todo su ancho con 4 tarjetas por fila.
   - El submenú nivel-2 (sublinks) aparece como popover bajo la tarjeta hovered,
     anclado al LI padre (que mantiene position: relative).
   - El popover incluye un hover-bridge invisible para evitar flicker al pasar
     el cursor de la tarjeta al popover. */
.site-navbar .desktop-sub-menu-level-1:has(.menu-item-has-content) {
    min-width: 0;
    max-width: calc(100vw - 32px);
    width: 960px;
    left: 50%;
    padding: 16px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 12px;
    transform: translate(-50%, -12px);
}

.site-navbar .nav-menu > li:hover > .desktop-sub-menu-level-1:has(.menu-item-has-content) {
    transform: translate(-50%, 0);
}

.site-navbar .desktop-sub-menu-level-1:has(.menu-item-has-content) > li.menu-item-has-content {
    width: calc(25% - 9px); /* 4 tarjetas por fila */
}

.site-navbar .menu-item-content-wrapper {
    position: relative;
    height: 100%;
}

.site-navbar .menu-item-content-link {
    display: block;
    text-decoration: none;
    position: relative;
}

.site-navbar .menu-item-image {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    background-color: var(--color-primary);
    aspect-ratio: 4 / 3;
}

.site-navbar .menu-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-navbar .menu-item-content-wrapper:hover .menu-item-image img {
    opacity: 0.3;
}

.site-navbar .menu-item-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 0.65rem 0.75rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.6) 40%, rgba(0, 0, 0, 0.2) 80%, transparent 100%);
    display: grid;
    grid-template-rows: auto 0fr;
    transition: padding 0.3s cubic-bezier(0.4, 0, 0.2, 1), grid-template-rows 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-navbar .menu-item-content-wrapper:hover .menu-item-image-overlay {
    padding: 1.5rem 0.75rem 0.75rem;
    grid-template-rows: auto 1fr;
}

.site-navbar .menu-item-title {
    font-size: 1.225rem;
    font-weight: 600;
    color: var(--color-white);
    margin: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.05s;
    line-height: 1.3;
}

.site-navbar .menu-item-content-wrapper:hover .menu-item-title {
    transform: translateY(-0.5rem);
}

.site-navbar .menu-item-description-wrapper {
    overflow: hidden;
    min-height: 0;
}

.site-navbar .menu-item-image-overlay .menu-item-description {
    font-size: 0.8125rem;
    color: var(--color-white);
    line-height: 1.3;
    margin: 0.5rem 0 0 0;
    padding: 0;
}

.site-navbar .menu-item-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.site-navbar .menu-item-text .menu-item-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 0.5rem 0;
    transition: color 0.2s ease;
    line-height: 1.3;
}

.site-navbar .menu-item-text .menu-item-description {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    transform: none;
    opacity: 1;
}

.site-navbar .desktop-sub-menu-level-1 > li {
    margin: 0;
}

/* Level-2 dentro del modo rich: popover anclado bajo la tarjeta.
   El LI padre es position:relative (heredado de .nav-menu li), por lo que el
   nivel-2 absolute se posiciona respecto a la tarjeta. */
.site-navbar .desktop-sub-menu-level-1:has(.menu-item-has-content) .desktop-sub-menu-level-2 {
    position: absolute;
    top: calc(100%);
    left: 0;
    right: auto;
    bottom: auto;
    width: 100%;
    min-width: 220px;
    max-width: none;
    margin: 0;
    padding: 12px 10px;
    background-color: var(--color-primary);
    border: 1px solid transparent;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    /* hide-state */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-4px);
    /* Delay al ocultar para permitir mover el cursor hacia los sublinks */
    transition: opacity 0.2s ease 0.15s, transform 0.2s ease 0.15s, visibility 0.2s linear 0.15s;
    z-index: 1;
}

/* Hover-bridge invisible: cubre el gap de 8px entre tarjeta y popover
   para evitar que el popover se cierre al mover el cursor hacia él */
.site-navbar .desktop-sub-menu-level-1:has(.menu-item-has-content) .desktop-sub-menu-level-2::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
}

/* Mostrar instantáneo cuando se hover la tarjeta o el propio level-2 */
.site-navbar .desktop-sub-menu-level-1:has(.menu-item-has-content) > li.menu-item-has-content:hover > .desktop-sub-menu-level-2,
.site-navbar .desktop-sub-menu-level-1:has(.menu-item-has-content) > li.menu-item-has-content:focus-within > .desktop-sub-menu-level-2 {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    z-index: 5;
    transition-delay: 0s;
}

/* Indicador (chevron-down) en la tarjeta cuando tiene sublinks */
.site-navbar .desktop-sub-menu-level-1 > li.menu-item-has-content:has(> .desktop-sub-menu-level-2) .menu-item-content-wrapper::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 12px;
    height: 12px;
    background-image: url('../img/icon-right-arrow.svg');
    background-repeat: no-repeat;
    background-size: contain;
    transform: translate(-50%, 0) rotate(90deg);
    opacity: 0;
    transition: opacity 0.2s ease, bottom 0.2s ease;
    pointer-events: none;
    filter: brightness(0) invert(1);
}
.site-navbar .desktop-sub-menu-level-1 > li.menu-item-has-content:hover .menu-item-content-wrapper::after {
    opacity: 0.9;
    bottom: -10px;
}

/* Sublinks dentro del level-2 rich */
.site-navbar .desktop-sub-menu-level-1:has(.menu-item-has-content) .desktop-sub-menu-level-2 > li > a {
    display: block;
    color: var(--color-white);
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.35;
    transition: background-color 0.2s ease;
}

.site-navbar .desktop-sub-menu-level-1:has(.menu-item-has-content) .desktop-sub-menu-level-2 > li > a:hover {
    background-color: rgba(255, 255, 255, 0.16);
    color: var(--color-white);
}

/* Fallback responsive: en viewports estrechos del rango desktop (>=992px),
   reducir a 3 columnas para que las tarjetas no se compriman demasiado */
@media (max-width: 1100px) {
    .site-navbar .desktop-sub-menu-level-1:has(.menu-item-has-content) > li.menu-item-has-content {
        width: calc(33.333% - 8px);
    }
}

/* Mobile Toggle - Keeping existing logic but restyling if needed */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-text);
    border-radius: 2px;
}

/* Utilities */
.text-teal {
    color: #36C3C1;
}

.text-primary {
    color: var(--color-primary);
}

/* Button Primary */
.btn-primary {
    display: inline-block;
    background-color: var(--color-primary);
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    transition: background-color var(--transition-base);
}

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

/* Responsive adjustments */
@media (max-width: 991px) {
    .site-topbar {
        padding: 10px 0;
    }

    .topbar-phone {
        font-size: 13px;
        justify-content: center;
    }

    .topbar-phone-icon {
        width: 16px;
        height: 16px;
    }

    .header-main-row {
        min-height: 60px;
    }

    .site-logo-img {
        height: 45px;
    }

    /* Mobile: over hero – transparent header, white logo & burger */
    .site-header-wrap.at-top .site-topbar,
    .site-header-wrap.at-top .site-header {
        background-color: transparent;
        border-bottom-color: transparent;
    }

    .site-header-wrap.at-top .site-topbar {
        border-bottom: none;
        background-color: #ffffff;
    }

    .site-header-wrap.at-top .site-logo-img {
        filter: brightness(0) invert(1);
    }

    .site-header-wrap.at-top .menu-toggle span {
        background-color: var(--color-white);
    }

    /* Mobile: scrolled – header background, default logo & burger (no .at-top) */
    .site-header-wrap:not(.at-top) .site-header {
        background-color: var(--color-white);
    }
}


/* ========================================
   Tablet / small desktop (768px+)
   ======================================== */
@media (min-width: 768px) {
    .topbar-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .topbar-phone {
        font-size: 15px;
    }

    .site-logo-img {
        height: 55px;
    }

    .header-cta {
        display: flex;
    }
}

/* ========================================
   Desktop / large desktops (1200px+)
   ======================================== */
@media (min-width: 1200px) {
    .site-topbar {
        padding: 9px 0;
    }

    .site-header {
        padding: 12px 0;
    }

    .site-logo-img {
        height: 69px;
    }

    /* Show desktop nav, hide toggle */
    .menu-toggle {
        display: none;
    }

    .site-nav {
        display: block;
        position: static;
        background: transparent;
        box-shadow: none;
    }

    .nav-menu {
        gap: 40px;
        padding: 7px 0;
    }

    .header-cta {
        padding: 16px 32px;
        font-size: 18px;
    }

    .header-cta-icon {
        width: 26px;
        height: 26px;
    }
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
    background-color: #0B303A;
    color: #FFFFFF;
    padding: 80px 0 0;
    font-size: 15px;
    position: relative;
    overflow: hidden;
}

.footer-decoration {
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

.footer-decoration-1 {
    bottom: 0;
    left: 0;
    max-width: 300px;
}

.footer-decoration-2 {
    bottom: 0;
    right: 0;
    max-width: 200px;
}

.footer-decoration img {
    display: block;
    width: 100%;
    height: auto;
    opacity: 0.8;
}

.site-footer .container {
    position: relative;
    z-index: 1;
}

.site-footer a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: var(--color-primary-light);
}

.footer-heading {
    font-size: 20px;
    color: #FFFFFF;
    margin-bottom: 24px;
}

.footer-desc,
.footer-text {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* Social Icons */
.social-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: transparent;
    border: 1px solid #FFFFFF;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.social-item:hover {
    transform: translateY(-3px);
    background-color: var(--color-primary-light);
    border-color: var(--color-primary-light);
}

.social-item img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

/* Menu */
.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.9);
}

/* Locations */
.footer-locations {
    margin-top: 0;
}

.location-item {
    margin-bottom: 2rem;
}

.location-item:last-child {
    margin-bottom: 0;
}

.location-name {
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 12px;
}

.contact-row {
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.5;
    gap: 0.4rem;
}

.contact-icon {
    width: 16px;
    height: 16px;
    margin-top: 4px;
    flex-shrink: 0;
    filter: brightness(0) saturate(100%) invert(70%) sepia(90%) saturate(300%) hue-rotate(150deg);
}

/* Form */
.footer-form input,
.footer-fake-form input {
    background-color: #EFEFEF;
    border: none;
    color: #323232;
    padding: 12px 20px;
}

.footer-form button,
.footer-fake-form button {
    background-color: var(--color-primary-light);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Bottom */
.footer-bottom {
    font-size: 13px;
    text-align: center;
    margin-top: 60px;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-link {
    color: var(--color-primary-light) !important;
    text-decoration: underline !important;
}

.footer-bottom-link:hover {
    color: var(--color-white) !important;
}
/* ========================================
   Mobile Menu (full width, no ACF)
   ======================================== */
.mobile-menu-overlay {
    display: none;
}

@media (min-width: 992px) {
    .mobile-menu-overlay {
        display: none !important;
    }
}

@media (max-width: 991px) {
    .mobile-menu-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1000;
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.25s ease, visibility 0.25s ease;
        pointer-events: none;
    }

    .mobile-menu-overlay.is-active {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-menu-panel {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        height: 100%;
        background: var(--color-white);
        display: flex;
        flex-direction: column;
        overflow: hidden;
        transform: translateY(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        padding-top: env(safe-area-inset-top, 0);
        padding-left: env(safe-area-inset-left, 0);
        padding-right: env(safe-area-inset-right, 0);
    }

    .mobile-menu-overlay.is-active .mobile-menu-panel {
        transform: translateY(0);
    }

    .mobile-menu-header {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 3.5rem;
        padding: 0 1rem;
        border-bottom: 1px solid var(--color-border);
    }

    .mobile-menu-title {
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 0.05em;
        color: var(--color-text-light);
        text-transform: uppercase;
    }

    .mobile-menu-close {
        width: 2.5rem;
        height: 2.5rem;
        margin: 0 -0.25rem 0 0;
        padding: 0;
        border: none;
        background: transparent;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        border-radius: 0.25rem;
        flex-shrink: 0;
        transition: opacity 0.2s ease;
    }

    .mobile-menu-close:hover,
    .mobile-menu-close:focus-visible {
        opacity: 0.8;
    }

    .mobile-menu-close span {
        position: absolute;
        width: 1.125rem;
        height: 2px;
        background-color: var(--color-text);
        border-radius: 1px;
    }

    .mobile-menu-close span:first-child { transform: rotate(45deg); }
    .mobile-menu-close span:last-child { transform: rotate(-45deg); }

    .mobile-menu-body {
        flex: 1;
        overflow-y: auto;
        padding: 1rem;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-menu-search {
        display: flex;
        gap: 0.5rem;
        margin-bottom: 1.25rem;
        padding: 0.75rem;
        background: var(--color-bg-light);
        border-radius: 0.5rem;
    }

    .mobile-menu-search input {
        flex: 1;
        min-width: 0;
        padding: 0.625rem 0.75rem;
        font-size: 1rem;
        border: 1px solid var(--color-border);
        border-radius: 0.375rem;
        background: var(--color-white);
        color: var(--color-text);
    }

    .mobile-menu-search input::placeholder {
        color: var(--color-text-light);
    }

    .mobile-menu-search button {
        flex-shrink: 0;
        width: 2.75rem;
        height: 2.75rem;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--color-primary);
        color: var(--color-white);
        border-radius: 0.375rem;
        transition: background-color 0.2s ease;
    }

    .mobile-menu-search button:hover {
        background: var(--color-primary-dark);
    }

    .mobile-menu-nav {
        margin-bottom: 1.25rem;
    }

    .mobile-menu-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .mobile-menu-list > li {
        border-bottom: 1px solid var(--color-border);
    }

    .mobile-menu-list > li:last-child {
        border-bottom: none;
    }

    .mobile-menu-list a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.875rem 0;
        font-size: 1rem;
        font-weight: 600;
        color: var(--color-text);
        text-decoration: none;
        transition: color 0.2s ease, background-color 0.2s ease;
    }

    .mobile-menu-list a:hover {
        color: var(--color-primary);
    }

    .mobile-menu-list .current-menu-item > a,
    .mobile-menu-list .current-menu-ancestor > a {
        color: var(--color-primary);
    }

    .mobile-menu-list .has-submenu {
        position: relative;
    }

    .mobile-menu-list .has-submenu > a {
        padding-right: 2.5rem;
    }

    .mobile-submenu-toggle {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 2.5rem;
        height: 2.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: none;
        background: transparent;
        cursor: pointer;
        color: var(--color-text);
        transition: transform 0.25s ease, color 0.2s ease;
    }

    .mobile-submenu-toggle:hover {
        color: var(--color-primary);
    }

    .mobile-menu-list .has-submenu.is-open > .mobile-submenu-toggle {
        transform: translateY(-50%) rotate(180deg);
    }

    .mobile-submenu-toggle span {
        display: block;
        width: 0.5rem;
        height: 0.5rem;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        margin-bottom: 0.2rem;
    }

    .mobile-sub {
        max-height: 0;
        overflow: hidden;
        background: var(--color-bg-light);
        transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-menu-list .has-submenu.is-open > .mobile-sub {
        max-height: 80vh;
    }

    .mobile-sub .sub-menu {
        list-style: none;
        margin: 0;
        padding: 0 0 0.5rem 0;
    }

    .mobile-sub li {
        border-bottom: none;
    }

    .mobile-sub a {
        padding: 0.625rem 1rem 0.625rem 1.25rem;
        font-size: 0.9375rem;
        font-weight: 500;
    }

    .mobile-sub .mobile-sub-level-2 a {
        padding-left: 2rem;
        font-size: 0.875rem;
    }

    .mobile-menu-actions {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .mobile-menu-actions .btn {
        display: block;
        text-align: center;
        padding: 0.75rem 1rem;
        font-size: 0.9375rem;
        font-weight: 600;
        border-radius: 0.375rem;
        text-decoration: none;
        transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    }

    .mobile-menu-actions .btn-primary {
        background: var(--color-primary);
        color: var(--color-white);
        border: none;
    }

    .mobile-menu-actions .btn-primary:hover {
        background: var(--color-primary-dark);
    }

    .mobile-menu-actions .btn-outline {
        background: transparent;
        color: var(--color-primary);
        border: 2px solid var(--color-primary);
    }

    .mobile-menu-actions .btn-outline:hover {
        background: var(--color-primary);
        color: var(--color-white);
    }

    .menu-toggle.is-active {
        position: fixed;
        top: max(0.75rem, env(safe-area-inset-top));
        right: max(1rem, env(safe-area-inset-right));
        z-index: 1001;
    }
}

/* ========================================
   Gravity Forms Overrides (Footer)
   ======================================== */
.site-footer .gform_wrapper {
    margin: 0 !important;
}

.site-footer .gform_wrapper form {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0;
}

/* Hide labels */
.site-footer .gfield_label {
    display: none !important;
}

.site-footer .gform_body {
    width: 100%;
}

.site-footer .gform_fields {
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.site-footer .gfield {
    margin: 0 !important;
    padding: 0 !important;
}

/* Email field takes full row but leaves space for button */
.site-footer .gfield--type-email,
.site-footer .gfield--type-text {
    flex: 1;
    min-width: 0;
}

/* Input Styles */
.site-footer .ginput_container input[type="text"],
.site-footer .ginput_container input[type="email"] {
    width: 100% !important;
    height: 56px !important;
    background-color: #EFEFEF !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 0 25px !important;
    font-family: var(--font-family) !important;
    font-size: 15px !important;
    color: #323232 !important;
    line-height: normal !important;
}

.site-footer .ginput_container input::placeholder {
    color: #999999;
}

/* Submit Button Styles */
.site-footer .gform_footer {
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
}

.site-footer .gform_button {
    width: 60px !important;
    height: 56px !important;
    border-radius: 50px !important;
    background-color: var(--color-primary-light) !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 0 !important;
    color: transparent !important;
    background-image: url('../img/svg/email.svg') !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 26px auto !important;
    transition: transform 0.2s ease, background-color 0.2s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0;
}

.site-footer .gform_button:hover {
    transform: scale(1.05);
    background-color: #36C3C1 !important;
}

/* Consent / Checkbox field - full width below email row */
.site-footer .gfield--type-consent,
.site-footer .gfield--type-checkbox {
    flex: 0 0 100% !important;
    margin-top: 16px !important;
}

.site-footer .gfield--type-consent .ginput_container,
.site-footer .gfield--type-checkbox .ginput_container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

/* Custom checkbox styling for dark background */
.site-footer .gfield--type-consent input[type="checkbox"],
.site-footer .gfield--type-checkbox input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    border-radius: 4px !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    background-color: transparent !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    cursor: pointer;
    margin-top: 2px;
    flex-shrink: 0;
}

.site-footer .gfield--type-consent input[type="checkbox"]:checked,
.site-footer .gfield--type-checkbox input[type="checkbox"]:checked {
    background-color: var(--color-primary-light) !important;
    border-color: var(--color-primary-light) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
}

/* Consent label text */
.site-footer .gfield--type-consent .gfield_consent_label,
.site-footer .gfield--type-consent .ginput_container label,
.site-footer .gfield--type-checkbox .gfield_checkbox label,
.site-footer .gfield_consent_description {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.site-footer .gfield--type-consent .gfield_consent_label a,
.site-footer .gfield--type-consent .ginput_container label a,
.site-footer .gfield_consent_description a {
    color: var(--color-primary-light) !important;
    text-decoration: underline;
}

/* Required indicator */
.site-footer .gfield_required {
    color: var(--color-primary-light) !important;
    font-size: 12px;
}

/* Hide consent description if redundant */
.site-footer .gfield_consent_description {
    display: none;
}

/* Validation Errors */
.site-footer .gfield_description.validation_message,
.site-footer .gfield_validation_message {
    font-size: 12px;
    color: #ffcccb !important;
    padding-left: 20px;
    margin-top: 5px;
}

.site-footer .gform_validation_errors {
    display: none;
}

/* Ensure email row is inline: email input + submit button */
.site-footer .gform_wrapper form {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: flex-start;
}

.site-footer .gform_body {
    flex: 1;
    min-width: 0;
}

/* ========================================
   Block Editor Content - Blockquote Lists
   (Editor de bloques y clÃ¡sico)
   ======================================== */
blockquote ul,
.wp-block-quote ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

blockquote ul li,
.wp-block-quote ul li {
    position: relative;
    padding: 1.25rem 1.5rem;
    background-color: #F8F8F8;
    border-radius: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

blockquote ul li::before,
.wp-block-quote ul li::before {
    content: '';
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    background-image: url("data:image/svg+xml,%3Csvg width='42' height='42' viewBox='0 0 42 42' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_9_157)'%3E%3Cpath d='M21 0C9.42014 0 0 9.42014 0 21C0 32.5799 9.42014 42 21 42C32.5799 42 42 32.5799 42 21C42 9.42014 32.5799 0 21 0Z' fill='%233DD9E4'/%3E%3Cpath d='M31.644 16.5497L20.2689 27.9245C19.9276 28.2658 19.4796 28.4375 19.0317 28.4375C18.5837 28.4375 18.1357 28.2658 17.7945 27.9245L12.1071 22.2371C11.4226 21.553 11.4226 20.4469 12.1071 19.7627C12.7912 19.0783 13.897 19.0783 14.5815 19.7627L19.0317 24.2129L29.1696 14.0753C29.8537 13.3909 30.9595 13.3909 31.644 14.0753C32.3281 14.7595 32.3281 15.8653 31.644 16.5497Z' fill='%23FAFAFA'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_9_157'%3E%3Crect width='42' height='42' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

blockquote ul li > *,
.wp-block-quote ul li > * {
    flex: 1;
    margin: 0;
}

/* Caso inverso: blockquote dentro de ul li */

ul:has(blockquote) {
    padding-bottom: 2rem;
}
li:has(blockquote) {
   margin-bottom: 1rem; 
    list-style: none;
}
ul li blockquote {
    position: relative;
    padding: 1.25rem 1.5rem;
    background-color: #F8F8F8;
    border-radius: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin: 0;
    border: none;
}

ul li blockquote::before {
    content: '';
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    background-image: url("data:image/svg+xml,%3Csvg width='42' height='42' viewBox='0 0 42 42' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_9_157)'%3E%3Cpath d='M21 0C9.42014 0 0 9.42014 0 21C0 32.5799 9.42014 42 21 42C32.5799 42 42 32.5799 42 21C42 9.42014 32.5799 0 21 0Z' fill='%233DD9E4'/%3E%3Cpath d='M31.644 16.5497L20.2689 27.9245C19.9276 28.2658 19.4796 28.4375 19.0317 28.4375C18.5837 28.4375 18.1357 28.2658 17.7945 27.9245L12.1071 22.2371C11.4226 21.553 11.4226 20.4469 12.1071 19.7627C12.7912 19.0783 13.897 19.0783 14.5815 19.7627L19.0317 24.2129L29.1696 14.0753C29.8537 13.3909 30.9595 13.3909 31.644 14.0753C32.3281 14.7595 32.3281 15.8653 31.644 16.5497Z' fill='%23FAFAFA'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_9_157'%3E%3Crect width='42' height='42' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

ul li blockquote > * {
    flex: 1;
    margin: 0;
}

/* ========================================
   Scroll Animations (Fade In From Bottom)
   ======================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1),
                transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up.delay-1 {
    transition-delay: 0.1s;
}

.fade-in-up.delay-2 {
    transition-delay: 0.2s;
}

.fade-in-up.delay-3 {
    transition-delay: 0.3s;
}

.fade-in-up.delay-4 {
    transition-delay: 0.4s;
}

.fade-in-up.delay-5 {
    transition-delay: 0.5s;
}

.fade-in-up.delay-6 {
    transition-delay: 0.6s;
}

/* Disable animations in block editor */
.block-editor-page .fade-in-up,
.wp-admin .fade-in-up,
[data-block-editor] .fade-in-up,
.acf-block-preview .fade-in-up {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: none !important;
}

/* WhatsApp FAB (fixed bottom-left) */
.whatsapp-fab {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-fab:hover {
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.25);
}
.whatsapp-fab svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Scroll to Top button */
.scroll-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    background-color: var(--color-primary, #009DDF);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.3s ease, visibility 0.3s ease;
    opacity: 0;
    visibility: hidden;
}
.scroll-to-top.is-visible {
    opacity: 1;
    visibility: visible;
}
.scroll-to-top:hover {
    transform: scale(1.05);
    box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.25);
}
.scroll-to-top svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* ========================================
   Focus visible (buttons without default focus)
   ======================================== */
.topbar-search-btn:focus-visible,
.header-search-btn:focus-visible,
.menu-toggle:focus-visible,
.mobile-menu-close:focus-visible,
.whatsapp-fab:focus-visible,
.scroll-to-top:focus-visible {
    outline: 2px solid var(--color-primary, #009DDF);
    outline-offset: 2px;
}

/* ========================================
   Reduced motion preference
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    .fade-in-up,
    .fade-in-up.is-visible {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ========================================
   Author Box (single posts)
   ======================================== */
.author-box {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  margin: 2.5rem 0;
  background: var(--color-bg-light, #f7f9fc);
  border-radius: 0.75rem;
  border-left: 4px solid var(--color-primary, #009DDF);
}
.author-box__avatar img {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  object-fit: cover;
}
.author-box__label {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-text-light, #999);
  margin-bottom: 0.125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.author-box__name {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text, #323232);
  text-decoration: none;
  margin-bottom: 0.5rem;
}
a.author-box__name:hover {
  color: var(--color-primary, #009DDF);
}
.author-box__bio {
  font-size: 0.9375rem;
  color: var(--color-text-light, #666);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 575.98px) {
  .author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ========================================
   404 Error Page
   ======================================== */
.error-404 {
  padding: 6rem 1.5rem;
  text-align: center;
  max-width: 37.5rem;
  margin: 0 auto;
}

.error-404__code {
  font-size: clamp(4rem, 10vw, 6rem);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.error-404__heading {
  font-size: var(--font-size-xl);
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.error-404__description {
  color: var(--color-text-light);
  margin-bottom: 2rem;
}

.error-404__search {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  max-width: 25rem;
  margin-left: auto;
  margin-right: auto;
}

.error-404__search-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border, #ddd);
  border-radius: 50px;
  font-size: var(--font-size-base);
}

.error-404__search-input:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
  border-color: var(--color-primary);
}

.error-404__search-btn {
  padding: 0.75rem 1.5rem;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
}

.error-404__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
