/* --- CONFIGURACIÓN GENERAL --- */
:root {
    --dark-bg: #031526;      /* Azul muy oscuro de fondo */
    --card-bg: #072034;      /* Azul/teal oscuro para tarjetas */
    --accent: #1e6fff;       /* Azul eléctrico principal (más intenso) */
    --vital-color: #e84b3b;  /* Color rojo para línea de signos vitales y destacado */
    --text-main: #ffffff;    /* Texto blanco */
    --text-muted: #b6c2cf;   /* Texto gris azulado suave */
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-main);
    line-height: 1.6;
}

/* Reserve space for fixed navbar so page content is not hidden under it */
body { padding-top: 76px; }

@media (max-width: 768px) {
    body { padding-top: 68px; }
}

/* --- BARRA DE NAVEGACIÓN --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 14px 0;
    z-index: 2000;
    background: linear-gradient(to bottom, rgba(3,12,30,0.95), rgba(3,12,30,0.14));
    backdrop-filter: blur(6px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 20px;
    background: rgba(10,14,20,0.85);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.04);
}

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Contenedor reutilizable */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Imagen del logo: tamaño controlado y responsivo */
.logo-img {
    width: 140px;        /* tamaño por defecto en escritorio */
    max-width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .logo-img { width: 90px; }
}

.navbar .nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
    flex-wrap: nowrap; /* avoid wrapping into two lines */
    overflow-x: auto; /* allow horizontal scroll when space is tight */
    -webkit-overflow-scrolling: touch;
}

.navbar .nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    transition: color 0.3s;
    white-space: nowrap; /* keep each link on one line */
}

/* hide scrollbar for nav-links on modern browsers */
.navbar .nav-links::-webkit-scrollbar { height: 6px; display: none; }
.navbar .nav-links { -ms-overflow-style: none; scrollbar-width: none; }

/* Small icon links in navbar for horario/direccion */
.nav-meta a{ display:inline-flex; gap:8px; align-items:center; padding:6px 8px; border-radius:6px; color:var(--text-main); }
.nav-meta a svg{ display:block; width:18px; height:18px; color:var(--accent); }
.nav-meta a span{ font-size:0.85rem; color:var(--text-muted); font-weight:700; }
.nav-meta a:hover{ background: rgba(255,255,255,0.02); transform:translateY(-2px); }

/* make nav icons more visible on larger screens */
@media (min-width:900px){
    .nav-meta a span{ color: var(--accent); }
}

.navbar .nav-links a:hover {
    color: var(--accent);
}

/* Botón de ubicación en el header */
.btn-location {
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.12);
    padding: 10px 14px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 700;
    margin-left: 18px;
    transition: background 0.2s, transform 0.15s;
}
.btn-location:hover {
    background: rgba(255,255,255,0.06);
    transform: translateY(-2px);
}

/* Mostrar botón en móviles incluso si el menú se oculta */
@media (max-width: 768px) {
    .btn-location { display: inline-block; }
}

/* --- HERO SECTION (SLIDER AUTOMÁTICO) --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-color: var(--dark-bg); /* Fondo de seguridad */
    background-size: cover;
    background-position: center;
    /* Activa la animación del slider */
    animation: slideShow 20s infinite;
}

/* --- SECUENCIA DE FOTOS --- */
/* Asegúrate de que la carpeta se llame 'Galeria' (con G mayúscula) */
@keyframes slideShow {
    /* Foto 1 */
    0% { background-image: url('Galeria/_MG_5037-Mejorado-NR.jpg'); }
    19% { background-image: url('Galeria/_MG_5037-Mejorado-NR.jpg'); }

    /* Foto 2 */
    20% { background-image: url('Galeria/_MG_5086-Mejorado-NR.jpg'); }
    39% { background-image: url('Galeria/_MG_5086-Mejorado-NR.jpg'); }

    /* Foto 3 */
    40% { background-image: url('Galeria/_MG_5138-Mejorado-NR.jpg'); }
    59% { background-image: url('Galeria/_MG_5138-Mejorado-NR.jpg'); }

    /* Foto 4 */
    60% { background-image: url('Galeria/_MG_8841-Mejorado-NR.jpg'); }
    79% { background-image: url('Galeria/_MG_8841-Mejorado-NR.jpg'); }

    /* Foto 5 */
    80% { background-image: url('Galeria/_MG_8849-Mejorado-NR.jpg'); }
    99% { background-image: url('Galeria/_MG_8849-Mejorado-NR.jpg'); }

    /* Vuelta al inicio */
    100% { background-image: url('Galeria/_MG_5037-Mejorado-NR.jpg'); }
}

/* Capa oscura (Overlay) */
.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(11, 13, 18, 0.75); /* Oscurece las fotos para leer el texto */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
    margin-top: 60px;
}

/* --- HERO: ficha del doctor bajo el título --- */
.hero-doctor {
    margin-top: 8px; /* menos separación con el H1 */
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    color: var(--text-main);
}
.hero-doctor-name {
    font-size: 2.6rem; /* más discreto */
    margin: 6px 0 4px 0;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.05;
    color: rgba(255,255,255,0.95);
}
.hero-doctor-sub {
    color: var(--text-muted);
    font-size: 0.98rem;
    margin: 4px 0 10px 0;
    letter-spacing: 1px;
}
.hero-doctor-text {
    color: #d7e2ea;
    font-size: 1rem;
    max-width: 820px;
    margin: 6px auto;
    line-height: 1.45;
}

@media (max-width: 992px) {
    .hero-doctor-name { font-size: 1.8rem; }
    .hero-doctor-sub { font-size: 0.9rem; }
    .hero-doctor-text { font-size: 0.95rem; }
}

/* --- EMERGENCIAS (panel claro integrado en diseño) --- */
.emergency-section {
    margin: 28px auto;
    background: linear-gradient(180deg, rgba(21,26,35,0.95), rgba(17,20,26,0.95));
    color: var(--text-main);
    border-radius: 12px;
    padding: 28px 20px;
    max-width: 1100px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.6);
    text-align: center;
    border: 1px solid rgba(255,255,255,0.04);
}

/* Gallery tabs (Imágenes / Videos) */
.gallery-tabs { display:flex; gap:10px; margin: 18px 0 12px 0; }
.gallery-tabs .tab {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.02));
    color: var(--text-main);
    border: 1px solid rgba(255,255,255,0.04);
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
}
.gallery-tabs .tab.active { background: linear-gradient(90deg,#007bff,#0056a3); color: white; }

.gallery-section.videos { display:block; }
.videos-grid .video-placeholder { color: var(--text-muted); padding: 40px 12px; text-align:center; border: 1px dashed rgba(255,255,255,0.03); border-radius:8px; }

/* Gallery grids: separar claramente imágenes y videos y asegurar ocultado por `hidden` */
.gallery-section{ margin-top:28px; }
.gallery-section .thumb-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    align-items: start;
}
.gallery-section.images .thumb{ height: 160px; border-radius:8px; background-size: contain; background-repeat: no-repeat; background-position: center; display:block; overflow:hidden; box-shadow: 0 8px 22px rgba(0,0,0,0.6); }
.gallery-section.videos .thumb{ height: 180px; border-radius:8px; background-size: cover; background-position: center; display:block; overflow:hidden; box-shadow: 0 8px 22px rgba(0,0,0,0.6); }

/* Asegurar que hidden oculte completamente la sección (evita que elementos floten fuera) */
.gallery-section[hidden]{ display: none !important; }

@media (max-width: 600px) {
    .gallery-tabs { justify-content: center; }
}

/* Ensure top carousel images show fully on small screens (mobile) */
@media (max-width: 768px) {
    .carousel-track, .carousel-track .carousel-slide { height: auto !important; }
    .carousel-slide img { width: 100%; height: auto; object-fit: contain; display: block; }
    .carousel-track-wrap { overflow-x: auto; }
    /* reduce arrow size and position for mobile */
    .carousel-btn { width: 40px; height: 40px; font-size: 20px; }
}

/* Lightbox media styles */
.lightbox { position: fixed; inset: 0; display: flex; align-items: flex-start; justify-content: center; z-index: 100000; padding: 20px; }
.lightbox-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.85); display:flex; align-items:flex-start; justify-content:center; }
.lightbox-media { max-width: calc(100% - 40px); width: 100%; max-height: calc(100vh - 80px); overflow-y: auto; overflow-x: hidden; display:flex; align-items:flex-start; justify-content:center; padding:20px; box-sizing:border-box; }
.lightbox-img { width: 100%; height: auto; display:block; object-fit: contain; object-position: top center; border-radius: 6px; }
.lightbox-video { max-width: 100%; max-height: 100%; background: black; display:block; border-radius: 6px; }
.lightbox-close { position: fixed; right: 22px; top: 18px; z-index: 100001; background: rgba(0,0,0,0.4); color: white; border: none; font-size: 28px; cursor: pointer; padding: 6px 10px; border-radius: 6px; }

/* Prev / Next controls inside lightbox */
.lightbox-prev, .lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100002;
    background: rgba(0,0,0,0.45);
    color: white;
    border: none;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(0,0,0,0.6); }

/* Play icon overlay for video thumbnails */
.thumb { position: relative; }
.thumb .play-icon { position: absolute; inset: 0; display:flex; align-items:center; justify-content:center; pointer-events:none; }
.thumb .play-icon::after { content: ''; display:block; width:56px; height:56px; border-radius:50%; background: rgba(0,0,0,0.5); box-shadow: 0 6px 18px rgba(0,0,0,0.6); }
.thumb .play-icon::before { content: ''; position:absolute; width:0; height:0; border-left: 18px solid white; border-top: 11px solid transparent; border-bottom: 11px solid transparent; transform: translateX(4px); }
.emergency-section h2 {
    color: var(--vital-color);
    font-size: 3rem;
    margin: 6px 0 8px 0;
    letter-spacing: 1px;
}
.emergency-phone {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 6px 0 12px 0;
}
.emergency-actions { margin: 8px 0 10px 0; }
.emergency-btn{
    display:inline-flex;
    width:54px;
    height:54px;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    margin:0 8px;
    text-decoration:none;
    font-size:20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.04);
}
.emergency-btn.phone{ background: rgba(255,255,255,0.02); color: var(--text-main); }
.emergency-btn.whatsapp{ background: #25D366; color:white; box-shadow: 0 8px 24px rgba(37,211,102,0.18); }
.emergency-note{ color: var(--text-muted); margin-top:8px; font-weight:700; }

@media (max-width: 768px){
    .emergency-section h2{ font-size:2rem; }
    .emergency-phone{ font-size:1.6rem; }
    .emergency-btn{ width:48px; height:48px; font-size:18px; }
}

/* --- ANIMACIÓN LÍNEA DE LATIDO --- */
.vital-signs-header {
    width: 700px;
    max-width: 90vw;
    height: 60px;
    margin: 0 auto 12px; /* centra dentro del hero y separa del título */
    position: relative; /* se posiciona dentro del flujo del hero (se desplaza al hacer scroll) */
    pointer-events: none;
}

.vital-signs-header svg { width: 100%; height: 100%; display: block; }

.vital-signs-header polyline {
    fill: none;
    stroke: var(--vital-color);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: dash 3s linear infinite;
}

@keyframes dash {
    0% { stroke-dashoffset: 1000; opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 0; }
}

/* (Se eliminó la animación del corazón; queda sólo la línea de signos vitales) */

/* --- TIPOGRAFÍA Y BOTONES --- */
.hero-content h1 {
    font-size: 3.5rem;
    margin: 0 0 8px 0; /* reducido para menos separación */
    text-transform: uppercase;
    font-weight: 900;
    line-height: 1.02;
}

.hero-content p {
    font-size: 1.25rem;
    color: #e0e0e0;
    margin-bottom: 40px;
}

.highlight { color: var(--vital-color); }

/* NAV TOGGLE: visible on small screens, hidden on desktop */
.nav-toggle {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 20px;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
}

@media (min-width: 768px) {
    .navbar .nav-toggle { display: none !important; }
}

/* Hero contact button - visible only on small screens */
/* ensure nav-toggle is clickable above other elements on mobile */
.nav-toggle { position: relative; z-index: 3000; pointer-events: auto; }

/* increase tappable area for hamburger on small screens */
@media (max-width: 768px){
    .nav-toggle {
        width: 48px;
        height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 8px;
        touch-action: manipulation;
    }
}

.cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Para móviles */
}

/* Botón Azul */
.btn-primary {
    background-color: var(--accent);
    color: white;
    padding: 16px 32px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    border: 1px solid var(--accent);
    text-transform: uppercase;
    transition: transform 0.2s;
}

.btn-primary:hover {
    background-color: #0056a3;
    transform: translateY(-3px);
}

/* Botón Blanco Transparente (Arreglado) */
.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white !important; /* Importante para que se vea blanco */
    padding: 16px 32px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background-color: white;
    color: black !important;
}

/* --- SECCIÓN DE SERVICIOS --- */
.services {
    padding: 100px 20px;
    background-color: var(--dark-bg);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    text-transform: uppercase;
    color: white;
}

/* Breadcrumb for subpages */
.page-breadcrumb{
    display:inline-flex;
    gap:10px;
    align-items:center;
    color:var(--text-muted);
    font-weight:700;
    margin: 6px 0 10px 0;
}
.page-breadcrumb a{ color:var(--accent); text-decoration:none; }
.page-breadcrumb .sep{ color: rgba(255,255,255,0.12); }
.page-breadcrumb span[aria-current="page"]{ color:var(--text-main); font-weight:900; }

@media (max-width:600px){ .page-breadcrumb{ font-size:0.9rem; gap:6px; } }

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background-color: var(--card-bg);
    border: 1px solid #2a2f3a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
}

/* Estilos específicos para las tarjetas de estudios */
.study-card .card-body {
    text-align: center; /* centrar contenido */
    padding: 20px 18px; /* asegurar espacio entre imagen y título */
}

.study-card .card-body h3 {
    font-size: 1.4rem; /* restaurado al tamaño anterior */
    line-height: 1.2;
    margin: 8px 0 0 0;
    font-weight: 800;
    text-transform: uppercase; /* todo en mayúsculas */
    letter-spacing: 0.2px;
    white-space: normal; /* permitir saltos de línea */
    word-break: break-word;
    hyphens: auto;
}

@media (max-width: 600px) {
    .study-card .card-body h3 { font-size: 1.0rem; }
}

@media (min-width: 1200px) {
    .study-card .card-body h3 { font-size: 1.35rem; }
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.card-img {
    height: 220px;
    background-size: cover;
    background-position: center;
}

.card-body { padding: 30px; }

.card-body h3 {
    margin-top: 0;
    color: white;
    font-size: 1.4rem;
}

.card-body p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Subtítulo breve dentro de cada tarjeta de estudio */
.card-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 8px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: none;
}

/* --- ESTUDIOS: menú interactivo y galería por estudio --- */
.studies { padding-top: 30px; padding-bottom: 6px; }
.studies-menu {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 26px;
    flex-wrap: wrap;
}
.study-btn {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.02));
    color: var(--text-main);
    border: 1px solid rgba(255,255,255,0.04);
    padding: 12px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: 0.95rem;
    transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.08s ease;
    box-shadow: inset 0 -1px 0 rgba(255,255,255,0.02);
}
.study-btn:hover { transform: translateY(-2px); background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(0,0,0,0.06)); }
.study-btn.active {
    background: linear-gradient(90deg, #007bff, #0056a3);
    border-color: rgba(0,123,255,0.9);
    color: #fff;
    box-shadow: 0 8px 28px rgba(0,123,255,0.18);
}
.study-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto 40px auto;
}
.study-thumb {
    position: relative;
    background-size: cover;
    background-position: center;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    display: block;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    box-shadow: 0 8px 22px rgba(0,0,0,0.6);
}
.study-thumb::after{ content: ''; position:absolute; inset:0; background:linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0.38)); mix-blend-mode:multiply; transition:opacity 0.18s ease; }
.study-thumb:hover{ transform: translateY(-6px) scale(1.02); box-shadow: 0 18px 44px rgba(0,0,0,0.7); }
.study-thumb:hover::after{ opacity:0.85; }

/* Estudios page layout */
.studies-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.studies-sidebar { position: sticky; top: 92px; }
.studies-content { }
.study-panel {
    background: var(--card-bg);
    border: 1px solid #22272f;
    padding: 22px;
    border-radius: 8px;
    color: var(--text-main);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    outline: none;
}
.study-panel h2 { margin-top: 0; }
.study-panel h3 { color: var(--accent); margin-bottom:6px; }
.study-panel ul { margin-top: 6px; margin-bottom: 12px; }

/* Hero image inside a study panel: reduce to half width and center */
.study-panel .study-hero{
    display: block;
    max-width: 50%;
    width: 50%;
    height: auto;
    margin: 12px auto; /* center horizontally */
    transition: max-width 240ms ease, width 240ms ease;
}

@media (max-width: 900px) {
    .studies-layout { grid-template-columns: 1fr; }
    .studies-sidebar { position: relative; top: auto; }
}

/* --- Games-like grid for Estudios --- */
.studies-page { padding-top: 8px; }
.studies-header { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:18px; }
.section-title-left { margin:0; font-size:1.8rem; text-transform:uppercase; }
.filter-chips { display:none; }

.studies-grid { display:grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items:start; }
.study-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.04));
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(255,255,255,0.04);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    position: relative;
    height: 400px; /* aumentado para mostrar subtítulos largos */
}
.study-card:hover { transform: translateY(-8px); box-shadow: 0 18px 54px rgba(0,0,0,0.7); }
.card-media { flex: 0 0 220px; height: 220px; background-size: cover; background-position: center; display: block; }
.card-badge { position: absolute; left: 14px; top: 14px; background: rgba(0,0,0,0.6); color: white; padding: 6px 8px; font-weight: 800; font-size: 0.75rem; border-radius: 6px; text-transform: uppercase; border: 1px solid rgba(255,255,255,0.06); }
.card-body { padding: 12px 14px 18px 14px; display: block; flex: 1 1 auto; }
.card-body h3 { margin:6px 0 4px 0; font-size: inherit; }
.card-body .muted { color:var(--text-muted); font-size:0.92rem; margin:0; }

@media (max-width:1200px) { .studies-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width:900px) { .studies-grid { grid-template-columns: repeat(2, 1fr); } .section-title-left { font-size:1.4rem; } }
@media (max-width:600px) { .studies-grid { grid-template-columns: 1fr; } }

/* Smaller fixed heights on narrow viewports */
@media (max-width: 900px) {
    .study-card { height: 320px; }
    .card-media { flex-basis: 180px; height: 180px; }
}
@media (max-width: 480px) {
    .study-card { height: auto; } /* allow natural flow on very small screens */
    .card-media { height: 160px; flex-basis: 160px; }
}


/* --- Sidebar nav component for Estudios --- */
:root {
    --side-bg: rgba(255,255,255,0.02);
    --side-panel: #0f1418;
    --side-muted: #9aa2ab;
    --side-text: #ffffff;
    --side-accent: #007bff; /* requested bright blue */
    --side-hover: #333333;
    --side-radius: 8px;
}

.sidebar-nav{
    display:flex;
    flex-direction:column;
    gap:12px;
    width:100%;
    max-width:320px;
    background: linear-gradient(180deg, var(--side-bg), transparent);
    padding:12px;
    box-sizing:border-box;
    border-radius:10px;
}
.sidebar-nav .breadcrumb{ color:var(--side-muted); text-decoration:none; font-size:0.95rem; display:inline-block; }
.nav-group{ display:flex; flex-direction:column; gap:8px; }
.group-title{ display:flex; align-items:center; gap:10px; font-size:0.78rem; color:var(--side-muted); text-transform:uppercase; letter-spacing:0.6px; padding-left:15px; }
.group-icon{ display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; }
.group-icon svg{ width:24px; height:24px; display:block; fill:var(--side-muted); }
.breadcrumb{ padding-left:15px; }
.nav-item{ display:block; width:100%; text-align:left; padding:12px 14px; padding-left:46px; background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.02)); color:var(--side-text); border:1px solid rgba(255,255,255,0.04); border-radius:var(--side-radius); cursor:pointer; font-weight:700; text-transform:uppercase; letter-spacing:0.6px; transition:background 0.15s ease, transform 0.08s ease, box-shadow 0.15s ease; box-sizing:border-box; }
.nav-item:hover{ background:var(--side-hover); transform:translateY(-2px); box-shadow:0 10px 26px rgba(0,0,0,0.6); }
.nav-item.active, .nav-item[aria-pressed="true"]{ background: linear-gradient(90deg, #007bff, #0056a3); color:#fff; border-color: rgba(0,123,255,0.9); box-shadow: 0 12px 32px rgba(0,123,255,0.16); }
.nav-item:focus{ outline:3px solid rgba(0,123,255,0.18); outline-offset:2px; border-radius:var(--side-radius); }

/* icon color variables */
:root{
    --icon-monitoreo: #26d07a;
    --icon-ritmo: #ffc857;
    --icon-hemodinamia: #ff6b6b;
    --icon-esfuerzo: #8b63ff;
    --icon-otros: #4bd1a0;
}

/* color each category icon */
#g-monitoreo .group-icon svg{ fill:var(--icon-monitoreo); }
#g-ritmo .group-icon svg{ fill:var(--icon-ritmo); }
#g-hemodinamia .group-icon svg{ fill:var(--icon-hemodinamia); }
#g-esfuerzo .group-icon svg{ fill:var(--icon-esfuerzo); }
#g-otros .group-icon svg{ fill:var(--icon-otros); }

@media (max-width:600px){ .sidebar-nav{ max-width:100%; padding:10px; border-radius:6px; } .group-title{ font-size:0.72rem; } .nav-item{ padding:10px; padding-left:14px; font-size:0.95rem; } }


/* --- SECCIÓN DEL DOCTOR --- */
.doctor-section {
    padding: 100px 20px;
    background-color: #0f1219; /* Un tono ligeramente diferente al fondo base */
    border-top: 1px solid #1c222e;
}

.doctor-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap; /* Para que se adapte a celulares */
}

/* Estilo de la Foto */
.doctor-image-wrapper {
    position: relative;
    max-width: 460px; /* slightly larger to emphasize the photo */
}

.doctor-image-wrapper::before{
    content: '';
    position: absolute;
    left: -20px;
    top: -18px;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0,116,224,0.08), rgba(0,116,224,0.02));
    transform: rotate(-4deg);
    z-index: 0;
}

.doctor-photo {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 28px 60px rgba(3,12,28,0.65), 0 6px 18px rgba(0,116,224,0.12);
    border: 1px solid rgba(255,255,255,0.04);
    display: block;
    position: relative;
    z-index: 1;
    transition: transform 0.45s cubic-bezier(.2,.9,.2,1), box-shadow 0.35s ease;
}

.doctor-photo:hover{
    transform: translateY(-8px) scale(1.02) rotate(-0.6deg);
    box-shadow: 0 40px 90px rgba(3,12,28,0.7), 0 14px 28px rgba(0,116,224,0.14);
}

/* Etiqueta flotante de experiencia - más discreta y pulida */
.experience-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background-color: rgba(255,255,255,0.06);
    color: var(--text-main);
    padding: 8px 12px;
    border-radius: 999px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(4px);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 64px;
}

.experience-badge .years {
    display: block;
    font-size: 1.1rem;
    font-weight: 900;
    line-height: 1;
    color: var(--accent);
}

.experience-badge .text {
    font-size: 0.68rem;
    text-transform: uppercase;
    color: var(--text-muted);
    line-height: 1;
}

/* Texto del Doctor */
.doctor-bio {
    flex: 1;
    min-width: 300px;
    text-align: left; /* alinear texto a la izquierda en escritorio */
}

.subtitle {
    color: var(--accent);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.doctor-bio h2 {
    font-size: 2.5rem;
    margin-top: 0;
    color: white;
    line-height: 1.2;
}

.bio-text {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* Lista de credenciales */
.credentials-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.credentials-list li {
    margin-bottom: 15px;
    color: white;
    font-size: 1.05rem;
}

.check {
    color: var(--accent);
    font-weight: bold;
    margin-right: 10px;
}

/* --- RESPONSIVE (MÓVILES) --- */
@media (max-width: 992px) {
    .doctor-content { flex-direction: column; text-align: center; }
    .doctor-image-wrapper { flex: 0 0 auto; }
    .doctor-photo { width: 240px; height: 240px; margin: 0 auto; }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.2rem; }
    .nav-links { display: none; } /* Oculta menú en móvil por simplicidad */
    .cta-group { flex-direction: column; }
    .logo-img { width: 90px; }
}

/* ------------------ MOBILE NAV / UX ------------------ */
.nav-toggle {
    display: inline-flex;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.08);
    color: white;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 20px;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .navbar .nav-links {
        display: flex; /* use transform to hide and slide */
        position: fixed;
        right: 0;
        top: 72px; /* place below the navbar */
        height: calc(100vh - 72px);
        max-height: 72vh;
        width: 280px;
        transform: translateX(100%);
        transition: transform 320ms ease;
        background: linear-gradient(180deg, rgba(6,8,12,0.98), rgba(6,8,12,0.98));
        padding: 24px 18px;
        flex-direction: column;
        gap: 12px;
        box-shadow: -8px 0 30px rgba(0,0,0,0.6);
        overflow: auto;
        z-index: 4100;
    }
    .navbar .nav-links.open { transform: translateX(0); }
    .navbar .nav-links li { margin: 0; }
    .navbar .nav-links a { display: block; padding: 8px 12px; }
    .btn-location { margin-left: 8px; padding: 8px 10px; }
}

/* --- TOP SLIDE MENU --- */
.top-slide-menu{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, rgba(6,8,12,0.99), rgba(6,8,12,0.96));
    transform: translateY(-120%);
    transition: transform 320ms ease;
    z-index: 4000;
    padding: 20px 18px 24px 18px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
    /* don't cover the entire viewport */
    max-height: 72vh;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    overflow: auto;
}
.top-slide-menu.open{ transform: translateY(0); }
.top-slide-menu .close-top-menu{ position:absolute; right:12px; top:10px; background:transparent; border:0; color:white; font-size:20px; cursor:pointer; }
.top-slide-menu .top-menu-links{ list-style:none; margin:0; padding:20px 0 6px 0; display:flex; gap:18px; justify-content:center; flex-wrap:wrap; }
.top-slide-menu .top-menu-links li{ margin:0; }
.top-slide-menu .top-menu-links a{ color:var(--text-main); text-decoration:none; font-weight:800; padding:8px 12px; border-radius:8px; display:inline-block; }
.top-slide-menu .top-menu-links a:hover{ background: rgba(255,255,255,0.03); color:var(--accent); }

/* Overlay behind the top menu */
.top-menu-overlay{ position: fixed; inset: 0; background: rgba(0,0,0,0.4); opacity: 0; pointer-events: none; transition: opacity 240ms ease; z-index: 3900; }
.top-menu-overlay.visible{ opacity: 1; pointer-events: auto; }

/* Mostrar el menú superior deslizable tanto en escritorio como en móvil */

/* Make CTA buttons stretch on small screens */
@media (max-width: 480px) {
    .cta-group a { width: 100%; padding: 14px 18px; box-sizing: border-box; }
    .btn-primary, .btn-secondary { display: block; width: 100%; text-align: center; }
    .hero { height: 80vh; }
    .hero-content { padding: 12px; margin-top: 40px; }
    .hero-content h1 { font-size: 1.6rem; }
    .hero-doctor-name { font-size: 1.2rem; }
    .hero-doctor-sub { font-size: 0.85rem; }
}

/* --- TOP HORIZONTAL CAROUSEL MENU --- */
.top-carousel{
    width: 100%;
    max-width: 1200px;
    margin: 14px auto;
    /* espacio por defecto; JS ajustará dinámicamente según la altura del nav */
    margin-top: 12px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    box-sizing: border-box;
    /* dejar transparente para que las imágenes queden bajo el navbar */
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    z-index: 10;
}
.carousel-track-wrap{ overflow: hidden; flex: 1 1 auto; display:flex; justify-content:center; }
.carousel-track{
    display: flex;
    gap: 14px;
    transition: transform 300ms ease;
    will-change: transform;
    scroll-behavior: smooth;
    justify-content: flex-start;
    align-items: center;
    /* enable snap scrolling for touch devices */
    scroll-snap-type: x mandatory;
}
.carousel-slide{
    flex: 0 0 100%;
    min-width: 100%;
    display: block;
    padding: 0;
    background: transparent;
    border-radius: 10px;
    overflow: hidden;
    scroll-snap-align: center;
}
.carousel-slide:hover{ transform: translateY(-2px); }
.carousel-slide img{ display:block; width:100%; height:auto; object-fit:contain; }
.carousel-btn{ background: rgba(0,0,0,0.6); color:white; border:0; width:44px; height:64px; border-radius:8px; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; font-size:26px; box-shadow: 0 8px 26px rgba(0,0,0,0.6); position:relative; }
.carousel-btn.left{ margin-left:-12px; }
.carousel-btn.right{ margin-right:-12px; }
.carousel-dots{ display:flex; gap:8px; justify-content:center; align-items:center; max-width:1200px; margin:10px auto 0; padding:6px 12px; box-sizing:border-box; }
.carousel-dots button{ width:28px; height:6px; border-radius:6px; background:rgba(255,255,255,0.12); border:0; padding:0; cursor:pointer; }
.carousel-dots button.active{ background:var(--accent); }

@media (max-width: 900px) {
    .study-card { height: 360px; }
}
}

@media (max-width: 520px){
    .carousel-btn{ width:36px; height:46px; font-size:22px; }
    .carousel-slide img{ height:180px; object-fit:contain; }
}

/* Preserve taller cropped banners on wider screens where desired */
@media (min-width: 769px) {
    .carousel-slide img{ height:340px; object-fit:cover; }
}

/* --- Mobile: enable touch scrolling on carousel and vertical top menu --- */
@media (max-width: 768px) {
    .carousel-track-wrap{ overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .carousel-track-wrap::-webkit-scrollbar{ display:none; }
    .carousel-track-wrap{ -ms-overflow-style: none; scrollbar-width: none; }

    /* Make top slide menu vertical and full-width on mobile */
    .top-slide-menu .top-menu-links{ display:flex; flex-direction:column; align-items:flex-start; padding:12px 18px; gap:12px; }
    .top-slide-menu .top-menu-links a{ display:block; width:100%; padding:12px 14px; border-radius:8px; }
}

/* --- ESTUDIOS: header and mobile centering --- */
header .container { align-items: center; }

@media (max-width: 768px) {
    /* Stack header elements and center them on small screens */
    header .container { display:flex; flex-direction:column; align-items:center; text-align:center; gap:10px; }
    header h1 { margin:0; }
    /* Make the 'Volver al inicio' button a solid blue pill on header */
    header .btn-secondary { background-color: var(--accent); color: white !important; border: 1px solid var(--accent); padding:10px 18px; border-radius:8px; text-transform:uppercase; font-weight:800; }

    /* Center the internal 'Estudios' section title and the filter chips */
    .studies-header { display:flex; flex-direction:column; align-items:center; gap:12px; }
    .studies-header .section-title-left { text-align:center; }
    /* filtros removidos */
}

/* Doctor section mobile tweaks */
@media (max-width: 768px) {
    .doctor-content { gap: 20px; padding: 0 8px; }
    .doctor-photo { width: 220px; height: auto; }
    .experience-badge { right: 8px; bottom: -14px; padding: 10px 14px; }
    .experience-badge .years { font-size: 1.2rem; }
}

/* Contact section stacked on small screens */
@media (max-width: 768px) {
    .contact-container { flex-direction: column; gap: 18px; }
    .contact-left, .contact-right { min-width: 0; }
    .contact-section { padding: 28px 14px 60px; }
}

/* Reduce large paddings for small viewports */
@media (max-width: 420px) {
    .services { padding: 60px 12px; }
    .doctor-section { padding: 40px 12px; }
}

/* --- GALERÍA (miniaturas) --- */
.gallery-section {
    padding: 60px 20px;
    background: transparent;
}
.gallery-section .section-title { margin-bottom: 30px; }
.thumb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    max-width: 1200px;
    margin: 0 auto;
}
.thumb {
    background-size: cover;
    background-position: center;
    height: 140px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.5);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s;
}
.thumb:hover { transform: translateY(-6px); box-shadow: 0 12px 26px rgba(0,0,0,0.6); }

@media (max-width: 480px) {
    .thumb { height: 110px; }
}

/* --- SECCIÓN CONTACTO --- */
.contact-section {
    background: linear-gradient(180deg, rgba(3,6,12,0.88) 0%, rgba(6,10,18,0.95) 100%);
    color: var(--text-main);
    padding: 60px 20px 40px 20px;
}
.contact-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
}
.contact-card{ display:flex; gap:28px; align-items:stretch; width:100%; }
.contact-card .contact-left, .contact-card .contact-right{ background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.02)); padding:26px; border-radius:12px; border:1px solid rgba(255,255,255,0.04); box-shadow: 0 14px 40px rgba(0,0,0,0.6); }
.contact-card .contact-left{ flex:1; }
.contact-card .contact-right{ width:360px; display:flex; flex-direction:column; justify-content:center; align-items:flex-start; }

.contact-highlight{ background: linear-gradient(180deg, #0fbf7a22, #0fbf7a11); border: 1px solid rgba(15,191,122,0.12); }

.phone-number{ display:block; color: var(--accent); font-weight:800; font-size:1.05rem; text-decoration:none; margin-bottom:8px; }
.phone-number:hover{ text-decoration:underline; }
.whatsapp-link{ color: #25d366; }

.btn-whatsapp.large{ padding:14px 22px; font-size:1rem; border-radius:8px; }

/* Emphasize headings in contact card */
.contact-card h3{ color: var(--accent); letter-spacing:1px; margin-top:0; }

@media (max-width: 900px){
    .contact-card{ flex-direction:column; }
    .contact-card .contact-right{ width:100%; align-items:center; text-align:center; }
    .contact-card .contact-left{ text-align:center; }
}
.contact-left, .contact-right {
    flex: 1;
    min-width: 260px;
}
.contact-section h3 {
    color: var(--accent);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.contact-section p { color: var(--text-muted); margin-bottom: 16px; }
.contact-section a { color: var(--accent); text-decoration: none; font-weight: 700; }

/* New: grid layout for contact cards (Dirección / Horario / Contactos) */
.contact-cards{ display:grid; grid-template-columns: repeat(3, 1fr); gap:40px; max-width:1100px; margin:0 auto; align-items: stretch; }
.contact-cards .contact-card{ background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.02)); padding:30px; border-radius:12px; border:1px solid rgba(255,255,255,0.04); box-shadow: 0 12px 36px rgba(0,0,0,0.6); min-height:220px; z-index:0; display:flex; flex-direction:column; justify-content:space-between; height:100%; box-sizing:border-box; }
.contact-cards .contact-card h3{ margin-top:0; color:var(--accent); }
.contact-cards .contact-card p{ color:var(--text-muted); margin:8px 0; }
.contact-cards .contact-card a{ color:var(--accent); }

@media (max-width: 900px){
    .contact-cards{ grid-template-columns: 1fr; }
    .contact-cards .contact-card{ text-align:left; }
}

/* Tighter button styling inside contact cards to avoid oversized blocks */
.contact-cards .btn-location{ margin:8px 0 0 0; padding:10px 12px; border-radius:8px; display:inline-flex; align-items:center; gap:8px; border:1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.02); }
.contact-cards .btn-primary{ padding:10px 16px; border-radius:8px; }

/* WhatsApp CTA inside card: green button */
.contact-cards .btn-whatsapp{ background-color: #25d366; color: #042022; padding:10px 18px; border-radius:8px; display:inline-block; font-weight:800; text-decoration:none; border:1px solid rgba(0,0,0,0.08); }
.contact-cards .btn-whatsapp:hover{ background-color:#1ebe59; }

/* Optional visual dividers between cards on wide screens */
@media (min-width: 901px){
    .contact-cards { align-items: start; }
    .contact-cards .contact-card { position: relative; display:flex; flex-direction:column; justify-content:flex-start; gap:12px; height:100%; }
    /* ensure no pseudo-elements overlap */
    .contact-cards .contact-card::after{ display:none !important; }
}

/* --- INSTALACIONES: estilos para la subpágina instalaciones.html --- */
.instalaciones-grid{
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap:20px;
    max-width:1200px;
    margin: 18px auto 40px auto;
    align-items:start;
}
.instalaciones-grid figure{
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.02));
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.04);
    box-shadow: 0 12px 36px rgba(0,0,0,0.5);
    text-align: center;
}
.instalaciones-grid img{
    width:100%;
    height:200px;
    object-fit: cover;
    border-radius:8px;
    display:block;
}
.instalaciones-grid figcaption{
    margin-top:10px;
    color:var(--text-muted);
    font-weight:700;
    font-size:0.95rem;
}

@media (max-width: 768px){
    .instalaciones-grid img{ height:160px; }
}

/* Hero video styles (full-bleed autoplay background) */
.hero-video-section { animation: none; background: transparent; position: relative; min-height: 56vh; }
.hero-video {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 2; /* bring video to foreground */
    pointer-events: auto; /* allow controls */
}
/* hide overlay so video is shown en primer plano */
.hero-video-section .overlay { display: none; }
/* hide the header text as requested */
.hero-video-section .hero-content { display: none; }

/* Mobile: show full video frame without crop (contain) so content is visible */
@media (max-width: 768px) {
    .hero-video-section { height: auto !important; min-height: 0 !important; padding: 0; }
    .hero-video { object-fit: contain; height: auto; max-height: 52vh; position: relative; z-index: 1; }
    .hero-video-section { overflow: hidden; display: block; }
    /* Reduce spacing for the title on small screens */
    .instalaciones-top-title { padding: 18px 12px 12px; }
    .instalaciones-top-title h1 { font-size: 1.6rem; line-height: 1.05; }
}

/* When any menu is open, hide the instalaciones title to avoid overlap */
body.menu-open .instalaciones-top-title { display: none !important; }

/* Título encima del video en instalaciones.html */
.instalaciones-top-title { position: relative; z-index: 3000; text-align: center; padding: 48px 16px 22px; }
.instalaciones-top-title h1 { margin: 0; font-size: 2.6rem; text-transform: uppercase; font-weight: 900; color: var(--text-main); }
.instalaciones-top-title .subtitle { margin-top: 10px; color: var(--text-muted); font-weight:700; letter-spacing:1px; }

@media (max-width: 768px) {
    .instalaciones-top-title { padding: 28px 12px; }
    .instalaciones-top-title h1 { font-size: 1.6rem; }
}


/* Ensure phone numbers and links stack vertically and align */
.contact-cards .contact-card .phone-number{ display:block; margin:6px 0; }
.contact-cards .contact-card .whatsapp-link{ display:block; }

/* small location icon styling inside the btn-location link */
.loc-icon{ width:16px; height:16px; display:inline-block; vertical-align:middle; }

/* Botón específico para enviar WhatsApp dentro de la sección */
.btn-whatsapp { background-color: #25d366; border-color: #25d366; color: white; }
.btn-whatsapp:hover { background-color: #1ebe59; }

/* --- BOTÓN FLOTANTE WHATSAPP --- */
.whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(180deg,#25d366,#1ebe59);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 22px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    z-index: 200 !important;
}
.whatsapp-float:hover { transform: translateY(-4px); }
/* show official WhatsApp icon inside the floating button */
.whatsapp-float .whatsapp-icon{ width:26px; height:26px; display:block; background-image: url('https://upload.wikimedia.org/wikipedia/commons/6/6b/WhatsApp.svg'); background-size:contain; background-repeat:no-repeat; background-position:center; filter: drop-shadow(0 2px 2px rgba(0,0,0,0.25)) invert(1) sepia(0) saturate(0) hue-rotate(0deg); }

@media (max-width: 768px) {
    .contact-container { flex-direction: column; gap: 20px; }
    .whatsapp-float { right: 12px; bottom: 12px; }
}

/* Lightbox styles */
.lightbox{ position: fixed; inset:0; display:flex; align-items:center; justify-content:center; z-index:9999; }
.lightbox[hidden]{ display:none; }
.lightbox-backdrop{ position:relative; max-width:94vw; max-height:94vh; box-shadow: 0 40px 120px rgba(0,0,0,0.8); }
.lightbox-img{ display:block; max-width:100%; max-height:100%; border-radius:8px; box-shadow:0 18px 48px rgba(0,0,0,0.6); }
.lightbox-close{ position:absolute; right: -12px; top: -12px; background: rgba(0,0,0,0.6); color:white; border:0; width:40px; height:40px; border-radius:50%; font-size:20px; cursor:pointer; box-shadow:0 8px 20px rgba(0,0,0,0.6); }
.lightbox-backdrop::before{ content:''; position:absolute; inset:-24px; background: radial-gradient(ellipse at center, rgba(0,0,0,0.2), rgba(0,0,0,0.6)); border-radius:12px; z-index:-1; }