  :root {
            --primary: #3c90c3;
            --primary-dark: #46474b;
            --secondary: rgba(233, 234, 245, 0.327);
            --accent: #c5c6cd;
            --light: #ffffff;
            --dark: #46474b;
            --gray: #46474b;
            --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;
        }

        h1, h2, h3, h4, h5 {
            font-family: 'Playfair Display', serif;
            font-weight: 600;
        }

        .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);
        }

        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            display: flex;
            align-items: center;
        }

        .logo img {
            height: 50px;
            margin-right: 10px;
        }

        .logo h1 {
            font-size: 1.8rem;
            color: var(--primary);
        }

        nav ul {
            display: flex;
            list-style: none;
        }

        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 {
            display: none;
            font-size: 1.5rem;
            cursor: pointer;
        }

        /* Hero Slider */
        .hero-slider {
            position: relative;
            height: 100vh;
            overflow: hidden;
        }

        .hero-slider .slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            transition: opacity 1s ease-in-out;
            z-index: 0;
            }

            .hero-slider .slide.active {
            opacity: 1;
            z-index: 1;
            }

            .slider-container {
  position: relative;
  width: 100%;
  height: 400px; /* ajusta según necesidad */
  overflow: hidden;
}


        .slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            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;
            transform: scale(1);
        }

       .slide-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 1;
            }

        .slide-content {
            position: relative;
            z-index: 2;
            padding-left: 10%;
            max-width: 600px;
            color: var(--light);
        }

        .slide-content h2 {
            font-size: 3.5rem;
            margin-bottom: 20px;
            line-height: 1.2;
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.8s ease;
        }

        .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-block;
            padding: 12px 30px;
            background: var(--primary);
            color: white;
            text-decoration: none;
            border-radius: 30px;
            font-weight: 600;
            transition: var(--transition);
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.8s ease 0.6s;
        }

        .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.1);
        }

        .slider-nav {
            position: absolute;
            bottom: 40px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 10;
            display: flex;
        }

        .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: 2.5rem;
            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.1rem;
            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;
        }

        .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;
        }

        .service-content h3 {
            font-size: 1.5rem;
            margin-bottom: 15px;
            color: var(--primary-dark);
        }

        /* 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(auto-fit, minmax(250px, 1fr));
            gap: 30px;
        }

        .doctor-card {
            background: var(--light);
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
            text-align: center;
            transition: var(--transition);
            opacity: 0;
            transform: translateY(30px);
        }

        .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: 300px;
            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-weight: 600;
            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: var(--dark);
            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;
            }
        }

        @media (max-width: 768px) {
            .mobile-menu {
                display: block;
            }

            nav ul {
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                background: var(--light);
                flex-direction: column;
                align-items: center;
                padding: 20px 0;
                box-shadow: 0 10px 20px rgba(0,0,0,0.1);
                clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
                transition: var(--transition);
            }

            nav ul.active {
                clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
            }

            nav ul li {
                margin: 15px 0;
            }

            .slide-content h2 {
                font-size: 2.5rem;
            }

            .section-header h2 {
                font-size: 2rem;
            }
        }

        /* 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:#2fc92a;
           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 {
    padding: 10px 20px;
    font-size: 16px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
       z-index: 3000;

}

.btn-primary {
    background-color: #3c90c3;
    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: #3c90c3; /* 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');
    }

    .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 */
    }
}