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

/* ============================================
       PALETA DE COLORES - INTEGRADA DESDE LOGIN
       (Mantiene compatibilidad con ambas)
       ============================================ */
:root {
    /* ===== PALETA PRINCIPAL (DESDE LOGIN) ===== */
    --primary: #77c9db;
    --primary-dark: #5ab3c7;
    --primary-deep: #3d9eb3;
    --primary-light: #a3dfed;
    --primary-soft: #daf2f7;
    --primary-glow: rgba(119, 201, 219, 0.4);
    --secondary: #1a4b5c;
    --secondary-deep: #0f2e3a;
    --accent: #4aa3b8;

    /* ===== DERIVADOS PARA COMPATIBILIDAD ===== */
    --blue-primary: #77c9db;
    --blue-deep: #3d9eb3;
    --blue-dark: #1a4b5c;
    --sky-light: #daf2f7;
    --sky-medium: #a3dfed;
    --silver: #94a3b8;
    --silver-light: #cbd5e1;
    --silver-bright: #f1f5f9;

    /* ===== BASE ===== */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-600: #475569;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    --nav-h: 110px;
    --nav-h-scrolled: 93px;
    --transition: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --bg-light: #f1f5f9;
    --bg-card: #ffffff;
    --text-dark: #1a4b5c;
    --text-muted: #475569;
    --shadow-sm: 0 2px 8px rgba(26, 75, 92, 0.08);
    --shadow-md: 0 4px 24px rgba(26, 75, 92, 0.1);
    --shadow-lg: 0 8px 40px rgba(26, 75, 92, 0.12);
    --radius: 16px;
}

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

body {
    font-family: "Inter", sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* ============================================
               NAVBAR
               ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    transition:
        height var(--transition),
        background var(--transition),
        box-shadow var(--transition),
        backdrop-filter var(--transition);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.navbar.scrolled {
    height: var(--nav-h-scrolled);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow:
        0 1px 0 rgba(0, 0, 0, 0.06),
        0 8px 32px rgba(12, 74, 110, 0.1);
}

.navbar::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 5%;
    right: 5%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(14, 165, 233, 0.3),
        transparent
    );
    transition: opacity 0.4s ease;
}

.navbar.scrolled::after {
    opacity: 0;
}

.nav-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-deep));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    flex-shrink: 0;
    transition:
        transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.3s ease;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.35);
}

.logo:hover .logo-icon {
    transform: rotate(-6deg) scale(1.05);
    box-shadow: 0 6px 24px rgba(14, 165, 233, 0.45);
}

.logo h2 {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.logo h2 span {
    color: var(--blue-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
}

.nav-links li a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.65rem 1.2rem;

    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: 0.2px;

    color: var(--text-muted);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
}

.nav-links li a::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2.5px;
    background: var(--blue-primary);
    border-radius: 4px;
    transition: transform 0.35s ease;
}

.nav-links li a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-links li a:hover {
    color: var(--text-dark);
    background: rgba(14, 165, 233, 0.08);
    transform: translateY(-1px);
}

.nav-links .btn-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 1.3rem;
    background: #3d9db315;
    border: 1.5px solid #3d9db3ae;
    color: #3d9eb3 !important;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1.02rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        transform 0.2s ease;
}

.nav-links .btn-nav-cta::after {
    display: none;
}

.nav-links .btn-nav-cta:hover {
    background: #3d9db333 !important;
    border-color: #3d9db3eb;
    color: #3d9eb3 !important;
    transform: translateY(-1px);
}

/* ===== BOTÓN AGENDA CON PLATA ===== */
.nav-links .btn-agenda {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 1.5rem;
    background: #3997ac;
    color: #fff !important;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1.02rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    border: none;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
    box-shadow: 0 4px 16px #3d9db33c;
}

.nav-links .btn-agenda::after {
    display: none;
}

.nav-links .btn-agenda:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 24px #3d9db33c;
    background: #328da1;
    color: #fff !important;
}

.menu-icon {
    display: none;
    cursor: pointer;
    color: var(--text-dark);
    font-size: 1.4rem;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: background 0.25s ease;
    flex-shrink: 0;
    border: 1.5px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.6);
}

.menu-icon:hover {
    background: rgba(14, 165, 233, 0.08);
    border-color: rgba(14, 165, 233, 0.2);
}

/* ============================================
               HERO
               ============================================ */
.hero {
    margin-top: var(--nav-h);
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--bg-light);
}

.hero-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(var(--nav-h) + 2rem) 6% 6%;
    max-width: 780px;
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.8s ease 0.3s,
        transform 0.8s ease 0.3s;
    pointer-events: none;
}

/* ===== HERO - MÁS ALTO ===== */
.hero-slider-track {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 7.7;
    /* 👈 Más alto */
    min-height: 650px;
    /* 👈 Altura mínima mayor */
    max-height: 90vh;
}

/* Tablets */
@media (max-width: 768px) {
    .hero-slider-track {
        aspect-ratio: 16 / 7.7;
        min-height: 500px;
        max-height: 75vh;
    }
}

/* Móviles */
@media (max-width: 480px) {
    .hero-slider-track {
        aspect-ratio: 1 / 1.2;
        min-height: 450px;
        max-height: 80vh;
    }
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 10s ease;
    transform: scale(1.05);
}

.hero-slide.active img {
    transform: scale(1);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to right,
            rgba(255, 255, 255, 0.85) 0%,
            rgba(255, 255, 255, 0.2) 50%,
            rgba(255, 255, 255, 0.05) 80%
        ),
        linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.1) 0%,
            transparent 40%,
            transparent 70%,
            rgba(255, 255, 255, 0.2) 100%
        );
    z-index: 1;
}

.hero-slide.active .hero-content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Badge con celeste claro */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #61c5dc26;
    border: 1.5px solid #3d9db3ae;
    color: #268398 !important;
    font-size: 0.85rem;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
    width: fit-content;
    backdrop-filter: blur(4px);
}

.hero-badge i {
    font-size: 0.8rem;
    color: #268398;
}

.hero-content h1 {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(2.4rem, 5.5vw, 4.4rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 20px #ffffff0d;
}

.hero-content h1 .gradient-text {
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-deep));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    color: #073e5e;
    line-height: 1.2;
    margin-bottom: 2rem;
    max-width: 500px;
    text-shadow: 0 1px 10px rgba(255, 255, 255, 0.052);
    font-weight: 500;
}

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

/* Botón primario con gradiente azul */
.btn-primary-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 1.5rem;
    background: #3997ac;
    color: #fff;
    font-size: 1.1rem;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 600;
    border-radius: 14px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    box-shadow: 0 3px 14px #036aa12e;
}

.btn-primary-hero:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 7px 20px #036aa12e;
}

/* Botón secundario con plata */
.btn-ghost-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.85);
    color: var(--text-dark);
    font-size: 1.1rem;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 600;
    border-radius: 14px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.btn-ghost-hero:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--silver);
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

.hero-float-card {
    position: absolute;
    z-index: 3;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 0.8rem 1.3rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.7s ease 0.9s;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.hero-slide.active .hero-float-card {
    opacity: 1;
}

.hero-float-card i {
    color: var(--blue-primary);
    font-size: 1.1rem;
}

.float-card-1 {
    bottom: 16%;
    right: 5%;
    animation: floatY 5s ease-in-out infinite;
}

.float-card-2 {
    top: 24%;
    right: 7%;
    animation: floatY 6s ease-in-out infinite 1.5s;
}

@keyframes floatY {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.float-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse-dot 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse-dot {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
    }
}

.hero-dots {
    position: absolute;
    bottom: 2rem;
    left: 6%;
    z-index: 4;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: right;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition:
        background 0.3s ease,
        width 0.4s ease,
        transform 0.3s ease;
    border: none;
    padding: 0;
    backdrop-filter: blur(4px);
}

.hero-dot.active {
    background: var(--blue-primary);
    width: 32px;
    transform: scale(1.1);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--text-dark);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        background 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.hero:hover .hero-arrow {
    opacity: 1;
    pointer-events: auto;
}

.hero-arrow:hover {
    background: var(--blue-primary);
    color: #fff;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 4px 28px rgba(14, 165, 233, 0.3);
}

.hero-arrow-prev {
    left: 2rem;
}

.hero-arrow-next {
    right: 2rem;
}

/* ============================================
               SECCIONES GENERALES
               ============================================ */
.section {
    padding: 6rem 0;
}

.section-light {
    background: var(--bg-light);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

.section-title {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(2.2rem, 3.2vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 3.5rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.section-title span {
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-deep));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
               COMPETITIVE EDGE
               ============================================ */
.competitive-edge {
    background: var(--bg-light);
    padding: 4rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.edge-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.edge-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.edge-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue-primary), var(--silver));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.edge-item:hover::before {
    transform: scaleX(1);
}

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

.edge-icon {
    font-size: 2.4rem;
    color: var(--blue-primary);
    margin-bottom: 1rem;
    display: inline-block;
    background: rgba(224, 242, 254, 0.3);
    width: 64px;
    height: 64px;
    line-height: 64px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.edge-item:hover .edge-icon {
    background: rgba(224, 242, 254, 0.5);
}

.edge-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 700;
}

.edge-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ============================================
               SERVICIOS
               ============================================ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue-primary), var(--silver));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 2.8rem;
    color: var(--blue-primary);
    margin-bottom: 1.25rem;
    display: inline-block;
    background: rgba(224, 242, 254, 0.3);
    width: 72px;
    height: 72px;
    line-height: 72px;
    border-radius: 50%;
    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

.service-card:hover .service-icon {
    background: rgba(224, 242, 254, 0.5);
    transform: scale(1.05);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 700;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
               SEDES
               ============================================ */
.sedes-section {
    padding: 6rem 0;
    background: var(--bg-light);
}

.sedes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.sede-card {
    background: var(--bg-card);
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.sede-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--silver), var(--blue-primary));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.sede-card:hover::after {
    transform: scaleX(1);
}

.sede-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.sede-icon {
    font-size: 2.6rem;
    color: var(--blue-primary);
    margin-bottom: 1rem;
    display: inline-block;
    background: rgba(224, 242, 254, 0.3);
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

.sede-card:hover .sede-icon {
    background: rgba(224, 242, 254, 0.5);
    transform: scale(1.05);
}

.sede-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 700;
}

.sede-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.sede-card p i {
    width: 22px;
    color: var(--blue-primary);
}

.ver-mapa {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 0.75rem;
    color: var(--blue-primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition:
        color 0.25s ease,
        gap 0.25s ease;
}

.ver-mapa i {
    transition: transform 0.25s ease;
}

.ver-mapa:hover {
    color: var(--blue-deep);
    gap: 10px;
}

.ver-mapa:hover i {
    transform: translateX(4px);
}
/* ===========================================
   FOOTER — MODERNO, ESTILO QUICKSAND
   ============================================ */
.footer {
    --teal: #ffffffe1;
    --teal-soft: #3997ac6a;
    --teal-line: #3997ac32;

    background: var(--blue-dark);
    color: rgba(255, 255, 255, 0.917);
    padding: 6.5rem 0 0;
    position: relative;
    font-family: "Quicksand", sans-serif !important;
    overflow: hidden;
}

/* Curva de sonrisa: divisor superior, guiño sutil al rubro dental */
.footer::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 32px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 32' preserveAspectRatio='none'%3E%3Cpath d='M0 8 Q300 30 600 8 T1200 8' fill='none' stroke='%233FCF8E' stroke-width='2' stroke-linecap='round' opacity='0.4'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    pointer-events: none;
}

/* ===== MAIN ===== */
.footer-main {
    display: flex;
    gap: 4.5rem;
    padding-bottom: 3.5rem;
}

/* ===== BRAND ===== */
.footer-brand {
    flex: 0 0 270px;
}

.footer-logo {
    height: 55px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 1.25rem;
}

.footer-desc {
    font-size: 0.85rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.414);
    margin: 0 0 1.5rem;
    max-width: 240px;
    font-weight: 400;
}

.footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--teal-soft);
    color: var(--teal);
    border: 1px solid var(--teal-line);
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition:
        background 0.25s ease,
        transform 0.25s ease,
        color 0.25s ease;
}

.footer-cta i {
    font-size: 0.7rem;
    transition: transform 0.25s ease;
}

.footer-cta:hover {
    background: var(--teal);
    color: var(--blue-dark);
    transform: translateY(-2px);
}

.footer-cta:hover i {
    transform: translateX(3px);
}

/* ===== LINKS ===== */
.footer-links {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

.footer-col h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: "Quicksand", sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.415);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 1.4rem;
}

.footer-col h4::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--teal);
    flex-shrink: 0;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.65rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
}

.footer-col ul li i {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.2);
    width: 0.9rem;
    text-align: center;
    flex-shrink: 0;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 400;
}

.footer-col ul li a:hover {
    color: var(--teal);
}

.footer-col ul li span {
    color: rgba(255, 255, 255, 0.22);
    margin-right: 0.35rem;
}

/* ===== REDES SOCIALES ===== */
.social-links {
    display: flex;
    gap: 8px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease,
        border-color 0.25s ease;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.social-links a:hover {
    color: var(--blue-dark);
    background: var(--teal);
    border-color: var(--teal);
    transform: translateY(-3px);
}

/* ===== BOTTOM ===== */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.5rem 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-bottom-inner p {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.22);
    margin: 0;
    font-weight: 400;
}

.footer-bottom-inner p span {
    color: rgba(255, 255, 255, 0.55);
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.22);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 400;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: var(--teal);
}

.footer-bottom-links .sep {
    color: rgba(255, 255, 255, 0.08);
}

.credits {
    color: rgba(255, 255, 255, 0.14) !important;
}

.credits i {
    color: var(--teal);
    font-size: 0.6rem;
    opacity: 0.7;
}

.credits strong {
    color: rgba(255, 255, 255, 0.3) !important;
    font-weight: 600;
}

/* Accesibilidad: foco visible */
.footer a:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 3px;
    border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .footer-cta,
    .footer-cta i,
    .social-links a {
        transition: none;
    }
}

/* ============================================
   RESPONSIVE — SIEMPRE IZQUIERDA
   ============================================ */
@media (max-width: 1024px) {
    .footer-main {
        flex-direction: column;
        gap: 2.75rem;
    }

    .footer-brand {
        flex: none;
        text-align: left;
    }

    .footer-desc {
        max-width: 100%;
    }

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

    .footer-logo {
        height: 38px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 4.5rem 0 0;
    }

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

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

    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 3.5rem 0 0;
    }

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

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

    .footer-logo {
        height: 32px;
    }

    .footer-desc {
        font-size: 0.8rem;
    }

    .footer-col h4 {
        font-size: 0.65rem;
    }

    .footer-col ul li,
    .footer-col ul li a {
        font-size: 0.8rem;
    }

    .social-links a {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .footer-bottom-inner p,
    .footer-bottom-links a {
        font-size: 0.65rem;
    }
}
/* ============================================
               MODAL - PANTALLA COMPLETA
               ============================================ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(12, 74, 110, 0.7);
    backdrop-filter: blur(8px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal-overlay.open {
    display: flex;
}

.modal-container {
    background: var(--bg-card);
    border-radius: 24px;
    max-width: 95vw;
    width: 95%;
    max-height: 95vh;
    height: 92vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(12, 74, 110, 0.3);
    animation: modalFadeIn 0.4s ease;
    display: flex;
    flex-direction: column;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--gray-200);
    flex-shrink: 0;
    background: white;
    z-index: 1;
}

.modal-header h2 {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1.5rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-header h2 i {
    color: var(--blue-primary);
}

.modal-close {
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: all 0.2s ease;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--gray-100);
}

.modal-close:hover {
    color: var(--text-dark);
    background: var(--gray-200);
    transform: rotate(90deg);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    padding: 2rem;
    flex: 1;
    overflow: hidden;
    height: 100%;
}

.modal-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.modal-info .info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

.modal-info .info-item i {
    width: 22px;
    color: var(--blue-primary);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.modal-info .info-item strong {
    color: var(--text-dark);
}

.modal-mapa {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: var(--gray-100);
    min-height: 300px;
    height: 100%;
    border: 1px solid var(--gray-200);
}

.modal-mapa iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ============================================
               ESPECIALISTAS
               ============================================ */
.swiper {
    padding: 1rem 0 3rem;
}

.specialist-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2.5rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

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

.specialist-img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.25rem;
    border: 4px solid var(--blue-primary);
    transition:
        border-color 0.3s ease,
        transform 0.3s ease;
}

.specialist-card:hover .specialist-img {
    border-color: var(--blue-deep);
    transform: scale(1.02);
}

.specialist-card h3 {
    font-size: 1.15rem;
    color: var(--text-dark);
    font-weight: 700;
}

.specialist-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.specialist-card span {
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 0.3rem;
    color: var(--silver);
}

/* ============================================
               TESTIMONIOS
               ============================================ */
.testimonial-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
}

.testimonial-card i.fa-quote-left {
    color: var(--blue-primary);
    font-size: 1.8rem;
    opacity: 0.3;
}

.testimonial-card p {
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 1rem;
    margin: 1.25rem 0;
}

.testimonial-card h3 {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
}

/* ============================================
               CONTACTO / BOOKING
               ============================================ */
.booking-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3.5rem;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 3.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.booking-info h3 {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.booking-info p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.booking-features {
    list-style: none;
}

.booking-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.6rem 0;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.booking-features li i {
    color: var(--blue-primary);
    font-size: 1.1rem;
    width: 24px;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

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

.input-group input,
.input-group select,
.input-group textarea {
    padding: 0.8rem 1.1rem;
    border: 1.5px solid var(--gray-200);
    border-radius: 12px;
    font-family: "Inter", sans-serif;
    font-size: 0.95rem;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
    background: var(--bg-light);
    color: var(--text-dark);
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--blue-primary);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

.input-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Botón submit con plata */
.btn-submit {
    padding: 1rem;
    background: var(--silver);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
    box-shadow: 0 4px 20px rgba(148, 163, 184, 0.35);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(148, 163, 184, 0.45);
    background: #7a8b9f;
}

.btn-submit i {
    margin-right: 8px;
}

/* ============================================
               WHATSAPP FLOAT
               ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
}

.whatsapp-button {
    width: 64px;
    height: 64px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 24px rgba(37, 211, 102, 0.4);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    animation: pulse-wa 2s infinite;
}

.whatsapp-button:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.5);
}

@keyframes pulse-wa {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }

    70% {
        box-shadow: 0 0 0 18px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ============================================
               RESPONSIVE
               ============================================ */
@media (max-width: 992px) {
    .booking-wrapper {
        grid-template-columns: 1fr;
        padding: 2.5rem;
        gap: 2.5rem;
    }

    .modal-body {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-h: 100px;
        --nav-h-scrolled: 90px;
    }

    .nav-container {
        padding: 0 1.5rem;
    }

    .menu-icon {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: calc(100vh - var(--nav-h));
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 2.5rem 2rem 3rem;
        gap: 0.5rem;
        overflow-y: auto;
        align-items: center;
        justify-content: flex-start;
        border-top: 1px solid rgba(0, 0, 0, 0.04);
        opacity: 0;
        visibility: hidden;
        transition:
            opacity 0.4s ease,
            visibility 0.4s ease;
        z-index: 999;
    }

    .nav-links.open {
        display: flex;
        opacity: 1;
        visibility: visible;
    }

    .navbar.mobile-open {
        height: var(--nav-h);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
    }

    .navbar.mobile-open .nav-container {
        padding-bottom: 0;
    }

    .navbar.mobile-open .nav-links {
        display: flex;
        opacity: 1;
        visibility: visible;
    }

    .nav-links li {
        width: 100%;
        max-width: 400px;
    }

    .nav-links li a {
        padding: 0.9rem 1.2rem;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
        border-radius: 12px;
    }

    .nav-links li a::after {
        display: none;
    }

    .nav-links .btn-agenda {
        justify-content: center;
        margin-top: 0.5rem;
    }

    .nav-links .btn-nav-cta {
        justify-content: center;
    }

    .hero-content {
        max-width: 95%;
        padding: 0 6% 6%;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 0.4rem 1rem;
    }

    .float-card-2 {
        display: none;
    }

    .float-card-1 {
        bottom: 10%;
        right: 4%;
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }

    .hero-arrow {
        display: none;
    }

    .hero-slide::after {
        background:
            linear-gradient(
                to right,
                rgba(255, 255, 255, 0.85) 0%,
                rgba(255, 255, 255, 0.5) 60%,
                rgba(255, 255, 255, 0.2) 100%
            ),
            linear-gradient(
                to bottom,
                rgba(255, 255, 255, 0.4) 0%,
                transparent 50%,
                rgba(255, 255, 255, 0.3) 100%
            );
    }

    .hero-slide img {
        filter: blur(4px) brightness(0.9);
        transform: scale(1.1);
        transition:
            filter 0.8s ease,
            transform 8s ease;
    }

    .hero-slide.active img {
        filter: blur(0px) brightness(1);
    }

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

    .container {
        padding: 0 1.5rem;
    }

    .section {
        padding: 4rem 0;
    }

    .section-title {
        margin-bottom: 2.5rem;
    }

    .cards-grid,
    .sedes-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .edge-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .booking-wrapper {
        padding: 1.5rem;
        gap: 2rem;
    }

    .modal-container {
        max-width: 100vw;
        width: 100%;
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
    }

    .modal-body {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
        overflow-y: auto;
    }

    .modal-header {
        padding: 1rem 1.5rem;
    }

    .modal-header h2 {
        font-size: 1.2rem;
    }

    .modal-mapa {
        min-height: 250px;
        height: 300px;
    }
}

@media (max-width: 480px) {
    .btn-ghost-hero {
        display: none;
    }

    .edge-container {
        grid-template-columns: 1fr;
    }

    .modal-container {
        margin: 0;
        border-radius: 0;
    }

    .modal-header {
        padding: 1rem 1.25rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-mapa {
        height: 250px;
        min-height: 200px;
    }

    .logo h2 {
        font-size: 1.1rem;
    }

    .logo-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .btn-primary-hero {
        padding: 0.7rem 1.5rem;
        font-size: 0.85rem;
        width: 100%;
        justify-content: center;
    }

    .hero-actions {
        width: 100%;
        gap: 0.75rem;
    }

    .hero-dots {
        bottom: 1.5rem;
        left: 50%;
        transform: translateX(-50%);
        gap: 8px;
    }

    .hero-dot {
        width: 8px;
        height: 8px;
    }

    .hero-dot.active {
        width: 24px;
    }
}
