  :root {
            --primary: #123c66;
            --primary-dark: #555;
            --secondary: rgba(233, 234, 245, 0.327);
            --accent: #555;
            --light: #ffffff;
            --dark: #555;
            --gray: #555;
            --transition: all 0.4s ease;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Montserrat', sans-serif;
            color: var(--dark);
            background-color: #f8f9fa;
            overflow-x: hidden;
            opacity: 1;
                transition: opacity 0.5s ease;
        }
        
        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* Header Styles */
        header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 1000;
            background: rgba(255, 255, 255, 0.95);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            padding: 15px 0;
            transition: var(--transition);
        }


        .logo {
            display: flex;
            align-items: center;
        }

        .logo img {
            height: 50px;
            margin-right: 10px;
        }

        .logo h1 {
            font-size: 1.8rem;
            color: var(--primary);
        }

      

        /* Hero Slider */
        .hero-slider {
            position: relative;
            height: 100vh;
            overflow: hidden;
        }

       .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    z-index: 0;
    pointer-events: none;
    transform: scale(1.1);
    transition: all 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
    transform: scale(1);
}


        .slide-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
        }

        .slide-content {
            position: relative;
            z-index: 2;
            padding-left: 10%;
            max-width: 600px;
            color: var(--light);
        }

     .slide-content h2 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

/* Para pantallas más pequeñas */
@media (max-width: 1200px) {
    .slide-content h2 {
        font-size: 3.5rem;
    }
}

/* Para pantallas medianas */
@media (max-width: 992px) {
    .slide-content h2 {
        font-size: 2.8rem;
    }
}

/* Para pantallas pequeñas (móviles) */
@media (max-width: 576px) {
    .slide-content h2 {
        font-size: 2rem;
        margin-bottom: 15px;
    }
}


        .slide.active .slide-content h2 {
            opacity: 1;
            transform: translateY(0);
        }

        .slide-content p {
            font-size: 1.2rem;
            margin-bottom: 30px;
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.8s ease 0.3s;
        }

        .slide.active .slide-content p {
            opacity: 1;
            transform: translateY(0);
        }

          .btn {
                display: inline-flex;
                align-items: center;
                gap: 10px;
                font-size: 1.2rem; /* más grande */
                padding: 16px 40px; /* más relleno */
                background: var(--primary);
                color: white;
                text-decoration: none;
                border-radius: 50px;
                font-weight: 700;
                transition: all 0.8s ease 0.6s;
                opacity: 0;
                transform: translateY(30px);
                z-index: 5;
            }

            .slide.active .btn {
                opacity: 1;
                transform: translateY(0);
            }

            .btn:hover {
                background: var(--primary-dark);
                transform: translateY(-3px);
                box-shadow: 0 10px 20px rgba(0,0,0,0.2);
            }




        .slider-nav {
            position: absolute;
            bottom: 40px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 10;
            display: flex;
        }

          nav ul {
            display: flex;
            list-style: none;
            font-size: 18px; /* Aumenta el tamaño de la fuente */

        }

        nav ul li {
            margin-left: 30px;
        }

        nav ul li a {
            text-decoration: none;
            color: var(--dark);
            font-weight: 500;
            font-size: 1rem;
            position: relative;
            transition: var(--transition);
        }

        nav ul li a:after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--primary);
            transition: var(--transition);
        }

        nav ul li a:hover:after {
            width: 100%;
        }

        nav ul li a:hover {
            color: var(--primary);
        }

   .mobile-menu {
 margin-left: auto;  /* Esto empuja el ícono hacia la derecha */
    margin-right: 20px; /* Esto le da un pequeño margen desde el borde derecho */
    display: flex; /* Esto puede ser útil si quieres que el ícono se alinee de forma flexible */
    align-items: center; /* Centra verticalmente */
                font-size: 1.5rem;
            cursor: pointer;
            color: var(--primary);
        }


        .slider-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: rgba(255,255,255,0.5);
            margin: 0 8px;
            cursor: pointer;
            transition: var(--transition);
        }

        .slider-dot.active {
            background: var(--light);
            transform: scale(1.2);
        }

        /* Section Styling */
        section {
            padding: 100px 0;
        }

        .section-header {
            text-align: center;
            margin-bottom: 60px;
        }

        .section-header h2 {
            font-size: 3.0rem !important;
            color: var(--primary-dark);
            margin-bottom: 15px;
            position: relative;
            display: inline-block;
        }

        .section-header h2:after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 3px;
            background: var(--accent);
        }

        .section-header p {
            color: var(--gray);
            max-width: 700px;
            margin: 20px auto 0;
            font-size: 1.2rem;
            line-height: 1.6;
        }

        /* Welcome Section */
        .welcome {
            background: var(--light);
        }

        .welcome-content {
            display: flex;
            align-items: center;
            gap: 50px;
        }

        .welcome-text {
            flex: 1;
            opacity: 0;
            transform: translateX(-50px);
            transition: all 0.8s ease;
        }

        .welcome-text.appear {
            opacity: 1;
            transform: translateX(0);
        }

        .welcome-text h3 {
            font-size: 2rem;
            margin-bottom: 20px;
            color: var(--primary);
        }

        .welcome-text p {
            margin-bottom: 20px;
            line-height: 1.8;
            font-size: 0.9;

        }

        .welcome-image {
            flex: 1;
            border-radius: 15px;
            overflow: hidden;
          
            opacity: 0;
        }

        .welcome-image.appear {
            opacity: 1;
            transform: perspective(1000px) rotateY(0);
        }

        .welcome-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        /* Mission Vision Section */
        .mission-vision {
            background: var(--secondary);
        }

        .mv-container {
            display: flex;
            gap: 40px;
        }

        .mv-card {
            flex: 1;
            background: var(--light);
            border-radius: 15px;
            padding: 40px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
            text-align: center;
            transition: var(--transition);
            opacity: 0;
            transform: translateY(30px);
        }

        .mv-card.appear {
            opacity: 1;
            transform: translateY(0);
        }

        .mv-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 40px rgba(0,0,0,0.1);
        }

        .mv-card i {
            font-size: 3rem;
            color: var(--primary);
            margin-bottom: 20px;
        }

        .mv-card h3 {
            font-size: 1.8rem;
            margin-bottom: 15px;
            color: var(--primary-dark);
        }

        /* Services Section */
        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
        }

        .service-card {
            background: var(--light);
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
            transition: var(--transition);
            opacity: 0;
            transform: translateY(30px);
        }

        .service-card.appear {
            opacity: 1;
            transform: translateY(0);
        }

        .service-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 40px rgba(0,0,0,0.1);
        }

        .service-image {
            height: 200px;
            overflow: hidden;
        }

        .service-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: var(--transition);
        }

        .service-card:hover .service-image img {
            transform: scale(1.1);
        }

       .service-content {
            padding: 25px;
            background-color: #8a9ba8; /* Azul oscuro */
            transition: background-color 0.5s ease;  /* Transición suave */
        }

        .service-content h3 {
            font-size: 1.8rem;
            margin-bottom: 15px;
            color: #ffffff; /* Gris azulado */
            text-align: center;
            transition: color 0.5s ease;  /* Transición suave para el texto */
        }

        /* Cambiar colores al pasar el ratón (hover) */
        .service-content:hover {
            background-color: #8a9ba8; /* Cambiar fondo a gris azulado */
        }

        .service-content:hover h3 {
            color: #123c66; /* Cambiar texto a azul oscuro */
        }


        /* Why Choose Us */
        .why-choose {
            background: var(--secondary);
        }

        .features {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
        }

        .feature {
            text-align: center;
            padding: 30px 20px;
            background: var(--light);
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
            transition: var(--transition);
            opacity: 0;
            transform: translateY(30px);
        }

        .feature.appear {
            opacity: 1;
            transform: translateY(0);
        }

        .feature:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 40px rgba(0,0,0,0.1);
        }

        .feature i {
            font-size: 2.5rem;
            color: var(--primary);
            margin-bottom: 20px;
        }

        .feature h3 {
            font-size: 1.4rem;
            margin-bottom: 15px;
            color: var(--primary-dark);
        }

        /* Team Section */
       .team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columnas iguales */
  gap: 30px; /* Espacio entre tarjetas */
  margin-top: 30px;
}

@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas en pantallas medianas */
  }
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr; /* 1 columna en móviles */
  }
}
.doctor-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
  padding: 20px;
}


        .doctor-card.appear {
            opacity: 1;
            transform: translateY(0);
        }

        .doctor-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 40px rgba(0,0,0,0.1);
        }

        .doctor-image {
            height: 350px;
            
            overflow: hidden;
        }

        .doctor-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: var(--transition);
        }

        .doctor-card:hover .doctor-image img {
            transform: scale(1.1);
        }

        .doctor-info {
            padding: 25px 20px;
        }

        .doctor-info h3 {
            font-size: 1.4rem;
            color: var(--primary-dark);
            margin-bottom: 5px;
        }

        .doctor-info p {
            color: var(--primary);
            font-size: 0.9;
            margin-bottom: 15px;
        }

        .social-links {
            display: flex;
            justify-content: center;
            gap: 15px;
        }

        .social-links a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: var(--secondary);
            color: var(--primary);
            transition: var(--transition);
        }

        .social-links a:hover {
            background: var(--primary);
            color: white;
            transform: translateY(-3px);
        }

        /* Footer */
        footer {
            background:#8a9ba8;
            color: white;
            padding: 70px 0 0;
        }

        .footer-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
            margin-bottom: 50px;
        }

        .footer-col h3 {
            font-size: 1.4rem;
            margin-bottom: 25px;
            position: relative;
            padding-bottom: 10px;
        }

        .footer-col h3:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 50px;
            height: 2px;
            background: var(--accent);
        }

        .footer-col p, .footer-col li {
            margin-bottom: 15px;
            line-height: 1.6;
            color: #cbd5e1;
        }

        .footer-col ul {
            list-style: none;
        }

        .footer-col ul li a {
            color: #cbd5e1;
            text-decoration: none;
            transition: var(--transition);
            display: block;
        }

        .footer-col ul li a:hover {
            color: var(--accent);
            transform: translateX(5px);
        }

        .contact-info li {
            display: flex;
            align-items: flex-start;
        }

        .contact-info li i {
            margin-right: 10px;
            color: var(--primary);
            font-size: 1.2rem;
            margin-top: 4px;
        }

        .copyright {
            text-align: center;
            padding: 20px 0;
            border-top: 1px solid rgba(255,255,255,0.1);
            color: #ffffff;
            font-size: 0.9rem;
        }

        /* Responsive */
        @media (max-width: 992px) {
            .welcome-content {
                flex-direction: column;
            }

            .mv-container {
                flex-direction: column;
            }
        }

      /* Estilo para el menú en versión móvil */


        /* Animations */
        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }

        .floating {
            animation: float 6s ease-in-out infinite;
        }

        
 /* --- Botón flotante de WhatsApp --- */
         .btn-whatsapp{
           position: fixed;
           right: 25px;
           bottom: 25px;
           z-index: 9999;
           width: 60px;
           height: 60px;
           border-radius: 50%;
           background:#16db2a;
           box-shadow:0 0 15px rgba(0,0,0,.3);
           display:flex;
           align-items:center;
           justify-content:center;
           color:#fff;
           font-size:32px;
           transition: transform .3s ease;
         }
         .btn-whatsapp:hover{
           transform: scale(1.1);
         }
         /* Animación pulse */
         @keyframes pulse{
           0%{box-shadow:0 0 0 0 rgba(37,211,102,.7);}
           70%{box-shadow:0 0 0 15px rgba(37,211,102,0);}
           100%{box-shadow:0 0 0 0 rgba(37,211,102,0);}
         }
         .btn-whatsapp::after{
           content:'';
           position:absolute;
           width:100%;
           height:100%;
           border-radius:50%;
           animation:pulse 2s infinite;
         }



.btn-primary {
    background-color: #123c66;
    color: #fff;
    border: none;
}

.btn-primary i {
    margin-right: 8px; /* Para dar espacio entre el ícono y el texto */
}
.cta-button {
    text-align: center; /* Centra el enlace dentro del contenedor */
    margin-top: 20px; /* Espaciado desde el borde superior del contenedor */
}

/* Estilo para el enlace */
.cta-link {
    display: inline-block;
    padding: 12px 25px;
    background-color: #123c66; /* Color de fondo azul */
    color: #fff; /* Color del texto blanco */
    text-decoration: none; /* Quitar subrayado */
    font-size: 18px; /* Tamaño de fuente */
    font-weight: bold; /* Hacer el texto en negrita */
    border-radius: 5px; /* Bordes redondeados */
    transition: background-color 0.3s ease; /* Efecto de transición en el fondo */
}

/* Efecto al pasar el ratón sobre el enlace */
.cta-link:hover {
    background-color: #081829; /* Fondo más oscuro cuando se pasa el ratón */
}

/* Si deseas que se quede en la parte superior del contenedor */
.cta-button {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Alinea el contenido arriba */
    align-items: center; /* Centra horizontalmente */
    height: 100%; /* Asegura que ocupe toda la altura */
}

.insurance-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  justify-content: center;
  padding: 40px 20px;
}

.insurance-images img {
  width: 100%;
  max-width: 280px; /* más grande */
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

/* Delay progresivo para cada imagen */
.insurance-images img:nth-child(1) { animation-delay: 0s; }
.insurance-images img:nth-child(2) { animation-delay: 0.1s; }
.insurance-images img:nth-child(3) { animation-delay: 0.2s; }
.insurance-images img:nth-child(4) { animation-delay: 0.3s; }
.insurance-images img:nth-child(5) { animation-delay: 0.4s; }
.insurance-images img:nth-child(6) { animation-delay: 0.5s; }
.insurance-images img:nth-child(7) { animation-delay: 0.6s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive para móviles */
@media screen and (max-width: 768px) {
  .insurance-images {
    grid-template-columns: repeat(2, 1fr);
  }
  .insurance-images img {
    max-width: 140px;
  }
}


/* Para hacer la segunda fila con solo 3 imágenes centradas */
.insurance-images img:nth-child(n+5) {
  grid-column: span 1;
}

.insurance-images {
  grid-template-rows: auto auto;
}

@media screen and (max-width: 768px) {
  .insurance-images {
    grid-template-columns: repeat(2, 1fr);
  }
}



/* Media Query para dispositivos móviles */
@media only screen and (max-width: 768px) {
    #logo {
          content: url('../img/logo.png');
    margin-left: -1000x;  /* Mueve el logo a la izquierda */
    width: 90px; /* Ajusta el tamaño para móvil */
        height: auto; /* Mantener la proporción del logo */
    }

    .mobile-logo-text {
        display: block; /* Mostrar "Dossier" en móvil */
        
    }
}

/* Media Query para dispositivos de escritorio */
@media only screen and (min-width: 769px) {
    #logo {
        content: url('../img/logo1.png');
        width: 250px; /* Ajusta el tamaño para móvil */
        height: auto; /* Mantener la proporción del logo */
    }

    .mobile-logo-text {
        display: none; /* Ocultar "Dossier" en escritorio */
    }
}


.doctor-info {
   padding: 15px;
   background-color: #f9f9f9;
   border-radius: 8px;
}

.doctor-info h3 {
   margin-top: 0;
   color: #2c3e50;
}

.doctor-info p {
   margin: 5px 0;
   color: #555;
}

.doctor-memberships ul {
   padding-left: 20px;
   margin: 5px 0;
   color: #333;
      text-align: left; /* Alinea el texto de los elementos a la derecha */

}

.doctor-memberships li {
   margin-bottom: 4px;
}
/* Transiciones generales */
body.loaded * {
    transition: all 0.3s ease, opacity 0.6s ease, transform 0.6s ease;
}

/* Efecto para elementos que aparecen */
.appear {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Efectos para tarjetas */
.service-card, .mv-card, .doctor-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}



@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}


/* Efectos de aparición */
.appear {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Carrusel de seguros */
.insurance-carousel-container {
    overflow: hidden;
    width: 100%;
    margin: 20px 0;
}

.insurance-track {
    display: flex;
    width: max-content;
    will-change: transform;
}

.insurance-item {
    padding: 0 15px;
    display: flex;
    align-items: center;
}

.insurance-item img {
    max-height: 100px;
    width: auto;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.insurance-item:hover img {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.05);
}





.insurance-track1 {
    display: flex;
    width: max-content;
    will-change: transform;
}

.insurance-item1 {
    padding: 0 15px;
    display: flex;
    align-items: center;
}

.insurance-item1 img {
    max-height: 100px;
    width: auto;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.insurance-item1:hover img {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.05);
}




/* Efecto parallax */
.mission-vision, .why-choose {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
/* Agrega esto a tu CSS */
.service-card {
    transition: all 0.3s ease;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.service-image {
    overflow: hidden;
}

.service-image img {
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-image {
  display: flex;
  justify-content: center; /* centra horizontalmente */
  align-items: center;     /* centra verticalmente */
  height: 150px;           /* altura fija para que el centrado vertical funcione */
}

.service-image i {
  font-size: 140px;         /* tamaño grande del ícono */
  color: #123c66;          /* color del ícono, puedes cambiarlo */
}

/* Testimonials Section */
.testimonials {
    background-color: #f9f9f9;
    padding: 80px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.testimonial-rating {
    color: #FFD700;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.testimonial-content {
    font-style: italic;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.testimonial-author h4 {
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.testimonial-author p {
    color: #777;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

    #popup {
         display: none; /* Lo ocultamos por defecto */
         position: fixed;
         top: 0;
         left: 0;
         width: 100%;
         height: 100%;
         background-color: rgba(0, 0, 0, 0.5); /* Fondo oscuro con transparencia */
         z-index: 9999;
         justify-content: center;
         align-items: center;
         }
         #popup-content {
         background-color: white;
         padding: 20px;
         border-radius: 10px;
         text-align: center;
         position: relative;
         width: 80%;
         max-width: 400px;
         }
         #popup-content img {
         width: 100%;
         border-radius: 10px;
         }
         #popup .close {
         position: absolute;
         top: 10px;
         right: 10px;
         font-size: 24px;
         cursor: pointer;
         color: #333;
         }
         #popup .close:hover {
         color: red;
         }

             .financing-button-container {
        text-align: center;
        margin: 30px 0;
    }
    
    .btn-financing {
        background: linear-gradient(135deg, #4CAF50, #2E7D32);
        color: white;
        border: none;
        padding: 15px 30px;
        font-size: 18px;
        border-radius: 50px;
        cursor: pointer;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
        font-weight: bold;
        display: inline-flex;
        align-items: center;
    }
    
    .btn-financing:hover {
        background: linear-gradient(135deg, #2E7D32, #4CAF50);
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    }
    
    .btn-financing i {
        margin-right: 10px;
        font-size: 20px;
    }
    
    /* Estilos para el modal */
    .modal {
        display: none;
        position: fixed;
        z-index: 1000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0,0,0,0.8);
    }
    
    .modal-content {
        background-color: #fefefe;
        margin: 5% auto;
        padding: 20px;
        border-radius: 10px;
        max-width: 700px;
        width: 90%;
        position: relative;
        animation: modalopen 0.5s;
    }
    
    @keyframes modalopen {
        from {opacity: 0; transform: translateY(-50px);}
        to {opacity: 1; transform: translateY(0);}
    }
    
    .close {
        color: #aaa;
        float: right;
        font-size: 28px;
        font-weight: bold;
        cursor: pointer;
    }
    
    .close:hover {
        color: black;
    }
    
    .modal-body {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .modal-image {
        max-width: 100%;
        height: auto;
        margin-bottom: 20px;
        border-radius: 5px;
    }
    
    .modal-text {
        text-align: center;
        line-height: 1.6;
    }
    
    .modal-text p {
        margin-bottom: 15px;
    }
    
    .bhd-logo-container {
        margin: 20px 0;
    }
    
    .bhd-logo {
        max-width: 200px;
        height: auto;
    }

     /* Estilos para el botón de WhatsApp */
    .whatsapp-button {
        display: inline-block;
        background-color: #25D366;
        color: white;
        padding: 12px 20px;
        border-radius: 50px;
        text-decoration: none;
        font-weight: bold;
        margin-top: 15px;
        transition: all 0.3s ease;
        box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
    }
    
    .whatsapp-button:hover {
        background-color: #128C7E;
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
    }
    
    .whatsapp-button i {
        margin-right: 8px;
        font-size: 20px;
    }

        .section-header h2 {
            text-align: center;
            color: #123c66;
            font-size: 32px;
            margin: 40px 0 30px;
        }

        .card-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 30px;
            max-width: 1100px;
            margin: 0 auto 50px;
            padding: 0 20px;
        }

        .card {
            background-color: white;
            border-radius: 20px;
            padding: 30px 20px;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease-in-out;
            text-align: center;
        }

        .card.active {
            background-color: white;
            color: white;
        }

        .card img {
            width: 100px;
            margin-bottom: 20px;
        }

        .card h3 {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 15px;
        }

        .card button {
            background-color: #123c66;
            color: white;
            border: none;
            padding: 10px 25px;
            border-radius: 25px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.3s;
        }

        .card.active button {
            background-color: white;
            color: white;
            border: 2px solid white;
        }

        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
        }

        .card button:hover {
            background-color: #005f84;
        }

        /* Modal */
        .modal {
            display: none;
            position: fixed;
            z-index: 9999;
            padding-top: 80px;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0,0,0,0.5);
        }

        .modal-content {
            margin: auto;
            padding: 30px;
            border-radius: 15px;
            max-width: 700px;
            position: relative;
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease-in-out;
        }

        .modal-content.blue-background {
            background-color: white;
            color: #123c66;
        }

        .modal-content.white-background {
            background-color: white;
            color: #123c66;
        }

        .close {
            color: #aaa;
            position: absolute;
            top: 15px;
            right: 25px;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
        }

        .close:hover {
            color: #000;
        }

        .modal h3 {
            margin-top: 0;
            font-size: 24px;
            font-weight: 700;
            color: inherit;
        }

        .modal img {
            width: 100px;
            margin-bottom: 20px;
        }

        .modal p {
            font-size: 16px;
            line-height: 1.6;
            color: inherit;
        }

        .btn-cita {
            display: inline-block;
            background-color: #25d366;
            color: white;
            padding: 10px 20px;
            border-radius: 25px;
            text-decoration: none;
            font-weight: bold;
            margin-top: 20px;
            transition: background-color 0.3s;
        }

        .btn-cita:hover {
            background-color: #123c66;
        }

        @media (max-width: 768px) {
            .card-grid {
                grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            }
        }

      
        /* Header Styles */
        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 0;
            position: sticky;
            top: 0;
            z-index: 1000;
        }

     
        .mobile-menu {
            display: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: var(--primary);
        }

        nav ul {
            display: flex;
            list-style: none;
        }

        nav ul li {
            position: relative;
        }

        nav ul li a {
            display: block;
            padding: 10px 15px;
            text-decoration: none;
            color: var(--dark);
            font-weight: 500;
            transition: color 0.3s;
        }

        nav ul li a:hover {
            color: var(--primary);
        }

        /* Submenu Styles - Desktop */
        nav ul li.has-submenu .submenu {
            position: absolute;
            top: 100%;
            left: 0;
            background-color: white;
            min-width: 200px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            border-radius: 4px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(10px);
            transition: all 0.3s ease;
            z-index: 100;
        }

        nav ul li.has-submenu:hover .submenu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        nav ul li.has-submenu .submenu li {
            padding: 0;
        }

        nav ul li.has-submenu .submenu li a {
            padding: 10px 15px;
            border-bottom: 1px solid #eee;
            display: block;
            white-space: nowrap;
        }

        nav ul li.has-submenu .submenu li:last-child a {
            border-bottom: none;
        }

      

        /* Mobile Menu Styles */
        @media (max-width: 992px) {
            .mobile-menu {
                display: block;
            }

            nav {
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                background-color: white;
                box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
                display: none;
            }

            nav.active {
                display: block;
            }

            nav ul {
                flex-direction: column;
            }

            nav ul li {
                width: 100%;
            }

            nav ul li a {
                padding: 12px 20px;
                border-bottom: 1px solid #eee;
            }

            /* Submenu Styles - Mobile */
            nav ul li.has-submenu .submenu {
                position: static;
                display: none;
                opacity: 1;
                visibility: visible;
                transform: none;
                box-shadow: none;
                padding-left: 20px;
                background-color: #f9f9f9;
            }

            nav ul li.has-submenu.open .submenu {
                display: block;
            }

         

            nav ul li.has-submenu.open > a::after {
                transform: rotate(180deg);
            }
        }


          .whatsapp-button {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background-color: #25d366;
            color: white;
            padding: 15px 20px;
            border-radius: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
            cursor: pointer;
            font-size: 18px;
            z-index: 1000;
            text-decoration: none;
        }

        .whatsapp-button i {
            margin-right: 10px;
        }

        .whatsapp-button:hover {
            background-color: #128c7e;
        }




        

        