/* styles.css - Versión completa optimizada para móviles */
:root {
    --primary: #C19A6B;
    --secondary: #2C3E50;
    --light: #F5F1ED;
    --dark: #1A1A1A;
    --accent: #D4A574;
    --text: #333333;
    --border: #E8E8E8;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background-color: #FFFFFF;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== NAVBAR STICKY ========== */
.navbar-sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    padding: 15px 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-sticky.scrolled {
    background: #FFFFFF;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.navbar-sticky .logo-img {
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.navbar-sticky.scrolled .logo-img {
    filter: none;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    width: 180px;
    height: 60px;
    display: flex;
    align-items: center;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.navbar-sticky .nav-links a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    color: #FFFFFF;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.navbar-sticky.scrolled .nav-links a {
    color: var(--secondary);
    text-shadow: none;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
}

.navbar-sticky .menu-toggle {
    color: #FFFFFF;
}

.navbar-sticky.scrolled .menu-toggle {
    color: var(--secondary);
}

/* ========== HERO HEADER ========== */
.hero-header {
    background-image: url('public/img/header-bg.webp');
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    min-height: 40vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    margin-top: 0;
    padding-bottom: 90px;
}

.hero-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-frase {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
    margin-bottom: 30px;
}

.hero-frase h2 {
    font-size: 48px;
    font-weight: 600;
    color: #FFFFFF;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
    line-height: 1.3;
}

/* ========== SECTION STYLES ========== */
section {
    padding: 80px 20px;
}

h2 {
    font-size: 42px;
    text-align: center;
    margin-bottom: 60px;
    color: var(--secondary);
    font-weight: 700;
    position: relative;
    padding-bottom: 20px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

/* ========== EQUIPO ========== */
.equipo {
    background-color: var(--light);
    padding: 60px 20px;
}

.equipo .container {
    max-width: 1900px;
    margin: 0 auto;
    padding: 0 20px;
}

.equipo-wrapper {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.equipo-visual {
    position: relative;
    width: 80%;
    max-width: 1500px;
    margin: 0 auto;
}

.equipo-imagen-fondo {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.semicirculo-png {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.equipo-titulo-superpuesto {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    width: 100%;
    padding: 0 20px;
}

.equipo-titulo-superpuesto h2 {
    font-size: 55px;
    font-weight: 700;
    color: #FFFFFF;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
    padding: 0;
}

.equipo-titulo-superpuesto h2::after {
    display: none;
}

.equipo-titulo-mobile {
    display: none;
    text-align: center;
    margin-bottom: 30px;
}

.equipo-titulo-mobile h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--secondary);
    margin: 0;
    padding-bottom: 20px;
}

.equipo-titulo-mobile h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

.equipo-imagen-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    pointer-events: none;
}

.equipo-img-png {
    width: auto;
    max-width: 75%;
    height: auto;
    display: block;
    background: transparent;
    object-fit: contain;
    max-height: 450px;
}

.equipo-info {
    position: relative;
    z-index: 1;
    width: 80%;
    max-width: 800px;
    margin: 30px auto 0 auto;
    padding: 20px 30px;
    background: transparent;
    text-align: center;
}

.equipo-info h3 {
    font-size: 20px;
    color: var(--secondary);
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
}

/* ========== ESPECIALISTAS - Efecto zoom suave + card flip ========== */
.especialistas {
    background-color: var(--secondary);
    color: #FFFFFF;
    padding: 80px 20px;
}

.especialistas h2 {
    color: #FFFFFF;
    margin-bottom: 50px;
}

.especialistas-grid {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto 50px auto;
    flex-wrap: wrap;
    overflow-x: visible;
}

/* Tarjeta principal - efecto zoom suave al hover */
.especialista-card-3d {
    background-color: transparent;
    width: calc(25% - 19px);
    min-width: 200px;
    max-width: 260px;
    height: 420px;
    perspective: 1000px;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

/* Efecto zoom suave al hover - la tarjeta se eleva */
.especialista-card-3d:hover {
    transform: translateY(-8px);
}

/* Contenedor del flip */
.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.5s cubic-bezier(0.2, 0.85, 0.4, 1);
    transform-style: preserve-3d;
    border-radius: 15px;
}

/* Estado girado */
.especialista-card-3d.girar .card-inner {
    transform: rotateY(180deg);
}

/* Frente y dorso */
.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
}

/* Sombra más intensa al hover */
.especialista-card-3d:hover .card-front,
.especialista-card-3d:hover .card-back {
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.25);
}

/* FRONT DE LA TARJETA */
.card-front {
    background: #FFFFFF;
    color: var(--secondary);
    display: flex;
    flex-direction: column;
}

/* Contenedor de la imagen - con overflow oculto para el zoom */
.especialista-imagen-3d {
    width: 100%;
    height: 260px;
    overflow: hidden;
    position: relative;
}

/* Imagen - efecto zoom suave al hover */
.especialista-imagen-3d img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

/* Zoom suave en la imagen al hacer hover en la tarjeta */
.especialista-card-3d:hover .especialista-imagen-3d img {
    transform: scale(1.08);
}

/* Información del frente */
.especialista-info-front {
    padding: 15px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.3s ease;
}

/* Efecto sutil de elevación en el texto al hover */
.especialista-card-3d:hover .especialista-info-front {
    transform: translateY(-2px);
}

/* Título (especialidad) */
.front-titulo {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

/* Cambio de color y espaciado al hover */
.especialista-card-3d:hover .front-titulo {
    color: #b8860b;
    letter-spacing: 1.2px;
}

/* Nombre del especialista */
.front-nombre {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--secondary);
    transition: color 0.3s ease;
}

/* Cambio de color al hover */
.especialista-card-3d:hover .front-nombre {
    color: var(--primary);
}

/* Descripción corta */
.front-desc {
    font-size: 11px;
    color: #666;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.especialista-card-3d:hover .front-desc {
    color: #444;
}

/* BACK DE LA TARJETA (Curriculum) */
.card-back {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 15px;
    text-align: left;
    overflow-y: auto;
}

/* Título del curriculum */
.card-back h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
    color: var(--secondary);
    border-bottom: 2px solid var(--secondary);
    display: inline-block;
    width: auto;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 5px;
    transition: all 0.3s ease;
}

/* Items del curriculum */
.card-back p {
    font-size: 10px;
    margin-bottom: 8px;
    line-height: 1.4;
    color: var(--secondary);
    font-weight: 500;
    transition: transform 0.2s ease, padding-left 0.2s ease;
}

/* Efecto sutil en los items al hover de la tarjeta */
.especialista-card-3d:hover .card-back p {
    padding-left: 3px;
}

/* Scroll personalizado para el dorso */
.card-back::-webkit-scrollbar {
    width: 4px;
}

.card-back::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.card-back::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 10px;
}

/* ========== RESPONSIVE ESPECIALISTAS ========== */
@media (max-width: 1100px) {
    .especialistas-grid {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 15px;
        gap: 15px;
    }
    
    .especialista-card-3d {
        width: 190px;
        min-width: 190px;
        height: 400px;
    }
    
    .especialista-imagen-3d {
        height: 230px;
    }
}

@media (max-width: 768px) {
    .especialistas-grid {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        gap: 15px;
        padding-bottom: 15px;
    }
    
    .especialista-card-3d {
        width: 180px;
        min-width: 180px;
        height: 380px;
    }
    
    .especialista-imagen-3d {
        height: 210px;
    }
    
    .front-titulo {
        font-size: 11px;
    }
    
    .front-nombre {
        font-size: 13px;
    }
    
    .front-desc {
        font-size: 10px;
    }
    
    .card-back h3 {
        font-size: 14px;
    }
    
    .card-back p {
        font-size: 9px;
    }
}

@media (max-width: 576px) {
    .especialista-card-3d {
        width: 170px;
        min-width: 170px;
        height: 370px;
    }
    
    .especialista-imagen-3d {
        height: 200px;
    }
    
    .especialista-info-front {
        padding: 10px;
    }
}


/* ========== ODONTÓLOGOS GENERALES - Estilo adicional ========== */
.odontologos-generales {
    background-color: var(--secondary);
    position: relative;
}

.odontologos-generales::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}

.odontologos-generales h2 {
    color: #FFFFFF;
}

.odontologos-generales .especialista-card-3d .front-titulo {
    color: var(--primary);
}

.odontologos-generales .especialista-card-3d:hover .front-titulo {
    color: #d4a06a;
}


/* ========== SERVICIOS ========== */
.servicios {
    background-color: #C19A6B;
    padding: 80px 20px;
}

.servicios h2 {
    color: #FFFFFF;
    margin-bottom: 50px;
}

.servicios h2::after {
    background-color: #FFFFFF;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.servicio-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.servicio-card i {
    font-size: 48px;
    color: #C19A6B;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.servicio-card h3 {
    font-size: 18px;
    color: var(--secondary);
    margin-bottom: 10px;
    font-weight: 700;
}

.servicio-card p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.servicios .btn-secondary {
    background-color: #FFFFFF;
    color: #C19A6B;
    border: none;
}

/* ========== CASOS CLÍNICOS ========== */
.casos {
    background-color: #FFFFFF;
    padding: 80px 20px;
}

.casos-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.casos-grid-mobile {
    display: none;
}

.casos-main {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.casos-main img {
    width: 100%;
    height: auto;
    display: block;
}

.caso-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(44, 62, 80, 0.95), transparent);
    padding: 30px 20px;
    color: #FFFFFF;
}

.caso-title h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.casos-thumbnails {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.thumbnail {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    border: 3px solid transparent;
}

.thumbnail.active {
    border-color: var(--primary);
}

/* Grid móvil 2 columnas */
.casos-grid-mobile {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.caso-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1 / 1;
}

.caso-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.caso-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.caso-overlay i {
    font-size: 32px;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    padding: 15px;
    border-radius: 50%;
}

/* ========== MODAL ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
}

.modal-caption {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 18px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.7);
    width: fit-content;
    margin: 0 auto;
    border-radius: 10px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

.modal-nav {
    position: absolute;
    bottom: 50%;
    left: 0;
    right: 0;
    transform: translateY(50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.modal-prev, .modal-next {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
}

.modal-prev:hover, .modal-next:hover {
    background: var(--primary);
}

/* ========== TIPS ========== */
.tips {
    background-color: var(--light);
    padding: 80px 20px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.tip-card {
    background: #FFFFFF;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.tip-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.tip-card h3 {
    font-size: 18px;
    color: var(--secondary);
    margin: 15px;
    font-weight: 700;
}

.tip-card p {
    font-size: 14px;
    color: #666;
    margin: 0 15px 15px;
}

/* ========== CONTACTO ========== */
.contacto {
    background-color: var(--secondary);
    color: #FFFFFF;
    padding: 80px 20px;
}

.contacto h2 {
    color: #FFFFFF;
}

.contacto-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.mapa-container {
    border-radius: 15px;
    overflow: hidden;
    height: 400px;
}

.mapa {
    width: 100%;
    height: 100%;
    border: none;
}

.contacto-info h3 {
    font-size: 24px;
    margin-bottom: 30px;
}

.contacto-info p {
    margin-bottom: 15px;
}

.contacto-info strong {
    color: var(--primary);
}

.redes-sociales {
    margin: 30px 0;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.redes-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.redes-links a {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 24px;
    transition: var(--transition);
    text-decoration: none;
}

.redes-links a:hover {
    background: var(--primary);
    color: var(--secondary);
    transform: scale(1.1);
}


/* Botón Maps dentro de la información */
.btn-maps {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-maps:hover {
    background: var(--primary);
    color: var(--secondary);
}

.whatsapp-btn-container {
    margin-top: 20px;
}

.ubicacion-info {
    transition: all 0.3s ease;
}


/* ========== SELECTOR DE UBICACIONES ========== */
.ubicaciones-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.ubicacion-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid transparent;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ubicacion-btn i {
    font-size: 16px;
}

.ubicacion-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.ubicacion-btn.active {
    background: var(--primary);
    color: var(--secondary);
    border-color: var(--primary);
}

.mapa-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    height: 400px;
    position: relative;
}

.mapa {
    width: 100%;
    height: 100%;
    border: none;
    display: none;
}

.mapa.active {
    display: block;
}

.ubicacion-info {
    display: none;
}

.ubicacion-info.active {
    display: block;
}

.ubicacion-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary);
}

.ubicacion-info h3 i {
    margin-right: 10px;
}

.ubicacion-info p {
    margin-bottom: 15px;
}

.botones-contacto {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .ubicaciones-selector {
        gap: 10px;
    }
    
    .ubicacion-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .ubicacion-btn i {
        font-size: 14px;
    }
    
    .mapa-container {
        height: 250px;
    }
    
    .ubicacion-info h3 {
        font-size: 20px;
    }
    
    .botones-contacto {
        flex-direction: column;
    }
    
    .botones-contacto .btn {
        width: 100%;
        text-align: center;
    }
}


/* ========== BOTONES ========== */
.boton-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 40px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary);
    color: #FFFFFF;
}

.btn-secondary:hover {
    background-color: #1F2937;
    transform: translateY(-2px);
}

/* ========== FOOTER ========== */
.footer {
    background-color: #1A1A1A;
    color: #FFFFFF;
    padding: 40px 20px;
    text-align: center;
}

.footer-logo {
    width: 120px;
    height: 50px;
    margin: 0 auto 20px;
}

.footer-logo .logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer p {
    font-size: 14px;
    margin-bottom: 10px;
    opacity: 0.8;
}

/* ========== RESPONSIVE MÓVIL - TODOS LOS AJUSTES ========== */
@media (max-width: 768px) {
    /* General */
    section {
        padding: 60px 15px;
    }
    
    h2 {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    /* Navbar */
    .navbar-sticky {
        padding: 10px 0;
    }
    
    .logo {
        width: 250px;
        height: 50px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        gap: 0;
        padding: 20px;
    }
    
    .navbar-sticky:not(.scrolled) .nav-links {
        background: rgba(44, 62, 50, 0.95);
    }
    
    .navbar-sticky.scrolled .nav-links {
        background: #FFFFFF;
    }
    
    .nav-links.show {
        display: flex;
    }
    
    .nav-links a {
        padding: 12px 0;
        width: 100%;
        text-align: center;
        font-size: 16px;
    }
    
    /* Hero */
    .hero-header {
        min-height: 40vh;
        padding-bottom: 20px;
    }
    
    .hero-frase {
        margin-bottom: 40px;
    }
    
    .hero-frase h2 {
        font-size: 32px;
    }
    
    /* Equipo - MÓVIL */
    .equipo-titulo-superpuesto {
        display: none;
    }
    
    .equipo-titulo-mobile {
        display: block;
    }
    
    .equipo-visual {
        width: 95%;
    }
    
    .equipo-img-png {
        max-width: 65%;
        max-height: 250px;
    }
    
    .equipo-info {
        width: 95%;
        margin-top: 15px;
        padding: 12px 15px;
    }
    
    .equipo-info h3 {
        font-size: 15px;
    }
    
    /* Especialistas - MÓVIL (scroll horizontal) */
    .especialistas-grid {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        gap: 15px;
        padding-bottom: 15px;
    }
    
    .especialista-card-3d {
        width: 180px;
        min-width: 180px;
        height: 380px;
    }
    
    .especialista-imagen-3d {
        height: 210px;
    }
    
    .front-titulo {
        font-size: 11px;
    }
    
    .front-nombre {
        font-size: 13px;
    }
    
    /* Servicios - MÓVIL (2 columnas) */
    .servicios-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    
    .servicio-card {
        padding: 15px 12px;
    }
    
    .servicio-card i {
        font-size: 32px;
    }
    
    .servicio-card h3 {
        font-size: 14px;
    }
    
    .servicio-card p {
        font-size: 11px;
    }
    
    /* Casos Clínicos - MÓVIL */
    .casos-gallery {
        display: none;
    }
    
    .casos-grid-mobile {
        display: grid;
    }
    
    /* Tips - MÓVIL */
    .tips-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .tip-card img {
        height: 150px;
    }
    
    .tip-card h3 {
        font-size: 16px;
        margin: 12px;
    }
    
    .tip-card p {
        font-size: 12px;
        margin: 0 12px 12px;
    }
    
    /* Contacto - MÓVIL */
    .contacto-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .mapa-container {
        height: 250px;
    }
    
    .contacto-info h3 {
        font-size: 20px;
    }
    
    .redes-links a {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    /* Botones */
    .btn {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    /* Modal móvil */
    .modal-content {
        max-width: 95%;
        max-height: 70%;
    }
    
    .modal-caption {
        font-size: 14px;
        bottom: 10px;
        padding: 8px 15px;
    }
    
    .modal-close {
        top: 15px;
        right: 20px;
        font-size: 30px;
    }
    
    .modal-prev, .modal-next {
        padding: 10px 15px;
        font-size: 18px;
    }
}

/* Móviles muy pequeños */
@media (max-width: 480px) {
    .equipo-img-png {
        max-width: 55%;
        max-height: 200px;
    }
    
    .equipo-info h3 {
        font-size: 14px;
    }
    
    .especialista-card-3d {
        width: 170px;
        min-width: 170px;
        height: 370px;
    }
    
    .servicios-grid {
        gap: 12px !important;
    }
    
    .servicio-card {
        padding: 12px 10px;
    }
    
    .servicio-card i {
        font-size: 28px;
    }
    
    .servicio-card h3 {
        font-size: 13px;
    }
    
    .casos-grid-mobile {
        gap: 12px;
    }
}

/* iPhone SE y similares */
@media (max-width: 380px) {
    .hero-frase h2 {
        font-size: 28px;
    }
    
    .equipo-img-png {
        max-width: 50%;
        max-height: 170px;
    }
    
    .servicios-grid {
        gap: 10px !important;
    }
    
    .servicio-card {
        padding: 10px 8px;
    }
    
    .servicio-card i {
        font-size: 24px;
    }
    
    .servicio-card h3 {
        font-size: 12px;
    }
}