/* Paleta de colores cálida y moderna */
:root {
    --color-primario: #D96C4A; /* Terracota cálido */
    --color-secundario: #F4A261; /* Naranja suave */
    --color-fondo: #FDF8F5; /* Blanco arena/cálido */
    --color-texto: #2B2D42; /* Azul grisáceo oscuro (combina con tu logo) */
    --color-logo-azul: #6082B6; /* Azul del logo para detalles */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--color-fondo);
    color: var(--color-texto);
}

/* Navegación */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.navbar-brand img {
    height: 60px; /* Ajusta según sea necesario */
}
.nav-link {
    color: var(--color-texto) !important;
    font-weight: 500;
    transition: color 0.3s;
}
.nav-link:hover {
    color: var(--color-primario) !important;
}

/* =========================================
   ESTILOS PARA EL CARRUSEL PRINCIPAL (HERO)
   ========================================= */
.hero-carousel {
    position: relative;
    /* Ajustamos el borde inferior con tu color primario */
    border-bottom: 5px solid var(--color-primario);
}
.hero-carousel .carousel-item {
    height: 75vh; /* Ocupará el 75% del alto de la pantalla del usuario */
    min-height: 500px;
}
.hero-carousel .carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}
/* Capa superpuesta para oscurecer la imagen y que resalte el texto */
.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Mezcla el color azul del logo con el naranja/terracota */
    background: linear-gradient(rgba(43, 45, 66, 0.7), rgba(217, 108, 74, 0.6));
    z-index: 1;
}
.hero-carousel .carousel-caption {
    z-index: 2;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    width: 100%;
    left: 0;
    padding: 0 20px;
}
.carousel-indicators {
    z-index: 3;
    margin-bottom: 2rem;
}

/* Tarjetas de Servicios */
.service-card {
    background: #ffffff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(217, 108, 74, 0.2);
}
.service-icon {
    font-size: 3rem;
    color: var(--color-primario);
    margin-bottom: 20px;
}

/* Botones y Contacto */
.btn-custom {
    background-color: var(--color-primario);
    color: white;
    border-radius: 30px;
    padding: 10px 25px;
    font-weight: bold;
    transition: background 0.3s;
}
.btn-custom:hover {
    background-color: var(--color-secundario);
    color: white;
}
.btn-whatsapp {
    background-color: #25D366;
    color: white;
}
.btn-whatsapp:hover {
    background-color: #128C7E;
    color: white;
}

/* Footer */
footer {
    background-color: var(--color-texto);
    color: #ffffff;
    padding: 40px 0 20px;
}
footer a {
    color: var(--color-secundario);
    text-decoration: none;
}
footer a:hover {
    color: white;
}

/* =========================================
   ESTILOS PARA LA PÁGINA "NOSOTROS"
   ========================================= */

/* Encabezado de la página interna */
.page-header {
    background: linear-gradient(rgba(43, 45, 66, 0.8), rgba(43, 45, 66, 0.9)), url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&q=80') center/cover;
    padding: 120px 0 80px;
    color: white;
    text-align: center;
    border-bottom: 5px solid var(--color-primario);
}

/* Tarjetas de Filosofía (Lupa y Engranaje) */
.filosofia-card {
    background-color: var(--color-fondo);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 15px;
    padding: 40px 30px;
    height: 100%;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.filosofia-card:hover {
    background-color: var(--color-primario);
    color: white !important;
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(217, 108, 74, 0.3);
}
.filosofia-card .icon-wrapper {
    font-size: 4rem;
    color: var(--color-logo-azul);
    margin-bottom: 20px;
    transition: all 0.4s ease;
}
.filosofia-card:hover .icon-wrapper,
.filosofia-card:hover p,
.filosofia-card:hover h3 {
    color: white !important;
}

/* Sección Ecosistema (Lo que hacemos) */
.ecosistema-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s;
}
.ecosistema-item:hover {
    transform: scale(1.02);
    border-left: 4px solid var(--color-secundario);
}
.ecosistema-icon {
    font-size: 2.5rem;
    color: var(--color-primario);
    margin-right: 20px;
    background: var(--color-fondo);
    padding: 15px;
    border-radius: 12px;
}

/* Imagen redondeada dinámica */
.img-dinamica {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: transform 0.5s ease;
}
.img-dinamica:hover {
    transform: scale(1.03);
}

/* =========================================
   ESTILOS PARA LA PÁGINA "CONTACTO"
   ========================================= */

/* Tarjetas de Información de Contacto */
.contacto-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    height: 100%;
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.02);
}
.contacto-card:hover {
    transform: translateY(-8px);
    border-bottom: 4px solid var(--color-primario);
    box-shadow: 0 15px 35px rgba(217, 108, 74, 0.15);
}
.contacto-icon {
    width: 80px;
    height: 80px;
    background: var(--color-fondo);
    color: var(--color-primario);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 20px;
    transition: all 0.4s ease;
}
.contacto-card:hover .contacto-icon {
    background: var(--color-primario);
    color: white;
    transform: scale(1.1);
}

/* Estilos del Formulario */
.form-contacto {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}
.form-control, .form-select {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}
.form-control:focus, .form-select:focus {
    border-color: var(--color-primario);
    box-shadow: 0 0 0 0.25rem rgba(217, 108, 74, 0.25);
}

/* Contenedor del Mapa */
.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    height: 400px;
}
.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* =========================================
   ESTILOS PARA LA PÁGINA "SERVICIOS"
   ========================================= */

/* Submenú y Buscador de Servicios */
.submenu-servicios {
    background-color: #ffffff;
    border-bottom: 2px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    position: sticky;
    top: 76px; /* Se ajusta debajo del menú principal */
    z-index: 99;
    padding: 15px 0;
}
.submenu-link {
    color: var(--color-texto);
    font-weight: 600;
    margin-right: 20px;
    text-decoration: none;
    transition: color 0.3s;
}
.submenu-link:hover {
    color: var(--color-primario);
}
.buscador-dinamico {
    border-radius: 30px;
    padding: 10px 20px;
    border: 1px solid #ddd;
    background-color: var(--color-fondo);
    width: 100%;
    max-width: 300px;
    transition: all 0.3s;
}
.buscador-dinamico:focus {
    outline: none;
    border-color: var(--color-primario);
    box-shadow: 0 0 10px rgba(217, 108, 74, 0.2);
}

/* Diseño de cada Servicio */
.servicio-item {
    margin-bottom: 80px;
    padding-top: 40px; /* Espacio para el ancla del submenú */
}
.servicio-img-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.servicio-img-wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.servicio-img-wrapper:hover img {
    transform: scale(1.05);
}
.servicio-icono-flotante {
    position: absolute;
    bottom: 20px; /* Cambiamos el valor negativo a positivo (20px) */
    right: 20px;
    background: var(--color-primario);
    color: white;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2rem;
    box-shadow: 0 10px 20px rgba(217, 108, 74, 0.4);
    z-index: 2;
}
.badge-servicio {
    background-color: rgba(244, 162, 97, 0.2);
    color: var(--color-primario);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 15px;
}