/* =========================================================================
   RESETEO GLOBAL ANTI-CUADROS AZULES
   ========================================================================= */
   *, a, button, input, select, .card-google, .tarjeta-sintoma {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
    -webkit-tap-highlight-color: transparent !important;
    outline: none !important;
}

a:focus, button:focus, a:active, button:active {
    outline: none !important;
}
/* =========================================================================
   VARIABLES GLOBALES (Paleta de colores estilo Médico/Institucional)
   ========================================================================= */
   :root {
    --color-principal: #002A4D; /* Azul oscuro corporativo */
    --color-secundario: #0284c7; /* Azul claro para hover y acentos */
    --color-fondo: #f8fafc; /* Gris ultra claro para fondos de secciones */
    --color-texto: #334155; /* Gris oscuro para lectura cómoda */
    --color-titulos: #0f172a;
    --blanco: #ffffff;
    --fuente-principal: 'Montserrat', sans-serif;
    --sombra-suave: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--fuente-principal);
    color: var(--color-texto);
    line-height: 1.6;
    background-color: var(--blanco);
    /* Margen superior para compensar el header fijo */
    padding-top: 80px; 
}

/* =========================================================================
   1. HEADER Y NAVEGACIÓN
   ========================================================================= */
   .header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-principal); /* <-- Acá pasamos de blanco a AZUL */
    box-shadow: var(--sombra-suave);
    z-index: 1000;
    height: 80px;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo img {
    height: 65px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--blanco); /* <-- Letras blancas para que resalten */
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #93c5fd; /* Un celestito claro al pasar el mouse */
}
/* =========================================================================
   BOTONES UNIFICADOS (Bordes que se rellenan y flotan)
   ========================================================================= */

/* 1. Botón chico (Ej: Turnos Online en la barra de arriba) */
.btn-primary {
    background-color: transparent;
    color: var(--blanco); /* Texto blanco para que contraste con la barra azul */
    border: 2px solid var(--blanco); /* Borde blanco */
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease; 
}
.btn-primary:hover {
    background-color: var(--blanco); /* Se rellena de color blanco */
    color: var(--color-principal); /* La letra cambia a azul oscuro para mantener la legibilidad */
    transform: translateY(-3px); 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); 
}

/* 2. Botones Grandes (Ej: "Agendar una consulta", "¿Dónde Encontrarnos?" y Obras Sociales) */
.btn-primary-large, 
.btn-outline {
    background-color: transparent;
    color: var(--color-principal);
    border: 2px solid var(--color-principal);
    padding: 13px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary-large:hover, 
.btn-outline:hover {
    background-color: var(--color-principal);
    color: var(--blanco);
    transform: translateY(-5px); /* Estos saltan un poquito más alto (5px) */
    box-shadow: 0 6px 15px rgba(0, 42, 77, 0.15);
}

/* Botón centrado para las páginas de tratamientos (Ex naranja) */
.btn-turno-naranja {
    background-color: transparent; 
    color: var(--color-principal);
    border: 2px solid var(--color-principal);
    padding: 13px 30px;
    border-radius: 8px; /* Mismo redondeo que los botones grandes */
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: block; 
    width: fit-content; 
    margin: 0 auto 40px auto; /* Mantiene el centrado perfecto en la pantalla */
    transition: all 0.3s ease;
}
.btn-turno-naranja:hover { 
    background-color: var(--color-principal);
    color: var(--blanco);
    transform: translateY(-5px); /* Efecto de salto hacia arriba */
    box-shadow: 0 6px 15px rgba(0, 42, 77, 0.15);
}
.hero {
    background-image: linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.4)), url('../imagenes/fondo-consultorio.jpg');
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat; 
    
    /* ACÁ ESTÁ LA MAGIA: Le obliga a ocupar exactamente el 100% del alto de la pantalla */
    min-height: 100vh; 
    display: flex;
    align-items: center; /* Centra el texto verticalmente en el nuevo espacio gigante */
    justify-content: center; /* Centra el texto horizontalmente */
    
    padding: 80px 20px 20px; /* El 80px arriba es para que el menú azul no lo tape */
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

/* Sacamos el fondo blanco, el borde y la sombra de la caja */
.hero-content {
    max-width: 650px; 
    margin: 0 auto;
    position: relative; 
    z-index: 10;
}

.hero h1 {
    font-size: 2.5rem; /* Lo agrando apenitas para que tenga más presencia */
    color: var(--color-principal); 
    font-weight: 800; 
    line-height: 1.2;
    margin-bottom: 15px;
    /* MAGIA: Resplandor blanco alrededor de las letras para que no se pierdan */
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.9), 0 0 20px rgba(255, 255, 255, 0.8); 
}

.hero p {
    font-size: 1.1rem; 
    color: var(--color-texto);
    font-weight: 600; 
    margin-bottom: 30px;
    /* Resplandor blanco para el subtítulo también */
    text-shadow: 0 1px 8px rgba(255, 255, 255, 0.9), 0 0 15px rgba(255, 255, 255, 0.8);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}
/* =========================================================================
   3. ESPECIALIDADES
   ========================================================================= */
/* =========================================================================
   3. SECCIÓN ESPECIALIDADES
   ========================================================================= */
   .seccion-especialidades {
    background-color: #f2f2f2; 
    padding: 80px 20px;
    border-bottom: 1px solid #e2e8f0;
    scroll-margin-top: 80px; /* <-- Esto frena el scroll justo antes de que el menú tape el título */
}

.contenedor-centrado {
    max-width: 1200px;
    margin: 0 auto;
}

.titulo-seccion {
    text-align: center;
    font-size: 2.5rem;
    color: var(--color-titulos);
    margin-bottom: 50px;
}

.grid-especialidades {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card-especialidad {
    background: var(--blanco);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px; /* Reduje el padding de 30px a 20px */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-especialidad:hover {
    transform: translateY(-5px);
    box-shadow: var(--sombra-suave);
    border-color: #cbd5e1;
}

.icono-especialidad {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.card-especialidad h3 {
    color: var(--color-principal);
    font-size: 1.3rem;
    margin-bottom: 0; /* Le sacamos el margen porque ya no hay lista abajo */
    margin-top: 10px; /* Le damos un respiro respecto a la foto */
}

.card-especialidad p {
    font-size: 0.95rem;
    color: #64748b;
}
/* =========================================================================
   ESTILOS PARA LAS IMÁGENES DE LAS TARJETAS (VERSIÓN BLINDADA)
   ========================================================================= */
   .img-especialidad {
    width: 100%;
    max-width: 100%;       /* Freno de emergencia */
    height: 120px;         /* Altura fija */
    object-fit: contain;   /* La magia para que el icono entre entero */
    margin-bottom: 15px;
    display: block;
}

/* =========================================================================
   4. FOOTER PROFESIONAL
   ========================================================================= */
   .footer {
    background-color: var(--color-principal); 
    color: #cbd5e1; /* Gris claro azulado, más elegante que el blanco puro */
    padding: 70px 20px 20px;
    font-size: 0.95rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    /* Divide el footer en 4 columnas en PC, y se adapta en celular */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

/* Columna de la marca (Logo) */
.footer-logo {
    height: 65px; /* Logo más grande y presente */
    margin-bottom: 20px;
    display: block;
}

.slogan-footer {
    font-style: italic;
    color: #94a3b8;
    line-height: 1.6;
}

/* Títulos de las columnas */
.footer-col h4 {
    color: var(--blanco);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}

/* Listas sin viñetas para enlaces y contacto */
.footer-links, .footer-contacto {
    list-style: none;
    padding: 0;
}

.footer-links li, .footer-contacto li {
    margin-bottom: 15px;
}

/* Enlaces generales del footer */
.footer-links a, .footer-contacto a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-links a:hover, .footer-contacto a:hover {
    color: #93c5fd; /* Celeste al pasar el mouse */
    transform: translateX(3px); /* Pequeño salto hacia la derecha al tocar */
}

/* Estructura específica para la columna de contacto con íconos */
.footer-contacto li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-contacto svg {
    width: 18px;
    height: 18px;
    color: #93c5fd; /* Íconos celestes para dar un toque de diseño */
    flex-shrink: 0;
}

/* Horarios */
.footer-horario p {
    margin-bottom: 5px;
}
.footer-horario strong {
    color: var(--blanco);
    font-weight: 600;
}

/* Línea divisoria y copyright */
.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Línea súper sutil y elegante */
    padding-top: 25px;
    font-size: 0.85rem;
    color: #94a3b8;
}

/* =========================================================================
   FONDOS ESPECÍFICOS PARA CADA TRATAMIENTO
   ========================================================================= */

/* 1. Fondo para Consulta Oftalmológica (Foto de Sofía) */
/* 3. Fondo para la página Institucional (Imagen con Velo Corporativo) */
.fondo-institucional {
    background-image: 
        linear-gradient(to bottom, rgba(0, 42, 77, 0.75), rgba(0, 42, 77, 0.4) 40%, rgba(0, 42, 77, 0.8)), 
        url('../imagenes/SAVE_20260923_172842~2.jpg.jpeg');
    
    background-size: cover; 
    
    /* Probá con 90% o 100% para bajar la foto todo lo necesario y que se vea el cartel */
    background-position: center 40%; 
    
    background-repeat: no-repeat; 
    
    /* Mantenemos el padding que te gustaba cómo quedaba */
    padding: 110px 20px !important; 
    
    text-align: center;
}
.fondo-consulta {
    background-image: linear-gradient(rgba(0, 42, 77, 0.65), rgba(0, 42, 77, 0.65)), url('../imagenes/malentinl.jpeg');
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat; 
}

/* 2. Fondo para Ojo Seco (Ejemplo: si mañana subís una foto llamada ojoseco-banner.jpeg) */
.fondo-ojoseco {
    background-image: linear-gradient(rgba(0, 42, 77, 0.65), rgba(0, 42, 77, 0.65)), url('../imagenes/ojock.jpeg');
    background-size: cover; 
    background-position: center 25%; 
    background-repeat: no-repeat; 
}
.fondo-cataratas {
    background-image: linear-gradient(rgba(0, 42, 77, 0.65), rgba(0, 42, 77, 0.65)), url('../imagenes/cataratasx.jpg');
    background-size: cover; 
    background-position: center 36%; 
    background-repeat: no-repeat; 
}
.fondo-glaucoma {
    background-image: linear-gradient(rgba(0, 42, 77, 0.65), rgba(0, 42, 77, 0.65)), url('../imagenes/glaucomax.jpeg');
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat; 
}
.fondo-cornea {
    background-image: linear-gradient(rgba(0, 42, 77, 0.65), rgba(0, 42, 77, 0.65)), url('../imagenes/corneax.jpeg');
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat; 
}
.fondo-retina {
    background-image: linear-gradient(rgba(0, 42, 77, 0.65), rgba(0, 42, 77, 0.65)), url('../imagenes/estudio\ ojo.jpeg');
    background-size: cover; 
    background-position: center 40%; 
    background-repeat: no-repeat; 
}
.fondo-oftalmopediatria {
    background-image: linear-gradient(rgba(0, 42, 77, 0.65), rgba(0, 42, 77, 0.65)), url('../imagenes/osftalmopediatria.jpeg');
    background-size: cover; 
    background-position: center 34%;
    background-repeat: no-repeat; 
}
.fondo-urgencias {
    background-image: linear-gradient(rgba(0, 42, 77, 0.65), rgba(0, 42, 77, 0.65)), url('../imagenes/urgencix.jpeg');
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat; 
}

/* Grilla de dos columnas (Izquierda ancha, Derecha angosta) */
/* Contenedor principal centrado (Sin barra lateral) */
.contenedor-detalle {
    max-width: 800px; /* Lo achicamos a 800px para que quede centrado y la lectura sea perfecta */
    margin: 40px auto; /* El "auto" es la magia que lo centra en la pantalla */
    padding: 0 20px;
    /* (Se eliminaron las reglas de "display: grid" que forzaban las dos columnas) */
}

/* Columna Izquierda */
.btn-volver {
    color: var(--color-texto);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 30px;
}
.btn-volver:hover { color: var(--color-secundario); }

.encabezado-detalle {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 30px;
    position: relative; /* ¡Clave para este truco! */
}
.encabezado-detalle::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 110px;
    height: 110px;
    background-color: #f1f5f9;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    z-index: 0;
}
.encabezado-detalle img {
    width: 110px;
    height: 110px;
    object-fit: contain;
    background: transparent; /* Le sacamos el fondo gris a la imagen */
    box-shadow: none;        /* Le sacamos la sombra a la imagen */
    padding: 0;
    position: relative;
    z-index: 1;              /* Asegura que la imagen quede arriba de la caja */
}
.encabezado-detalle h2 {
    color: var(--color-secundario);
    font-size: 1.8rem;
    margin-bottom: 10px;
}
.encabezado-detalle p {
    color: var(--color-texto);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Caja de Síntomas */
.caja-sintomas {
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 25px;
    background-color: var(--blanco);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.caja-sintomas h3 {
    color: var(--color-secundario);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Lista dividida en 2 columnas */
.lista-sintomas {
    display: grid;
    grid-template-columns: 1fr 1fr; /* ACÁ SE DIVIDE EN DOS */
    gap: 15px;
    list-style: none;
    padding: 0;
}
.lista-sintomas li {
    position: relative;
    padding-left: 15px;
    color: var(--color-texto);
    font-size: 0.9rem;
}
.lista-sintomas li::before {
    content: "•";
    color: #f59e0b; /* Puntito Naranja */
    font-weight: bold;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: -3px;
}

/* Columna Derecha (Otras Especialidades) */
.sidebar-especialidades h4 {
    color: var(--color-secundario);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}
.lista-sidebar {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0;
}
.lista-sidebar a {
    text-decoration: none;
    color: var(--color-texto);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.lista-sidebar a:hover {
    color: var(--color-secundario);
}


/* =========================================================================
   PÁGINA INSTITUCIONAL
   ========================================================================= */
   .contenedor-institucional {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
}
.texto-institucional h2 { color: var(--color-principal); font-size: 2.2rem; margin-bottom: 20px; }
.texto-institucional p { margin-bottom: 15px; font-size: 1.05rem; }
.texto-institucional ul { list-style: none; margin-top: 20px; padding: 0; }
.texto-institucional ul li { margin-bottom: 12px; color: var(--color-texto); }
.texto-institucional ul li span { color: #f59e0b; font-weight: bold; font-size: 1.2rem; margin-right: 8px; }
.imagen-institucional img { width: 100%; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); }

/* =========================================================================
   GALERÍA "CENTER MODE" CON EFECTO 3D (INSTITUCIONAL)
   ========================================================================= */
   .contenedor-galeria {
    position: relative;
    width: 100%;
    max-width: 400px; /* Tamaño mucho más delicado y proporcionado */
    margin: 0 auto;
    padding: 30px 0; /* Espacio arriba y abajo para que no choque */
    overflow: hidden; /* Corta suavemente lo que sale de los bordes */
}

.galeria-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1); /* Movimiento fluido */
    will-change: transform;
}

.galeria-slide {
    flex: 0 0 60%; /* Cada foto ocupa el 60% del espacio central */
    margin: 0 2.5%; /* Deja espacio entre fotos (Total = 65%) */
    transition: all 0.5s ease-in-out;
    opacity: 0.4; /* Las laterales se ven medio transparentes */
    transform: scale(0.85); /* Las laterales se achican */
}

.galeria-slide.activa {
    opacity: 1; /* La central se ve perfecta */
    transform: scale(1.05); /* La central resalta hacia adelante */
    z-index: 2;
}

.galeria-slide img {
    width: 100%;
    aspect-ratio: 4/5; /* MAGIA: Fuerza a que TODAS tus fotos verticales midan igual */
    object-fit: cover;
    display: block;
    border-radius: 16px; /* Bordes bien redondeados y modernos */
    box-shadow: 0 10px 25px rgba(0,42,77,0.2);
}

/* Botones flotantes minimalistas */
.btn-galeria {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--color-principal);
    color: white;
    border: none;
    width: 38px;
    height: 38px;
    font-size: 16px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: background 0.3s, transform 0.2s;
}

.btn-galeria:hover {
    background-color: var(--color-secundario);
    transform: translateY(-50%) scale(1.1);
}

.btn-galeria.prev { left: 10px; }
.btn-galeria.next { right: 10px; }

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }
@media (max-width: 768px) {
    .contenedor-institucional { grid-template-columns: 1fr; gap: 20px; }
}

/* =========================================================================
   AJUSTE DE TAMAÑO PARA ÍCONOS ESPECÍFICOS (Más chicos por defecto)
   ========================================================================= */
   img[alt="Urgencias"],
   img[alt="Oftalmopediatría"] {
       transform: scale(1.5); /* Agranda la imagen un 50% visualmente */
       transition: transform 0.3s ease; /* Hace que el cambio sea suave */
   }
   
   /* Opcional: Si querés que el icono palpite o crezca un poquito más al pasar el mouse por la tarjeta */
   .card-especialidad:hover img[alt="Urgencias"],
   .card-especialidad:hover img[alt="Oftalmopediatría"] {
       transform: scale(1.6);
   }
   .encabezado-detalle img[src*="emergencia"],
.encabezado-detalle img[src*="Oftalmopediatría"]{
    transform: scale(1.6);
}
/* =========================================================================
   SECCIÓN COBERTURAS (ESTILO CLARO E INTEGRADO)
   ========================================================================= */
   .seccion-coberturas {
    /* Reemplazamos var(--blanco) por el gris exacto de Especialidades */
    background-color: #f2f2f2; 
    padding: 80px 20px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0; 
}

.logo-coberturas {
    height: 60px;
    margin-bottom: 15px;
    /* Ya no lo forzamos a blanco, mantendrá su azul original */
}

.titulo-coberturas {
    /* Color oscuro para el título, igual que en Especialidades */
    color: var(--color-titulos);
    font-size: 2.5rem; 
    margin-bottom: 50px;
    font-weight: 700;
}

.grid-coberturas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.card-cobertura {
    background-color: var(--blanco);
    border-radius: 12px;
    padding: 15px 25px;
    height: 100px; 
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Le aplicamos el mismo borde y sombra sutil que tienen las especialidades */
    border: 1px solid #e2e8f0; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.03); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-cobertura:hover {
    transform: translateY(-5px); 
    box-shadow: 0 10px 15px rgba(0,0,0,0.08);
    border-color: #cbd5e1;
}

.card-cobertura img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; 
}
/* =========================================================================
   SECCIÓN RESEÑAS (CARRUSEL ESTILO TAGEMBED)
   ========================================================================= */
.seccion-resenas {
    background-color: #f2f2f2; /* <-- ACÁ unificamos al gris exacto de Obras Sociales y Especialidades */
    padding: 80px 20px;
    border-bottom: 1px solid #e2e8f0;
}
.carrusel-contenedor {
    position: relative;
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 40px; /* Espacio para los botones laterales */
}

/* La pista deslizable */
.carrusel-track {
    display: flex;
    gap: 20px; /* Separación entre tarjetas */
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 10px 0;
    
    /* Ocultar la barra de scroll por defecto */
    -ms-overflow-style: none;  
    scrollbar-width: none;  
}
.carrusel-track::-webkit-scrollbar {
    display: none;
}

/* Tarjeta de Google Exacta */
.card-google {
    background: #ffffff;
    border: 1px solid #e5e7eb; /* Borde súper finito gris claro */
    border-radius: 8px; /* Bordes sutilmente redondeados */
    padding: 20px;
    min-width: 320px; /* Ancho fijo para que no se achiquen */
    max-width: 320px;
    flex-shrink: 0;
    scroll-snap-align: start;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03); /* Sombreado casi invisible */
}

/* Encabezado: Foto, Nombre, Logo */
.card-google-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.card-google-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-img, .avatar-inicial {
    width: 42px;
    height: 42px;
    border-radius: 50%; /* Círculo perfecto */
    object-fit: cover;
}
.avatar-inicial {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: bold;
}

.card-google-nombre {
    font-weight: 700;
    font-size: 0.95rem;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 5px; /* Separación con la tilde azul */
    line-height: 1.2;
}

.card-google-meta {
    font-size: 0.75rem;
    color: #6b7280; /* Texto gris de la fecha */
    margin-top: 2px;
}

.card-google-estrellas {
    color: #fbbc04; /* El amarillo exacto de Google */
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.card-google-texto {
    font-size: 0.95rem;
    color: #374151; /* Texto oscuro pero no negro puro */
    line-height: 1.5;
}

/* Botones Laterales Cuadrados */
.carrusel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #ffffff;
    color: #111;
    border: 1.5px solid #111; /* Borde negro como en tu foto */
    border-radius: 4px; /* Apenitas redondeado */
    width: 36px;
    height: 36px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.carrusel-btn:hover {
    background-color: #f3f4f6;
}

.carrusel-btn.prev { left: 0; }
.carrusel-btn.next { right: 0; }
/* Botón de "Leer más" en las reseñas */
.btn-leer-mas {
    color: #9ca3af; /* Gris claro de la foto */
    cursor: pointer;
    font-weight: 500;
    margin-left: 2px;
    transition: color 0.2s ease;
}

.btn-leer-mas:hover {
    color: #4b5563; /* Se oscurece un poco al pasar el mouse */
    text-decoration: underline;
}
/* =========================================================================
   BOTÓN EXCLUSIVO DE URGENCIAS
   ========================================================================= */
   .btn-urgencia {
    background-color: #ffffff; 
    color: #dc2626; /* Rojo médico profesional */
    border: 2px solid #dc2626;
    padding: 13px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: block; 
    width: fit-content; 
    margin: 0 auto 40px auto; 
    transition: all 0.3s ease;
}

.btn-urgencia:hover { 
    background-color: #fef2f2; /* Rojo ultra claro y translúcido ("no tanto") */
    color: #b91c1c; /* Un rojo apenitas más oscuro para el texto */
    transform: translateY(-2px); /* Salto de 2px (más sutil que los de 5px del resto de la web) */
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.12); /* Sombreado rojo muy tenue */
}

/* 2. Restaura el texto blanco, el centrado y el margen del banner */
.hero-especialidad {
    background-color: var(--color-secundario);
    color: #ffffff !important;
    text-align: center !important;
    padding: 80px 20px !important; 
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-especialidad h1 { 
    font-size: 2.8rem !important; 
    color: #ffffff !important;
    margin-bottom: 5px !important; 
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important; 
}

.hero-especialidad p { 
    font-size: 1.2rem !important; 
    color: #ffffff !important;
    opacity: 0.95 !important; 
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5) !important;
}

/* =========================================================================
   COMPORTAMIENTO BASE NAVEGACIÓN (PC) - NO TOCAR
   ========================================================================= */
/* Por defecto en computadora, ocultamos los botones móviles */

.logo-movil { display: none !important; } /* Oculta el logo de celular en la PC */
.logo-pc { display: block !important; }   /* Muestra el logo original en la PC */

.menu-toggle { display: none; }
.icono-casita { display: none !important; }
.texto-inicio { display: inline-block !important; }

/* =========================================================================
   VERSIÓN MÓVIL DESDE CERO (ISLA FLOTANTE + MENÚ DESPLEGABLE)
   ========================================================================= */
@media (max-width: 768px) {
    
    .header {
        position: fixed !important; /* Esto clava todo el bloque a la pantalla */
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        background-color: transparent !important;
        box-shadow: none !important;
        height: auto !important;
        padding-top: 15px !important; 
        z-index: 9999 !important; /* Prioridad máxima absoluta acá */
    }

    /* 2. LA ISLA FLOTANTE VISIBLE */
    .header-container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        
        position: relative !important; /* Flota dentro del header anclado */
        
        /* LA CLAVE: Centrado clásico que no rompe el scroll del celular */
        transform: none !important; 
        left: auto !important;
        top: auto !important;
        margin: 0 auto !important; 
        
        width: 92% !important;
        max-width: 400px !important;
        padding: 8px 20px !important;
        box-sizing: border-box !important;
        
        /* Efecto Vidrio (Glassmorphism) */
        background-color: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        border-radius: 50px !important;
        border: 1px solid rgba(255, 255, 255, 0.8) !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    }

    /* 3. LOGO Y BOTONES DENTRO DE LA ISLA */
    .logo { 
        display: flex !important;
        align-items: center !important;
    }
    
    /* Invertimos el semáforo: apagamos el de PC y encendemos el móvil */
    .logo-pc { display: none !important; }
    
    .logo-movil {
        display: block !important;
        height: 35px !important; /* Mantiene el tamaño perfecto para la isla */
        width: auto !important;
        object-fit: contain !important;
    }
    
    .nav-botones { display: none !important; }

    /* 4. BOTÓN HAMBURGUESA Y ANIMACIÓN DE LA "X" */
    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        z-index: 1000;
        background: transparent !important;
        padding: 5px !important;
    }
    .menu-toggle span {
        width: 25px;
        height: 3px;
        /* ACÁ CAMBIAMOS LAS RAYITAS A NEGRO */
        background-color: #000000 !important; 
        border-radius: 2px;
        transition: 0.3s ease;
    }
    .menu-toggle.activo span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.activo span:nth-child(2) { opacity: 0; }
    .menu-toggle.activo span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* 5. EL MENÚ DESPLEGABLE (La tarjeta que cae) */
    .nav-links {
        display: none !important;
        flex-direction: column !important;
        position: absolute !important;
        top: calc(100% + 15px) !important; 
        left: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        
        background-color: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
        border-radius: 20px !important;
        padding: 5px 0 !important; /* Redujimos el relleno general de la tarjeta */
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
        border: 1px solid rgba(255, 255, 255, 0.8) !important;
    }
    .nav-links.activo { 
        display: flex !important; 
    }

    /* Estilo de los links adentro de la tarjeta */
    .nav-links a {
        font-size: 1rem !important;
        /* ACÁ CAMBIAMOS LOS TEXTOS A NEGRO */
        color: #000000 !important; 
        
        /* ACÁ ACORTAMOS LA DISTANCIA VERTICAL ENTRE OPCIONES */
        padding: 10px 25px !important; 
        
        font-weight: 700 !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
        display: flex !important;
        align-items: center !important;
        text-decoration: none !important;
    }
    .nav-links a:last-child { 
        border-bottom: none !important; 
    }

    /* Mostrar Casita y Texto juntos en el menú móvil */
    .icono-casita { 
        display: block !important; 
        width: 20px !important; 
        height: 20px !important;
        margin-right: 12px !important; 
    }
    .texto-inicio { 
        display: inline-block !important; 
    }

    /* 6. AJUSTE DEL HERO Y BOTONES HORIZONTALES */
    .hero h1 { 
        margin-top: 80px !important; 
        font-size: 2.1rem !important; 
    }
    .hero-buttons {
        display: flex !important;
        flex-direction: row !important;
        gap: 10px !important;
        width: 100% !important;
        justify-content: center !important;
    }
    .btn-primary-large, .btn-outline {
        width: 50% !important;
        font-size: 0.85rem !important;
        padding: 12px 5px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        line-height: 1.2 !important;
    }
    /* =========================================================================
       6. GRILLAS A 2 COLUMNAS (Especialidades y Coberturas)
       ========================================================================= */
    
    /* Forzar 2 columnas en Especialidades */
    .grid-especialidades {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important; /* Reducimos la separación para que respiren */
    }
    
    /* Ajustes para que la tarjeta chica se vea estética */
    .card-especialidad {
        padding: 15px 10px !important; /* Menos relleno lateral */
    }
    
    .card-especialidad h3 {
        font-size: 0.9rem !important; /* Letra un poco más chica */
        line-height: 1.2 !important;
    }
    
    .img-especialidad {
        height: 70px !important; /* Íconos un poco más reducidos */
        margin-bottom: 10px !important;
    }

    /* Forzar 2 columnas en Obras Sociales */
    .grid-coberturas {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    
    /* Ajustes para que los logos de las obras sociales entren bien */
    .card-cobertura {
        height: 75px !important;
        padding: 10px !important;
    }
    /* =========================================================================
       7. CENTRADO DEL BOTÓN DE OBRAS SOCIALES
       ========================================================================= */
       .seccion-coberturas .btn-outline {
        margin: 0 auto !important; /* Esto fuerza el centrado absoluto del bloque */
        width: 80% !important; /* Lo hacemos un poquito más ancho para que se lea perfecto */
        max-width: 300px !important;
    }
    /* =========================================================================
       8. AJUSTES PROPORCIONALES DE TEXTOS (CELULARES)
       ========================================================================= */
    
    /* Títulos de secciones (Especialidades, Reseñas, Coberturas) */
    .titulo-seccion,
    .titulo-coberturas {
        font-size: 1.6rem !important; /* Tamaño armónico para pantallas chicas */
        line-height: 1.3 !important;
        margin-bottom: 30px !important; /* Menos espacio en blanco hacia abajo */
        padding: 0 10px !important; /* Evita que las letras toquen los bordes */
    }

    /* Título principal del inicio (Cuidamos tu visión...) */
    .hero h1 {
        font-size: 1.8rem !important; 
        line-height: 1.2 !important;
        margin-top: 100px !important; /* Asegura que la isla flotante no lo tape */
        margin-bottom: 15px !important;
        padding: 0 10px !important;
    }

    /* Párrafo debajo del título de inicio */
    .hero p {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
        margin-bottom: 25px !important;
        padding: 0 15px !important;
    }
    /* =========================================================================
       9. ANIMACIONES TÁCTILES (Efecto de Escritorio adaptado a Celular)
       ========================================================================= */
    
    /* 1. Animación de las Tarjetas (Especialidades y Coberturas) al tocarlas */
    .card-especialidad:active,
    .card-cobertura:active {
        transform: translateY(-4px) !important;
        box-shadow: 0 8px 15px rgba(0,0,0,0.1) !important;
        border-color: #cbd5e1 !important;
        transition: all 0.2s ease !important; /* Transición un poco más rápida para pantallas táctiles */
    }

    /* 2. Animación de todos los Botones al tocarlos */
    .btn-primary-large:active, 
    .btn-outline:active,
    .btn-turno-naranja:active,
    .btn-urgencia:active {
        background-color: var(--color-principal) !important;
        color: var(--blanco) !important;
        transform: translateY(-3px) !important; 
        box-shadow: 0 5px 12px rgba(0, 42, 77, 0.2) !important;
        transition: all 0.2s ease !important;
    }
    
    /* Mantiene el borde y color del botón rojo de urgencias al tocarlo */
    .btn-urgencia:active {
        background-color: #fef2f2 !important;
        color: #b91c1c !important;
        border-color: #dc2626 !important;
        box-shadow: 0 4px 12px rgba(220, 38, 38, 0.12) !important;
    }

    /* 3. Animación especial de los íconos de Urgencias y Pediatría al tocar su tarjeta */
    .card-especialidad:active img[alt="Urgencias"],
    .card-especialidad:active img[alt="Oftalmopediatría"] {
        transform: scale(1.6) !important;
        transition: transform 0.2s ease !important;
    }
    
    /* 4. Enlaces del menú hamburguesa */
    .nav-links a:active {
        background-color: rgba(0, 42, 77, 0.05) !important; /* Sombrea sutilmente la opción tocada */
        border-radius: 8px !important;
    }
   /* =========================================================================
       10. FONDO Y ALTURA DEL INICIO (VERSIÓN CELULAR)
       ========================================================================= */
       .hero {
        /* 1. ROMPEMOS LA REGLA DE PANTALLA COMPLETA */
        min-height: auto !important; 
        
        /* 2. DEFINIMOS EL TAMAÑO DEL RECUADRO (Relleno arriba y abajo) */
        padding-top: 130px !important; /* Espacio para que la isla flotante no tape el texto */
        padding-bottom: 60px !important; /* Espacio debajo de los botones */
        
        /* 3. TU IMAGEN DE FONDO */
        /* (Asegurate de poner el nombre correcto de tu imagen acá) */
        background-image: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.8)), url('../imagenes/imagencelular..jpg') !important;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
    }

    /* Subimos el texto principal anulando su margen superior */
    .hero h1 {
        margin-top: 0 !important; /* <-- ESTA ES LA CLAVE PARA QUE SUBA */
        font-size: 1.8rem !important; 
        line-height: 1.2 !important;
        margin-bottom: 15px !important;
        padding: 0 10px !important;
    }
    /* =========================================================================
       11. TÍTULOS DE BANNERS INTERNOS (Institucional y Especialidades)
       ========================================================================= */
    .hero-especialidad h1 {
        font-size: 2rem !important; /* Reduce el tamaño exacto para que entre en una sola línea */
        line-height: 1.2 !important;
        padding: 0 10px !important;
        margin-bottom: 10px !important;
    }

    .hero-especialidad p {
        font-size: 0.95rem !important; /* Ajusta proporcionalmente el subtítulo */
        padding: 0 15px !important;
    }
}