:root {
    --primary-color: #093c5b;
    /* Navy Blue */
    --secondary-color: #009bde;
    /* Light Blue */
    --accent-color: #10b981;
    /* Emerald Green */
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-green: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--primary-color);
    line-height: 1.1;
    font-weight: 700;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.8);
    /* Subtle white glass by default */
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.75rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.nav-logo {
    height: 75px;
    /* Slightly larger logo */
    width: auto;
    border-radius: 8px;
    transition: var(--transition);
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    line-height: 1;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
}

.logo-sub {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    color: #008f40;
    /* Solid Emerald Green */
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-top: 10px;
    line-height: 1;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links li {
    display: flex;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    /* Space between icon and text */
}

.nav-links a svg {
    width: 18px;
    height: 18px;
    stroke-width: 2px;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.btn-nav {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-nav svg {
    stroke: #00ff88;
}

.btn-nav:hover {
    background: var(--gradient-green);
    color: var(--primary-color) !important;
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.4);
}

.btn-nav:hover svg {
    stroke: var(--primary-color);
}

/* --- Mobile Menu Toggle --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 10px;
    transition: var(--transition);
}

.menu-toggle.active span {
    background-color: #00ff88;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* --- Navigation & Animations --- */

/* --- Hero Section --- */
.hero-mobile-bg {
    display: none;
}

.hero {
    position: relative;
    margin-top: 100px;
    padding: 1.5rem 0;
    /* Reduced padding */
    min-height: 500px;
    height: 65vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-image: url('assets/dr-luis-miguel-cely-ortopedista-traumatologo-ortopedista-bogota-cajica.jpg');
    background-position: 5% center;
    background-size: cover;
    background-repeat: no-repeat;
}

.hero-overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(9, 60, 91, 0.1) 100%);
    z-index: 1;
}

.hero-container-flex {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    width: 100%;
    padding: 0;
}

.hero-glass-card {
    background: rgba(255, 255, 255, 0.65);
    /* More transparent White Glass */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2.5rem 3.5rem;
    border-radius: 24px;
    /* More rounded and modern */
    max-width: 850px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 50px rgba(9, 60, 91, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-right: 0;
}

.hero-tag {
    display: inline-block;
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-color);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.75rem;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-family: 'Outfit', sans-serif;
    align-self: flex-start;
}

.hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 1rem;
    color: var(--primary-color);
    /* Dark Blue for contrast */
}

.hero p {
    font-size: 1.05rem;
    color: var(--text-main);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    flex-direction: row;
    /* Back to horizontal */
    gap: 1.5rem;
    width: auto;
}

.hero .btn-primary {
    justify-content: center;
    background: var(--gradient-green);
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    font-weight: 800;
}

.hero .btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    text-align: center;
    justify-content: center;
    background: transparent;
}

.hero .btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* --- Bento Grid Section --- */
.section {
    padding: 3rem 0;
}

/* Fondo sección servicios - azul claro */
#servicios {
    background: linear-gradient(135deg, #e8f4fd 0%, #dbeeff 50%, #cfe8fa 100%);
    position: relative;
    overflow: hidden;
}

#servicios::before,
#servicios::after {
    display: none;
}

.bento-grid {
    position: relative;
    z-index: 1;
}

#servicios .section-header {
    position: relative;
    z-index: 1;
}

#servicios .section-header h2,
#servicios .section-header p {
    color: var(--text-main);
}

#servicios .hero-tag {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-color);
    border: none;
}




.section-header {
    text-align: center;
    margin-bottom: 2rem;
    /* Reduced from 4rem */
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* ============================================
   SERVICE CARDS - Glassmorphism Style
   ============================================ */
.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 28px;
    overflow: hidden;
    min-height: 560px;
    background: rgba(9, 60, 91, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 28px rgba(9, 60, 91, 0.3);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

/* Línea de acento superior */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-color, #00ff88);
    box-shadow: 0 0 16px var(--accent-color, #00ff88);
    z-index: 5;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(9, 60, 91, 0.5),
        0 0 30px rgba(var(--accent-rgb, 0, 255, 136), 0.1);
    background: rgba(9, 60, 91, 0.88);
}

/* Colores de acento para cada card */
.service-card.accent-cyan {
    --accent-color: #00f2ff;
    --accent-rgb: 0, 242, 255;
}

.service-card.accent-orange {
    --accent-color: #ff8c00;
    --accent-rgb: 255, 140, 0;
}

.service-card.accent-green {
    --accent-color: #00ff88;
    --accent-rgb: 0, 255, 136;
}

.service-card.accent-purple {
    --accent-color: #bd00ff;
    --accent-rgb: 189, 0, 255;
}

/* ---- Recuadro de imagen ---- */
.service-card-img-frame {
    margin: 1.25rem 1.25rem 0;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-card-img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-card-img-frame img {
    transform: scale(1.05);
}

/* ---- Contenido de texto ---- */
.service-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.25rem 1.5rem 1.5rem;
    gap: 0.6rem;
}

.service-card-body h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

.service-card-body p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

.service-card-body .btn-text {
    align-self: flex-start;
    margin-top: 0.4rem;
    padding: 0.65rem 1.2rem;
    font-size: 0.88rem;
}


.bento-item {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Neon Top Border Effect */
.bento-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    /* Subtle Neon Line */
    background: var(--accent-color, #00ff88);
    z-index: 10;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px var(--accent-color, #00ff88);
}

.bento-item:hover::before {
    transform: scaleX(1);
}

/* Accent Colors */
.accent-cyan {
    --accent-color: #00f2ff;
}

.accent-orange {
    --accent-color: #ff8c00;
}

.accent-green {
    --accent-color: #00ff88;
}

.accent-green:hover::before {
    background: var(--gradient-green);
}

.accent-purple {
    --accent-color: #bd00ff;
}


.bento-item.large,
.bento-item.medium,
.bento-item.small {
    grid-column: span 1;
    grid-row: span 2;
}

.bento-item.wide {
    grid-column: span 3;
    /* Full width on web */
    grid-row: span 1;
    /* Horizontal rectangular profile */
}

.bento-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-item:hover .bento-bg {
    transform: scale(1.08);
}

/* Imagen del hero responsive para Lesiones Deportivas */
.service-hero .mobile-hero-img {
    display: none;
}

@media (max-width: 768px) {
    .service-hero .desktop-hero-img {
        display: none;
    }

    .service-hero .mobile-hero-img {
        display: block;
    }
}

/* Ensure the hero image doesn't scale too much and fits better */
.service-hero .hero-video-bg {
    object-position: center 20%;
    /* ajusta para ver mejor la parte de arriba */
}

/* Alineación específica para tarjeta hero en Lesiones Deportivas (Desktop) */
@media (min-width: 769px) {
    .service-hero .hero-container-flex {
        justify-content: flex-end;
    }

    .lesiones-hero-card {
        max-width: 480px;
        /* Más cuadrada y angosta */
        margin-right: 0;
        /* Totalmente a la derecha del contenedor */
        padding: 2.5rem;
    }
}

/* ============================================
   GLASS FEATURE CARDS (Lesiones Deportivas)
   ============================================ */
.glass-bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .glass-bento-grid {
        grid-template-columns: 1fr;
    }
}

.glass-feature-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    border-radius: 28px;
    background: rgba(9, 60, 91, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 28px rgba(9, 60, 91, 0.3);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.glass-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-color, #00ff88);
    box-shadow: 0 0 16px var(--accent-color, #00ff88);
    z-index: 5;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-feature-card:hover::before {
    transform: scaleX(1);
}

.glass-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(9, 60, 91, 0.5),
        0 0 30px rgba(var(--accent-rgb, 0, 255, 136), 0.1);
}

/* Reusa variables de color */
.glass-feature-card.accent-cyan {
    --accent-color: #00f2ff;
    --accent-rgb: 0, 242, 255;
}

.glass-feature-card.accent-orange {
    --accent-color: #ff9100;
    --accent-rgb: 255, 145, 0;
}

.glass-feature-card.accent-green {
    --accent-color: #00ff88;
    --accent-rgb: 0, 255, 136;
}

.glass-feature-card.accent-purple {
    --accent-color: #b300ff;
    --accent-rgb: 179, 0, 255;
}

.glass-feature-card.accent-yellow {
    --accent-color: #ffd600;
    --accent-rgb: 255, 214, 0;
}

.glass-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color, #00ff88);
    margin-bottom: 1.5rem;
}

/* Se reemplazó scale por rotate y box-shadow sutil en hover para no deformar el borde */
.glass-feature-card:hover .glass-icon-box {
    box-shadow: 0 5px 15px rgba(var(--accent-rgb, 0, 255, 136), 0.3);
    border-color: rgba(var(--accent-rgb, 0, 255, 136), 0.6);
}

.glass-feature-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.8rem;
    line-height: 1.2;
}

.glass-feature-card p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
    margin: 0;
}

/* Imagen del doctor en tarjeta Terapias Especializadas */
.terapias-img {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 100%;
    width: auto;
    max-width: 50%;
    object-fit: contain;
    object-position: bottom right;
    z-index: 0;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.bento-item:hover .terapias-img {
    transform: scale(1.04) translateX(-5px);
}

.bento-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(9, 60, 91, 0.8) 0%, rgba(9, 60, 91, 0.2) 40%, transparent 100%);
    z-index: 1;
}

.elite-blue-fade {
    background: linear-gradient(to top,
            rgba(9, 60, 91, 0.9) 0%,
            rgba(9, 60, 91, 0.6) 15%,
            rgba(9, 60, 91, 0.2) 35%,
            transparent 70%) !important;
}

.bento-glass-box {
    position: relative;
    z-index: 5;
    background: none;
    /* No more box */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    margin: 1.5rem;
    /* Compact margin to push text lower */
    padding: 0;
    border: none;
    box-shadow: none;
    transition: var(--transition);
}

.bento-glass-box.small {
    padding: 1rem 1.25rem;
    margin: 0.75rem;
}

.bento-item:hover .bento-glass-box {
    transform: translateY(-8px);
    background: none;
    /* Keep it transparent on hover */
}

.bento-glass-box h3 {
    font-size: 1.8rem;
    /* Direct large white text */
    margin-bottom: 0.75rem;
    color: var(--white);
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    /* Added shadow for readability */
}

.bento-glass-box.small h3 {
    font-size: 1.5rem;
    color: var(--white);
}

.bento-glass-box p {
    font-size: 0.95rem;
    /* Slightly smaller for compactness */
    color: rgba(255, 255, 255, 0.95);
    /* More solid white */
    margin-bottom: 1.25rem;
    max-width: 85%;
    line-height: 1.4;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
    /* Added shadow for readability */
}

.btn-text {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 12px;
    border: 1px solid #00ff88;
    /* Vibrant Green Border */
    transition: var(--transition);
}

.btn-text:hover {
    background: var(--gradient-green);
    color: var(--primary-color);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.5);
}

/* --- About Section --- */
.about {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    /* Reduced gap */
    align-items: center;
}

.about-image {
    position: relative;
}

.img-frame {
    width: 100%;
    height: 600px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--accent-color);
    color: var(--white);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    animation: float 4s ease-in-out infinite;
}

.experience-badge span {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* --- Service Specific Styles (Medicina Regenerativa) --- */
.service-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    margin-top: 80px;
    overflow: hidden;
    isolation: isolate;
    /* Create stacking context */
}

.service-hero .hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.service-hero .hero-overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient muy sutil solo abajo para lectura de texto blanco si hace falta */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, rgba(9, 60, 91, 0.4) 100%);
    z-index: 2;
}

.process-visual {
    background: var(--white);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.process-visual img {
    width: 100%;
    height: auto;
    display: block;
}

/* Modern Benefit Cards */
.benefit-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 30px -10px rgba(9, 60, 91, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #00ff88, #093c5b);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px) scale(1.01);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 20px 40px -12px rgba(9, 60, 91, 0.2);
    border-color: #00ff88;
}

.benefit-card:hover::before {
    opacity: 1;
}

.benefit-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(9, 60, 91, 0.05) 0%, rgba(0, 255, 136, 0.1) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #008f40;
    transition: all 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    background: var(--gradient-green);
    color: var(--primary-color);
    transform: rotate(-10deg);
}

.benefit-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.benefit-content p {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

.elite-feature-box {
    background: linear-gradient(135deg, #093c5b 0%, #062c43 100%);
    color: var(--white);
    padding: 3rem;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

.elite-feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-green);
}

/* Video Testimonial Styles */
.video-testimonial-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f9fafb;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid #f3f4f6;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 382px;
    margin-left: auto;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 350px;
    aspect-ratio: 9/16;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 4px solid white;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-caption {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
    text-align: center;
}

/* --- Locations --- */
.locations-hub {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.location-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}

.location-card:hover {
    border-color: var(--secondary-color);
    background: #f0f9ff;
}

.location-card h3 {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- Responsive --- */
/* --- Responsive --- */
@media (max-width: 991px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .terapias-img {
        max-width: 55%;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .img-frame {
        height: 450px;
    }

    .navbar {
        padding: 0.5rem 0;
    }

    .nav-logo {
        height: 55px;
    }

    .logo-text {
        font-size: 1.1rem;
        white-space: nowrap;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: rgba(9, 60, 91, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 2rem 2rem;
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -15px 0 40px rgba(0, 0, 0, 0.4);
        z-index: 1000;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links::before {
        content: 'Dr. Luis Miguel Cely';
        display: block;
        font-family: 'Outfit', sans-serif;
        font-weight: 800;
        font-size: 1.2rem;
        color: var(--white);
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
    }

    .nav-links li {
        margin: 0.3rem 0;
        width: 100%;
    }

    .nav-links a {
        font-size: 1.1rem;
        color: rgba(255, 255, 255, 0.9) !important;
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 8px 15px;
        border-radius: 12px;
        transition: var(--transition);
        width: 100%;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: rgba(0, 255, 136, 0.1);
        color: #00ff88 !important;
        padding-left: 20px;
    }

    .nav-links a svg {
        width: 20px;
        height: 20px;
        stroke: #00ff88;
        opacity: 0.8;
        transition: transform 0.3s ease;
    }

    .nav-links.active a svg {
        animation: slideInLeft 0.5s ease out both;
    }

    @keyframes slideInLeft {
        from {
            opacity: 0;
            transform: translateX(-10px);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .nav-links li:nth-child(1) a svg {
        animation-delay: 0.1s;
    }

    .nav-links li:nth-child(2) a svg {
        animation-delay: 0.2s;
    }

    .nav-links li:nth-child(3) a svg {
        animation-delay: 0.3s;
    }
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: auto;
        padding-top: 1rem;
        /* Match service-hero padding */
        padding-bottom: 2rem;
        background: var(--bg-light);
        /* Remove desktop bg image */
        background-image: none;
        display: block;
    }

    .hero-mobile-bg {
        display: block;
        width: 92%;
        margin: 0 auto;
        height: auto;
        /* Natural height to show full image */
        max-height: 80vh;
        /* Prevent excessive height */
        object-fit: cover;
        /* Ensure it covers the frame */
        border-radius: 30px;
        z-index: 1;
        box-shadow: 0 15px 35px rgba(9, 60, 91, 0.25);
    }

    .terapias-img {
        height: 90%;
        max-width: 45%;
        object-position: center bottom;
        opacity: 0.85;
    }

    /* Service cards - mobile: 1 columna, diseño compacto */
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: unset;
    }

    .service-card-img-frame {
        flex: 0 0 220px;
        /* altura fija, no crece ni encoge */
        aspect-ratio: unset;
        margin: 0.75rem 0.75rem 0;
    }

    .service-card-img-frame img {
        object-fit: cover;
        object-position: center center;
    }

    .service-card-body p {
        flex: none;
        /* el párrafo NO se expande */
    }

    .service-card-body {
        padding: 1rem 1.25rem 1.25rem;
    }

    .hero .hero-overlay-dark {
        display: none;
        /* No overlay on mobile */
    }

    .hero .hero-container-flex {
        margin-top: -50px;
        /* Standard overlap */
        padding: 0 1.5rem 2rem;
        display: block;
    }

    /* Standardized Floating Card for ALL heros */
    .hero-glass-card {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.8);
        border-radius: 24px;
        padding: 2.5rem 1.5rem;
        box-shadow: 0 20px 40px -10px rgba(9, 60, 91, 0.2);
        margin: 0 auto;
        width: 100%;
        text-align: center;
        align-items: center;
        transform: translateY(0);
    }

    .service-hero {
        min-height: auto;
        padding: 0;
        display: flex;
        flex-direction: column;
        /* image on top, card below */
        background: #0a1a2e;
        /* dark bg behind the image */
        align-items: stretch;
    }

    .service-hero .hero-video-bg {
        position: relative;
        width: 100%;
        height: auto;
        /* let the image set its natural height */
        aspect-ratio: 3 / 4;
        /* portrait ratio matching the mobile photo */
        object-fit: cover;
        object-position: center center;
        /* show the full scene */
        border-radius: 0;
        z-index: 1;
        box-shadow: none;
    }

    /* Card sits directly below the image – no overlap */
    .service-hero .hero-container-flex {
        margin-top: 0;
        position: relative;
        z-index: 10;
        padding: 1.5rem 1rem 2rem;
    }

    .hero h1 {
        font-size: 2rem;
        /* Smaller H1 */
        margin-bottom: 0.5rem;
    }

    .text-gradient {
        font-size: 1.8rem;
        /* Consistent gradient text size */
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1.5rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        /* Single column */
        grid-auto-rows: 220px;
        /* Slightly taller for content */
    }

    .bento-item.wide,
    .bento-item.large,
    .bento-item.medium {
        grid-column: span 1;
    }

    .section {
        padding: 2rem 0;
        /* Compact spacing as requested */
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .benefit-card {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
    }

    .elite-feature-box {
        padding: 1.5rem;
    }

    .img-frame {
        height: 300px;
        /* Smaller image on mobile */
    }

    .experience-badge {
        padding: 1rem;
        right: 0;
        bottom: -20px;
    }

    .experience-badge span {
        font-size: 1.8rem;
    }

    .nav-links li:nth-child(4) a svg {
        animation-delay: 0.4s;
    }

    .nav-links li:nth-child(5) a svg {
        animation-delay: 0.5s;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 2rem 0;
        /* Compact mobile sections */
    }

    .section-header {
        margin-bottom: 1.5rem;
    }

    .btn-nav {
        background: var(--gradient-green) !important;
        color: var(--primary-color) !important;
        justify-content: center;
        margin-top: 0.5rem !important;
        /* Reduced from 1rem */
        font-weight: 800 !important;
        box-shadow: 0 10px 20px rgba(0, 255, 136, 0.3);
    }

    .service-hero {
        min-height: auto;
        padding: 1rem 0 0;
        /* Add top padding */
        display: block;
        background: var(--bg-light);
    }

    .service-hero .hero-video-bg {
        position: relative;
        width: 92%;
        /* Floating scale */
        margin: 0 auto;
        height: 35vh;
        /* Reduced height to see more video content */
        object-fit: cover;
        border-radius: 30px;
        /* All around rounded */
        z-index: 1;
        box-shadow: 0 15px 35px rgba(9, 60, 91, 0.25);
    }

    .service-hero .hero-overlay-dark {
        display: none;
        /* Removed as requested */
    }

    .hero-container-flex {
        margin-top: -50px;
        /* Tighter overlap */
        padding: 0 1.5rem 2rem;
        /* Restore side padding */
        position: relative;
        z-index: 10;
        display: block;
    }

    .hero-glass-card {
        background: rgba(255, 255, 255, 0.95);
        /* More solid for better contrast */
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.8);
        border-radius: 24px;
        padding: 2.5rem 1.5rem;
        box-shadow: 0 20px 40px -10px rgba(9, 60, 91, 0.2);
        margin: 0 auto;
        width: 100%;
        text-align: center;
        align-items: center;
        transform: translateY(0);
        /* Ensure strict positioning */
    }

    .hero-tag {
        background: var(--primary-color);
        color: var(--white);
        /* High contrast tag */
        border: none;
        backdrop-filter: none;
        margin: 0 auto 1.5rem;
        display: inline-block;
        font-size: 0.7rem;
        padding: 0.4rem 1rem;
        letter-spacing: 1px;
    }

    .hero h1 {
        background: none;
        backdrop-filter: none;
        border: none;
        box-shadow: none;
        padding: 0;
        margin-bottom: 1rem;
        text-align: center;
        font-size: 2rem;
        /* Clean size */
        line-height: 1.1;
        color: var(--primary-color);
        max-width: 100%;
    }

    .hero p {
        background: none;
        backdrop-filter: none;
        border: none;
        padding: 0;
        margin: 0 auto 2.5rem;
        /* Increased spacing */
        color: var(--text-muted);
        text-align: center;
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .hero-btns {
        width: 100%;
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-btns .btn-primary {
        margin: 0;
        width: 100%;
        background: var(--gradient-green);
        color: var(--primary-color);
        box-shadow: 0 10px 20px rgba(0, 255, 136, 0.3);
        border: none;
    }
}

@media (max-width: 640px) {
    .bento-grid {
        grid-template-columns: 1fr !important;
        /* Force single column on mobile */
        grid-auto-rows: auto;
        gap: 1.25rem;
    }

    .bento-item {
        height: 480px;
        /* Taller cards for better mobile portrait visibility */
    }

    .elite-blue-fade {
        background: linear-gradient(to top,
                rgba(9, 60, 91, 1) 0%,
                rgba(9, 60, 91, 0.9) 20%,
                rgba(9, 60, 91, 0.4) 50%,
                transparent 95%) !important;
    }

    .bento-glass-box h3 {
        text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
    }

    .bento-glass-box p {
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    }

    .bento-item,
    .bento-item.large,
    .bento-item.medium,
    .bento-item.wide,
    .bento-item.small {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        width: 100%;
        height: 500px;
        /* Taller for better portrait visibility */
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .hero-btns .btn-primary,
    .hero-btns .btn-outline {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .locations-hub {
        grid-template-columns: 1fr;
    }
}

/* --- Contact Page Styles --- */
.bg-light {
    background: #f8fafc;
}

.contact-page-hero {
    padding: 80px 0 40px;
    /* Reduced from 120px 60px */
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    text-align: center;
}

.hero-content-simple h1 {
    font-size: 3.5rem;
    font-family: 'Outfit', sans-serif;
    color: var(--primary-color);
    margin: 1.5rem 0;
    line-height: 1.1;
    font-weight: 800;
}

.text-gradient {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-tag-green {
    display: inline-block;
    background: rgba(0, 255, 136, 0.1);
    color: #00a85a;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.booking-section {
    padding: 60px 0 100px;
    background: #f8fafc;
}

.booking-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 3rem;
    align-items: flex-start;
}

/* Info Panel */
.info-card-elite {
    position: relative;
    background: var(--white);
    padding: 3rem;
    border-radius: 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: var(--transition);
}

.info-card-elite::before,
.glass-form-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
    z-index: 10;
}

.info-card-elite:hover::before,
.glass-form-box:hover::before {
    transform: scaleX(1);
}

.info-card-elite:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.info-item h3 {
    font-size: 1.35rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: 'Outfit', sans-serif;
}

.link-minimal {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.link-minimal:hover {
    padding-left: 5px;
}

.btn-locations-elite {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 1.5rem;
    background: rgba(9, 60, 91, 0.03);
    border: 1px solid rgba(9, 60, 91, 0.1);
    border-radius: 18px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    transition: var(--transition);
    margin-bottom: 2rem;
}

.btn-locations-elite i {
    font-size: 1.3rem;
    color: #00ff88;
}

.btn-locations-elite:hover {
    background: var(--white);
    border-color: #00ff88;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 255, 136, 0.2);
}

.whatsapp-box-minimal {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.whatsapp-box-minimal h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.btn-whatsapp-minimal {
    display: block;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    text-align: center;
    padding: 1.25rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 1rem;
    transition: var(--transition);
}

.btn-whatsapp-minimal:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(18, 140, 126, 0.3);
}

/* Form Panel */
.glass-form-box {
    position: relative;
    background: var(--white);
    padding: 4rem;
    border-radius: 32px;
    box-shadow: 0 30px 60px rgba(9, 60, 91, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    overflow: hidden;
    transition: var(--transition);
}

.glass-form-box:hover {
    box-shadow: 0 40px 80px rgba(9, 60, 91, 0.12);
}

.elite-form .form-group {
    margin-bottom: 1.5rem;
}

.elite-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    padding-left: 5px;
}

.elite-form input,
.elite-form select,
.elite-form textarea {
    width: 100%;
    padding: 1.25rem;
    border-radius: 16px;
    border: 2px solid #f1f5f9;
    background: #f8fafc;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.elite-form input:focus,
.elite-form select:focus,
.elite-form textarea:focus {
    outline: none;
    border-color: #00ff88;
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(0, 255, 136, 0.1);
}

.btn-submit-elite {
    width: 100%;
    background: var(--gradient-green);
    color: var(--primary-color);
    padding: 1.5rem;
    border-radius: 18px;
    border: none;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 2rem;
    transition: var(--transition);
}

.btn-submit-elite:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 255, 136, 0.3);
}

.form-footer {
    text-align: center;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 1.5rem;
}

.minimal-footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid #eee;
    background: var(--white);
}

@media (max-width: 991px) {
    .booking-grid {
        grid-template-columns: 1fr;
    }

    .contact-page-hero h1 {
        font-size: 2.5rem;
    }

    .glass-form-box {
        padding: 2.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* --- Success State Styles --- */
.success-message-elite {
    text-align: center;
    padding: 2rem 0;
    animation: fadeIn 0.6s ease-out;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-green);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 255, 136, 0.4);
}

.success-message-elite h2 {
    color: var(--primary-color);
    font-family: 'Outfit', sans-serif;
    margin-bottom: 1rem;
}

.success-message-elite p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 2rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(9, 60, 91, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Navbar active state */
/* --- Interactive Maps Section --- */
.locations-interactive-section {
    padding: 40px 0;
    /* Reduced from 80px */
    background: #ffffff;
}

.maps-grid-elite {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 4rem;
}

.map-card-elite {
    background: #f8fafc;
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.map-card-elite:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(9, 60, 91, 0.08);
    border-color: #00ff88;
}

.map-info {
    padding: 2rem;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.map-info h3 {
    font-family: 'Outfit', sans-serif;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.map-info p {
    color: #64748b;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-frame-wrapper {
    position: relative;
    width: 100%;
    height: 350px;
    filter: grayscale(0.2);
    transition: var(--transition);
}

.map-card-elite:hover .map-frame-wrapper {
    filter: grayscale(0);
}

@media (max-width: 991px) {
    .maps-grid-elite {
        grid-template-columns: 1fr;
    }
}

.nav-links a.active {
    color: #00ff88 !important;
    font-weight: 700;
}

.nav-links a.active svg {
    stroke: #00ff88;
}

/* Info Header */
.info-header-elite {
    margin-bottom: 2rem;
}

.info-header-elite h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}

.info-header-elite p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* --- Home Sedes Enhancements --- */
.section-sedes-modern {
    padding: 50px 0;
    /* Reduced from 100px */
    background: #f8fafc;
}

.header-card-map {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.link-tag-elite {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.link-tag-elite:hover {
    color: #00ff88;
    padding-left: 5px;
}

.map-frame-wrapper-home {
    height: 250px;
    overflow: hidden;
    filter: grayscale(0.2);
    transition: var(--transition);
}

.map-card-elite:hover .map-frame-wrapper-home {
    filter: grayscale(0);
}

/* --- Force Desktop Restoration --- */
@media (min-width: 769px) {
    .hero {
        background-image: url('assets/dr-luis-miguel-cely-ortopedista-traumatologo-ortopedista-bogota-cajica.jpg');
        background-position: 5% center;
        background-size: cover;
        background-repeat: no-repeat;
        height: 65vh;
        min-height: 500px;
        display: flex;
        padding: 1.5rem 0;
        margin-top: 100px;
        display: flex !important;
    }

    .hero-mobile-bg {
        display: none !important;
    }

    .hero .hero-overlay-dark {
        display: block !important;
    }

    .hero .hero-container-flex {
        display: flex !important;
        margin-top: 0 !important;
        padding: 0;
    }
}

/* --- Minimalist Dark Footer (Refined) --- */
/* --- Minimalist Dark Footer (Final Refinement) --- */
.footer {
    position: relative;
    background-image: url('assets/banner-pie-de-pagina.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    padding: 4rem 0 0;
    font-family: 'Outfit', sans-serif;
    overflow: hidden;
}

/* Lighter Blue-Toned Overlay (More visibility) */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Lighter Blue-Green Mix */
    background: linear-gradient(to right, rgba(4, 28, 44, 0.8), rgba(0, 100, 100, 0.4));
    mix-blend-mode: normal;
    /* Changed to normal to ensure it lightens the black image */
    z-index: 0;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 3rem;
}

/* Column 1: Brand & Description */
.footer-brand .brand-box {
    background: white;
    padding: 10px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 1.2rem;
}

.footer-brand img {
    height: 55px;
    display: block;
    filter: none;
    /* Restore original colors */
}

.footer-brand p {
    color: #e2e8f0;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.6;
    max-width: 320px;
}

/* Column 2: Navigation */
.footer-links h4,
.footer-contact h4 {
    display: none;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #00ff88;
    transform: translateX(5px);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* Column 3: Contact & Social */
.footer-contact {
    text-align: right;
}

.footer-phone {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 2rem;
    text-decoration: none;
}

.footer-phone:hover {
    color: #00ff88;
}

/* ---- Social Icons - Diseño limpio blanco ---- */
.social-icons {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    flex-wrap: nowrap;
    margin-top: 0.5rem;
}

.social-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.3s ease, transform 0.3s ease;
    min-width: 80px;
    /* espacio suficiente para la etiqueta */
    text-align: center;
}

.social-btn:hover {
    color: #00ff88;
    transform: translateY(-4px);
}

/* Círculo del ícono */
.icon-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    transition: background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.icon-circle svg {
    width: 22px;
    height: 22px;
    fill: white;
    stroke: none;
    transition: fill 0.3s ease;
}

/* Hover: fondo verde y glow */
.social-btn:hover .icon-circle {
    background: rgba(0, 255, 136, 0.15);
    border-color: #00ff88;
    box-shadow: 0 0 18px rgba(0, 255, 136, 0.35);
}

.social-btn:hover .icon-circle svg {
    fill: #00ff88;
}

/* Label debajo del ícono */
.social-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.7;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.social-btn:hover .social-label {
    opacity: 1;
    color: #00ff88;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}

/* Bottom Bar */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
    margin-top: 3rem;
}

.footer-bottom p {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 300;
    margin: 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-brand .brand-box {
        margin: 0 auto 1.2rem auto;
    }

    .footer-brand p {
        margin: 0 auto;
    }

    .footer-contact {
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-links ul {
        align-items: center;
    }

    .footer-links a:hover {
        transform: translateX(0);
    }
}

/* --- Minimalist Dark Footer --- */
.footer {
    position: relative;
    background-image: url('assets/banner-pie-de-pagina.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    padding: 4rem 0 0;
    font-family: 'Outfit', sans-serif;
    overflow: hidden;
}

/* Dark Overlay */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    /* Strong overlay for readability */
    z-index: 0;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 3rem;
}

/* Column 1: Brand & Description */
.footer-brand img {
    height: 55px;
    /* Adjusted size */
    margin-bottom: 1.2rem;
    filter: brightness(0) invert(1);
    /* Ensure logo is white */
}

.footer-brand p {
    color: #e2e8f0;
    /* Light Gray */
    font-size: 15px;
    font-weight: 300;
    line-height: 1.6;
    max-width: 320px;
}

/* Column 2: Navigation */
.footer-links h4,
.footer-contact h4 {
    display: none;
    /* Hide headers for minimalist look if desired, or keep specific style */
}

.footer-links ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #00ff88;
    /* Medical Green Hover */
    transform: translateX(5px);
}

/* Column 3: Contact & Social */
.footer-contact {
    text-align: right;
}

.footer-phone {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    /* Bold */
    color: var(--white);
    margin-bottom: 1.5rem;
    text-decoration: none;
}

.footer-phone:hover {
    color: #00ff88;
}

.social-icons {
    display: flex;
    gap: 1.2rem;
    justify-content: flex-end;
}

/* Minimalist Social Icons */
.social-btn {
    width: 28px;
    height: 28px;
    color: var(--white);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* Subtle border */
    border-radius: 50%;
}

.social-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.social-btn:hover {
    color: #00ff88;
    border-color: #00ff88;
    transform: translateY(-3px);
}

/* Bottom Bar */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
    margin-top: 2rem;
}

.footer-bottom p {
    color: #94a3b8;
    /* Slate 400 */
    font-size: 13px;
    font-weight: 300;
    margin: 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-brand p {
        margin: 0 auto;
    }

    .footer-contact {
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-links ul {
        align-items: center;
    }

    .footer-links a:hover {
        transform: translateX(0);
        /* Remove shift on mobile */
    }
}