:root {
    --bios-navy: #0a1c2e;
    --bios-blue: #2563eb;
    --bios-cyan: #06b6d4;
    --bios-green: #10b981;
    --bios-ink: #172033;
    --bios-line: #dbe4f0;
    --bios-accent-1: #1e3a8a;
    --bios-accent-2: #3b82f6;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 16px 40px rgba(0,0,0,0.16);
    --shadow-xl: 0 24px 60px rgba(0,0,0,0.20);
    --transition-smooth: all 0.3s cubic-bezier(0.4,0,0.2,1);
    --transition-fast: all 0.15s ease-out;
}

.bios-wrap {
    width: min(100% - 2rem, 96rem);
    margin-inline: auto;
}

.bios-main-header {
    position: sticky;
    top: 0;
    z-index: 9000;
    background: #0a1c2e;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: box-shadow 0.3s ease;
}

.bios-topbar {
    background: #040b14;
    color: rgba(255,255,255,0.74);
    font-size: 0.76rem;
}

.bios-topbar-inner {
    min-height: 30px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.5rem;
}

.bios-topbar a,
.bios-secondary-link,
.bios-services-tab,
.bios-profile-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 800;
}

.bios-topbar a:hover {
    color: #60a5fa;
}

.bios-header-body {
    min-height: 84px;
    display: grid;
    grid-template-columns: auto minmax(280px, 1fr) auto;
    align-items: center;
    gap: 1.25rem;
    padding: 0.5rem 0;
}

.bios-brand-group {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-width: 0;
}

.bios-brand img {
    height: clamp(46px, 3.4vw, 62px);
    width: auto;
    max-width: min(40vw, 320px);
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,0.28));
}

.bios-brand {
    position: relative;
    display: inline-flex;
    align-items: center;
    border: 0;
    background: transparent;
    color: white;
    cursor: pointer;
    padding: 0;
}

.bios-clinic-select,
.bios-global-search {
    position: relative;
}

.bios-clinic-button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.92);
    padding: 0 1rem;
    font-size: 0.86rem;
    font-weight: 900;
    white-space: nowrap;
    transition: var(--transition-fast);
    cursor: pointer;
}

.bios-clinic-button:hover {
    background: rgba(255,255,255,0.14);
    color: white;
    border-color: rgba(255,255,255,0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.bios-global-search {
    max-width: 42rem;
    width: 100%;
}

.bios-global-search > i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.58);
    z-index: 1;
}

.bios-global-search input {
    width: 100%;
    min-height: 44px;
    border: 1.5px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    color: white;
    outline: none;
    padding: 0 3.15rem 0 2.8rem;
    font-size: 0.92rem;
    font-weight: 700;
    transition: var(--transition-smooth);
}

.bios-global-search input::placeholder {
    color: rgba(255,255,255,0.5);
}

.bios-global-search input:focus {
    background: rgba(255,255,255,0.12);
    border-color: rgba(37,99,235,1);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

#global-search-link {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--bios-accent-1), var(--bios-accent-2));
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
    cursor: pointer;
}

#global-search-link:hover {
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 16px rgba(37,99,235,0.4);
}

.bios-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.8rem;
}

.bios-icon-button {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    transition: var(--transition-fast);
    cursor: pointer;
}

.bios-icon-button:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.bios-appointment-button,
.bios-menu-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border-radius: 12px;
    color: white;
    font-size: 0.9rem;
    font-weight: 900;
    padding: 0 1.5rem;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: 0 8px 24px rgba(37,99,235,0.35);
    transition: var(--transition-fast);
    border: none;
    cursor: pointer;
}

.bios-appointment-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(37,99,235,0.45);
}

.bios-appointment-button:active {
    transform: translateY(0);
}

.bios-menu-button {
    display: none;
    width: 44px;
    padding: 0;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.1);
}

.bios-secondary-nav {
    background: white;
    border-bottom: 1px solid #f0f0f0;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease;
}

.bios-secondary-inner {
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    overflow-x: auto;
}

.bios-secondary-link,
.bios-services-tab,
.bios-profile-tab {
    min-height: 52px;
    color: #6b7280;
    font-size: 0.88rem;
    white-space: nowrap;
    border-bottom: 2.5px solid transparent;
    transition: var(--transition-fast);
    cursor: pointer;
    position: relative;
}

.bios-secondary-link:hover,
.bios-secondary-link.active,
.bios-services-tab {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.bios-profile-tab {
    margin-left: auto;
    min-height: 42px;
    border: 1px solid #f0f0f0;
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
    padding: 0 1rem;
    background: #f8fbff;
    color: #0a1c2e;
    transition: var(--transition-fast);
    cursor: pointer;
}

.bios-profile-tab:hover {
    background: #f0f7ff;
}

.bios-floating-panel {
    position: absolute;
    top: calc(100% + 0.65rem);
    left: 0;
    width: min(92vw, 560px);
    max-height: min(72vh, 520px);
    overflow: auto;
    border: 1px solid #e8eef7;
    border-radius: 14px;
    background: white;
    color: #0f172a;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 9999;
}

.bios-floating-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.clinic-panel {
    width: min(92vw, 440px);
}

.logo-panel {
    width: min(92vw, 340px);
}

.search-panel {
    right: 0;
    left: auto;
}

.bios-panel-title {
    padding: 0.95rem 1rem 0.65rem;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.clinic-option,
.search-result,
.logo-theme-option {
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.85rem;
    padding: 0.8rem 1rem;
    text-align: left;
    color: #0f172a;
    border-top: 1px solid #f1f5f9;
    transition: var(--transition-fast);
    cursor: pointer;
}

.clinic-option:hover,
.search-result:hover,
.logo-theme-option:hover,
.logo-theme-option.active {
    background: #f8fbff;
}

.clinic-option-icon,
.search-result-icon,
.logo-theme-swatch {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    background: #eff6ff;
    transition: var(--transition-fast);
}

.logo-theme-swatch {
    background: linear-gradient(135deg, var(--swatch-a), var(--swatch-b));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.42);
}

.clinic-option strong,
.search-result strong,
.logo-theme-option strong {
    display: block;
    color: #0a1c2e;
    font-size: 0.95rem;
    font-weight: 1000;
}

.clinic-option small,
.clinic-option em,
.search-result small,
.logo-theme-option small {
    display: block;
    color: #64748b;
    font-size: 0.78rem;
    font-style: normal;
    margin-top: 0.1rem;
}

.logo-theme-option > i {
    color: #2563eb;
}

.clinic-option b,
.search-result b {
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    padding: 0.35rem 0.55rem;
    font-size: 0.66rem;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.clinic-option b.new {
    color: #047857;
    background: #d1fae5;
}

.bios-panel-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    margin: 0.75rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(10,28,46,0.9), rgba(16,47,74,0.8));
    color: white;
    font-weight: 900;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
}

.bios-panel-link:hover {
    background: linear-gradient(135deg, #0a1c2e, #102f4a);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(10,28,46,0.3);
}

.bios-mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.bios-mobile-drawer.active {
    opacity: 1;
    visibility: visible;
}

.bios-mobile-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 9, 18, 0.65);
    backdrop-filter: blur(6px);
    transition: background 0.25s ease;
}

.bios-mobile-panel {
    position: absolute;
    right: 0;
    top: 0;
    width: min(90vw, 390px);
    height: 100%;
    background: white;
    overflow: auto;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    box-shadow: -16px 0 64px rgba(0,0,0,0.25);
}

.bios-mobile-drawer.active .bios-mobile-panel {
    transform: translateX(0);
}

.bios-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem;
    color: white;
    background: linear-gradient(135deg, #0a1c2e, #112a48);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.bios-mobile-head p {
    margin: 0 0 0.15rem;
    color: #bfdbfe;
    font-size: 0.68rem;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: 0.22em;
}

.bios-mobile-head strong {
    font-family: Outfit, sans-serif;
    font-size: 1.8rem;
    line-height: 1;
}

.bios-mobile-close {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    transition: var(--transition-fast);
    cursor: pointer;
}

.bios-mobile-close:hover {
    background: rgba(255,255,255,0.15);
}

.bios-mobile-links {
    display: grid;
    gap: 0.7rem;
    padding: 1rem;
}

.bios-mobile-link {
    min-height: 54px;
    border: 1.5px solid #e5f2ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #0a1c2e;
    padding: 0 1rem;
    font-weight: 1000;
    background: #f8fbff;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.bios-mobile-link:hover {
    border-color: #2563eb;
    background: #f0f7ff;
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.bios-mobile-link span {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.bios-mobile-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 50px;
    margin: 0 1rem 1.25rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    font-weight: 1000;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 20px rgba(37,211,102,0.3);
    cursor: pointer;
    border: none;
}

.bios-mobile-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37,211,102,0.4);
}

.bios-main-footer {
    background: linear-gradient(180deg, #040b14 0%, #0a0e16 100%);
    color: #9ca3af;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 5rem 0 2.5rem;
}

.footer-grid-main {
    display: grid;
    grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
    margin-bottom: 3.5rem;
}

.footer-brand-block img {
    height: clamp(120px, 9vw, 170px);
    width: auto;
    max-width: 100%;
    opacity: 0.96;
    margin-bottom: 1.5rem;
}

/* ════════════════════════════════════════════════════════════
   BIOS PRELOADER v3 — cinematic tech intro
   ════════════════════════════════════════════════════════════ */

.bios-preloader {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #020810;
    overflow: hidden;
    pointer-events: auto;
    cursor: pointer;
}

.bios-preloader::before {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37,99,235,0.16) 0%, transparent 68%);
    animation: bPreloaderPulse 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes bPreloaderPulse {
    0%, 100% { transform: scale(0.8);  opacity: 0.45; }
    50%       { transform: scale(1.18); opacity: 1; }
}

@keyframes bPreloaderExit {
    0%   { opacity: 1; transform: scale(1);    filter: blur(0); }
    55%  { opacity: 1; }
    100% { opacity: 0; transform: scale(1.05); filter: blur(6px); }
}

.bios-preloader.exiting {
    animation: bPreloaderExit 0.58s cubic-bezier(0.4, 0, 0.8, 1) forwards;
    pointer-events: none;
}

.bios-preloader-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* — HUD corners — */
.bios-preloader-hud {
    position: absolute;
    inset: clamp(1.25rem, 3.5vw, 2.75rem);
    pointer-events: none;
}

.bios-hud-corner {
    position: absolute;
    width: 26px;
    height: 26px;
    opacity: 0;
    animation: bHudIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

.bios-hud-corner::before,
.bios-hud-corner::after {
    content: '';
    position: absolute;
    background: rgba(125,211,252,0.65);
}

.bios-hud-corner.tl { top: 0; left: 0; }
.bios-hud-corner.tl::before { top: 0; left: 0; width: 100%; height: 1.5px; }
.bios-hud-corner.tl::after  { top: 0; left: 0; width: 1.5px; height: 100%; }
.bios-hud-corner.tr { top: 0; right: 0; }
.bios-hud-corner.tr::before { top: 0; right: 0; width: 100%; height: 1.5px; }
.bios-hud-corner.tr::after  { top: 0; right: 0; width: 1.5px; height: 100%; }
.bios-hud-corner.bl { bottom: 0; left: 0; }
.bios-hud-corner.bl::before { bottom: 0; left: 0; width: 100%; height: 1.5px; }
.bios-hud-corner.bl::after  { bottom: 0; left: 0; width: 1.5px; height: 100%; }
.bios-hud-corner.br { bottom: 0; right: 0; }
.bios-hud-corner.br::before { bottom: 0; right: 0; width: 100%; height: 1.5px; }
.bios-hud-corner.br::after  { bottom: 0; right: 0; width: 1.5px; height: 100%; }

@keyframes bHudIn {
    from { opacity: 0; transform: scale(0.4); }
    to   { opacity: 1; transform: scale(1); }
}

/* — Stage — */
.bios-preloader-stage {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(0.9rem, 2.5vh, 1.6rem);
    text-align: center;
    pointer-events: none;
}

.bios-preloader-kicker {
    font-family: 'Inter', monospace;
    font-size: clamp(0.48rem, 1.1vw, 0.65rem);
    font-weight: 900;
    letter-spacing: 0.52em;
    color: rgba(125,211,252,0.65);
    text-transform: uppercase;
    opacity: 0;
    animation: bSlideUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.08s forwards;
}

.bios-preloader-logo-wrap {
    position: relative;
    width: min(78vw, 620px);
    opacity: 0;
    animation: bSlideUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.22s forwards;
}

.bios-preloader-logo-glow {
    position: absolute;
    inset: -50px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37,99,235,0.2) 0%, transparent 60%);
    animation: bPreloaderPulse 3s ease-in-out 0.5s infinite;
}

.bios-preloader-logo {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    max-height: 245px;
    object-fit: contain;
    filter:
        drop-shadow(0 0 22px rgba(37,99,235,0.55))
        drop-shadow(0 0 8px rgba(125,211,252,0.35));
}

.bios-preloader-scanline {
    position: absolute;
    left: -8%;
    right: -8%;
    top: 0;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, rgba(125,211,252,0.9), rgba(56,189,248,0.75), transparent);
    box-shadow: 0 0 12px 2px rgba(125,211,252,0.45);
    animation: bScanDown 2.2s ease-in-out 0.55s infinite;
    pointer-events: none;
}

@keyframes bScanDown {
    0%   { top: -2px; opacity: 0; }
    8%   { opacity: 1; }
    92%  { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* — Progress — */
.bios-preloader-progress {
    width: min(68vw, 340px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    opacity: 0;
    animation: bSlideUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.42s forwards;
}

.bios-preloader-track {
    position: relative;
    width: 100%;
    height: 1.5px;
    border-radius: 999px;
    background: rgba(255,255,255,0.07);
}

.bios-preloader-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, #1d4ed8, #0ea5e9, #7dd3fc);
    box-shadow: 0 0 10px 2px rgba(125,211,252,0.55), 0 0 20px rgba(37,99,235,0.35);
}

.bios-preloader-fill::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #7dd3fc;
    box-shadow: 0 0 10px 4px rgba(125,211,252,0.75);
}

.bios-preloader-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.bios-preloader-count {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(0.56rem, 1.1vw, 0.68rem);
    font-weight: 900;
    letter-spacing: 0.2em;
    color: rgba(125,211,252,0.9);
    flex-shrink: 0;
}

.bios-preloader-status {
    font-family: 'Inter', monospace;
    font-size: clamp(0.5rem, 1vw, 0.62rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.3);
    text-align: right;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

/* — Side decorators — */
.bios-preloader-deco {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    opacity: 0;
    animation: bDecoIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.32s forwards;
}

.bios-preloader-deco.left  { left:  clamp(1.25rem, 4.5vw, 4.5rem); }
.bios-preloader-deco.right { right: clamp(1.25rem, 4.5vw, 4.5rem); }

.bios-preloader-deco span {
    display: block;
    width: 1px;
    border-radius: 1px;
    background: linear-gradient(180deg, transparent, rgba(125,211,252,0.42), transparent);
}

.bios-preloader-deco span:nth-child(1) { height: 55px; }
.bios-preloader-deco span:nth-child(2) { height: 7px;  background: rgba(125,211,252,0.7); }
.bios-preloader-deco span:nth-child(3) { height: 28px; }

@keyframes bDecoIn {
    from { opacity: 0; transform: translateY(-50%) scaleY(0.1); }
    to   { opacity: 1; transform: translateY(-50%) scaleY(1); }
}

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

@media (prefers-reduced-motion: reduce) {
    .bios-preloader { display: none !important; }
}

.footer-brand-block p {
    line-height: 1.6;
    max-width: 32rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

.footer-socials-main {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-socials-main a,
.bios-main-footer .footer-socials-main a {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(6,182,212,0.1));
    border: 1.5px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.85);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    line-height: 1;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    margin: 0;
    padding: 0;
}

.footer-socials-main a:hover,
.bios-main-footer .footer-socials-main a:hover {
    transform: translateY(-4px) scale(1.08);
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: white;
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 12px 30px rgba(37,99,235,0.4);
}

.footer-socials-main a:active,
.bios-main-footer .footer-socials-main a:active {
    transform: translateY(-2px) scale(1.02);
}

.footer-socials-main i {
    display: block;
    line-height: 1;
}

.bios-main-footer h4 {
    color: white;
    font-size: 1rem;
    font-weight: 900;
    margin: 0 0 1.25rem;
    letter-spacing: 0.3px;
}

.bios-main-footer a {
    display: block;
    color: #9ca3af;
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 0 0.9rem;
    transition: var(--transition-fast);
    cursor: pointer;
    position: relative;
    padding-left: 0;
}

.bios-main-footer a:hover {
    color: #60a5fa;
    transform: translateX(2px);
}

.bios-main-footer .footer-socials-main a:hover {
    transform: translateY(-4px) scale(1.08);
}

.bios-women-ribbon {
    position: fixed;
    left: clamp(1rem, 3vw, 2rem);
    bottom: 1.35rem;
    z-index: 8999;
    display: inline-grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.85rem;
    align-items: center;
    min-height: 58px;
    max-width: min(92vw, 360px);
    padding: 0.75rem 1rem 0.75rem 0.8rem;
    border-radius: 999px;
    color: #831843;
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(253,242,248,0.98));
    border: 1px solid rgba(244,114,182,0.38);
    box-shadow: 0 18px 42px -22px rgba(157,23,77,0.56);
    opacity: 1;
    transform: translateY(0);
    transition: opacity 220ms ease, transform 220ms ease, box-shadow 220ms ease;
    will-change: opacity, transform;
}

.bios-women-ribbon:hover {
    color: #831843;
    transform: translateY(-3px);
    box-shadow: 0 22px 48px -22px rgba(157,23,77,0.66);
}

.bios-women-ribbon.is-live {
    border-color: rgba(219,39,119,0.55);
    box-shadow: 0 18px 42px -20px rgba(157,23,77,0.7), 0 0 0 3px rgba(244,114,182,0.18);
}

.bios-women-ribbon.is-live span {
    position: relative;
}

.bios-women-ribbon.is-live span::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 999px;
    border: 2px solid rgba(219,39,119,0.55);
    animation: bios-live-pulse 2.2s ease-out infinite;
}

@keyframes bios-live-pulse {
    0% { transform: scale(0.85); opacity: 0.9; }
    100% { transform: scale(1.35); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .bios-women-ribbon.is-live span::after { animation: none; }
}

.bios-whatsapp-float {
    position: fixed;
    right: clamp(1rem, 3vw, 2rem);
    bottom: 1.35rem;
    z-index: 9000;
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: white;
    text-decoration: none;
    background: linear-gradient(135deg, #25d366, #16a34a);
    border: 2px solid rgba(255,255,255,0.95);
    box-shadow: 0 18px 38px -18px rgba(22,163,74,0.9);
    opacity: 1;
    transform: translateY(0);
    transition: opacity 220ms ease, transform 220ms ease, box-shadow 220ms ease;
    will-change: opacity, transform;
}

.bios-whatsapp-float i {
    font-size: 2rem;
    line-height: 1;
}

.bios-whatsapp-float:hover {
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 22px 44px -18px rgba(22,163,74,1);
}

.bios-women-ribbon span {
    grid-row: span 2;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: linear-gradient(135deg, #db2777, #f472b6);
    box-shadow: 0 10px 22px -14px rgba(219,39,119,0.9);
}

.bios-women-ribbon strong,
.bios-women-ribbon em {
    min-width: 0;
    line-height: 1.1;
}

.bios-women-ribbon strong {
    color: #831843;
    font-size: 0.9rem;
    font-weight: 1000;
}

.bios-women-ribbon em {
    color: #9d174d;
    font-size: 0.76rem;
    font-style: normal;
    font-weight: 800;
}

@media (max-width: 640px) {
    .bios-women-ribbon {
        left: 0.8rem;
        right: 5.25rem;
        bottom: 0.95rem;
        max-width: none;
        min-height: 54px;
        column-gap: 0.65rem;
        padding: 0.65rem 0.75rem 0.65rem 0.65rem;
    }

    .bios-whatsapp-float {
        right: 0.85rem;
        bottom: 0.95rem;
        width: 56px;
        height: 56px;
    }

    .bios-women-ribbon span {
        width: 38px;
        height: 38px;
    }

    .bios-women-ribbon strong {
        font-size: 0.82rem;
    }

    .bios-women-ribbon em {
        font-size: 0.7rem;
    }
}

@media (max-width: 390px) {
    .bios-women-ribbon em {
        display: none;
    }
}

body.footer-in-view .bios-women-ribbon,
body.footer-in-view .bios-whatsapp-float {
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
}

body.footer-in-view .bios-women-ribbon {
    transform: translateY(18px) scale(0.98);
}

.footer-bottom-main {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

.footer-bottom-main div {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    padding: 0.6rem 0.9rem;
    font-size: 0.8rem;
}

.footer-bottom-main strong {
    color: white;
}

.bios-reveal {
    opacity: 0;
    transform: translateY(22px);
}

.bios-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 540ms cubic-bezier(0.22, 1, 0.36, 1), transform 540ms cubic-bezier(0.22, 1, 0.36, 1);
}

.bios-reveal-delay-1 { transition-delay: 80ms !important; }
.bios-reveal-delay-2 { transition-delay: 160ms !important; }
.bios-reveal-delay-3 { transition-delay: 240ms !important; }

.page-visual {
    position: relative;
    overflow: hidden;
    min-height: 320px;
    border: 1px solid var(--bios-line);
    border-radius: 8px;
    background: #0a1c2e;
    box-shadow: 0 18px 48px -34px rgba(15,23,42,0.45);
}

.page-visual img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    display: block;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 800ms ease;
}

.page-visual:hover img {
    transform: scale(1.06);
}

.visual-caption {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 8px;
    background: rgba(10,28,46,0.78);
    color: white;
    backdrop-filter: blur(14px);
}

.visual-caption p {
    margin: 0;
}

.visual-caption p:first-child {
    font-weight: 1000;
}

.visual-caption p:last-child {
    color: rgba(255,255,255,0.76);
    font-size: 0.88rem;
    margin-top: 0.25rem;
}

.branch-route-card {
    display: grid;
    gap: 0.9rem;
}

.branch-route-main {
    width: 100%;
    display: block;
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.branch-route-actions {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
    gap: 0.65rem;
}

.map-route-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border-radius: 8px;
    padding: 0.72rem 1rem;
    color: white;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 1000;
    background: linear-gradient(135deg, #0a1c2e, #2563eb);
    border: 1px solid rgba(37,99,235,0.42);
    box-shadow: 0 16px 34px -24px rgba(37,99,235,0.9);
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.map-route-button:hover {
    color: white;
    transform: translateY(-2px);
    filter: saturate(1.08);
    box-shadow: 0 20px 38px -24px rgba(37,99,235,1);
}

.bios-leaflet-popup .leaflet-popup-content-wrapper {
    border-radius: 14px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 24px 58px -26px rgba(15,23,42,0.48);
}

.bios-leaflet-popup .leaflet-popup-content {
    width: 240px !important;
    margin: 0;
}

.bios-map-popup {
    display: grid;
    gap: 0.55rem;
    padding: 1rem;
    color: #0a1c2e;
}

.bios-map-popup-kicker {
    width: max-content;
    margin: 0;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    color: #1d4ed8;
    background: #dbeafe;
    font-size: 0.62rem;
    font-weight: 1000;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.bios-map-popup strong {
    display: block;
    font-family: Outfit, sans-serif;
    font-size: 1rem;
    line-height: 1.1;
}

.bios-map-popup span {
    display: block;
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.35;
}

.bios-map-popup a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.2rem;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 1000;
    background: linear-gradient(135deg, #0a1c2e, #2563eb);
}

.image-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.image-strip img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid var(--bios-line);
    border-radius: 8px;
    box-shadow: 0 18px 48px -34px rgba(15,23,42,0.45);
}

.compact-site main > section {
    padding-block: clamp(2.5rem, 4.2vw, 4.25rem) !important;
}

.compact-site #inicio {
    min-height: clamp(520px, 68vh, 600px) !important;
}

.compact-site .hero-signal {
    font-size: clamp(2.35rem, 6vw, 4.65rem) !important;
    letter-spacing: 0 !important;
}

.compact-site h1,
.compact-site h2,
.compact-site h3 {
    letter-spacing: 0 !important;
}

.compact-site .rounded-\[2\.5rem\],
.compact-site .rounded-\[2rem\],
.compact-site .rounded-\[1\.75rem\] {
    border-radius: 1.15rem !important;
}

.compact-site .modal-content {
    max-width: min(92vw, 42rem);
}

.page-enter {
    --page-pad-y: clamp(2rem, 4vw, 3.5rem);
}

.page-enter.max-w-7xl {
    padding-top: var(--page-pad-y) !important;
    padding-bottom: var(--page-pad-y) !important;
}

.page-enter .brand-type.text-3xl,
.page-enter .brand-type.text-4xl,
.page-enter .brand-type.text-5xl,
.page-enter .brand-type.lg\:text-5xl,
.page-enter .brand-type.lg\:text-6xl {
    font-size: clamp(1.85rem, 3.6vw, 3rem) !important;
}

.page-enter .brand-type.text-4xl,
.page-enter .brand-type.text-5xl,
.page-enter .brand-type.lg\:text-5xl,
.page-enter .brand-type.lg\:text-6xl {
    font-size: clamp(1.95rem, 3.8vw, 3.1rem) !important;
}

.page-visual {
    min-height: clamp(220px, 28vw, 320px);
}

.services-summary-card {
    min-height: auto;
}

.services-section {
    width: min(100% - 2rem, 96rem);
    margin-inline: auto;
    padding-block: clamp(2rem, 3.2vw, 3.25rem);
}

.services-hero-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.58fr) minmax(0, 1.42fr);
    gap: clamp(1.25rem, 2vw, 2rem);
    align-items: start;
}

.services-summary-card {
    position: sticky;
    top: 10.25rem;
    min-height: 420px;
    overflow: hidden;
}

.services-summary-card::after {
    content: "";
    position: absolute;
    inset: auto -30% -45% 10%;
    height: 320px;
    background: radial-gradient(circle, rgba(6,182,212,0.34), transparent 64%);
    pointer-events: none;
}

.services-list-panel {
    min-width: 0;
    overflow: hidden;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1rem;
    align-items: stretch;
}

.service-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,251,255,0.94)),
        radial-gradient(circle at 90% 0%, rgba(37,99,235,0.12), transparent 34%);
    transition: transform 190ms ease, border-color 190ms ease, box-shadow 190ms ease;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(37,99,235,0.34);
    box-shadow: 0 26px 58px -34px rgba(37,99,235,0.55);
}

.service-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.service-icon {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eff6ff, #e0f2fe);
    color: var(--bios-blue);
}

.service-tag {
    max-width: 58%;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 0.64rem;
    line-height: 1.1;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 1000;
    padding: 0.42rem 0.58rem;
}

.service-category {
    color: #94a3b8;
    font-size: 0.72rem;
    line-height: 1.2;
    font-weight: 1000;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.service-title {
    color: #0a1c2e;
    font-size: clamp(1.25rem, 1.25vw, 1.65rem);
    line-height: 1.05;
    font-weight: 1000;
    overflow-wrap: anywhere;
    margin: 0.45rem 0 1rem;
}

.service-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}

.service-meta div {
    min-width: 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    padding: 0.78rem;
}

.service-meta p:first-child {
    color: #94a3b8;
    font-size: 0.66rem;
    line-height: 1.1;
    font-weight: 1000;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.service-meta p:last-child {
    color: #172033;
    font-size: 0.82rem;
    line-height: 1.25;
    font-weight: 900;
    margin-top: 0.18rem;
    overflow-wrap: anywhere;
}

.service-detail {
    margin: 0 0 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: rgba(255,255,255,0.72);
    padding: 0.75rem;
}

.service-detail summary {
    cursor: pointer;
    color: #1d4ed8;
    font-size: 0.82rem;
    font-weight: 1000;
    list-style: none;
}

.service-detail summary::-webkit-details-marker {
    display: none;
}

.service-detail summary::after {
    content: "+";
    float: right;
    color: #64748b;
}

.service-detail[open] summary::after {
    content: "-";
}

.service-detail p {
    margin: 0.7rem 0 0;
    color: #475569;
    font-size: 0.88rem;
    line-height: 1.45;
}

.service-includes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.75rem;
}

.service-includes span {
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: #eff6ff;
    color: #1e40af;
    padding: 0.35rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 900;
}

.service-payments {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin-top: 0.8rem;
    border-radius: 10px;
    background: #fdf2f8;
    color: #9d174d;
    padding: 0.7rem;
    font-size: 0.78rem;
    line-height: 1.35;
    font-weight: 900;
}

.service-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    margin-top: auto;
}

.service-price {
    color: var(--bios-blue);
    font-size: clamp(1.55rem, 1.9vw, 2rem);
    line-height: 1;
    white-space: nowrap;
}

.quote-button {
    flex: 0 0 auto;
    width: 46px;
    min-height: 46px;
    border-radius: 14px;
    padding: 0;
    background: linear-gradient(135deg, #0a1c2e, #123a5a);
}

.services-campaign-callout {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    border: 1px solid rgba(244,114,182,0.35);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(244,114,182,0.16), rgba(244,114,182,0.05));
    padding: 0.85rem 1rem;
    color: white;
    transition: transform 180ms ease, border-color 180ms ease;
}

.services-campaign-callout:hover {
    transform: translateY(-2px);
    border-color: rgba(244,114,182,0.6);
}

.services-campaign-callout-icon {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: rgba(244,114,182,0.22);
    color: #fbcfe8;
}

.services-campaign-callout strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 1000;
    color: white;
}

.services-campaign-callout small {
    display: block;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.7);
    margin-top: 0.1rem;
}

.services-campaign-callout > i {
    margin-left: auto;
    flex: 0 0 auto;
    color: rgba(255,255,255,0.6);
}

.chip-count {
    display: inline-block;
    margin-left: 0.35rem;
    font-size: 0.66rem;
    opacity: 0.7;
}

.chip-quick {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.chip-women.active,
.chip-women:hover {
    background: #db2777;
    border-color: #db2777;
}

.service-card-women {
    border-color: rgba(219,39,119,0.35) !important;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(253,244,249,0.94)),
        radial-gradient(circle at 90% 0%, rgba(219,39,119,0.14), transparent 34%) !important;
}

.service-tag-women {
    border-color: #fbcfe8 !important;
    background: #fdf2f8 !important;
    color: #db2777 !important;
}

.service-tag-top {
    border-color: #bbf7d0 !important;
    background: #f0fdf4 !important;
    color: #15803d !important;
}

@media (max-width: 767px) {
    .image-strip {
        grid-template-columns: 1fr;
    }

    .page-visual {
        min-height: 250px;
    }

    .services-section {
        width: min(100% - 1rem, 96rem);
        padding-block: 1.25rem 2.5rem;
    }

    .services-hero-grid {
        grid-template-columns: 1fr;
    }

    .services-summary-card {
        position: relative;
        top: auto;
        min-height: auto;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        border-radius: 14px;
    }

    .service-tag {
        max-width: 62%;
    }

    .service-meta {
        grid-template-columns: 1fr;
    }

    .service-card-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .quote-button {
        width: 100%;
    }

    .services-campaign-callout {
        flex-wrap: wrap;
    }

    .services-campaign-callout > i {
        display: none;
    }
}

* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    background: #f6f8fb;
    color: var(--bios-ink);
    font-family: Inter, sans-serif;
}

body.bios-scroll-lock {
    overflow: hidden;
    touch-action: none;
    overscroll-behavior: contain;
}

.brand-type {
    font-family: Outfit, sans-serif;
    letter-spacing: 0;
}

.page-shell {
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.94), rgba(246,248,251,0.96)),
        radial-gradient(circle at 82% 12%, rgba(6,182,212,0.16), transparent 34%),
        radial-gradient(circle at 8% 24%, rgba(16,185,129,0.12), transparent 30%);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 28, 46, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.nav-link {
    color: rgba(255,255,255,0.78);
    font-size: 0.875rem;
    font-weight: 800;
    transition: color 180ms ease, background 180ms ease;
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

.nav-pill {
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.08);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--bios-line);
    border-radius: 999px;
    background: white;
    color: var(--bios-blue);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    padding: 0.55rem 0.8rem;
    text-transform: uppercase;
}

.panel {
    background: rgba(255,255,255,0.92);
    border: 1px solid var(--bios-line);
    border-radius: 8px;
    box-shadow: 0 18px 48px -34px rgba(15, 23, 42, 0.45);
}

.dark-panel {
    color: white;
    background:
        linear-gradient(135deg, rgba(10,28,46,0.98), rgba(15,47,74,0.98)),
        linear-gradient(90deg, rgba(6,182,212,0.18), transparent);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 8px;
    box-shadow: 0 22px 60px -34px rgba(10, 28, 46, 0.75);
}

/* Panel corto junto a un formulario largo: evita el vacío muerto al
   fondo rellenando con un ícono fantasma en vez de estirar contenido. */
.ghost-icon-host {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ghost-icon-mark {
    position: absolute;
    right: -1.4rem;
    bottom: -2rem;
    width: 9.5rem;
    height: 9.5rem;
    color: var(--bios-blue);
    opacity: 0.07;
    pointer-events: none;
}

.dark-panel .ghost-icon-mark,
.ghost-icon-mark.on-dark {
    color: white;
    opacity: 0.09;
}

.metric {
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
}

.chip {
    border: 1px solid var(--bios-line);
    border-radius: 999px;
    background: white;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 900;
    padding: 0.65rem 0.85rem;
    transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.chip.active,
.chip:hover {
    border-color: var(--bios-blue);
    background: var(--bios-blue);
    color: white;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 8px;
    background: var(--bios-navy);
    color: white;
    font-weight: 900;
    min-height: 46px;
    padding: 0.8rem 1rem;
    transition: transform 180ms ease, background 180ms ease;
}

.primary-button:hover {
    background: #102f4a;
    transform: translateY(-1px);
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid var(--bios-line);
    border-radius: 8px;
    background: white;
    color: var(--bios-navy);
    font-weight: 900;
    min-height: 46px;
    padding: 0.8rem 1rem;
}

.field {
    width: 100%;
    border: 1px solid var(--bios-line);
    border-radius: 8px;
    background: white;
    color: var(--bios-ink);
    outline: none;
    min-height: 46px;
    padding: 0.75rem 0.9rem;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field:focus {
    border-color: var(--bios-blue);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.page-enter {
    animation: pageEnter 520ms ease both;
}

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

.drawer {
    opacity: 0;
    visibility: hidden;
    transition: opacity 180ms ease, visibility 180ms ease;
}

.drawer.open {
    opacity: 1;
    visibility: visible;
}

.drawer-panel {
    transform: translateX(100%);
    transition: transform 220ms ease;
}

.drawer.open .drawer-panel {
    transform: translateX(0);
}

@media (max-width: 767px) {
    .bios-topbar,
    .bios-secondary-nav,
    .bios-clinic-select,
    .bios-global-search,
    .bios-appointment-button,
    .bios-icon-button {
        display: none;
    }

    .bios-header-body {
        min-height: 64px;
        display: flex;
        justify-content: space-between;
        gap: 1rem;
    }

    .bios-brand img {
        height: 42px;
        max-width: min(58vw, 220px);
    }

    .bios-menu-button {
        display: inline-flex;
    }

    .bios-header-actions {
        margin-left: auto;
    }

    .footer-grid-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom-main {
        align-items: flex-start;
        flex-direction: column;
    }

    .mobile-tight {
        font-size: clamp(2rem, 11vw, 3rem);
        line-height: 1;
    }
}

@media (min-width: 768px) and (max-width: 1180px) {
    .bios-header-body {
        grid-template-columns: auto 1fr auto;
        gap: 1rem;
    }

    .bios-clinic-select,
    .bios-appointment-button span,
    .bios-secondary-link i {
        display: none;
    }

    .bios-secondary-inner {
        gap: 0.9rem;
    }

    .bios-secondary-link,
    .bios-services-tab,
    .bios-profile-tab {
        font-size: 0.78rem;
    }

    .footer-grid-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .services-hero-grid {
        grid-template-columns: 1fr;
    }

    .services-summary-card {
        position: relative;
        top: auto;
        min-height: auto;
    }
}

/* ════════════════════════════════════════════════════════════
   CAMPAÑA DE LA MUJER — banner de estado + calendario por unidad
   ════════════════════════════════════════════════════════════ */
.campaign-status-banner {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1.4;
}

.campaign-status-banner i {
    flex: 0 0 auto;
    font-size: 1.1rem;
}

.campaign-status-banner.is-today {
    background: rgba(244,114,182,0.18);
    color: #fbcfe8;
    border: 1px solid rgba(244,114,182,0.4);
}

.campaign-status-banner.is-upcoming {
    background: rgba(255,255,255,0.08);
    color: #e0f2fe;
    border: 1px solid rgba(255,255,255,0.16);
}

.campaign-status-banner.is-closed {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.12);
}

.campaign-calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
    gap: 0.9rem;
}

.campaign-unit-card {
    min-width: 0;
    border: 1px solid var(--bios-line);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff, #fafcff);
    padding: 1rem;
}

.campaign-unit-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    color: #db2777;
}

.campaign-unit-head strong {
    color: #0a1c2e;
    font-size: 0.98rem;
    font-weight: 1000;
}

.campaign-unit-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.campaign-date-cell {
    min-width: 0;
    text-align: center;
    border-radius: 10px;
    padding: 0.6rem 0.4rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.campaign-date-month {
    font-size: 0.62rem;
    font-weight: 1000;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
}

.campaign-date-day {
    font-size: 1.7rem;
    font-weight: 1000;
    line-height: 1.1;
    color: #0a1c2e;
    font-family: 'Outfit', sans-serif;
}

.campaign-date-state {
    font-size: 0.62rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
}

.campaign-date-cell.state-today {
    background: #db2777;
    border-color: #db2777;
}

.campaign-date-cell.state-today .campaign-date-day,
.campaign-date-cell.state-today .campaign-date-month,
.campaign-date-cell.state-today .campaign-date-state {
    color: white;
}

.campaign-date-cell.state-next {
    background: #fdf2f8;
    border-color: #f9a8d4;
}

.campaign-date-cell.state-next .campaign-date-day {
    color: #db2777;
}

.campaign-date-cell.state-done {
    opacity: 0.55;
}

.campaign-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1.1rem;
}

.campaign-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.76rem;
    font-weight: 800;
    color: #64748b;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
}

.legend-today { background: #db2777; }
.legend-next { background: #f9a8d4; border: 1px solid #db2777; }
.legend-done { background: #cbd5e1; }

@media (max-width: 767px) {
    .campaign-calendar-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
    }

    .campaign-date-day {
        font-size: 1.4rem;
    }
}

/* ════════════════════════════════════════════════════════════
   ENLACES — sin subrayado en todo el sitio.
   El énfasis se da por color/peso, nunca por subrayado (se ve más
   limpio y premium). Se usa !important para ganarle a utilidades
   tipo `hover:underline` del CDN de Tailwind.
   ════════════════════════════════════════════════════════════ */
a,
a:hover,
a:focus,
a:active {
    text-decoration: none !important;
}

/* Énfasis sutil al pasar el mouse en enlaces de texto (sin reflow):
   simula un trazo ligeramente más grueso en vez de subrayar. */
main a:not([class*="btn"]):not([class*="button"]):not(.bios-brand):hover,
footer a:hover,
.bios-secondary-link:hover,
.bios-mobile-link:hover {
    text-shadow: 0 0 0.45px currentColor;
}
