/* ==========================================================================
   Laboratorio Clínico Dra. Yuli Osorio
   Hoja de estilos principal — Fase 1
   ========================================================================== */

@font-face {
    font-family: 'Manrope';
    src: url('../fonts/manrope-latin.woff2') format('woff2');
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
}

:root {
    --lab-ink: #0b2b2b;
    --lab-ink-soft: #47605f;
    --lab-muted: #5b6d6b;
    --lab-teal: #0f766e;
    --lab-teal-dark: #0a5b55;
    --lab-teal-deep: #0b3b3c;
    --lab-mint: #e3f4ee;
    --lab-mint-strong: #c8ece1;
    --lab-sand: #f7f3ec;
    --lab-cream: #fbfaf6;
    --lab-coral: #e76f51;
    --lab-white: #ffffff;
    --lab-line: rgba(11, 43, 43, 0.1);
    --lab-line-strong: rgba(11, 43, 43, 0.16);
    --lab-shadow-sm: 0 8px 24px rgba(8, 52, 49, 0.06);
    --lab-shadow: 0 22px 60px rgba(8, 52, 49, 0.11);
    --lab-radius-sm: 14px;
    --lab-radius: 22px;
    --lab-radius-lg: 32px;
    --lab-font: 'Manrope', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    margin: 0;
    font-family: var(--lab-font);
    color: var(--lab-ink);
    background: var(--lab-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.public-page {
    background:
        radial-gradient(circle at 8% 12%, rgba(200, 236, 225, 0.35), transparent 32rem),
        var(--lab-white);
}

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

a {
    color: var(--lab-teal-dark);
    text-underline-offset: 3px;
}

a:hover {
    color: var(--lab-teal);
}

:focus-visible {
    outline: 3px solid rgba(15, 118, 110, 0.45);
    outline-offset: 3px;
}

::selection {
    background: var(--lab-mint-strong);
    color: var(--lab-ink);
}

/* Iconos SVG locales (sprite en app/Views/partials/icons.php) */
.icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    flex: 0 0 auto;
    fill: currentColor;
    vertical-align: -0.125em;
}

.hero-media picture,
.about-media picture,
.about-mini picture {
    display: block;
    width: 100%;
    height: 100%;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 2000;
    transform: translateY(-160%);
    background: var(--lab-ink);
    color: var(--lab-white);
    padding: 0.75rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
    color: var(--lab-white);
}

/* --------------------------------------------------------------------------
   Barra superior
   -------------------------------------------------------------------------- */
.topbar {
    background: var(--lab-teal-deep);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.topbar-inner {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.topbar-inner--links-only {
    justify-content: flex-end;
}

.topbar-links {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.topbar-item:hover {
    color: #fff;
}

.topbar-item .icon {
    color: #86e0c9;
    font-size: 0.85rem;
}

.topbar-divider {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.22);
}

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 1030;
    padding: 0.85rem 0;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(16px);
    transition: box-shadow 0.25s ease, border-color 0.25s ease, padding 0.25s ease;
}

.site-nav.is-scrolled {
    padding: 0.6rem 0;
    border-bottom-color: var(--lab-line);
    box-shadow: 0 10px 35px rgba(8, 52, 49, 0.07);
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0;
    margin-right: 1rem;
    color: var(--lab-ink);
    text-decoration: none;
}

.navbar-brand:hover {
    color: var(--lab-ink);
}

.brand-mark {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    color: var(--lab-teal);
}

.brand-mark svg {
    width: 100%;
    height: 100%;
    display: block;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-name {
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-subtitle {
    margin-top: 0.25rem;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--lab-teal);
}

.navbar-nav {
    gap: 0.2rem;
}

.navbar .nav-link {
    position: relative;
    padding: 0.55rem 0.8rem !important;
    color: var(--lab-ink-soft);
    font-size: 0.86rem;
    font-weight: 700;
    border-radius: 999px;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    left: 0.8rem;
    right: 0.8rem;
    bottom: 0.28rem;
    height: 2px;
    background: var(--lab-teal);
    border-radius: 999px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus-visible {
    color: var(--lab-teal-dark);
}

.navbar .nav-link:hover::after,
.navbar .nav-link:focus-visible::after {
    transform: scaleX(1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.btn-nav-outline,
.btn-nav-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-nav-outline {
    color: var(--lab-teal-dark);
    border: 1px solid var(--lab-line-strong);
    background: var(--lab-white);
}

.btn-nav-outline:hover {
    background: var(--lab-mint);
    border-color: var(--lab-mint-strong);
    color: var(--lab-teal-dark);
}

.btn-nav-primary {
    color: var(--lab-white);
    background: var(--lab-teal);
    border: 1px solid var(--lab-teal);
}

.btn-nav-primary:hover {
    color: var(--lab-white);
    background: var(--lab-teal-dark);
    transform: translateY(-1px);
}

.navbar-toggler {
    border: 0;
    padding: 0.45rem;
    border-radius: 10px;
    box-shadow: none !important;
}

.toggler-lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 24px;
}

.toggler-lines span {
    height: 2px;
    width: 100%;
    border-radius: 999px;
    background: var(--lab-ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.navbar-toggler[aria-expanded="true"] .toggler-lines span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .toggler-lines span:nth-child(2) {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .toggler-lines span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Botones
   -------------------------------------------------------------------------- */
.btn {
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: -0.01em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn-lg {
    padding: 0.9rem 1.35rem;
    font-size: 0.92rem;
}

.btn-primary {
    --bs-btn-bg: var(--lab-teal);
    --bs-btn-border-color: var(--lab-teal);
    --bs-btn-hover-bg: var(--lab-teal-dark);
    --bs-btn-hover-border-color: var(--lab-teal-dark);
    --bs-btn-active-bg: var(--lab-teal-dark);
    --bs-btn-active-border-color: var(--lab-teal-dark);
    --bs-btn-disabled-bg: var(--lab-teal);
    --bs-btn-disabled-border-color: var(--lab-teal);
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.18);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(15, 118, 110, 0.24);
}

.btn-outline-secondary {
    --bs-btn-color: var(--lab-ink);
    --bs-btn-border-color: var(--lab-line-strong);
    --bs-btn-hover-bg: var(--lab-ink);
    --bs-btn-hover-border-color: var(--lab-ink);
    --bs-btn-hover-color: var(--lab-white);
    --bs-btn-active-bg: var(--lab-ink);
    --bs-btn-active-border-color: var(--lab-ink);
    background: transparent;
}

.btn-outline-secondary:hover {
    transform: translateY(-2px);
}

.btn-light {
    background: var(--lab-white);
    color: var(--lab-teal-deep);
    border: 1px solid var(--lab-white);
}

.btn-light:hover {
    background: var(--lab-mint);
    color: var(--lab-teal-deep);
    border-color: var(--lab-mint);
    transform: translateY(-2px);
}

.btn-outline-light {
    color: var(--lab-white);
    border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline-light:hover {
    color: var(--lab-teal-deep);
    background: var(--lab-white);
    border-color: var(--lab-white);
    transform: translateY(-2px);
}

.btn-link-lab {
    color: var(--lab-teal-dark);
    font-weight: 800;
    text-decoration: none;
    padding: 0.9rem 0.5rem;
}

.btn-link-lab:hover {
    color: var(--lab-teal);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    padding: 5.4rem 0 4.5rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
}

.hero-orb--one {
    width: 32rem;
    height: 32rem;
    top: -18rem;
    right: -8rem;
    background: radial-gradient(circle, rgba(200, 236, 225, 0.9), rgba(200, 236, 225, 0) 68%);
}

.hero-orb--two {
    width: 26rem;
    height: 26rem;
    bottom: -17rem;
    left: -10rem;
    background: radial-gradient(circle, rgba(247, 243, 236, 0.95), rgba(247, 243, 236, 0) 68%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(11, 43, 43, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11, 43, 43, 0.035) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, transparent, #000 30%, transparent 92%);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    background: var(--lab-mint);
    color: var(--lab-teal-dark);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.eyebrow--light {
    background: rgba(255, 255, 255, 0.12);
    color: #c9f4e8;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--lab-teal);
    box-shadow: 0 0 0 0 rgba(15, 118, 110, 0.45);
    animation: pulse 2.2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(15, 118, 110, 0.45); }
    70% { box-shadow: 0 0 0 9px rgba(15, 118, 110, 0); }
    100% { box-shadow: 0 0 0 0 rgba(15, 118, 110, 0); }
}

.hero-title {
    margin: 1.15rem 0 1.2rem;
    max-width: 660px;
    font-size: clamp(2.65rem, 5.2vw, 4.65rem);
    line-height: 1.01;
    letter-spacing: -0.055em;
    font-weight: 800;
}

.hero-title-accent {
    display: block;
    color: var(--lab-teal);
    background: linear-gradient(180deg, transparent 63%, rgba(200, 236, 225, 0.75) 63%);
    width: fit-content;
    padding-right: 0.08em;
}

.hero-lead {
    max-width: 560px;
    margin-bottom: 1.8rem;
    color: var(--lab-ink-soft);
    font-size: 1.04rem;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem;
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem;
    margin-top: 2.3rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--lab-line);
}

.hero-proof-item {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 108px;
}

.hero-proof-item strong {
    font-size: 1.55rem;
    letter-spacing: -0.04em;
    line-height: 1;
}

.hero-proof-item span {
    color: var(--lab-muted);
    font-size: 0.73rem;
    font-weight: 600;
}

.hero-media {
    position: relative;
    min-height: 560px;
    border-radius: var(--lab-radius-lg);
    overflow: hidden;
    box-shadow: var(--lab-shadow);
    background: var(--lab-teal-deep);
    isolation: isolate;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.03);
    animation: heroImage 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes heroImage {
    from { transform: scale(1.08); opacity: 0.7; }
    to { transform: scale(1.03); opacity: 1; }
}

.hero-media-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(11, 59, 60, 0.02) 20%, rgba(11, 59, 60, 0.72) 100%),
        linear-gradient(90deg, rgba(11, 59, 60, 0.22), transparent 55%);
}

.floating-card {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 38px rgba(6, 42, 40, 0.18);
    backdrop-filter: blur(12px);
    color: var(--lab-ink);
    max-width: 240px;
    animation: floatCard 6s ease-in-out infinite;
}

.floating-card--quality {
    top: 1.2rem;
    left: 1.2rem;
}

.floating-card--home {
    right: 1.2rem;
    bottom: 5.4rem;
    animation-delay: -2.2s;
}

.floating-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 10px;
    background: var(--lab-mint);
    color: var(--lab-teal-dark);
    font-size: 1rem;
}

.floating-card strong,
.floating-card small {
    display: block;
}

.floating-card strong {
    font-size: 0.76rem;
    line-height: 1.15;
}

.floating-card small {
    margin-top: 0.12rem;
    color: var(--lab-muted);
    font-size: 0.65rem;
    font-weight: 600;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

.hero-count-card {
    position: absolute;
    left: 1.2rem;
    bottom: 1.2rem;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    max-width: 300px;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    background: rgba(9, 52, 50, 0.78);
    color: var(--lab-white);
    backdrop-filter: blur(12px);
}

.hero-count-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.12);
    color: #b8f2e4;
    font-size: 1.05rem;
}

.hero-count-card strong,
.hero-count-card small {
    display: block;
}

.hero-count-card strong {
    font-size: 0.82rem;
}

.hero-count-card small {
    margin-top: 0.12rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.66rem;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Pilares
   -------------------------------------------------------------------------- */
.trust-strip {
    position: relative;
    z-index: 2;
    margin-top: -2.4rem;
    padding-bottom: 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 1.25rem 1.4rem;
    border: 1px solid var(--lab-line);
    border-radius: var(--lab-radius);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--lab-shadow-sm);
    backdrop-filter: blur(10px);
}

.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.55rem 1.25rem;
    border-right: 1px solid var(--lab-line);
}

.trust-item:first-child {
    padding-left: 0;
}

.trust-item:last-child {
    border-right: 0;
    padding-right: 0;
}

.trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 12px;
    background: var(--lab-mint);
    color: var(--lab-teal-dark);
    font-size: 1.02rem;
}

.trust-item h2 {
    margin: 0 0 0.25rem;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: -0.015em;
}

.trust-item p {
    margin: 0;
    color: var(--lab-muted);
    font-size: 0.72rem;
    line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Secciones
   -------------------------------------------------------------------------- */
.section {
    padding: 5.8rem 0;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 2.4rem;
}

.section-heading--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-heading h2,
.section-title {
    margin: 1rem 0 0.85rem;
    font-size: clamp(2rem, 3.6vw, 3.15rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
    font-weight: 800;
}

.section-heading p,
.section-copy {
    margin: 0;
    color: var(--lab-ink-soft);
    font-size: 0.98rem;
    line-height: 1.75;
}

.section-copy {
    max-width: 620px;
}

/* --------------------------------------------------------------------------
   Exámenes
   -------------------------------------------------------------------------- */
.exams-section {
    background:
        radial-gradient(circle at 100% 0%, rgba(200, 236, 225, 0.42), transparent 34rem),
        #f6faf8;
    border-top: 1px solid rgba(11, 43, 43, 0.05);
    border-bottom: 1px solid rgba(11, 43, 43, 0.05);
}

.exams-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.2rem;
    margin-bottom: 0.6rem;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    max-width: 820px;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    padding: 0.55rem 0.72rem;
    border: 1px solid var(--lab-line);
    border-radius: 999px;
    background: var(--lab-white);
    color: var(--lab-ink-soft);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.filter-pill:hover {
    color: var(--lab-teal-dark);
    border-color: var(--lab-mint-strong);
    transform: translateY(-1px);
}

.filter-pill.is-active {
    background: var(--lab-teal);
    border-color: var(--lab-teal);
    color: var(--lab-white);
    box-shadow: 0 8px 18px rgba(15, 118, 110, 0.18);
}

.filter-pill .icon {
    font-size: 0.82rem;
}

.pill-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.3rem;
    height: 1.3rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: rgba(11, 43, 43, 0.07);
    color: inherit;
    font-size: 0.66rem;
    font-weight: 800;
}

.filter-pill.is-active .pill-count {
    background: rgba(0, 0, 0, 0.2);
}

.exams-search {
    position: relative;
    flex: 0 1 286px;
    min-width: 220px;
}

.exams-search > i {
    position: absolute;
    left: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--lab-muted);
    font-size: 0.9rem;
    pointer-events: none;
}

.exams-search .form-control {
    height: 44px;
    padding-left: 2.45rem;
    padding-right: 2.35rem;
    border: 1px solid var(--lab-line);
    border-radius: 999px;
    background: var(--lab-white);
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: none;
}

.exams-search .form-control:focus {
    border-color: var(--lab-teal);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1);
}

#examSearch::-webkit-search-cancel-button,
#examSearch::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
}

.search-clear {
    position: absolute;
    right: 0.42rem;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: var(--lab-mint);
    color: var(--lab-teal-dark);
    font-size: 0.72rem;
}

.search-status {
    min-height: 1.2rem;
    margin: 0.65rem 0 0;
    color: var(--lab-muted);
    font-size: 0.75rem;
    font-weight: 600;
}

.exams-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.2rem;
}

.exam-category {
    padding: 1.35rem;
    border: 1px solid var(--lab-line);
    border-radius: var(--lab-radius);
    background: var(--lab-white);
    box-shadow: var(--lab-shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.exam-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 44px rgba(8, 52, 49, 0.09);
}

.exam-category-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding-bottom: 0.95rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--lab-line);
}

.exam-category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 13px;
    background: var(--lab-mint);
    color: var(--lab-teal-dark);
    font-size: 1.1rem;
}

.exam-category-icon--rose { background: #fdecec; color: #b54747; }
.exam-category-icon--amber { background: #fff3d8; color: #a56a14; }
.exam-category-icon--violet { background: #f0e9ff; color: #6d4bb0; }
.exam-category-icon--blue { background: #e6f1ff; color: #2e5d9d; }
.exam-category-icon--green { background: #e8f6e9; color: #377a43; }
.exam-category-icon--teal { background: var(--lab-mint); color: var(--lab-teal-dark); }

.exam-category-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.exam-category-copy h3 {
    margin: 0 0 0.22rem;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.exam-category-copy p {
    margin: 0;
    color: var(--lab-muted);
    font-size: 0.73rem;
    line-height: 1.45;
}

.exam-count {
    flex: 0 0 auto;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 3.1rem;
    padding: 0.32rem 0.45rem;
    border-radius: 11px;
    background: var(--lab-cream);
    color: var(--lab-ink);
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1;
}

.exam-count span {
    margin-top: 0.16rem;
    color: var(--lab-muted);
    font-size: 0.54rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.exam-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.18rem 0.9rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.exam-item {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 0.33rem 0;
    color: var(--lab-ink-soft);
    font-size: 0.77rem;
    line-height: 1.4;
}

.exam-item .icon {
    flex: 0 0 auto;
    margin-top: 0.13rem;
    color: var(--lab-teal);
    font-size: 0.78rem;
}

.exam-item:hover {
    color: var(--lab-ink);
}

.exam-item.is-hidden,
.exam-category.is-hidden {
    display: none !important;
}

.no-results {
    margin-top: 1.4rem;
    padding: 3rem 1.5rem;
    border: 1px dashed var(--lab-line-strong);
    border-radius: var(--lab-radius);
    background: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.no-results-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 0.8rem;
    border-radius: 16px;
    background: var(--lab-mint);
    color: var(--lab-teal-dark);
    font-size: 1.25rem;
}

.no-results h3 {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
    font-weight: 800;
}

.no-results p {
    margin: 0 0 1rem;
    color: var(--lab-muted);
    font-size: 0.85rem;
}

.exams-note {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-top: 1.4rem;
    padding: 1rem 1.15rem;
    border: 1px solid var(--lab-line);
    border-radius: 18px;
    background: var(--lab-white);
    box-shadow: var(--lab-shadow-sm);
}

.exams-note-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 12px;
    background: var(--lab-sand);
    color: var(--lab-coral);
    font-size: 1rem;
}

.exams-note p {
    flex: 1 1 auto;
    margin: 0;
    color: var(--lab-ink-soft);
    font-size: 0.78rem;
    line-height: 1.5;
}

.exams-note p strong {
    color: var(--lab-ink);
}

.exams-note-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--lab-teal-dark);
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.exams-note-link:hover {
    color: var(--lab-teal);
}

/* --------------------------------------------------------------------------
   Nosotros
   -------------------------------------------------------------------------- */
.about-section {
    background: var(--lab-white);
}

.about-media {
    position: relative;
    padding: 0 1.4rem 1.4rem 0;
}

.about-image {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: var(--lab-radius-lg);
    box-shadow: var(--lab-shadow);
}

.about-stat {
    position: absolute;
    left: 1.4rem;
    bottom: 1.4rem;
    display: flex;
    flex-direction: column;
    padding: 0.9rem 1.05rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 16px 38px rgba(8, 52, 49, 0.16);
    backdrop-filter: blur(10px);
}

.about-stat strong {
    color: var(--lab-teal);
    font-size: 1.9rem;
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.about-stat span {
    margin-top: 0.2rem;
    color: var(--lab-muted);
    font-size: 0.66rem;
    font-weight: 700;
}

.about-mini {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 150px;
    height: 150px;
    overflow: hidden;
    border: 6px solid var(--lab-white);
    border-radius: 26px;
    box-shadow: 0 14px 32px rgba(8, 52, 49, 0.18);
}

.about-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.check-list {
    display: grid;
    gap: 0.9rem;
    margin: 1.5rem 0 1.8rem;
    padding: 0;
    list-style: none;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
}

.check-list li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 9px;
    background: var(--lab-mint);
    color: var(--lab-teal-dark);
    font-size: 0.85rem;
}

.check-list strong {
    display: block;
    margin-bottom: 0.15rem;
    font-size: 0.86rem;
    font-weight: 800;
}

.check-list p {
    margin: 0;
    color: var(--lab-muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

.about-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

/* --------------------------------------------------------------------------
   Domicilio
   -------------------------------------------------------------------------- */
.home-service {
    position: relative;
    overflow: hidden;
    padding: 4.2rem 0;
    background:
        radial-gradient(circle at 86% 12%, rgba(134, 224, 201, 0.2), transparent 28rem),
        radial-gradient(circle at 8% 92%, rgba(231, 111, 81, 0.13), transparent 24rem),
        var(--lab-teal-deep);
    color: var(--lab-white);
}

.home-service::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
    pointer-events: none;
}

.home-service-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.6rem;
}

.home-service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    flex: 0 0 78px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #b8f2e4;
    font-size: 1.8rem;
}

.home-service-copy {
    flex: 1 1 auto;
}

.home-service-copy h2 {
    margin: 0.7rem 0 0.55rem;
    font-size: clamp(1.8rem, 3.2vw, 2.7rem);
    letter-spacing: -0.04em;
    font-weight: 800;
}

.home-service-copy p {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
    line-height: 1.7;
}

.home-service-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   Pasos
   -------------------------------------------------------------------------- */
.steps-section {
    background: var(--lab-cream);
}

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

.step-card {
    position: relative;
    padding: 1.6rem;
    border: 1px solid var(--lab-line);
    border-radius: var(--lab-radius);
    background: var(--lab-white);
    box-shadow: var(--lab-shadow-sm);
    overflow: hidden;
}

.step-card::after {
    content: '';
    position: absolute;
    right: -28px;
    bottom: -42px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 236, 225, 0.55), transparent 68%);
}

.step-number {
    position: absolute;
    top: 1.2rem;
    right: 1.3rem;
    color: rgba(15, 118, 110, 0.16);
    font-size: 2.3rem;
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1;
}

.step-icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    border-radius: 14px;
    background: var(--lab-mint);
    color: var(--lab-teal-dark);
    font-size: 1.2rem;
}

.step-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 800;
}

.step-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--lab-muted);
    font-size: 0.8rem;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Contacto
   -------------------------------------------------------------------------- */
.contact-section {
    background: var(--lab-sand);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    margin: 1.5rem 0;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 84px;
    padding: 0.9rem;
    border: 1px solid var(--lab-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--lab-ink);
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.contact-card:hover {
    background: var(--lab-white);
    border-color: var(--lab-mint-strong);
    color: var(--lab-ink);
    transform: translateY(-2px);
}

.contact-card--static {
    cursor: default;
}

.contact-card--static:hover {
    transform: none;
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 12px;
    background: var(--lab-mint);
    color: var(--lab-teal-dark);
    font-size: 1rem;
}

.contact-card small,
.contact-card strong {
    display: block;
}

.contact-card small {
    margin-bottom: 0.15rem;
    color: var(--lab-muted);
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.contact-card strong {
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.35;
}

.contact-email {
    font-size: 0.7rem !important;
    overflow-wrap: anywhere;
}

.contact-arrow {
    margin-left: auto;
    color: var(--lab-teal);
    font-size: 0.8rem;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.map-card {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 570px;
    padding: 2rem;
    overflow: hidden;
    border-radius: var(--lab-radius-lg);
    background:
        radial-gradient(circle at 72% 18%, rgba(134, 224, 201, 0.25), transparent 20rem),
        var(--lab-teal-deep);
    color: var(--lab-white);
    box-shadow: var(--lab-shadow);
}

.map-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.075) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.075) 1px, transparent 1px);
    background-size: 38px 38px;
    transform: rotate(-8deg) scale(1.15);
    mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%);
}

.map-pattern::before,
.map-pattern::after {
    content: '';
    position: absolute;
    border: 2px solid rgba(184, 242, 228, 0.14);
    border-radius: 50%;
}

.map-pattern::before {
    width: 420px;
    height: 420px;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.map-pattern::after {
    width: 260px;
    height: 260px;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
}

.map-pin {
    position: absolute;
    top: 17%;
    left: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    transform: translateX(-50%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #b8f2e4;
    font-size: 1.55rem;
    box-shadow: 0 0 0 14px rgba(184, 242, 228, 0.08), 0 0 0 28px rgba(184, 242, 228, 0.04);
}

.map-content {
    position: relative;
    z-index: 3;
    max-width: 520px;
}

.map-content h3 {
    margin: 0.7rem 0 0.5rem;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    letter-spacing: -0.04em;
    font-weight: 800;
}

.map-content p {
    margin: 0 0 1rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    line-height: 1.7;
}

.map-meta {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 1.2rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.76rem;
    font-weight: 600;
}

.map-meta span {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.45rem;
}

.map-meta .icon {
    color: #b8f2e4;
    margin-top: 0.05rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
    padding: 4rem 0 1.4rem;
    background: #082a2b;
    color: rgba(255, 255, 255, 0.72);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.45fr 0.85fr 1.15fr 1fr;
    gap: 2rem;
    padding-bottom: 2.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.9rem;
    color: var(--lab-white);
    text-decoration: none;
}

.footer-logo:hover {
    color: var(--lab-white);
}

.brand-mark--light {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    color: #2dd4bf;
}

.footer-logo-text {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.footer-brand p {
    max-width: 320px;
    margin: 0 0 0.7rem;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.79rem;
    line-height: 1.65;
}

.footer-small {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.7rem;
}

.footer-col h2 {
    margin: 0 0 0.85rem;
    color: var(--lab-white);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.footer-col ul {
    display: grid;
    gap: 0.42rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.76rem;
    font-weight: 600;
    text-decoration: none;
}

.footer-col a:hover {
    color: #b8f2e4;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    font-size: 0.76rem;
}

.footer-contact .icon {
    margin-top: 0.12rem;
    color: #2dd4bf;
    font-size: 0.78rem;
}

.footer-hours {
    margin: 0 0 0.45rem;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.76rem;
    line-height: 1.55;
}

.footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.45rem;
    color: #b8f2e4;
    font-size: 0.76rem;
    font-weight: 800;
    text-decoration: none;
}

.footer-cta:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.2rem;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.68rem;
}

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

/* --------------------------------------------------------------------------
   Flotantes
   -------------------------------------------------------------------------- */
.whatsapp-float {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1050;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(37, 211, 102, 0.32);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
    color: #fff;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 18px 38px rgba(37, 211, 102, 0.4);
}

.back-to-top {
    position: fixed;
    right: 1.35rem;
    bottom: 5.6rem;
    z-index: 1040;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--lab-line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--lab-ink);
    font-size: 0.9rem;
    box-shadow: var(--lab-shadow-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--lab-mint);
    color: var(--lab-teal-dark);
}

/* --------------------------------------------------------------------------
   Portal (fase 1, informativo)
   -------------------------------------------------------------------------- */
.portal-pending {
    display: flex;
    align-items: center;
    min-height: 68vh;
    padding: 4rem 0;
    background:
        radial-gradient(circle at 20% 15%, rgba(200, 236, 225, 0.55), transparent 28rem),
        var(--lab-cream);
}

.portal-pending-card {
    max-width: 750px;
    margin: 0 auto;
    padding: 3rem;
    border: 1px solid var(--lab-line);
    border-radius: var(--lab-radius-lg);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--lab-shadow);
    text-align: center;
}

.portal-pending-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    margin-bottom: 1rem;
    border-radius: 20px;
    background: var(--lab-mint);
    color: var(--lab-teal-dark);
    font-size: 1.6rem;
}

.portal-pending-card h1 {
    margin: 0.9rem auto 0.8rem;
    max-width: 620px;
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    line-height: 1.1;
    letter-spacing: -0.045em;
    font-weight: 800;
}

.portal-pending-card > p {
    max-width: 580px;
    margin: 0 auto 1.5rem;
    color: var(--lab-ink-soft);
    font-size: 0.95rem;
    line-height: 1.75;
}

.portal-pending-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
}

.portal-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1.4rem;
    color: var(--lab-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
}

.portal-back-link:hover {
    color: var(--lab-teal-dark);
}

/* --------------------------------------------------------------------------
   Animaciones de entrada
   -------------------------------------------------------------------------- */
.hero .eyebrow,
.hero-title,
.hero-lead,
.hero-actions,
.hero-proof {
    animation: fadeUp 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-title { animation-delay: 0.06s; }
.hero-lead { animation-delay: 0.12s; }
.hero-actions { animation-delay: 0.18s; }
.hero-proof { animation-delay: 0.24s; }

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

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
    .hero-media {
        min-height: 500px;
    }

    .trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.8rem;
        padding: 1rem;
    }

    .trust-item {
        border-right: 0;
        padding: 0.5rem;
    }

    .trust-item:first-child,
    .trust-item:last-child {
        padding: 0.5rem;
    }

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

    .exam-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1.2fr 1fr 1fr;
    }

    .footer-col:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 0.8rem;
        padding: 0.9rem;
        border: 1px solid var(--lab-line);
        border-radius: 18px;
        background: var(--lab-white);
        box-shadow: var(--lab-shadow);
    }

    .navbar-nav {
        gap: 0.15rem;
        margin-bottom: 0.8rem !important;
    }

    .navbar .nav-link {
        padding: 0.65rem 0.7rem !important;
    }

    .navbar .nav-link::after {
        display: none;
    }

    .nav-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-nav-outline,
    .btn-nav-primary {
        width: 100%;
        padding: 0.7rem 1rem;
    }

    .hero {
        padding-top: 3.8rem;
    }

    .hero-media {
        min-height: 460px;
        margin-top: 0.5rem;
    }

    .hero-title {
        max-width: 700px;
    }

    .home-service-inner {
        flex-wrap: wrap;
    }

    .home-service-actions {
        width: 100%;
    }

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

    .map-card {
        min-height: 480px;
        margin-top: 0.5rem;
    }

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

    .footer-col:last-child {
        grid-column: auto;
    }
}

@media (max-width: 767.98px) {
    .topbar-inner {
        justify-content: center;
        padding: 0.35rem 0;
    }

    .topbar > .container > .topbar-inner > .topbar-item {
        display: none;
    }

    .topbar-links {
        width: 100%;
        justify-content: center;
    }

    .hero {
        padding: 3.2rem 0 3rem;
    }

    .hero-title {
        font-size: clamp(2.4rem, 9vw, 3.6rem);
    }

    .hero-proof {
        gap: 1rem;
    }

    .hero-proof-item {
        min-width: 96px;
    }

    .hero-media {
        min-height: 420px;
        border-radius: 24px;
    }

    .floating-card {
        max-width: 210px;
        padding: 0.62rem 0.7rem;
    }

    .floating-card--quality {
        top: 0.8rem;
        left: 0.8rem;
    }

    .floating-card--home {
        right: 0.8rem;
        bottom: 4.6rem;
    }

    .hero-count-card {
        left: 0.8rem;
        bottom: 0.8rem;
        max-width: 255px;
    }

    .section {
        padding: 4.2rem 0;
    }

    .exams-toolbar {
        flex-direction: column;
    }

    .exams-search {
        width: 100%;
        flex-basis: auto;
    }

    .filter-pills {
        max-width: 100%;
    }

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

    .exams-note {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .exams-note p {
        flex-basis: calc(100% - 52px);
    }

    .exams-note-link {
        margin-left: 52px;
    }

    .about-media {
        padding: 0 0 1rem 0;
    }

    .about-image {
        height: 400px;
    }

    .about-mini {
        width: 112px;
        height: 112px;
        border-width: 5px;
        border-radius: 20px;
    }

    .about-stat {
        left: 0.8rem;
        bottom: 1.2rem;
    }

    .home-service {
        padding: 3.2rem 0;
    }

    .home-service-icon {
        width: 60px;
        height: 60px;
        flex-basis: 60px;
        border-radius: 18px;
        font-size: 1.4rem;
    }

    .home-service-actions {
        flex-direction: column;
    }

    .home-service-actions .btn {
        width: 100%;
    }

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

    .contact-actions {
        flex-direction: column;
    }

    .contact-actions .btn {
        width: 100%;
    }

    .map-card {
        min-height: 520px;
        padding: 1.4rem;
    }

    .map-pin {
        top: 12%;
    }

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

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.45rem;
    }

    .footer-disclaimer {
        text-align: left;
    }

    .portal-pending-card {
        padding: 2rem 1.25rem;
    }

    .portal-pending-actions {
        flex-direction: column;
    }

    .portal-pending-actions .btn {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .brand-name {
        font-size: 0.9rem;
    }

    .brand-subtitle {
        font-size: 0.58rem;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .hero-title {
        letter-spacing: -0.045em;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-proof {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.7rem;
    }

    .hero-proof-item {
        min-width: 0;
    }

    .hero-proof-item:first-child {
        grid-column: 1 / -1;
    }

    .hero-proof-item strong {
        font-size: 1.3rem;
    }

    .hero-proof-item span {
        font-size: 0.66rem;
        overflow-wrap: anywhere;
    }

    .hero-media {
        min-height: 380px;
    }

    .floating-card {
        font-size: 0.7rem;
    }

    .floating-card--quality {
        max-width: 190px;
    }

    .floating-card--home {
        display: none;
    }

    .hero-count-card {
        max-width: calc(100% - 1.6rem);
    }

    .exam-list {
        grid-template-columns: 1fr;
    }

    .exam-count {
        min-width: 2.7rem;
        font-size: 0.72rem;
    }

    .exam-category-copy p {
        display: none;
    }

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

    .trust-item {
        border-bottom: 1px solid var(--lab-line);
        padding: 0.55rem 0.2rem;
    }

    .trust-item:last-child {
        border-bottom: 0;
    }

    .home-service-icon {
        display: none;
    }

    .exams-note-link {
        margin-left: 0;
    }

    .exams-note p {
        flex-basis: 100%;
    }

    .about-image {
        height: 320px;
    }

    .about-mini {
        display: none;
    }

    .map-card {
        min-height: 540px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        right: 0.9rem;
        bottom: 0.9rem;
        font-size: 1.3rem;
    }

    .back-to-top {
        right: 1rem;
        bottom: 4.9rem;
    }
}

/* --------------------------------------------------------------------------
   Accesibilidad / preferencias
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero .eyebrow,
    .hero-title,
    .hero-lead,
    .hero-actions,
    .hero-proof,
    .hero-image {
        opacity: 1;
        transform: none;
    }
}

/* Compatibilidad con navegadores que no soportan backdrop-filter */
@supports not (backdrop-filter: blur(1px)) {
    .floating-card,
    .hero-count-card,
    .site-nav,
    .trust-grid {
        background-color: var(--lab-white);
    }

    .hero-count-card {
        background-color: rgba(9, 52, 50, 0.94);
    }
}

/* --------------------------------------------------------------------------
   Portal de resultados
   -------------------------------------------------------------------------- */
.portal-shell {
    padding: 3.2rem 0 4rem;
    background:
        radial-gradient(circle at 8% 10%, rgba(200, 236, 225, 0.55), transparent 24rem),
        radial-gradient(circle at 92% 90%, rgba(247, 243, 236, 0.8), transparent 24rem),
        var(--lab-cream);
}

.portal-auth-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.75fr);
    gap: 3rem;
    align-items: center;
    max-width: 1120px;
    margin: 0 auto;
}

.portal-auth-copy h1 {
    max-width: 620px;
    margin: 0.65rem 0 0.8rem;
    color: var(--lab-ink);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 1.04;
}

.portal-auth-copy > p {
    max-width: 560px;
    margin: 0;
    color: var(--lab-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

.portal-benefits {
    display: grid;
    gap: 0.85rem;
    max-width: 520px;
    margin: 1.5rem 0;
    padding: 0;
    list-style: none;
}

.portal-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.portal-benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 10px;
    background: var(--lab-mint);
    color: var(--lab-teal);
    font-size: 0.92rem;
}

.portal-benefits strong,
.portal-benefits small {
    display: block;
}

.portal-benefits strong {
    color: var(--lab-ink);
    font-size: 0.76rem;
    font-weight: 800;
}

.portal-benefits small {
    margin-top: 0.12rem;
    color: var(--lab-muted);
    font-size: 0.68rem;
    line-height: 1.5;
}

.portal-contact-note {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    max-width: 520px;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--lab-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.62);
}

.portal-contact-note > span {
    color: var(--lab-teal);
    font-size: 0.9rem;
}

.portal-contact-note p {
    margin: 0;
    color: var(--lab-muted);
    font-size: 0.68rem;
    line-height: 1.6;
}

.portal-contact-note a {
    color: var(--lab-teal-dark);
    font-weight: 800;
}

.portal-auth-card {
    padding: 2rem;
    border: 1px solid var(--lab-line);
    border-radius: var(--lab-radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--lab-shadow);
}

.portal-lock-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 0.8rem;
    border-radius: 12px;
    background: var(--lab-mint);
    color: var(--lab-teal);
    font-size: 1.1rem;
}

.portal-auth-card h2 {
    margin: 0.3rem 0 0.35rem;
    color: var(--lab-ink);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.035em;
}

.portal-auth-lead {
    margin: 0 0 1.1rem;
    color: var(--lab-muted);
    font-size: 0.74rem;
    line-height: 1.55;
}

.portal-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin-bottom: 0.8rem;
    padding: 0.6rem 0.65rem;
    border-radius: 9px;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.5;
}

.portal-alert .icon {
    flex: 0 0 auto;
    margin-top: 0.08rem;
}

.portal-alert--error {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.portal-alert--info {
    border: 1px solid #bae6fd;
    background: #f0f9ff;
    color: #075985;
}

.portal-form {
    display: grid;
    gap: 0.75rem;
}

.portal-form .form-field label {
    color: var(--lab-ink);
    font-size: 0.68rem;
    font-weight: 800;
}

.portal-form .form-control {
    min-height: 44px;
    border-color: var(--lab-line-strong);
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

.portal-form .form-control:focus {
    border-color: var(--lab-teal);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.portal-submit {
    width: 100%;
    min-height: 44px;
    margin-top: 0.15rem;
}

.portal-privacy {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    margin: 0.9rem 0;
    color: var(--lab-muted);
    font-size: 0.61rem;
    line-height: 1.55;
}

.portal-privacy .icon {
    flex: 0 0 auto;
    margin-top: 0.08rem;
    color: var(--lab-teal);
}

.portal-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--lab-teal-dark);
    font-size: 0.68rem;
    font-weight: 800;
    text-decoration: none;
}

.portal-back-link:hover {
    color: var(--lab-teal);
}

/* Historial */
.portal-dashboard {
    min-height: 70vh;
}

.portal-dashboard-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.portal-dashboard-head h1 {
    margin: 0.3rem 0 0.25rem;
    color: var(--lab-ink);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.05em;
}

.portal-dashboard-head p {
    margin: 0;
    color: var(--lab-muted);
    font-size: 0.76rem;
}

.portal-dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
}

.portal-session-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.55rem;
    border: 1px solid rgba(15, 118, 110, 0.18);
    border-radius: 999px;
    background: var(--lab-mint);
    color: var(--lab-teal-dark);
    font-size: 0.62rem;
    font-weight: 800;
    white-space: nowrap;
}

.portal-patient-card {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--lab-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.7);
}

.portal-patient-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 12px;
    background: var(--lab-teal);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
}

.portal-patient-card strong,
.portal-patient-card span {
    display: block;
}

.portal-patient-card strong {
    color: var(--lab-ink);
    font-size: 0.78rem;
    font-weight: 800;
}

.portal-patient-card span {
    margin-top: 0.08rem;
    color: var(--lab-muted);
    font-size: 0.65rem;
    font-weight: 600;
}

.portal-patient-card .portal-patient-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    margin: 0;
    border-radius: 12px;
    background: var(--lab-teal);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
}

.portal-panel {
    border: 1px solid var(--lab-line);
    border-radius: var(--lab-radius-sm);
    background: var(--lab-white);
    box-shadow: var(--lab-shadow-sm);
    overflow: hidden;
}

.portal-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--lab-line);
}

.portal-panel-head h2 {
    margin: 0 0 0.18rem;
    color: var(--lab-ink);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.portal-panel-head p {
    margin: 0;
    color: var(--lab-muted);
    font-size: 0.64rem;
    font-weight: 600;
}

.portal-panel-note {
    color: var(--lab-muted);
    font-size: 0.6rem;
    font-weight: 600;
}

.portal-panel-note .icon {
    margin-right: 0.2rem;
    color: var(--lab-teal);
}

.portal-result-list {
    display: grid;
}

.portal-result-row {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr) auto auto;
    gap: 0.9rem;
    align-items: center;
    padding: 0.9rem 1.15rem;
    border-bottom: 1px solid var(--lab-line);
}

.portal-result-row:last-child {
    border-bottom: 0;
}

.portal-result-date strong,
.portal-result-date span,
.portal-result-copy strong,
.portal-result-copy span {
    display: block;
}

.portal-result-date strong {
    color: var(--lab-ink);
    font-size: 0.7rem;
    font-weight: 800;
}

.portal-result-date span {
    color: var(--lab-muted);
    font-size: 0.58rem;
    font-weight: 700;
}

.portal-result-copy strong {
    color: var(--lab-ink);
    font-size: 0.78rem;
    font-weight: 800;
}

.portal-result-copy span {
    margin-top: 0.1rem;
    color: var(--lab-muted);
    font-size: 0.64rem;
    font-weight: 600;
}

.portal-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.48rem;
    border-radius: 999px;
    font-size: 0.56rem;
    font-weight: 800;
    white-space: nowrap;
}

.portal-status--entregado {
    background: #dcfce7;
    color: #166534;
}

.portal-status--completado {
    background: #e0f2fe;
    color: #075985;
}

.portal-result-button {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    min-height: 34px;
    padding: 0.4rem 0.6rem;
    border-radius: 9px;
    font-size: 0.62rem;
    font-weight: 800;
    white-space: nowrap;
}

.portal-result-button .icon {
    font-size: 0.7rem;
}

.portal-empty {
    padding: 3rem 1.5rem;
    text-align: center;
}

.portal-empty > .icon {
    display: block;
    margin: 0 auto 0.6rem;
    color: var(--lab-teal);
    font-size: 1.6rem;
}

.portal-empty h3 {
    margin: 0 0 0.25rem;
    color: var(--lab-ink);
    font-size: 0.9rem;
    font-weight: 800;
}

.portal-empty p {
    max-width: 360px;
    margin: 0 auto 0.9rem;
    color: var(--lab-muted);
    font-size: 0.7rem;
    line-height: 1.55;
}

.portal-dashboard-foot {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    margin: 1rem 0 0;
    color: var(--lab-muted);
    font-size: 0.62rem;
    line-height: 1.55;
}

.portal-dashboard-foot .icon {
    flex: 0 0 auto;
    margin-top: 0.1rem;
    color: var(--lab-teal);
}

/* Detalle */
.portal-result-page {
    min-height: 70vh;
}

.portal-result-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    margin-bottom: 1.2rem;
}

.portal-result-top-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
}

.portal-result-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.portal-result-head h1 {
    margin: 0.3rem 0 0.3rem;
    color: var(--lab-ink);
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.05em;
}

.portal-result-head p {
    margin: 0;
    color: var(--lab-muted);
    font-size: 0.72rem;
    font-weight: 600;
}

.portal-token-note {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin-bottom: 1rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid #bae6fd;
    border-radius: 10px;
    background: #f0f9ff;
    color: #075985;
    font-size: 0.66rem;
    font-weight: 600;
    line-height: 1.5;
}

.portal-token-note .icon {
    flex: 0 0 auto;
    margin-top: 0.1rem;
}

.portal-detail-card {
    margin-bottom: 1rem;
    border: 1px solid var(--lab-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    overflow: hidden;
}

.portal-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portal-detail {
    display: flex;
    flex-direction: column;
    gap: 0.14rem;
    padding: 0.75rem 0.9rem;
    border-right: 1px solid var(--lab-line);
    border-bottom: 1px solid var(--lab-line);
}

.portal-detail:nth-child(3n) {
    border-right: 0;
}

.portal-detail:nth-last-child(-n + 3) {
    border-bottom: 0;
}

.portal-detail span {
    color: var(--lab-muted);
    font-size: 0.57rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.portal-detail strong {
    color: var(--lab-ink);
    font-size: 0.72rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.portal-result-panel {
    margin-bottom: 1rem;
}

.portal-result-table {
    width: 100%;
    border-collapse: collapse;
}

.portal-result-table thead th {
    padding: 0.65rem 0.9rem;
    border-bottom: 1px solid var(--lab-line);
    background: #f6faf8;
    color: var(--lab-muted);
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-align: left;
    text-transform: uppercase;
}

.portal-result-table tbody td {
    padding: 0.68rem 0.9rem;
    border-bottom: 1px solid var(--lab-line);
    color: var(--lab-ink);
    font-size: 0.72rem;
    font-weight: 600;
}

.portal-result-table tbody tr:last-child td {
    border-bottom: 0;
}

.portal-result-table .portal-section-row th {
    padding: 0.5rem 0.9rem;
    border-bottom: 1px solid var(--lab-line);
    background: var(--lab-mint);
    color: var(--lab-teal-dark);
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-align: left;
    text-transform: uppercase;
}

.portal-result-value {
    color: var(--lab-ink);
    font-weight: 800;
}

.portal-result-value.is-empty {
    color: var(--lab-muted);
    font-weight: 600;
}

.portal-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-left: 0.3rem;
    border-radius: 6px;
    font-size: 0.56rem;
    font-weight: 900;
    vertical-align: middle;
}

.portal-flag--high {
    background: #fee2e2;
    color: #991b1b;
}

.portal-flag--low {
    background: #dbeafe;
    color: #1d4ed8;
}

.portal-observations {
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--lab-line);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.72);
}

.portal-observations p {
    margin: 0.35rem 0 0;
    color: var(--lab-ink-soft);
    font-size: 0.72rem;
    line-height: 1.65;
}

.portal-detail-foot {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    padding: 0.75rem 0.85rem;
    border-radius: 11px;
    background: var(--lab-mint);
    color: var(--lab-teal-dark);
}

.portal-detail-foot .icon {
    flex: 0 0 auto;
    margin-top: 0.1rem;
}

.portal-detail-foot p {
    margin: 0;
    font-size: 0.64rem;
    line-height: 1.55;
}

@media (max-width: 991.98px) {
    .portal-auth-grid {
        grid-template-columns: 1fr;
        max-width: 640px;
        gap: 1.4rem;
    }

    .portal-auth-copy {
        text-align: center;
    }

    .portal-auth-copy > p,
    .portal-benefits,
    .portal-contact-note {
        margin-right: auto;
        margin-left: auto;
    }

    .portal-benefits {
        text-align: left;
    }
}

@media (max-width: 767.98px) {
    .portal-shell {
        padding: 2rem 0 2.5rem;
    }

    .portal-auth-card {
        padding: 1.3rem;
    }

    .portal-dashboard-head {
        align-items: flex-start;
    }

    .portal-dashboard-actions {
        width: 100%;
    }

    .portal-result-row {
        grid-template-columns: 1fr auto;
        gap: 0.55rem;
    }

    .portal-result-date {
        order: 1;
    }

    .portal-result-copy {
        order: 2;
        grid-column: 1 / -1;
    }

    .portal-result-row .portal-status {
        order: 3;
        justify-self: start;
    }

    .portal-result-button {
        order: 4;
        justify-self: end;
    }

    .portal-detail-grid {
        grid-template-columns: 1fr;
    }

    .portal-detail {
        border-right: 0;
    }

    .portal-detail:nth-last-child(-n + 3) {
        border-bottom: 1px solid var(--lab-line);
    }

    .portal-detail:last-child {
        border-bottom: 0;
    }

    .portal-result-topbar {
        align-items: flex-start;
    }

    .portal-result-top-actions {
        width: 100%;
        justify-content: space-between;
    }

    .portal-result-head {
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    .portal-auth-copy h1 {
        font-size: 2rem;
    }

    .portal-result-table {
        min-width: 560px;
    }

    .portal-dashboard-actions .btn {
        width: 100%;
    }

    .portal-session-badge {
        width: 100%;
        justify-content: center;
    }
}

/* Logo de marca */
.brand-mark {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
    overflow: hidden;
    border-radius: 14px;
    background: #0b3b3c;
    box-shadow: 0 4px 12px rgba(11, 59, 60, .18);
}
.brand-mark--light {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
}
.brand-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}
@media (max-width: 575.98px) {
    .brand-mark {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }
}
