:root {
    --primary-green: #00d084;
    --dark-green: #006d44;
    --text-gray: #7a7a7a;
    --heading-color: #4a4a4a;
}

body { font-family: 'Work Sans', sans-serif; color: var(--text-gray); overflow-x: hidden; margin: 0; }
h1, h2, h3, h4, h5 { font-family: 'Montserrat', sans-serif; font-weight: 800; color: var(--heading-color); }

/* Navbar */
.navbar { background: #fff; padding: 15px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.nav-link { color: #000 !important; font-weight: 600; font-size: 0.9rem; margin: 0 10px; }
.nav-link:hover { color: var(--primary-green) !important; }

/* Hero Section */
.hero { 
    background: linear-gradient(rgba(0, 208, 132, 0.8), rgba(0, 109, 68, 0.8)), url('https://www.host-n-web.com/proyectos/kyodent/img/implantes-dentales-fondo.webp');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    color: #fff;
    position: relative;
}
.hero h1 { color: #fff; font-size: 3.5rem; line-height: 1.2; }

.hero-shape {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 5;
}

.hero-shape svg {
    width: 100%;
    height: 120px; /* Aumentamos la altura para que las olas sean más pronunciadas */
}

/* Capa de fondo: Verde suave translúcido */
.wave-layer-1 {
    fill: rgba(255, 255, 255, 0.2);
}

/* Capa intermedia: Verde un poco más fuerte */
.wave-layer-2 {
    fill: rgba(255, 255, 255, 0.4);
}

/* Capa frontal: Blanco sólido para conectar con la siguiente sección */
.wave-layer-3 {
    fill: #ffffff;
}

/* Form Card */
.form-card { background: #fff; border-radius: 20px; padding: 30px; box-shadow: 0 15px 35px rgba(0,0,0,0.2); }
.form-card h4 { color: var(--heading-color); text-align: center; margin-bottom: 20px; font-size: 1.2rem; }
.btn-send { background-color: var(--dark-green); color: #fff; font-weight: bold; border-radius: 10px; padding: 12px; border: none; width: 100%; transition: 0.3s; }
.btn-send:hover { background-color: #004d30; color: #fff; cursor: pointer; }

/* Layout & Sections */
.section-padding { padding: 80px 0; }
.img-circle { border-radius: 50%; object-fit: cover; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.bg-light-green { background-color: var(--dark-green); color: #fff; }
.bg-light-green h3 { color: #fff; }
.bg-light { background-color: #f8f9fa; }

/* Services */
.service-item img { width: 220px; height: 220px; border: 8px solid #f8f9fa; margin-bottom: 20px; }
.service-item h5 { font-size: 1.1rem; margin-bottom: 15px; }
.service-item p { font-size: 0.9rem; line-height: 1.6; padding: 0 10px; }

/* Footer */

footer { 
    background-color: #f1f1f1; 
    padding: 60px 0 40px; 
    border-top: 1px solid #eee; 
    border-bottom: 9px solid var(--dark-green); /* Agrega esta línea */
}

.social-icons a { 
    display: inline-flex; width: 40px; height: 40px; background: var(--primary-green); 
    color: #fff; border-radius: 50%; align-items: center; justify-content: center; 
    margin: 0 5px; transition: 0.3s; text-decoration: none;
}


.social-icons a:hover { background: var(--dark-green); transform: translateY(-3px); }

/* Floating Buttons Container */
.floating-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.btn-float {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-size: 30px;
    text-decoration: none;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    transition: 0.3s;
}

.whatsapp-btn { background: #25d366; }
.call-btn { background: #007bff; } /* Azul para llamadas */

.btn-float:hover { transform: scale(1.1); }

@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .hero { text-align: center; padding: 60px 0; }
}

.bg-light-green {
    position: relative;
    /* Reemplaza la URL por la ruta de tu imagen */
    background: linear-gradient(rgba(0, 109, 68, 0.85), rgba(0, 109, 68, 0.85)), 
                url('https://www.host-n-web.com/proyectos/kyodent/img/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Opcional: le da un efecto Parallax suave */
    color: #fff;
}

/* Estilos para el Slider de Productos */
#productSlider .card {
    transition: transform 0.3s ease;
    border-radius: 15px;
}

#productSlider .card:hover {
    transform: translateY(-5px);
}

#productSlider .carousel-control-prev,
#productSlider .carousel-control-next {
    width: 5%; /* Para que no estorben las flechas en móvil */
}

#productSlider .text-primary {
    color: var(--primary-green) !important;
}

#productSlider .card-img-top {
    height: 140px;
    object-fit: contain;
    padding: 15px;
}

#productSlider .carousel-item {
    transition: transform 0.6s ease-in-out; /* Suaviza el movimiento del carrusel */
}

/* Color de las flechas para que se vean sobre fondo claro */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1); 
}

#productSlider .card h6 {
    font-size: 0.95rem;
    color: var(--heading-color);
}

/* Marca de agua para las tarjetas de productos */
.card-watermark {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centrado perfecto */
    width: 80px; /* Tamaño pequeño */
    opacity: 0.15; /* Semi-transparente */
    pointer-events: none; /* Para que no interfiera con los clics */
    z-index: 0;
}

/* Aseguramos que el contenido real esté por encima */
#productSlider .card-img-top,
#productSlider .card-body {
    position: relative;
    z-index: 1;
}

/* Evitamos que el logo se salga si la tarjeta es pequeña */
.card.overflow-hidden {
    overflow: hidden !important;
}

/* Color para el enlace activo en el menú */
.navbar-nav .nav-link.active {
    color: var(--primary-green) !important; /* Usamos tu variable de verde brillante */
    font-weight: 700; /* Le damos un poco más de peso visual */
}

/* Opcional: una pequeña línea debajo del botón activo */
.navbar-nav .nav-link.active {
    border-bottom: 2px solid var(--primary-green);
}

/* Estilos para el submenú */
.dropdown-menu {
    border-radius: 15px;
    padding: 10px;
    min-width: 250px;
}

.dropdown-item {
    padding: 10px 20px;
    border-radius: 8px;
    color: var(--heading-color);
    font-weight: 500;
    transition: 0.3s;
}

.dropdown-item:hover {
    background-color: var(--primary-green);
    color: #fff !important;
    transform: translateX(5px);
}

/* Opcional: Abrir el menú al pasar el mouse (solo en PC) */
@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0; 
    }
}

.space-max {
    display: block;
    width: 100%;
    height: 70px; /* Prueba con 40px para que se note el cambio, o 25px como sugeriste */
}

/* Opcional: Ajuste para móviles para que no quede demasiado espacio en pantallas pequeñas */
@media (max-width: 768px) {
    .space-max {
        height: 35px;
    }
}

.space-min {
    display: block;
    width: 100%;
    height: 40px; /* Prueba con 40px para que se note el cambio, o 25px como sugeriste */
}

/* Opcional: Ajuste para móviles para que no quede demasiado espacio en pantallas pequeñas */
@media (max-width: 768px) {
    .space-min {
        height: 20px;
    }
}

/* 1. Hace el fondo del modal más oscuro y menos traslúcido */
.modal-backdrop.show {
    opacity: 0.85 !important; /* Ajusta de 0.1 a 0.9 (0.9 es casi negro sólido) */
    background-color: #000;
}

/* 2. Cambia el título 'Atención de Especialidad' a blanco puro */
.modal-premium .modal-side-info h3, 
.modal-premium .modal-side-info h4 {
    color: #ffffff !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1); /* Opcional: para darle profundidad */
}

/* Asegura que los textos pequeños también sean legibles */
.modal-premium .modal-side-info p,
.modal-premium .modal-side-info li {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Contenedor del Mapa más grande */
.map-container-xl {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    height: 550px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

/* El mapa se mantiene con una saturación baja constante */
.map-container-xl iframe {
    filter: saturate(0.5) brightness(1.02);
    display: block;
}

/* La capa verde clara superior PERMANENTE */
.map-container-xl::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Ajusta el 0.12 si quieres el verde más o menos intenso */
    background: rgba(0, 208, 132, 0.12); 
    pointer-events: none; /* Crucial: permite mover el mapa a través de la capa */
}


/* Tarjetas con iconos GRANDES */
.contact-info-card-lg {
    background: #fff;
    border-radius: 30px;
    padding: 40px 30px;
    transition: 0.4s;
    border: 1px solid #f0f0f0;
    text-align: center;
}

.icon-circle-xl {
    width: 90px;  /* Antes 50px */
    height: 90px; /* Antes 50px */
    background: #e9f7f2;
    color: #006d44;
    border-radius: 25px; /* Estilo cuadrado redondeado moderno */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.2rem; /* Icono mucho más visible */
    transition: 0.3s;
}

.contact-info-card-lg:hover .icon-circle-xl {
    background: #006d44;
    color: #fff;
    transform: scale(1.1) rotate(5deg);
}





/* Botones de Redes Sociales */
.social-btn {
    width: 38px;
    height: 38px;
    background-color: #fff;
    color: #006d44;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.social-btn:hover {
    background-color: #00d084;
    color: #fff;
    transform: translateY(-3px);
}

/* Enlaces del footer */
.hover-green:hover {
    color: #00d084 !important;
    padding-left: 5px;
    transition: 0.3s;
}
