/*
Theme Name: VISUM
Description: Centro Oftalmológico Visum
Author: Medical Brands Sites
Version: 1.0
Text Domain: visum
*/

/* ─── RESET & BASE ─────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: 'Manrope';
    src: url('manrope/manrope-thin.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('manrope/manrope-light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('manrope/manrope-regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('manrope/manrope-medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('manrope/manrope-semibold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('manrope/manrope-bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('manrope/manrope-extrabold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

:root {
    /* ── Corporate Visum Brand Colors ── */
    --brand-teal-dk: #009984;
    --brand-teal-lt: #4dd5c2;
    --brand-teal-bg: #e6f8f6;

    --brand-50: #eef0fc;
    --brand-100: #d5d9f7;
    --brand-200: #a3abee;
    --brand-400: #6878d9;
    --brand-500: #3a4ecb;
    --brand-600: #009984;
    --brand-700: #1525a8;
    --brand-800: #0f1c8a;
    --brand-900: #0b1470;

    --dark-100: #84CBCE;
    --dark-200: #1e293b;
    --dark-300: #334155;
    --dark-400: #475569;
    --neutral-100: #f8fafc;
    --neutral-200: #f1f5f9;
    --neutral-300: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --white: #ffffff;

    --font-display: 'Manrope', sans-serif;
    --font-body: 'Manrope', sans-serif;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-blue: 0 8px 32px rgba(37, 99, 235, 0.25);

    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    overflow-x: hidden;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--white);
    overflow-x: hidden;
    width: 100%;
    position: relative;
    line-height: 1.6;
}

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ─── UTILITY ───────────────────────────────── */
.container {
    width: min(1200px, 100% - 48px);
    margin-inline: auto;
}

.section-pad {
    padding: 60px 0;
}

.hidden {
    display: none !important;
}

/* ─── TYPOGRAPHY ────────────────────────────── */
.section-eyebrow {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--brand-600);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-eyebrow::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 2px;
    background: var(--brand-600);
    border-radius: 2px;
}

.section-eyebrow.light {
    color: #009984;
}

.section-eyebrow.light::before {
    background: #009984;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    color: #0033a0;
    margin-bottom: 20px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 580px;
    line-height: 1.7;
}

.gradient-text {
    color: var(--brand-600);
    background: linear-gradient(135deg, #00B49C 0%, #009984 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-light {
    color: var(--brand-teal-lt);
    background: linear-gradient(135deg, var(--brand-teal-lt) 0%, #00B49C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Solid color text utilities */
.solid-white {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

.solid-teal {
    color: #00B49C;
    -webkit-text-fill-color: #00B49C;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header .section-eyebrow {
    justify-content: center;
}

.section-header .section-desc {
    margin-inline: auto;
}

/* Modificador global para encabezados alineados a la izquierda */
.section-header.text-left {
    text-align: left;
}

.section-header.text-left .section-eyebrow {
    justify-content: flex-start;
}

.section-header.text-left .section-desc {
    margin-inline: 0;
}

/* ─── BUTTONS ───────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 100px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #00B49C, #009984);
    color: var(--white);
    box-shadow: 0 8px 32px rgba(0, 180, 156, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 180, 156, 0.50);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.20);
    transform: translateY(-2px);
}

.btn-nav {
    background: #00B49C;
    color: var(--white) !important;
    padding: 10px 22px;
    font-size: 0.98rem;
}

.btn-nav:hover {
    background: #009984;
    transform: translateY(-1px);
}

.btn-nav.btn-convenios {
    background: transparent;
    padding: 4px 16px;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 100px;
}

.btn-nav.btn-convenios:hover {
    background: #00B49C;
    border-color: #00B49C;
}

.btn-convenios svg {
    width: 14px;
    height: 14px;
    color: #009984;
    transition: var(--transition);
}

.btn-convenios:hover svg {
    color: var(--white);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 1.2rem;
}

/* ─── REVEAL ANIMATIONS ─────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── TOP BAR ───────────────────────────────── */
.mobile-break-span {
    display: inline;
}

@media (min-width: 769px) {
    .address-text {
        white-space: nowrap;
    }
}

.top-bar {
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.85rem;
    color: var(--white);
    padding: 4px 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    flex-wrap: wrap;
    gap: 15px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: nowrap;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 0;
    color: var(--white);
}

.top-bar-item svg {
    width: 20px;
    height: 30px;
    color: var(--brand-teal-dk);
}

.top-bar-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.top-bar-link:hover {
    color: var(--brand-teal-lt);
}

.top-bar-divider {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 4px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}



.top-bar-social {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-bar-social a {
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.top-bar-social a:hover {
    color: var(--brand-teal-dk);
}

.top-bar-webpay {
    display: flex;
    align-items: center;
}

/* ─── NAVBAR ────────────────────────────────── */
.navbar {
    position: fixed;
    top: 58px;
    /* Offset for top bar */
    left: 0;
    right: 0;
    z-index: 1000;
    background: #132ea500;
    padding: 16px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    top: 0;
    background: rgb(51 68 105 / 60%);
    backdrop-filter: blur(10px);
    padding: 16px 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--white);
    flex-shrink: 0;
    position: relative;
}

.logo-img {
    height: 45px;
    width: auto;
    max-width: 100%;
    transition: var(--transition);
}

.logo-pupil {
    position: absolute;
    top: 54.7%;
    left: 20.2%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 2;
}

@media (max-width: 1024px) {
    .logo-img {
        height: 45px;
    }
}

.logo-icon {
    width: 36px;
    height: 36px;
    color: var(--brand-teal);
    flex-shrink: 0;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--white);
}

.logo-sub {
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    opacity: 0.7;
    display: block;
    line-height: 1;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.80);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 100px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.10);
}

/* ─── DROPDOWN ──────────────────────────────── */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--white);
    min-width: 240px;
    max-width: 90vw;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

/* Ensure the last dropdown doesn't overflow right */
.nav-dropdown:last-child .dropdown-content {
    left: auto;
    right: 0;
    transform: translateY(10px);
}

/* Invisible bridge to keep hover active */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
}

.nav-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown:last-child:hover .dropdown-content {
    transform: translateY(0);
}

.dropdown-content a {
    color: var(--text-primary);
    padding: 14px 24px;
    text-decoration: none;
    display: block;
    font-size: 1.0rem;
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 1px solid var(--neutral-200);
}

.dropdown-content a:first-child {
    border-top-left-radius: var(--radius-md);
    border-top-right-radius: var(--radius-md);
}

.dropdown-content a:last-child {
    border-bottom: none;
    border-bottom-left-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
}

.dropdown-content a:hover {
    background-color: var(--brand-teal-bg);
    color: var(--brand-teal-dk);
    padding-left: 30px;
}

.arrow-down {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 5px;
    vertical-align: middle;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    transition: var(--transition);
}

.nav-dropdown:hover .arrow-down {
    transform: rotate(180deg);
}

/* ─── DROPDOWN GRID (MEGA MENU STYLE) ────────── */
.dropdown-content--wide {
    min-width: 650px !important;
    padding: 25px !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(10px) !important;
}

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.dropdown-group {
    display: flex;
    flex-direction: column;
}

.dropdown-group-title {
    display: block;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--brand-600);
    text-transform: none;
    margin-bottom: 1px;
    padding-bottom: 1px;
    border-bottom: 1px solid var(--neutral-200);
}

.dropdown-group a {
    padding: 8px 0 !important;
    border-bottom: none !important;
    font-size: 1.0rem !important;
    font-weight: 600 !important;
    color: var(--text-secondary) !important;
}

.dropdown-group a:hover {
    background: transparent !important;
    color: var(--brand-600) !important;
    transform: translateX(5px);
}

@media (max-width: 991px) {
    .dropdown-content--wide {
        min-width: 100% !important;
        position: static !important;
        transform: none !important;
        box-shadow: none !important;
        padding: 15px !important;
        background: rgba(255, 255, 255, 0.35) !important;
    }

    .dropdown-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .dropdown-group-title {
        color: #0033a0;
        border-bottom-color: rgba(0, 51, 160, 0.15);
    }

    .dropdown-group a {
        color: #ffffff !important;
    }
}

/* Submenús navbar: colapsable móvil / tablet (≤1024px) — Patologías, Servicios, Información paciente */
.nav-patologias-toggle,
.nav-servicios-toggle,
.nav-paciente-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 100px;
    transition: var(--transition);
}

/* ─── INSTAGRAM BANNER ────────────────────────── */
.instagram-banner {
    background: linear-gradient(135deg, #0033a0 0%, #009984 100%);
    padding: 30px 0;
    color: var(--white);
}

.instagram-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.instagram-banner-content {
    display: flex;
    align-items: center;
    gap: 18px;
}

.instagram-text h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.instagram-text p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0;
}

.btn-instagram {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 24px;
}

.btn-instagram:hover {
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
    border-color: var(--white);
}

@media (max-width: 768px) {
    .instagram-banner-inner {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }

    .instagram-banner-content {
        flex-direction: column;
        gap: 12px;
    }
}

.nav-patologias-toggle:hover,
.nav-servicios-toggle:hover,
.nav-paciente-toggle:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.nav-patologias-toggle__chevron,
.nav-servicios-toggle__chevron,
.nav-paciente-toggle__chevron {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform 0.2s ease;
}

.nav-dropdown--patologias.is-open .nav-patologias-toggle__chevron,
.nav-dropdown--servicios.is-open .nav-servicios-toggle__chevron,
.nav-dropdown--paciente.is-open .nav-paciente-toggle__chevron {
    transform: rotate(180deg);
}

@media (max-width: 1024px) {

    .nav-dropdown--patologias>.nav-link--patologias-desktop,
    .nav-dropdown--servicios>.nav-link--servicios-desktop,
    .nav-dropdown--paciente>.nav-link--paciente-desktop {
        display: none !important;
    }

    .nav-patologias-toggle,
    .nav-servicios-toggle,
    .nav-paciente-toggle {
        display: inline-flex;
    }

    .nav-dropdown--patologias:not(.is-open):hover .dropdown-content,
    .nav-dropdown--servicios:not(.is-open):hover .dropdown-content,
    .nav-dropdown--paciente:not(.is-open):hover .dropdown-content {
        opacity: 0 !important;
        visibility: hidden !important;
        max-height: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
    }

    .nav-dropdown--patologias .dropdown-content.dropdown-content--wide {
        position: static !important;
        left: auto !important;
        transform: none !important;
        min-width: 100% !important;
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        overflow: hidden;
        margin: 0;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        transition: max-height 0.35s ease, opacity 0.25s ease, visibility 0.25s ease, padding 0.25s ease;
    }

    .nav-dropdown--patologias.is-open .dropdown-content.dropdown-content--wide {
        max-height: 75vh !important;
        opacity: 1 !important;
        visibility: visible !important;
        overflow-y: auto !important;
        padding: 15px !important;
        margin-top: 8px;
    }

    .nav-dropdown--servicios .dropdown-content:not(.dropdown-content--wide),
    .nav-dropdown--paciente .dropdown-content:not(.dropdown-content--wide) {
        position: static !important;
        left: auto !important;
        transform: none !important;
        min-width: 100% !important;
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        overflow: hidden;
        margin: 0;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        box-shadow: none !important;
        transition: max-height 0.35s ease, opacity 0.25s ease, visibility 0.25s ease, padding 0.25s ease;
    }

    .nav-dropdown--servicios.is-open .dropdown-content:not(.dropdown-content--wide),
    .nav-dropdown--paciente.is-open .dropdown-content:not(.dropdown-content--wide) {
        max-height: 70vh !important;
        opacity: 1 !important;
        visibility: visible !important;
        overflow-y: auto !important;
        padding: 12px 0 !important;
        margin-top: 8px;
        border-radius: var(--radius-lg);
        background: rgba(85, 109, 160, 0.82) !important;
    }

    .nav-dropdown--servicios.is-open .dropdown-content a,
    .nav-dropdown--paciente.is-open .dropdown-content a {
        color: #ffffff !important;
        border-bottom-color: rgba(0, 0, 0, 0.08);
    }
}

@media (min-width: 1025px) {

    .nav-patologias-toggle,
    .nav-servicios-toggle,
    .nav-paciente-toggle {
        display: none !important;
    }
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: #00b49c;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    cursor: pointer;
    padding: 8px 10px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

/* ─── HERO ──────────────────────────────────── */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow-x: hidden;
}

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

.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    opacity: 0;
    animation: fadeSlide 15s infinite;
}

.hero-img:nth-child(1) {
    animation-delay: 0s;
}

.hero-img:nth-child(2) {
    animation-delay: 5s;
}

.hero-img:nth-child(3) {
    animation-delay: 10s;
}

@keyframes fadeSlide {
    0% {
        opacity: 0;
        transform: scale(1.02);
    }

    6.66% {
        opacity: 1;
    }

    33.33% {
        opacity: 1;
    }

    40% {
        opacity: 0;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(1);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.86) 0%, rgba(17, 34, 64, 0.61) 60%, rgba(0, 153, 132, 0.54) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 120px;
    padding-bottom: 80px;
    max-width: 90%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 100px;
    padding: 14px 18px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.06em;
    margin-bottom: 28px;
    margin-top: 14px;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    z-index: 10;
    pointer-events: auto;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.hero-badge:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.40);
    transform: translateY(-2px);
}

.hero-badge-img {
    height: 30px;
    width: auto;
    object-fit: contain;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-teal);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(0, 180, 156, 0.6);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(0, 180, 156, 0);
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 1.1rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.80);
    max-width: 560px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.stat-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.04em;
    margin-top: 4px;
    display: block;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: rgba(255, 255, 255, 0.20);
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    right: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 2;
}

.scroll-line {
    width: 2px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* ─── SERVICES ──────────────────────────────── */
.services {
    background: var(--neutral-100);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 24px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    border: 5px solid var(--neutral-300);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    transition-delay: calc(var(--i, 0) * 0.08s);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-600), var(--brand-teal));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: #00B49C;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card--featured {
    background: linear-gradient(145deg, var(--brand-700), var(--brand-600));
    border-color: #e2e8f0;
    color: var(--white);
}

.service-card--featured::before {
    background: linear-gradient(90deg, var(--brand-teal), var(--brand-teal-lt));
}

.service-card--featured .service-desc,
.service-card--featured .service-features li {
    color: rgba(255, 255, 255, 0.80);
}

.service-card--featured .service-link {
    color: var(--brand-200);
}

.service-badge-featured {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.20);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 100px;
    letter-spacing: 0.06em;
}

.service-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.service-card--featured .service-icon {
    background: transparent;
}

.service-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #0033a0;
}

.service-name-destacado {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #00B49C;
}

.service-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
    align-self: flex-start;
    width: 100%;
}

.service-features li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    text-align: left;
}

.service-features li::before {
    content: '✓';
    color: var(--brand-teal-dk);
    font-weight: 700;
    width: 18px;
    height: 18px;
    background: var(--brand-teal-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.service-card--featured .service-features li::before {
    color: var(--brand-700);
    background: rgba(255, 255, 255, 0.20);
}

.service-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--brand-teal-dk);
    text-decoration: none;
    transition: var(--transition);
}

.service-link:hover {
    gap: 4px;
    opacity: 0.8;
}

.service-card--featured .btn-nav {
    background: var(--white);
    color: #00b49c !important;
}

.service-card--featured .btn-nav:hover {
    background: var(--brand-teal-lt);
    color: var(--white) !important;
}

/* ─── ABOUT ─────────────────────────────────── */
.about {
    background: #f3f5f7;
    color: var(--text-primary);
}

.about .section-title {
    color: #0033a0;
}

.about .gradient-text-light {
    color: #00b49c;
    background: none;
    -webkit-text-fill-color: #00b49c;
}

.about .section-desc {
    color: var(--text-secondary);
}

.about .section-eyebrow {
    color: var(--brand-600);
}

.about .section-eyebrow::before {
    background: var(--brand-600);
}


/* ─── DOCTORS DIRECTORY ─────────────────────── */
.doctors-directory {
    margin-top: 60px;
}

.directory-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.search-wrap {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    border-radius: 100px;
    border: 5px solid #00b49c;
    background: var(--neutral-100);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--brand-teal);
    background: var(--white);
    border: 5px solid #00b49c;
    box-shadow: 0 4px 20px rgba(0, 180, 156, 0.1);
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    pointer-events: none;
}

.filter-scroll-wrapper {
    position: relative;
    width: auto;
    max-width: 100%;
    overflow: visible;
}

.filter-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 0 12px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.filter-tabs::-webkit-scrollbar {
    display: none;
}

.filter-indicator {
    position: absolute;
    top: 4px;
    bottom: 12px;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.filter-indicator svg {
    width: 32px;
    height: 32px;
    color: var(--white);
    background: var(--brand-600);
    border-radius: 50%;
    padding: 6px;
    box-shadow: var(--shadow-md);
    pointer-events: auto;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
}

.filter-indicator svg:hover {
    background: var(--brand-teal-dk);
    transform: scale(1.1);
}

.filter-indicator--left {
    left: -10px;
    background: linear-gradient(to right, #f3f5f7 40%, transparent);
    justify-content: flex-start;
}

.filter-indicator--right {
    right: -10px;
    background: linear-gradient(to left, #f3f5f7 40%, transparent);
    justify-content: flex-end;
}

.filter-scroll-wrapper.has-scroll-left .filter-indicator--left {
    opacity: 1;
    pointer-events: auto;
}

.filter-scroll-wrapper.has-scroll-right .filter-indicator--right {
    opacity: 1;
    pointer-events: auto;
}

.filter-btn {
    padding: 10px 20px;
    border-radius: 100px;
    border: 5px solid var(--neutral-300);
    background: var(--white);
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: var(--brand-teal);
    color: var(--brand-teal-dk);
}

.filter-btn.active {
    background: var(--brand-600);
    border-color: var(--brand-600);
    color: var(--white);
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 30px;
}

.doctor-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 0;
    border: 5px solid var(--neutral-300);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-teal-lt);
    border-color: #00b099;
}

.doctor-img-container {
    width: calc(100% - 32px);
    height: 300px;
    margin: 16px 16px 0 16px;
    border-radius: var(--radius-md);
    background: var(--neutral-200);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

@media (max-width: 768px) {
    .doctor-img-container {
        height: auto;
        aspect-ratio: 500 / 465;
    }
}

.doctor-img-container::after {
    content: "+";
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 5px solid #065086;
    background: rgba(255, 255, 255, 0.92);
    color: #09518b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
    box-shadow: 0 8px 24px rgba(0, 180, 156, 0.28);
}

.doctor-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: var(--transition);
}

.doctor-card:hover .doctor-img {
    transform: scale(1.05);
}

.doctor-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.doctor-info {
    flex-grow: 1;
}

.doctor-name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--brand-900);
    margin-bottom: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.doctor-name:hover {
    color: var(--brand-600);
}

.doctor-title {
    font-size: 0.85rem;
    color: var(--brand-600);
    font-weight: 600;
    margin-bottom: 12px;
}

.doctor-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.spec-tag {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 100px;
    background: var(--brand-teal-bg);
    color: var(--brand-teal-dk);
}

.doctor-short-info {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.doctor-infantil-info {
    font-size: 0.82rem;
    color: var(--brand-teal-dk);
    line-height: 1.5;
    margin-bottom: 20px;
    background: var(--brand-teal-bg);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.doctor-card.hidden-doctor {
    display: none;
}

.doctor-card .btn-sm {
    margin-top: auto;
    width: 100%;
    justify-content: center;
}




/* ─── TECHNOLOGY ─────────────────────────────── */
.technology {
    background: #f3f5f7;
}

.technology .section-eyebrow {
    color: var(--brand-600);
}

.technology .section-eyebrow::before {
    background: var(--brand-600);
}

.technology .section-title {
    color: #0033a0;
}

.technology .gradient-text {
    color: #0033a0;
    background: none;
    -webkit-text-fill-color: #0033a0;
}

.technology .section-desc {
    color: var(--text-secondary);
}

.tech-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.tech-img-wrap {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    height: 480px;
}

.tech-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tech-glow {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 80px;
    background: linear-gradient(to top, var(--brand-teal), transparent);
    filter: blur(30px);
    opacity: 0.5;
}

.tech-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.tech-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px;
    border-radius: var(--radius-md);
    background: var(--neutral-100);
    border: 5px solid var(--neutral-200);
    transition: var(--transition);
}

.tech-item:hover {
    transform: translateY(-8px);
    background: var(--brand-teal-bg);
    border-color: #00b49c;
    box-shadow: var(--shadow-md);
}

.tech-num {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--brand-teal-lt);
    flex-shrink: 0;
    line-height: 1;
    min-width: 36px;
}

.tech-item h4 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 6px;
    color: #0033a0;
}

.tech-item p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ─── TESTIMONIALS ──────────────────────────── */
.testimonials {
    background: var(--white);
}

.test-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.test-card {
    background: var(--neutral-100);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--neutral-300);
    transition: var(--transition);
}

.test-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.test-card--featured {
    background: linear-gradient(145deg, var(--brand-700), var(--brand-600));
    border-color: transparent;
    color: var(--white);
    border-top: 3px solid var(--brand-teal);
}

.test-card--featured .test-text {
    color: rgba(255, 255, 255, 0.85);
}

.test-card--featured .test-author p {
    color: rgba(255, 255, 255, 0.65);
}

.test-stars {
    color: #f59e0b;
    font-size: 1.1rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.test-card--featured .test-stars {
    color: #fde68a;
}

.test-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 24px;
    font-style: italic;
}

.test-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.test-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--white);
    background: #0033a0;
    flex-shrink: 0;
}

.test-author strong {
    font-family: var(--font-display);
    font-size: 0.95rem;
}

.test-author p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ─── CONTACT ───────────────────────────────── */
.contact {
    background: #f3f5f7;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 80px;
    align-items: start;
}

.contact-info {
    padding-top: 12px;
}

.contact-desc {
    color: rgb(71, 85, 105);
    line-height: 1.75;
    margin-bottom: 40px;
    font-size: 1rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    width: 20px;
    height: 20px;
    color: #009984;
    flex-shrink: 0;
    margin-top: 4px;
}

.contact-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.contact-item strong {
    font-family: var(--font-display);
    color: #002d8e;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 3px;
}

.contact-item p {
    color: rgb(0, 153, 132);
    font-size: 0.88rem;
    line-height: 1.55;
}

/* FORM */
.contact-form-wrap {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 44px;
    box-shadow: var(--shadow-lg);
    border: 5px solid;
    border-color: #00ae97;
    min-height: 780px;
    min-width: 0;
    max-width: 100%;
}

.form-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 28px;
    color: var(--text-primary);
    color: #002d8e;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.form-group label {
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border: 1.5px solid var(--neutral-300);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--text-primary);
    background: var(--white);
    transition: var(--transition);
    outline: none;
    display: block;
}

.form-group textarea {
    resize: vertical;
    padding-bottom: 12px;
    padding-right: 12px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--brand-teal);
    box-shadow: 0 0 0 3px rgba(0, 180, 156, 0.15);
}

.form-group select {
    appearance: none;
    cursor: pointer;
}

.form-group input[type="date"] {
    color-scheme: light !important;
}

.form-success {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.form-success h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.form-success p {
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.divider-teal {
    height: 3px;
    width: 100%;
    background-color: #00B49C;
}

/* ─── FOOTER ─────────────────────────────────── */
.footer {
    background: #00ae9a;
    padding-top: 50px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1.8fr;
    gap: 60px;
    padding-bottom: 56px;
}

.footer-brand {
    max-width: 320px;
}

.footer-desc {
    color: #fff;
    font-size: 0.88rem;
    line-height: 1.7;
    margin-top: 16px;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #002d8e, #0033a0);
    color: var(--white);
    box-shadow: 0 8px 32px rgba(0, 180, 156, 0.35);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    transition: var(--transition);
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 180, 156, 0.50);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.footer-map {
    width: 100%;
}

.footer-map-container {
    width: 100%;
    height: 250px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 5px solid #0033a0;
    box-shadow: var(--shadow-sm);
}

.footer-map-container iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col h5 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.09rem;
    color: #002d8e;
    letter-spacing: 0.06em;
    text-transform: none;
    margin-bottom: 8px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.80);
    text-decoration: none;
    font-size: 1.10rem;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--white);
    opacity: 1;
}

.footer-final {
    color: #00ae97;
}

.footer-bottom {
    border-top: 2px solid rgb(0 178 154);
    background-color: #0033a0;
    padding: 20px 0;
}

.footer-highlight {
    color: #00ac95;
    font-weight: 800;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.8rem;
    line-height: 1.6;
}

/* ─── FOOTER STYLE TOGGLE ───────────────────── */
.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    width: 100%;
}

.footer-style-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 100px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.toggle-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    transition: .4s;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked+.slider {
    background-color: var(--brand-teal);
}

input:focus+.slider {
    box-shadow: 0 0 1px var(--brand-teal);
}

input:checked+.slider:before {
    transform: translateX(20px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* ─── FOOTER LIGHT MODE OVERRIDES ───────────── */
footer.footer {
    transition: background-color 0.5s ease, color 0.5s ease;
}

footer.footer--light {
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0;
}

footer.footer--light .footer-desc {
    color: #475569 !important;
}

footer.footer--light .footer-col h5 {
    color: #0033a0 !important;
}

footer.footer--light .footer-col a {
    color: #64748b !important;
}

footer.footer--light .footer-col a:hover {
    color: #00b49c !important;
}

footer.footer--light .footer-map-container {
    border-color: #e2e8f0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

footer.footer--light .footer-bottom {
    background-color: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
}

footer.footer--light .footer-bottom p {
    color: #64748b !important;
}

footer.footer--light .footer-highlight {
    color: #00b49c !important;
}

footer.footer--light .footer-style-toggle {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

footer.footer--light .toggle-label {
    color: #475569 !important;
}

footer.footer--light .social-btn {
    background: #f1f5f9;
    color: #0033a0;
    box-shadow: none;
    border: 1px solid #e2e8f0;
}

footer.footer--light .social-btn:hover {
    background: #0033a0;
    color: #fff;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .footer-bottom-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    .footer-ceola-backed {
        margin-left: 0 !important;
        justify-content: center;
        width: 100%;
    }
}

/* ─── RESPONSIVE ────────────────────────────── */
@media (max-width: 1024px) {

    .about-grid,
    .tech-showcase,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-images {
        height: 380px;
    }

    .tech-img-wrap {
        height: 320px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .nav-links {
        gap: 15px;
    }

    /* Glassmorphism for navbar scrolled on tablet */
    .navbar.scrolled {
        background: #5171b27d;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

@media (max-width: 768px) {
    body.nav-open .top-bar {
        display: none !important;
    }

    .top-bar-inner {
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        padding: 6px 0;
    }

    .top-bar-left {
        display: flex;
        flex-direction: row;
        width: 100%;
        gap: 0;
        align-items: center;
        justify-content: space-between;
    }

    .top-bar-left .top-bar-item:not(.top-bar-link),
    .top-bar-left .top-bar-divider {
        display: none !important;
    }

    .top-bar-left .top-bar-link {
        flex: 0 1 auto;
        justify-content: flex-start;
        text-align: left;
        padding: 0;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .top-bar-left .top-bar-link:last-child {
        justify-content: flex-end;
        text-align: right;
    }

    .mobile-break-span {
        display: inline;
    }

    .top-bar-right {
        gap: 10px;
        width: 100%;
        justify-content: space-between;
    }

    .hero-content {
        padding-bottom: 48px;
    }



    /* Offset navbar to avoid overlapping top bar */
    .navbar {
        top: 90px;
    }

    body.nav-open .navbar {
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        top: 0 !important;
        padding-top: 35px;
        backdrop-filter: blur(0.1px);
        background: #5171b200;
    }

    .navbar.scrolled {
        top: 0;
    }

    .section-pad {
        padding: 72px 0;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 24px;
        z-index: 998;
    }

    .nav-links.open {
        display: flex;
        justify-content: flex-start;
        padding-top: 30%;
        background: rgba(82, 105, 152, 0.58) !important;
        backdrop-filter: blur(6.7px);
        -webkit-backdrop-filter: blur(15px) !important;

    }

    .nav-link {
        font-size: 1.4rem;
        color: #e9e9e9;
    }

    .nav-link:hover {
        color: #009984;
        background: rgba(0, 153, 132, 0.1);
    }

    .nav-patologias-toggle,
    .nav-servicios-toggle,
    .nav-paciente-toggle {
        font-size: 1.4rem;
        justify-content: center;
        color: #ffffff;
    }

    .nav-patologias-toggle:hover,
    .nav-servicios-toggle:hover,
    .nav-paciente-toggle:hover,
    .nav-dropdown.is-open .nav-patologias-toggle,
    .nav-dropdown.is-open .nav-servicios-toggle,
    .nav-dropdown.is-open .nav-paciente-toggle {
        color: #f5f7f7;
        background: rgb(0 153 132 / 76%);
    }

    /* Glassmorphism for navbar scrolled on mobile */
    .navbar.scrolled {
        background: #5171b27d;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    /* Fix btn-nav visibility in mobile glassmorphism menu */
    .nav-links .btn-nav {
        background: #009984;
        color: #fff !important;
    }

    .nav-dropdown--patologias,
    .nav-dropdown--servicios,
    .nav-dropdown--paciente {
        width: 86%;
        max-width: 420px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .hamburger {
        display: flex;
        z-index: 999;
    }

    .logo {
        position: relative;
        z-index: 999;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-scroll {
        display: none !important;
    }

    .hero-stats {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px 24px;
        width: 100%;
    }

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

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

    .about-images {
        height: 280px;
    }

    .about-img-main {
        width: 75%;
        height: 80%;
    }

    .about-img-accent {
        width: 60%;
        height: 55%;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrap {
        padding: 28px 16px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
        min-height: 900px;
        /* Previene el salto visual hacia el footer al cambiar de pestaña */
    }

    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: center center;
    }

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

    .stat {
        flex: 1 1 calc(50% - 24px);
        min-width: 120px;
        text-align: center;
    }

    .stat:last-child {
        flex: 1 1 100%;
    }

    .stat-divider {
        display: none !important;
    }

    .hero-content {
        padding-top: 150px;
    }
}

@media (max-width: 480px) {
    .top-bar-inner {
        justify-content: center;
    }

    .btn-sustentabilidad {
        display: none;
    }

    .navbar {
        top: 110px;
    }

    .navbar.scrolled {
        top: 0;
        background: #5171b27d;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .hero-content {
        padding-top: 200px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

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

    /* Prevent about badge overflow */
    .about-badge-float {
        left: 10px;
        bottom: -10px;
        width: auto;
        font-size: 0.7rem;
    }

    .about-img-main {
        width: 85%;
    }

    .about-img-accent {
        width: 70%;
    }

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

/* ─── FLOATING WHATSAPP ─────────────────────── */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    color: #FFF;
}

.whatsapp-float img {
    width: 32px;
    height: 32px;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }
}

/* ─── MODAL SYSTEM ──────────────────────────── */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 0;
}

.modal-container {
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: var(--radius-xl);
    position: relative;
    z-index: 1;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    background: #5171b27d;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: scale(0.9) translateY(20px);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.modal.active .modal-container {
    transform: scale(1) translateY(0);
    background: #5171b27d;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #009984;
    border: none;
    color: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--brand-teal);
    color: var(--white);
    transform: rotate(90deg);
}

.modal-close svg {
    width: 24px;
    height: 24px;
}

.modal-content {
    padding: 60px 44px;
    background: #f5f6fff7;
}

/* Loader */
.modal-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--neutral-200);
    border-top-color: var(--brand-teal);
    border-radius: 50%;
    animation: modalSpin 0.8s linear infinite;
}

@keyframes modalSpin {
    to {
        transform: rotate(360deg);
    }
}

/* ─── DOCTOR PROFILE MODAL ─────────────────── */
.doctor-profile-modal {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.doctor-profile-header {
    display: flex;
    gap: 32px;
    align-items: center;
}

.doctor-profile-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #009984;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.doctor-profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-profile-info {
    flex-grow: 1;
}

.doctor-profile-name {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--brand-700);
    margin-bottom: 8px;
    line-height: 1.1;
}

.doctor-profile-title {
    font-size: 1.1rem;
    color: var(--brand-teal-dk);
    font-weight: 600;
    margin-bottom: 16px;
}

.doctor-profile-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.profile-tag {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    background: var(--neutral-100);
    border: 1px solid var(--neutral-300);
    border-radius: 100px;
    color: var(--text-secondary);
}

.doctor-profile-body {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.profile-section h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: #0033a0;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-section h3::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background: var(--neutral-300);
}

.profile-section p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.profile-section ul {
    list-style: none;
    padding: 0;
}

.profile-section ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.profile-section ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--brand-teal);
    font-weight: bold;
}

.modal-actions {
    margin-top: 1px !important;
    padding-top: 1px !important;
    border-top: none;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.modal-actions .btn {
    margin: 0 auto !important;
}

/* Response for small screens */
@media (max-width: 640px) {
    .doctor-profile-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .doctor-profile-img {
        width: 120px;
        height: 120px;
    }

    .doctor-profile-tags {
        justify-content: center;
    }

    .modal-content {
        padding: 40px 24px;
    }

    .doctor-profile-name {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .modal-content {
        padding: 48px 24px;
    }

    .container .top-bar-inner {
        margin-left: 1px;
        margin-right: 1px;
    }
}

/* ─── PATOLOGÍAS ────────────────────────────── */
.patologias {
    background: var(--white);
}

.patologias-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.patologia-card {
    background: var(--neutral-100);
    border-radius: var(--radius-lg);
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition);
    border: 5px solid var(--neutral-200);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.patologia-card:hover {
    transform: translateY(-8px);
    background: var(--brand-teal-bg);
    border-color: #00b49c;
    box-shadow: var(--shadow-md);
}

.patologia-icon {
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--brand-teal-dk);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.patologia-card:hover .patologia-icon {
    background: var(--brand-teal-dk);
    color: var(--white);
    transform: scale(1.1);
}

.patologia-icon svg {
    width: 28px;
    height: 28px;
}

.patologia-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: #0033a0;
    margin-bottom: 12px;
}

.patologia-info {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Responsividad para patologías */
@media (max-width: 1100px) {
    .patologias-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .patologias-grid {
        grid-template-columns: 1fr;
    }
}

/* User Overrides */
@media (max-width: 480px) {
    .btn-nav.btn-convenios {
        padding: 8px 20px;
    }

    .hero-badge {
        margin-top: 5px;
    }

    .hero-desc {
        margin-bottom: 20px;
    }

    .hero-title {
        font-size: 2.2rem;
    }
}

/* ─── DROPDOWN CONTENT DARK TEXT FOR GLASSMORPHISM ── */
@media (max-width: 1024px) {

    .nav-dropdown--servicios .dropdown-content a,
    .nav-dropdown--paciente .dropdown-content a {
        color: #0f172a !important;
        border-bottom-color: rgba(0, 0, 0, 0.08);
    }

    .nav-dropdown--servicios .dropdown-content a:hover,
    .nav-dropdown--paciente .dropdown-content a:hover {
        color: #009984 !important;
        background-color: rgba(0, 153, 132, 0.08) !important;
    }

    .nav-dropdown--servicios.is-open .dropdown-content:not(.dropdown-content--wide),
    .nav-dropdown--paciente.is-open .dropdown-content:not(.dropdown-content--wide) {
        background: rgba(255, 255, 255, 0.35) !important;
    }

    .nav-dropdown--patologias.is-open .dropdown-content.dropdown-content--wide {
        background: rgba(255, 255, 255, 0.35) !important;
    }

    .dropdown-group-title {
        color: #0033a0 !important;
        border-bottom-color: rgba(0, 51, 160, 0.15);
    }

    .dropdown-group a {
        color: #ffffff !important;
    }

    .dropdown-group a:hover {
        color: #009984 !important;
    }


}

/* ─── RECLAMOS FORM OVERRIDES ────────────── */


#btn-submit-reclamo-text {
    display: block;
    width: auto;
    text-align: center;
}

/* ─── HIDE INJECTED FLOATING BUTTON ────────── */
html body #visum-floating-btn {
    display: none !important;
}

/* Prevent reCAPTCHA load jump */
.tab-hidden {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    z-index: -1 !important;
}

/* OVERRIDES PARA PANEL DE PATOLOGIAS EN MOVIL */
@media (max-width: 1024px) {
    .nav-dropdown--patologias.is-open .dropdown-content.dropdown-content--wide {
        background: #009984bf !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
    }

    .dropdown-group-title {
        color: #ffffff !important;
        border-bottom-color: rgba(255, 255, 255, 0.3) !important;
    }

    .dropdown-group a {
        color: #ffffff !important;
        display: block !important;
        padding: 12px 16px !important;
        font-weight: 500 !important;
        border-radius: var(--radius-md) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
}

/* OVERRIDES PARA PANELES SERVICIOS Y PACIENTE EN MOVIL */
@media (max-width: 1024px) {

    .nav-dropdown--servicios.is-open .dropdown-content:not(.dropdown-content--wide),
    .nav-dropdown--paciente.is-open .dropdown-content:not(.dropdown-content--wide) {
        background: #009984bf !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
    }

    .nav-dropdown--servicios .dropdown-content a,
    .nav-dropdown--paciente .dropdown-content a {
        color: #ffffff !important;
        border-bottom-color: rgba(255, 255, 255, 0.1) !important;
    }

    .nav-dropdown--servicios .dropdown-content a:hover,
    .nav-dropdown--paciente .dropdown-content a:hover {
        color: #ffffff !important;
        background-color: rgba(255, 255, 255, 0.15) !important;
    }
}

/* SCROLLBAR NOTORIO Y MAX HEIGHT PARA PANELES EN MOVIL */
@media (max-width: 1024px) {
    .nav-dropdown.is-open .dropdown-content {
        max-height: 40vh !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.8) rgba(255, 255, 255, 0.15);
    }

    /* Chrome/Safari Scrollbar */
    .nav-dropdown.is-open .dropdown-content::-webkit-scrollbar {
        width: 10px;
    }

    .nav-dropdown.is-open .dropdown-content::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.15);
        border-radius: 10px;
        margin: 8px 0;
    }

    .nav-dropdown.is-open .dropdown-content::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.9);
        border-radius: 10px;
        border: 2px solid rgba(0, 153, 132, 0.5);
        /* borde para que resalte m�s */
    }


}

/* RESET FOR ACCORDION BUTTONS */
button.dropdown-group-title {
    background: transparent;
    border-left: none;
    border-right: none;
    border-top: none;
    width: 100%;
    text-align: left;
    cursor: default;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
    font-size: inherit;
}

.dropdown-group-chevron {
    display: none;
}

.dropdown-group-content {
    display: block;
}

/* ACCORDION MOBILE LOGIC */
@media (max-width: 1024px) {
    button.dropdown-group-title {
        cursor: pointer;

        padding-top: 0px;
        padding-bottom: 14px;
        padding-right: 10px;
        padding-left: 10px;
    }

    .dropdown-group-chevron {
        display: block;
        width: 10px;
        height: 10px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        transition: transform 0.3s ease;
        margin-right: 8px;
    }

    .dropdown-group.is-open .dropdown-group-chevron {
        transform: rotate(-135deg);
        margin-top: 6px;
    }

    .dropdown-group-content {
        display: none;
        padding-bottom: 16px;
    }

    .dropdown-group.is-open .dropdown-group-content {
        display: block;
        animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-5px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

.footer-webpay-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.btn-derechos-deberes {
    background: linear-gradient(to right, #1063A7 50%, #E63C41 50%) !important;
    color: #ffffff !important;
    border: none;
    padding: 16px !important;
}

.btn-derechos-deberes:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.footer-middle-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    width: 100%;
    padding-top: 0;
}

footer.footer--light .footer-middle-bar {
    border-top: 1px solid #e2e8f0;
}

.footer-middle-inner {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-middle-inner .footer-convenios-logos-container {
    margin-top: 0;
    flex-grow: 1;
}

.footer-convenios-logos-container {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    overflow: hidden;
}

.footer-fonasa-logo {
    height: 33px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-logos-carousel {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    flex-grow: 1;
    display: flex;
    align-items: center;
    height: 55px;
    mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
}

.footer-logos-carousel-track {
    display: flex;
    align-items: center;
    gap: 40px;
    animation: scrollLogos 45s linear infinite;
    width: max-content;
}

.footer-logos-carousel-track img {
    height: 35px;
    width: auto;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-logos-carousel-track img:hover {
    opacity: 1;
    transform: scale(1.05);
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ─── CUSTOM FORM STYLES FOR PRESUPUESTO ─── */
.file-upload-label:hover {
    background-color: rgba(0, 174, 154, 0.05);
}

.checkbox-group input[type="checkbox"] {
    accent-color: #00ae9a;
}

.checkbox-group label {
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    cursor: pointer;
    margin-bottom: 0;
}

/* ─── MOBILE FOOTER MIDDLE BAR OVERRIDES ─── */
@media (max-width: 768px) {
    .footer-middle-bar {
        padding: 16px 0;
    }

    .footer-convenios-logos-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .footer-logos-carousel {
        flex: 0 0 100%;
        margin-top: 8px;
    }
}

/* ==========================================================================
   FLATPICKR CUSTOM THEME FOR VISUM
   ========================================================================== */
.flatpickr-calendar {
    background: #ffffff !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    border: none !important;
    font-family: 'Outfit', sans-serif !important;
    width: 315px !important;
    padding-bottom: 10px !important;
}

.flatpickr-months {
    background-color: #00B49C !important;
    border-radius: 8px 8px 0 0 !important;
    padding: 15px 0 10px !important;
}

.flatpickr-months .flatpickr-month,
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    color: #ffffff !important;
    fill: #ffffff !important;
    height: 34px !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month .numInputWrapper {
    color: #ffffff !important;
    font-size: 1.15rem !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months option {
    color: #333333 !important;
}

.flatpickr-weekdays {
    background: #00B49C !important;
    height: 32px !important;
}

span.flatpickr-weekday {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
}

.flatpickr-days {
    width: 100% !important;
}

.dayContainer {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    padding: 10px 0 !important;
}

.flatpickr-day {
    color: #333333 !important;
    height: 38px !important;
    line-height: 38px !important;
    max-width: 38px !important;
    margin: 3px 0 !important;
    border-radius: 50% !important;
    font-weight: 500 !important;
    box-sizing: border-box !important;
    display: inline-block !important;
    border: 1px solid transparent !important;
}

.flatpickr-day.prevMonthDay {
    visibility: hidden !important;
}

.flatpickr-day.nextMonthDay {
    display: none !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover,
.flatpickr-day.selected.prevMonthDay,
.flatpickr-day.startRange.prevMonthDay,
.flatpickr-day.endRange.prevMonthDay,
.flatpickr-day.selected.nextMonthDay,
.flatpickr-day.startRange.nextMonthDay,
.flatpickr-day.endRange.nextMonthDay {
    background: #00B49C !important;
    border-color: #00B49C !important;
    color: #ffffff !important;
}

.flatpickr-day.today {
    border-color: #00B49C !important;
}

.flatpickr-day:hover,
.flatpickr-day.prevMonthDay:hover,
.flatpickr-day.nextMonthDay:hover,
.flatpickr-day:focus,
.flatpickr-day.prevMonthDay:focus,
.flatpickr-day.nextMonthDay:focus {
    background: #e6f7f5 !important;
    border-color: #e6f7f5 !important;
    color: #00B49C !important;
}

.btn-slider-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #00b49c;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.btn-slider-next:hover {
    background: #009984;
    transform: translateX(4px);
}

.btn-slider-next svg {
    width: 24px;
    height: 24px;
}

.hero-badge {
    transition: opacity 0.4s ease, transform 0.4s ease, background 0.3s, border-color 0.3s;
}

.badge-hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(-10px) !important;
    visibility: hidden;
}

/* Enfoque específico para Visum5.png (4ta imagen) en móviles */
@media (max-width: 768px) {
    picture:nth-child(4) .hero-img {
        object-position: 70% center !important;
    }
}