/* VARIABLES Y RESET MEJORADOS */
:root {
    --azul-principal: #2563eb;
    --azul-secundario: #1d4ed8;
    --azul-oscuro: #1e40af;
    --texto-principal: #1f2937;
    --texto-secundario: #6b7280;
    --gris-claro: #f9fafb;
    --gris-medio: #e5e7eb;
    --blanco: #FFFFFF;
    --fondo-oscuro: #0f172a;
    --texto-oscuro: #e2e8f0;
    --card-oscuro: #1e293b;
    --verde: #10b981;
    --naranja: #f59e0b;
    --rojo: #ef4444;
    --degradado: linear-gradient(135deg, var(--azul-principal), var(--azul-oscuro));
    --sombra: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --sombra-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.dark-mode {
    --texto-principal: var(--texto-oscuro);
    --texto-secundario: #94a3b8;
    --gris-claro: #0f172a;
    --gris-medio: #1e293b;
    --blanco: var(--fondo-oscuro);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--texto-principal);
    background-color: var(--blanco);
    overflow-x: hidden;
}

/* Cursor personalizado */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--azul-principal);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
}

.custom-cursor.hover {
    width: 40px;
    height: 40px;
    background: rgba(37, 99, 235, 0.5);
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--blanco);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    margin-bottom: 2rem;
}

.preloader-logo img {
    height: 80px;
    width: auto;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--gris-medio);
    border-top: 5px solid var(--azul-principal);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Botones flotantes */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--sombra);
    z-index: 100;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: var(--sombra-hover);
}

#back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: var(--azul-principal);
    color: white;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--sombra);
    z-index: 100;
    transition: all 0.3s ease;
}

#back-to-top:hover {
    background: var(--azul-oscuro);
    transform: translateY(-5px);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--degradado);
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--azul-principal);
}

p {
    margin-bottom: 15px;
    color: var(--texto-secundario);
}

img {
    max-width: 100%;
    height: auto;
}

/* HEADER MEJORADO */
header {
    background-color: rgba(250, 250, 250, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    width: 100%;
    transition: all 0.3s ease;
}

header.scrolled {
    background-color: rgba(250, 250, 250, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.dark-mode header {
    background-color: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dark-mode header.scrolled {
    background-color: rgba(15, 23, 42, 0.98);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0 20px;
    max-width: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    height: 55px;
    width: auto;
    display: block;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--azul-principal);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--texto-principal);
    transition: all 0.3s ease;
}

.dark-mode .nav-toggle span {
    background: var(--texto-oscuro);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu li a {
    text-decoration: none;
    color: var(--texto-principal);
    font-weight: 500;
    padding: 10px 15px;
    display: block;
    font-size: 16px;
    border-radius: 4px;
    transition: color 0.3s ease;
    position: relative;
}

.dark-mode .nav-menu li a {
    color: var(--texto-oscuro);
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--azul-principal);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu li a:hover::after,
.nav-menu li a:focus::after {
    width: 80%;
}

.nav-menu li a:hover,
.nav-menu li a:focus {
    color: var(--azul-principal);
}

.nav-actions {
    display: flex;
    align-items: center;
}

.dark-mode-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--texto-principal);
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.dark-mode .dark-mode-toggle {
    color: var(--texto-oscuro);
}

.dark-mode-toggle:hover {
    color: var(--azul-principal);
    transform: rotate(15deg);
}

/* VIDEO CAROUSEL MEJORADO */
.video-carousel {
    position: relative;
    /* Altura ajustada */
    height: 70vh; 
    min-height: 500px;
    overflow: hidden;
}

/* CORRECCIÓN IMAGEN CARRUSEL: Para que la imagen se vea completa */
.image-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* CAMBIO CLAVE: Usamos contain para que la imagen se vea completa y centrada */
    background-size: contain; 
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--azul-principal); /* Fondo uniforme del carrusel */
    z-index: 0;
}
/* FIN CORRECCIÓN IMAGEN CARRUSEL */

.video-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.video-slide.active {
    opacity: 1;
}

.video-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--blanco);
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--blanco);
    font-weight: 300;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primario {
    background-color: var(--azul-principal);
    color: var(--blanco);
    box-shadow: var(--sombra);
}

.btn-primario:hover {
    background-color: var(--azul-oscuro);
    transform: translateY(-3px);
    box-shadow: var(--sombra-hover);
}

.btn-secundario {
    background-color: transparent;
    color: var(--blanco);
    border: 2px solid var(--blanco);
}

.btn-secundario:hover {
    background-color: var(--blanco);
    color: var(--azul-principal);
    transform: translateY(-3px);
}

.video-controls {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.video-controls button {
    background: rgba(255, 255, 255, 0.5);
    border: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.video-controls button.active {
    background: var(--blanco);
    transform: scale(1.2);
}

/* SECCIÓN DE ESTADÍSTICAS - ELIMINADA */

/* APP PROMO MEJORADA */
.app-promo-section {
    background-color: var(--gris-claro);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.app-promo-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: var(--degradado);
    border-radius: 50%;
    opacity: 0.05;
    z-index: 0;
}

.promo-content {
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.promo-texto {
    flex: 1;
}

.section-badge {
    display: inline-block;
    background: var(--degradado);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.app-promo-section .section-badge {
    background: var(--naranja);
}

.promo-texto h2 {
    font-size: 2.8rem;
    text-align: left;
    margin-bottom: 20px;
    line-height: 1.2;
}

.promo-texto h2::after {
    left: 0;
    transform: none;
}

.app-features {
    display: flex;
    gap: 20px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.app-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--blanco);
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: var(--sombra);
}

.dark-mode .app-feature {
    background: var(--card-oscuro);
}

.app-feature i {
    color: var(--azul-principal);
    font-size: 1.2rem;
}

.app-download-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Estilos para la sección de app próxima */
.coming-soon-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 8px;
    color: var(--texto-principal);
    border: 2px dashed var(--azul-principal);
    opacity: 0.8;
}

.dark-mode .coming-soon-badge {
    background: rgba(255, 255, 255, 0.05);
    color: var(--texto-oscuro);
}

.coming-soon-badge i {
    font-size: 1.5rem;
    color: var(--azul-principal);
}

.coming-soon-badge div {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.coming-soon-badge div span:first-child {
    font-size: 0.8rem;
    opacity: 0.8;
}

.coming-soon-badge div span:last-child {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Animación sutil para los badges de próximamente */
.coming-soon-badge {
    animation: pulse-gentle 2s infinite;
}

@keyframes pulse-gentle {
    0% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.8;
    }
}

.promo-imagen {
    flex: 1;
    text-align: center;
    position: relative;
}

.phone-mockup {
    position: relative;
    max-width: 300px;
    margin: 0 auto;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--sombra-hover);
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.phone-mockup:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.phone-mockup img {
    border-radius: 20px;
    display: block;
}

/* NOSOTROS MEJORADO */
.nosotros-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.nosotros-col {
    padding: 30px;
    background: var(--blanco);
    border-radius: 10px;
    box-shadow: var(--sombra);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dark-mode .nosotros-col {
    background: var(--card-oscuro);
}

.nosotros-col::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--degradado);
}

.nosotros-col:hover {
    transform: translateY(-10px);
    box-shadow: var(--sombra-hover);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--degradado);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.5rem;
}

.nosotros-col h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

/* EQUIPO Y GALERÍA MEJORADOS */
.equipo-grid,
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.galeria-grid {
    gap: 20px;
}

.especialista-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--sombra);
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--blanco);
    height: 380px; 
    perspective: 1000px;
}

.dark-mode .especialista-card {
    background-color: var(--card-oscuro);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.especialista-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.card-back {
    background: var(--azul-secundario); 
    color: white;
    transform: rotateY(180deg);
}

.especialista-card img {
    width: 100%;
    height: 200px; 
    object-fit: contain; 
    display: block;
    border-radius: 8px 8px 0 0;
}

.especialista-card h4,
.especialista-card p {
    padding: 15px 20px;
    text-align: center;
    margin: 0;
}

.especialista-card h4 {
    padding-bottom: 5px;
    color: var(--texto-principal);
}

.especialista-card p {
    padding-top: 0;
    color: var(--azul-principal);
    font-weight: 500;
}

.card-back h4, .card-back p {
    color: white;
}

.btn-card {
    background: white;
    color: var(--azul-principal);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.btn-card:hover {
    background: var(--azul-oscuro);
    color: white;
    transform: translateY(-3px);
}

/* GALERÍA INTERACTIVA MEJORADA */
.galeria-item {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.galeria-item:hover {
    transform: scale(1.03);
    box-shadow: var(--sombra-hover);
}

.galeria-item img {
    width: 100%;
    height: 250px;
    object-fit: contain; 
    background-color: var(--gris-claro);
    display: block;
    transition: all 0.5s ease;
}

.galeria-item:hover img {
    transform: scale(1.0);
}

.galeria-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    color: white;
}

.galeria-item:hover .galeria-overlay {
    opacity: 1;
}

.galeria-item:hover img {
    transform: scale(1.0);
}

.galeria-overlay i {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* SECCIÓN DE TESTIMONIOS */
.testimonials-section {
    background: var(--gris-claro);
    padding: 80px 0;
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial {
    display: none;
    padding: 40px;
    background: var(--blanco);
    border-radius: 10px;
    box-shadow: var(--sombra);
    text-align: center;
}

.dark-mode .testimonial {
    background: var(--card-oscuro);
}

.testimonial.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.testimonial-content p {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 30px;
    position: relative;
}

.testimonial-content p::before,
.testimonial-content p::after {
    content: '"';
    font-size: 3rem;
    color: var(--azul-principal);
    opacity: 0.3;
    position: absolute;
}

.testimonial-content p::before {
    top: -20px;
    left: -10px;
}

.testimonial-content p::after {
    bottom: -40px;
    right: -10px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.testimonial-author h4 {
    margin-bottom: 5px;
}

.testimonial-author span {
    color: var(--texto-secundario);
    font-size: 0.9rem;
}

.testimonials-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.testimonial-prev,
.testimonial-next {
    background: var(--azul-principal);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background: var(--azul-oscuro);
    transform: scale(1.1);
}

.testimonials-dots {
    display: flex;
    gap: 10px;
}

.testimonials-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gris-medio);
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonials-dots .dot.active {
    background: var(--azul-principal);
    transform: scale(1.2);
}

/* CONTACTO MEJORADO */
.contacto-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: start;
}

.contacto-info h3 {
    font-size: 1.8rem;
}

.info-lista {
    list-style: none;
    margin-top: 30px;
}

.info-lista li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.info-lista i {
    font-size: 1.5rem;
    color: var(--azul-principal);
    width: 40px;
    text-align: center;
    margin-right: 15px;
    margin-top: 5px;
}

.social-contact {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-contact a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--azul-principal);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-contact a:hover {
    background: var(--azul-oscuro);
    transform: translateY(-5px);
}

.contacto-mapa iframe {
    border-radius: 10px;
    height: 400px;
    width: 100%;
    box-shadow: var(--sombra);
}

/* FOOTER MEJORADO */
footer {
    background-color: var(--fondo-oscuro);
    color: #f0f0f0;
    padding: 60px 0 30px;
    margin-top: 40px;
    width: 100%;
}

.dark-mode footer {
    background-color: #0a0a0a;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 20px;
}

.footer-logo {
    width: 140px;
    height: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-col h4 {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--azul-principal);
}

.footer-col p {
    color: #b0b0b0;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--azul-principal);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #333;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--azul-principal);
    transform: translateY(-3px);
}

.lang-title {
    margin-top: 20px;
}

.lang-links a {
    color: #b0b0b0;
    text-decoration: none;
    margin-right: 10px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lang-links a.active,
.lang-links a:hover {
    color: #ffffff;
}

.app-download {
    display: flex;
    gap: 20px;
    align-items: center;
}

.app-download .qr-code {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    background: white;
    padding: 5px;
}

/* MODAL MEJORADO */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: var(--blanco);
    padding: 30px;
    width: 90%; 
    max-width: 650px; 
    border-radius: 15px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-height: 95vh; 
    overflow-y: auto; 
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.dark-mode .modal-content {
    background-color: var(--card-oscuro);
    color: var(--texto-oscuro);
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: #000;
}

.dark-mode .close-button:hover,
.dark-mode .close-button:focus {
    color: var(--texto-oscuro);
}

/* Estilos para el contenido del modal de especialista (Ajuste de imagen y texto) */
#modal-body {
    display: flex;
    gap: 20px;
    flex-direction: column; 
    text-align: left;
}
.modal-image-container {
    width: 100%;
    height: 250px; 
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex; 
    justify-content: center;
    align-items: center;
    background-color: var(--blanco); 
}
.modal-specialist-img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    display: block;
}
.modal-text-content {
    padding-top: 0;
}
.modal-text-content h4 {
    color: var(--azul-principal);
    font-size: 1.8rem;
    margin-bottom: 5px;
}
.modal-text-content .specialty {
    color: var(--texto-secundario);
    font-weight: 500;
    margin-bottom: 15px;
    display: block;
}
.modal-text-content ul {
    list-style: disc;
    padding-left: 25px;
    margin-top: 15px;
}
.modal-text-content ul li {
    margin-bottom: 8px;
    color: var(--texto-secundario);
}
.modal-text-content strong {
    color: var(--texto-principal); 
}
.dark-mode .modal-text-content strong {
    color: var(--texto-oscuro);
}


/* MODAL DE GALERÍA MEJORADO */
.gallery-modal-content {
    width: 90%;
    max-width: 1000px;
    height: 90vh;
    max-height: 800px;
    background-color: transparent;
    box-shadow: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal-body {
    position: relative;
    width: 100%;
    height: 100%; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-image-container {
    position: relative;
    width: 100%;
    height: 100%; 
    display: flex;
    align-items: center;
    justify-content: center;
}

#gallery-image {
    max-width: 100%;
    max-height: 100%; 
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: zoomIn 0.3s ease;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev {
    left: 20px;
}

.gallery-nav.next {
    right: 20px;
}

.gallery-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 35px;
    z-index: 1002;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gallery-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.gallery-counter {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 1rem;
    margin: 0 auto;
    width: fit-content;
}

/* RESPONSIVE MEJORADO */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .promo-content {
        flex-direction: column;
        text-align: center;
    }
    
    .promo-texto h2 {
        text-align: center;
        font-size: 2.5rem;
    }
    
    .promo-texto h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .phone-mockup {
        transform: none;
    }
}

@media (max-width: 768px) {
    h2 { 
        font-size: 2rem; 
    }
    
    .section {
        padding: 60px 0;
    }
    
    .hero-content h1 { 
        font-size: 2.5rem; 
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--blanco);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .dark-mode .nav-menu {
        background: var(--fondo-oscuro);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
    }
    
    .nav-menu li a {
        padding: 15px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links, 
    .app-download {
        justify-content: center;
    }
    
    .video-carousel {
        height: 70vh;
        min-height: 500px;
    }
    
    .app-download-buttons {
        justify-content: center;
    }
    
    .testimonial {
        padding: 30px 20px;
    }
    
    .testimonial-content p {
        font-size: 1.1rem;
    }
    
    .contacto-wrapper {
        grid-template-columns: 1fr;
    }
    
    /* Adaptación del modal en móvil */
    .modal-content {
        padding: 20px;
        max-width: 90%;
    }
    #modal-body {
        flex-direction: column;
    }
    .modal-image-container {
        height: 180px; 
    }

    .gallery-modal-content {
        width: 95%;
        height: 80vh;
    }
    
    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .gallery-nav.prev {
        left: 10px;
    }
    
    .gallery-nav.next {
        right: 10px;
    }
    
    .gallery-close {
        top: 10px;
        right: 10px;
        font-size: 30px;
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .video-carousel {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .app-features {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    .galeria-grid {
        grid-template-columns: 1fr;
    }
    
    .especialista-card {
        height: 350px; 
    }
    .especialista-card img {
        height: 180px;
    }
    
    .gallery-nav {
        width: 35px;
        height: 35px;
    }
}