/* Asegura que el slider ocupe toda la pantalla o la altura deseada */
.hero-slide {
    height: 100vh; /* Ocupa el 100% de la altura de la ventana */
    min-height: 600px; /* Altura mínima para móviles */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* Capa oscura sobre la imagen para mejorar la lectura del texto blanco */
.overlay-capa {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Oscuridad al 50%, ajusta a tu gusto */
    z-index: 1;
}

/* Asegura que el contenido (texto) esté por encima de la capa oscura */
.hero-slide .container {
    position: relative;
    z-index: 2;
}

/* Estilo para los controles (flechas) para que no choquen con tu diseño */
.carousel-control-prev, .carousel-control-next {
    z-index: 3;
}

/* Ajuste de la flecha de scroll para que quede sobre el slider */
.scroll-down-arrow {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}




/* ======== ESTILOS GENERALES ======== */
body {
    font-family: 'Poppins', sans-serif;
    position: relative;
}
.servicios-mentales-section {
    background-color: #8DB600 !important; /* Fondo Verde */
    color: #ffffff !important; /* Texto Blanco */
    padding: 80px 20px;
    font-family: 'Montserrat', sans-serif;
  }
.servicios-mentales-section ul li {
     color: #ffffff !important; /* Texto Blanco */
    
}
#valores h2 {
    color: #8DB600;
    text-transform: uppercase;
}
#valores p {
    font-size: 20px;
    font-weight: 300;
    color: #6c757d !important;
}
  .servicios-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    /* DESKTOP: Fuerza 3 columnas iguales en una sola línea */
    grid-template-columns: repeat(3, 1fr); 
    gap: 40px;
    align-items: start;
  }

  .servicio-card {
    width: 100%;
  }

  .icon-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    padding-bottom: 15px;
  }

  .icono-servicio {
    width: 36px;
    height: 36px;
    color: white !important;
    flex-shrink: 0;
  }

  .servicios-mentales-section h3 {
    font-size: 1.35rem; /* Ajustado levemente para que quepan bien en una línea */
    margin: 0;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.3;
    color: white !important;
  }

  .servicio-lista {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .servicio-lista li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
    padding-left: 15px;
    position: relative;
  }

  .servicio-lista li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: rgba(255,255,255,0.7);
  }

  .servicio-lista strong {
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,0.5);
  }
.reembolso-section {
    background: white !important;
}
.reembolso-section h2{
   color: #8DB600;
    text-transform: uppercase;
    font-weight: 700 !important;
}
.reembolso-section p{
color: #6c757d !important;
font-size: 20px;
    font-weight: 300;
}

html {
    scroll-behavior: smooth;
}
.reembolso-section {
    /* Color de fondo suave para separar visualmente la sección */
    background-color: #f8f9fa; 
    padding: 60px 20px;
    font-family: 'Montserrat', sans-serif; /* O la fuente que use tu tema global */
    box-sizing: border-box;
  }

  .reembolso-container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center; /* Centrado para dar importancia al mensaje */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .reembolso-title {
    font-size: 2rem; /* ~32px */
    color: #212529; /* Gris oscuro casi negro */
    margin-bottom: 16px;
    font-weight: 700;
    line-height: 1.2;
  }

  .reembolso-text {
    font-size: 1.1rem; /* ~18px para buena lectura */
    color: #4a4a4a; /* Gris medio para el párrafo */
    line-height: 1.6;
    max-width: 800px; /* Evita que el texto sea demasiado ancho y difícil de leer */
    margin: 0 auto;
  }

  .reembolso-image-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 20px;
  }

  .reembolso-img {
    max-width: 60%; /* Hace que la imagen sea responsive */
    height: auto;
    display: block;
    /* Opcional: un filtro en escala de grises que se colorea al pasar el mouse, 
       muy común en sitios médicos para mantener la elegancia */
    filter: grayscale(100%); 
    opacity: 0.8;
    transition: all 0.3s ease;
  }

  .reembolso-img:hover {
    filter: grayscale(0%);
    opacity: 1;
  }
/* Estilo para las secciones de ejemplo */
section {
    padding-top: 140px 80px; /* Evita que el contenido quede debajo del navbar fijo */
}
/* ======== NAVBAR STYLES ======== */
/* ======== NAVBAR DINÁMICO ======== */

/* --- Estilo base y transición --- */
#main-nav {
    background-color: #fff; /* Fondo blanco inicial */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 10px 0;
    transition: all 0.4s ease-in-out;
}

/* --- ESTADO INICIAL (BLANCO) --- */
/* Logos */
#main-nav .logo-light { display: none; }
#main-nav .logo-dark { display: block; }

/* Enlaces del menú */
#main-nav .nav-link {
    color: #333 !important; /* Texto oscuro */
    font-weight: 500;
}

/* Línea activa/hover */
#main-nav .nav-link::after {
    background-color: #8DB600; /* Línea verde */
}

/* Botón hamburguesa */
#main-nav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0, 0, 0, 0.7)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Botón CTA */
#main-nav .btn-cta {
    background-color: #8DB600;
    color: #fff;
    border-radius: 50px;
    padding: 8px 20px;
    transition: all 0.1s ease;
}
#main-nav .btn-cta:hover {
    background-color: #7bab00;
    transform: translateY(-2px);
}


/* --- ESTADO SCROLLED (VERDE) --- */
/* Se activa con JS añadiendo la clase .navbar-scrolled */
#main-nav.navbar-scrolled {
    background-color: #8DB600 !important; /* Fondo verde */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Logos */
#main-nav.navbar-scrolled .logo-light { display: block; }
#main-nav.navbar-scrolled .logo-dark { display: none; }

/* Enlaces del menú */
#main-nav.navbar-scrolled .nav-link {
    color: #fff !important; /* Texto blanco */
}

/* Línea activa/hover */
#main-nav.navbar-scrolled .nav-link::after {
    background-color: #fff; /* Línea blanca */
}

/* Botón hamburguesa */
#main-nav.navbar-scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Botón CTA */
#main-nav.navbar-scrolled .btn-cta {
    background-color: #fff;
    color: #8DB600;
}
#main-nav.navbar-scrolled .btn-cta:hover {
    background-color: #f0f0f0;
}

/* Estilo del logo */
.navbar-brand .logo {
    height: 85px; /* Ajusta la altura de tu logo */
    width: auto;
    padding: 5px;
    border-radius: 8px; /* Bordes redondeados para un look moderno */
    transition: transform 0.3s ease;
}

.navbar-brand .logo:hover {
    transform: scale(1.05); /* Efecto de zoom al pasar el cursor */
}

/* Estilo de los enlaces del menú */
.navbar-nav .nav-link {
    color: white !important; /* Color de texto */
    font-weight: 500;
    margin: 0 15px;
    position: relative;
    transition: color 0.3s ease;
    padding: 8px 0;
}

/* Animación de subrayado para los enlaces */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: white;
    transition: width 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

.navbar-nav .nav-link:hover {
    color: white !important; /* Mantiene el color al pasar el cursor */
}

/* Estilo del botón hamburguesa */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
/* ======== ESTILOS GLOBALES DE TIPOGRAFÍA ======== */
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    position: relative;
}

/* ======== HERO SECTION / JUMBOTRON ======== */
.hero-section {
    height: 100vh; /* Ocupa toda la altura de la pantalla */
    width: 100%;
    position: relative;
    display: flex;
    align-items: center; /* Centra el contenido verticalmente */
    background-image: url('../img/background-home.jpg');
    background-size: cover;
    background-position: center center;
    color: #fff;
}

/* Capa oscura para mejorar legibilidad */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Negro con 50% de opacidad */
}

/* Asegura que el contenido esté sobre la capa */
.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-weight: 700; /* Helvetica Bold */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.hero-section p {
    font-weight: 300; /* Helvetica Light */
    max-width: 700px; /* Evita que el párrafo sea demasiado ancho */
}

/* Botón Call to Action */
.btn-custom {
    background-color: #8DB600;
    border-color: #8DB600;
    color: white;
    padding: 12px 30px;
    font-weight: 500;
    border-radius: 50px; /* Bordes redondeados para un look moderno */
    transition: all 0.3s ease-in-out;
}

.btn-custom:hover {
    background-color: #7bab00; /* Un poco más oscuro al pasar el cursor */
    border-color: #7bab00;
    color: white;
    transform: translateY(-3px); /* Efecto de elevación */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Ajustes para animaciones (opcional pero recomendado) */
.animate__delay-1s {
  animation-delay: 0.5s;
}
.animate__delay-2s {
  animation-delay: 1s;
}
/* ======== FLECHA SCROLL DOWN ======== */
.scroll-down-arrow {
    position: absolute;
    bottom: 30px; /* Distancia desde el borde inferior */
    left: 50%;
    transform: translateX(-50%);
    z-index: 3; /* Asegura que esté por encima de la capa oscura */
    cursor: pointer;
}

.arrow-icon {
    display: block;
    width: 20px;
    height: 20px;
    border-bottom: 3px solid white;
    border-right: 3px solid white;
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}
/* ======== SECCIÓN SERVICIOS (DISEÑO MEJORADO) ======== */
#servicios {
    padding: 80px 0;
    background-color: #ebebeb; /* Fondo verde corporativo */
}

/* Títulos y textos de la sección en blanco */
#servicios h2 {
    color: #8DB600 !important;
    font-size: 39px;
    text-transform: uppercase;
}
#servicios {
    color: #8DB600 !important;
    font-size: 16px;
}
.text-white-75 {
    color: black !important;
    font-size: 20px;
    font-weight: 300;
}

.service-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative; /* Necesario para posicionar el precio */
    overflow: hidden; /* Oculta lo que se salga de la tarjeta */
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
#ubicacion {
    padding: 80px 0 0 0; /* Eliminamos el padding inferior para que el mapa se pegue */
    background-color: #fff; /* O usa bg-light si prefieres un gris suave */
}

#ubicacion h2 {
    color: #7bab00;
    text-transform: uppercase;
}

#ubicacion p.text-muted {
    color: black !important;
    font-size: 20px;
    font-weight: 300;
}

.map-container {
    position: relative;
    width: 100%;
    overflow: hidden; /* Oculta cualquier desbordamiento */
    /* Damos una sombra sutil en la parte superior del mapa */
    box-shadow: 0 -5px 15px -5px rgba(0,0,0,0.1); 
}

.map-container iframe {
    display: block; /* Elimina cualquier espacio fantasma debajo del iframe */
}
.service-card h3 {
    color: #7bab00; /* Título oscuro para contraste en tarjeta blanca */
    margin-top: 45px; /* Espacio para el precio */
    margin-bottom: 15px;
}

/* === NUEVO DISEÑO DE PRECIO === */
.price-tag {
    position: absolute;
    top: 20px;
    left: -1px; /* Para que el borde se alinee */
    background-color: #8DB600;
    color: white;
    padding: 6px 20px;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 0 50px 50px 0; /* Forma de píldora */
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}

/* === NUEVO DISEÑO DE BOTONES === */
.action-buttons {
    margin-top: 25px;
    display: flex; /* Para que los botones estén en línea */
    gap: 10px; /* Espacio entre botones */
}

.action-buttons .btn {
    flex-grow: 1; /* Hace que ambos botones ocupen el mismo espacio */
    padding: 10px 15px;
    font-weight: 500;
    border-radius: 50px !important; /* Bordes redondeados consistentes */
    border-width: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* Botón delineado (Llamar) */
.btn-outline-custom {
    color: #8DB600;
    border-color: #8DB600;
    background-color: transparent;
}

.btn-outline-custom:hover {
    background-color: #8DB600;
    color: #fff;
}

/* Botón relleno (WhatsApp) */
.btn-custom {
    background-color: #8DB600;
    border-color: #8DB600;
    color: white;
}

.btn-custom:hover {
    background-color: #7bab00; /* Un poco más oscuro */
    border-color: #7bab00;
}

/* Iconos en los botones */
.btn i {
    margin-right: 8px;
}
/* ======== SECCIÓN PROFESIONALES ======== */
#profesionales {
    padding: 120px 0;
}
#profesionales h2 {
    color: #8DB600;
    text-transform: uppercase;
}
#profesionales .text-muted {
    font-size: 20px;
    font-weight: 300;
}
section[id] {
    scroll-margin-top: 70px; /* Ajusta este valor a la altura exacta de tu menú */
}
.professional-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    padding: 30px 20px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column; /* Para alinear el botón al final */
}

.professional-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.professional-photo {
   width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 50%;
    margin: -90px auto 20px auto; /* Saca la foto de la tarjeta hacia arriba */
    border: 6px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.professional-name {
    font-weight: 700;
    color: #333;
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.professional-title {
    color: #8DB600; /* Color corporativo */
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
}

.professional-modality,
.professional-sis {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 5px;
    font-weight: 400;
}

.professional-sis {
    margin-bottom: 20px;
}

.specialties-list {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
    text-align: left; /* Alinea el texto de la lista a la izquierda */
    color: #555;
    font-size: 0.9rem;
}

.specialties-list li {
    margin-bottom: 8px;
}

.specialties-list i {
    color: #8DB600; /* Color del check */
    margin-right: 10px;
}

/* Ajustes para el botón dentro de la tarjeta */
.professional-card .btn-custom {
    width: 100%; /* El botón ocupa todo el ancho disponible */
    padding: 10px;
    border-radius: 50px;
}

/* Ajustes para animaciones (opcional) */
.animate__delay-2s {
  animation-delay: 0.4s;
}
.animate__delay-3s {
  animation-delay: 0.6s;
}
/* ======== SECCIÓN CONTACTO / FOOTER ======== */
.contact-section {
    background-color: #8DB600;
    color: #fff;
    padding: 60px 0 40px 0;
}

.contact-section h5 {
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
}

.footer-logo {
    max-width: 100px;
    
    border-radius: 8px;
}

/* --- Redes Sociales --- */
.social-icons a {
    color: #fff;
    font-size: 2rem; /* Iconos más grandes */
    margin-right: 20px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.1);
    color: rgba(255, 255, 255, 0.8);
}

/* --- Info de Contacto --- */
.contact-info {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 12px;
    font-size: 1.1rem;
    width: 20px; /* Alinea los iconos */
}

.contact-info a {
    color: #fff;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* --- Horarios --- */
.schedule {
    margin-bottom: 10px;
    line-height: 1.6;
}

.schedule strong {
    display: block;
    font-weight: 700;
}

.schedule span {
    opacity: 0.9;
}

/* --- Texto inferior de Copyright --- */
.footer-bottom-text {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    margin-top: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Animación de rebote para la flecha */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    40% {
        transform: translateY(-20px) rotate(45deg);
    }
    60% {
        transform: translateY(-10px) rotate(45deg);
    }
}

/* Estilos para el menú desplegado en móviles */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        padding: 15px;
        margin-top: 10px;
    }
    
    .navbar-nav .nav-item {
        text-align: center;
        margin: 5px 0;
    }
    .contact-section {
        text-align: center;
    }
    .contact-info {
        justify-content: center;
    }
    .footer-logo {
        margin-bottom: 20px;
    }
    .professional-photo {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0px auto 20px auto;
    border: 6px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
}
/* ======== RESPONSIVE PARA MÓVILES ======== */
@media (max-width: 768px) {
        .display-4 {
        font-size: 2.5rem;
        font-weight: 300;
        line-height: 1.2;
    }
    .servicios-container {
      grid-template-columns: 1fr; /* 1 Columna al 100% de ancho */
      gap: 60px; /* Más espacio entre tarjetas cuando están vertical */
    }
    
    .servicios-mentales-section {
      padding: 50px 20px;
    }
    .reembolso-section {
      padding: 40px 15px;
    }
    
    .reembolso-title {
      font-size: 1.5rem;
    }

    .reembolso-text {
      font-size: 1rem;
    }
    .navbar-toggler {
       margin-right: 20px;
    }
    .hero-section {
        height: 90vh; /* Reduce un poco la altura en móviles */
        text-align: left; /* Mantenemos la alineación izquierda como pediste */
    }

    .hero-section h1 {
        font-size: 2.2rem; /* Tamaño de fuente más pequeño para el título */
    }

    .hero-section p {
        font-size: 1rem; /* Tamaño de fuente más pequeño para el párrafo */
    }
    
    .btn-custom {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
     .scroll-down-arrow {
        bottom: 20px; /* Un poco más arriba en móviles */
    }
}