/* ============================================================
   INICIO: VARIABLES Y CONFIGURACIÓN GLOBAL
   ============================================================ */
:root {
    --bg-navbar: rgba(0, 0, 0, 0.95);
    --accent-gold: #b38b36;
    --text-dark: #ffffff;
    --text-muted: #4a4a4a;
    /* Cambiamos ambas variables a Playfair Display */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Playfair Display', serif;
}

/* Aplicamos la fuente a todo el cuerpo de la página */
html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: var(--font-body);
    /* Ahora todo usa Playfair Display */
    color: var(--text-dark);
}

/* ============================================================
   FIN: VARIABLES Y CONFIGURACIÓN GLOBAL
   ============================================================ */

/* ============================================================
   INICIO: BARRA DE NAVEGACIÓN (FIXED)
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    background-color: var(--bg-navbar);
    backdrop-filter: blur(10px);
    /* Efecto de cristal esmerilado */
    border-bottom: 2px solid var(--accent-gold);
    z-index: 1000;
    /* Siempre por encima de todo */
}

/* Ajuste del logo transparente */
.logo img {
    height: 60px;
    width: auto;
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-gold);
    border-bottom: 2px solid var(--accent-gold);
    padding-bottom: 5px;
}

.lang {
    color: var(--text-dark);
    font-weight: 600;
}

/* ============================================================
   FIN: BARRA DE NAVEGACIÓN (FIXED)
   ============================================================ */


/* ============================================================
   INICIO: LÓGICA DE DESPLAZAMIENTO HORIZONTAL
   ============================================================ */
.contenedor-horizontal {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    /* Ajuste automático a la sección */
}

/* Ocultar barra de scroll en navegadores modernos */
.contenedor-horizontal::-webkit-scrollbar {
    display: none;
}

section {
    min-width: 100vw;
    height: 100vh;
    scroll-snap-align: start;
    padding-top: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-y: auto;

    /* FONDO GENERAL: MÁRMOL LIMPIO */
    background-image: url('img/paginas.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* ============================================================
   FIN: LÓGICA DE DESPLAZAMIENTO HORIZONTAL
   ============================================================ */


/* ============================================================
   INICIO: ESTILOS DE SECCIONES ESPECÍFICAS
   ============================================================ */

/* Portada con logo central y mármol */
/* ============================================================
   SECCIÓN HERO (#INICIO) - CORRECCIÓN DE FONDO
   ============================================================ */
#inicio {
    /* 1. Prueba con esta ruta (asegúrate que la carpeta sea 'img' y el archivo 'fondo.jpg') */
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('img/fondo.png') !important;

    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    /* Mantiene el fondo quieto al hacer scroll */

    min-height: 100vh !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    position: relative !important;
    background-color: #1a1a1a !important;
    /* Color de respaldo si la imagen falla */
}

/* Títulos con Serifa y Dorado */
.section-title h2 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--accent-gold);
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.section-title p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ============================================================
   FIN: ESTILOS DE SECCIONES ESPECÍFICAS
   ============================================================ */


/* ============================================================
   INICIO: BOTONES
   ============================================================ */
.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 14px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

/* Botón Dorado Sólido */
.btn-gold {
    background-color: var(--accent-gold);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(179, 139, 54, 0.4);
}

.btn-gold:hover {
    background-color: #96742a;
    transform: translateY(-3px);
}

/* Botón con Borde Oscuro */
.btn-outline-dark {
    background-color: rgba(255, 255, 255, 0.7);
    color: var(--text-dark);
    border: 2px solid var(--text-dark);
}

.btn-outline-dark:hover {
    background-color: var(--text-dark);
    color: rgb(0, 0, 0);
    transform: translateY(-3px);
}

/* ============================================================
   FIN: BOTONES
   ============================================================ */


/* ============================================================
   INICIO: TARJETAS DE SERVICIOS (GLASSMORPHISM)
   ============================================================ */
.services-container {
    display: flex;
    gap: 40px;
    max-width: 1100px;
    width: 90%;
}

.service-card {
    background: rgba(255, 255, 255, 0.8);
    padding: 40px;
    border-radius: 20px;
    flex: 1;
    border: 1px solid rgba(179, 139, 54, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(8px);
}

.service-card h3 {
    font-family: var(--font-heading);
    color: var(--accent-gold);
    font-size: 1.5rem;
    margin-bottom: 25px;
    border-bottom: 2px solid rgba(179, 139, 54, 0.2);
    padding-bottom: 10px;
}

.service-card ul {
    list-style: none;
    padding: 0;
}

.service-card li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 500;
}

/* ============================================================
   FIN: TARJETAS DE SERVICIOS (GLASSMORPHISM)
   ============================================================ */


/* ============================================================
   INICIO: CUADRÍCULA DE TESTIMONIOS (GALERÍA)
   ============================================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    width: 90%;
    max-width: 1200px;
}

.gallery-item {
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    border: 3px solid white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
    border-color: var(--accent-gold);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================================
   FIN: CUADRÍCULA DE TESTIMONIOS (GALERÍA)
   ============================================================ */
/* ============================================================
   INICIO: ESTILOS TEXTO FLOTANTE Y TOOLTIPS (INICIO)
   ============================================================ */

/* ============================================================
   AJUSTE DE CONTENCIÓN (Agrégalo antes de tu código de Tooltips)
   ============================================================ */

#inicio {
    position: relative;
    overflow: hidden;
    /* ESTA LÍNEA es la que hace que el texto se "corte" al salir de la página */
    background-image: url('img/paginas.png');
    background-size: cover;
    background-position: center;
}

.hero-content {
    position: relative;
    /* Obliga al texto flotante a quedarse dentro de este cuadro */
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Contenedor principal del texto flotante */
.overlay-inicio {
    position: absolute;
    top: 55%;
    /* Lo sitúa arriba de los botones */
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    z-index: 5;
}

/* Nombre de la empresa en dorado */
.empresa-nombre {
    font-family: var(--font-heading);
    color: var(--accent-gold);
    font-size: 4.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    /* Sombra para resaltar sobre el mármol */
    pointer-events: none;
    /* Para que no interfiera con los clics */
}

/* ============================================================
INICIO: ESTILOS DE ICONOS MATERIAL SYMBOLS (CORREGIDO)============================================================*/

/*  Asegurar que el contenedor deje pasar el mouse */
.overlay-inicio {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    z-index: 10;
    pointer-events: none;
}

/*  Forzar la fila horizontal */
.iconos-flotantes {
    display: flex !important;
    flex-direction: row !important;
    /* Obliga a estar uno al lado del otro */
    justify-content: center !important;
    align-items: center !important;
    gap: 80px !important;
    width: 100% !important;
    margin-top: 50px !important;
    pointer-events: auto !important;
}

/* El contenedor de cada icono (El ancla) */
.icono-item {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100px !important;
    /* Ancho fijo para estabilidad */
    cursor: pointer !important;
}

/* Selector del Icono */
span.material-symbols-outlined.icono {
    font-size: 2.8rem !important;
    color: #d8ad00 !important;
    display: inline-block;
    cursor: pointer !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto !important;
}

/*  Efecto Hover en Icono */
.icono-item:hover span.material-symbols-outlined.icono {
    color: var(--accent-gold) !important;
    transform: scale(1.2) translateY(-5px);
    filter: drop-shadow(0px 0px 10px rgba(179, 139, 54, 0.6));
}

/* La pestaña de información (Flotante) */
.info-tab {
    position: absolute !important;
    bottom: 130% !important;
    /* Aparece arriba del icono */
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 220px !important;
    background: white !important;
    border: 1.5px solid #d8ad00 !important;
    padding: 15px !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
    z-index: 100 !important;
    display: none;
    /* Controlado por JS */
    pointer-events: none;
    /* FUERZA EL COLOR DEL TEXTO PARA QUE SEA VISIBLE */
    color: #333333 !important;
    text-align: left !important;
}

/* Estilos específicos para los títulos y párrafos dentro del recuadro */
.info-tab h3 {
    color: #b38b36 !important;
    /* Dorado oscuro */
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-family: 'Playfair Display', serif;
}

.info-tab.active {
    display: block !important;
    pointer-events: auto !important;
}

.info-tab p {
    color: #444444 !important;
    /* Gris oscuro */
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* 7. TOOLTIPS: APARECEN SOLO AL PASAR EL CURSOR */
.tooltip {
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    top: 100% !important;
    /* Debajo del icono */
    left: 50% !important;
    transform: translateX(-50%) translateY(10px) !important;
    color: #d8ad00 !important;
    font-family: var(--font-body) !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    text-align: center !important;
    white-space: nowrap !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    pointer-events: none !important;
}

/* 8. Activación del Tooltip */
.icono-item:hover .tooltip {
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateX(-50%) translateY(5px) !important;
}

/* ============================================================
    FIN: ESTILOS DE ICONOS MATERIAL SYMBOLS
   ============================================================ */
/* ============================================================
   CORRECCIÓN: BARRA LATERAL IZQUIERDA (PEGAR AL FINAL)
   ============================================================ */
.social-sidebar-left {
    position: fixed !important;
    /* Esto la mantiene fija al bajar la página */
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    flex-direction: column !important;
    z-index: 9999 !important;
    /* Valor altísimo para que nada la tape */
    background: rgba(0, 0, 0, 0.8) !important;
    padding: 15px 8px !important;
    border-right: 2px solid #d8ad00 !important;
    border-radius: 0 10px 10px 0 !important;
}

.s-link {
    display: block !important;
    margin-bottom: 15px !important;
    color: #d8ad00 !important;
    font-size: 1.8rem !important;
    text-align: center !important;
}

/* ============================================================
   ESTILOS BARRA LATERAL IZQUIERDA
   ============================================================ */
.sidebar-social-links {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px 10px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--accent-gold);
    border-left: none;
    border-radius: 0 10px 10px 0;
    z-index: 5000;
    /* Asegura que esté por encima de todo */
}

.sidebar-item {
    transition: transform 0.3s ease;
    display: block;
}

.sidebar-item:hover {
    transform: scale(1.2);
}

.sidebar-icon {
    width: 30px;
    /* Tamaño de tus logos */
    height: 30px;
    filter: drop-shadow(0 0 5px var(--accent-gold));
    /* Efecto dorado */
    object-fit: contain;
}

/* ============================================================
   FORZADO FINAL: TESTIMONIO HORIZONTAL (SIDE-BY-SIDE)
   ============================================================ */

/* 1. Limpieza de posibles conflictos anteriores (¡IMPORTANTE!) */
/* Aseguramos que la clase vieja no se use en la nueva estructura */
.patient-img {
    width: 1px !important;
    height: 1px !important;
}

/* 2. El Contenedor de Testimonios (Sección outer) */
#testimonios {
    display: flex;
    justify-content: center;
    /* Centra la tarjeta horizontalmente */
    align-items: center;
    min-width: 100vw;
    /* Participa en el scroll horizontal */
    padding: 60px 0;
    box-sizing: border-box;
}

/* 3. La Tarjeta de Testimonio Horizontal (El rectángulo grande) */
.testimonial-card-horizontal {
    display: flex;
    flex-direction: row;
    /* Coloca imagen a la izq y texto a la der */
    background-color: #111111;
    /* Fondo oscuro */
    border: 1px solid #d8ad00;
    /* Borde dorado */
    border-radius: 15px;
    /* Esquinas curvas */
    overflow: hidden;
    /* Corta la foto si se sale de la esquina curva */

    /* TAMAÑO ESTRICTO DEL RECTÁNGULO GRANDE */
    width: 800px;
    max-width: 90%;
    /* Se adapta a pantallas más pequeñas que 800px */
    height: 350px;
    /* Altura máxima del rectángulo */
    min-height: 350px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    /* Sombra elegante */
    z-index: 5;
}

/* 4. EL RECTÁNGULO DE LA IMAGEN (¡ESTO ES LO MÁS IMPORTANTE!) */
.testimonial-image {
    width: 45%;
    /* La foto ocupa el 45% del ancho de la tarjeta */
    height: 100% !important;
    /* Altura completa de la tarjeta */
    border-right: 1px solid #d8ad00;
    /* Línea divisoria */
    flex-shrink: 0;
    /* Evita que la foto se encoja */

    /* ENCAPSULAMIENTO ESTRICTO */
    position: relative;
    overflow: hidden;
}

/* 5. LA FOTO REAL (ESTRICTAMENTE ENCERRADA) */
.testimonial-image img {
    /* Ocupa el 100% de su contenedor (el 45% de la tarjeta) */
    width: 100% !important;
    height: 100% !important;

    /* Mantiene la proporción del rostro sin aplastarlo */
    object-fit: cover !important;
    object-position: center !important;
    /* Centra el rostro */

    display: block !important;

    /* FORZADO ANTIFULLSCREEN */
    max-width: 100% !important;
    max-height: 100% !important;
}

/* 6. El Contenedor de Texto y Datos (Derecha) */
.testimonial-content {
    width: 55%;
    /* El texto ocupa el resto del espacio */
    height: 100%;
    padding: 40px;
    /* Espaciado interno */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Centra el texto verticalmente */
}

/* Estilos de Texto (Opcional, para que se vea bien) */
.review-text {
    color: #dddddd;
    font-size: 1rem;
    line-height: 1.6;
    font-style: italic;
    margin: 15px 0;
}

.stars {
    color: #d8ad00;
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.patient-info-text h4 {
    margin: 0;
    color: white;
    font-size: 1.1rem;
}

.patient-info-text small {
    color: #aaaaaa;
    font-size: 0.9rem;
}