/* =========================================================
   1. VARIABLES Y UTILIDADES
========================================================= */
:root {
    /* Paleta KM */
    --km-primary: #9dcc07;       /* Verde vibrante */
    --km-primary-dark: #70a402;  /* Verde oscuro */
    --km-dark: #2c3e50;          /* Azul grisáceo oscuro */
    --km-light-bg: #f4f6f8;      /* Fondo gris muy suave */
    --km-text-muted: #4f5860;    /* Gris oscuro para textos secundarios (Legible) */
}

/* Clases de Utilidad de Color */
.text-primary-km { color: var(--km-primary) !important; }
.bg-primary-km { background-color: var(--km-primary) !important; }

/* Texto oscuro reforzado para legibilidad */
.text-dark-km { color: #1a1a1a !important; } 
.bg-dark-km { background-color: #1a1a1a !important; }
.bg-light-km { background-color: var(--km-light-bg) !important; }
.text-muted { color: var(--km-text-muted) !important; }

.ls-2 { letter-spacing: 2px; }

/* =========================================================
   2. HERO CAROUSEL (IGUALANDO AL INDEX)
========================================================= */
/* Este ID coincide con el del HTML nuevo */
#servicesCarouselSecundario {
    position: relative;
    height: 100vh;           /* Pantalla completa */
    margin-top: -95px;      /* Compensa el navbar */
}

/* La imagen ocupa todo el alto */
.carousel-img {
    height: 100vh;
    object-fit: cover;
    filter: brightness(0.65); /* Un poco de oscuridad para que el texto blanco resalte */
}

/* Texto del carrusel */
.carousel-caption h1,
.carousel-caption p {
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8); /* Sombra fuerte para asegurar lectura */
}

/* =========================================================
   3. SECCIÓN INTRO (Stack de Imágenes)
========================================================= */
.image-stack {
    position: relative;
    padding: 20px;
}

.img-main {
    width: 100%;
    border: 5px solid white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.5s ease;
}

.image-stack:hover .img-main {
    transform: scale(1.02);
}

/* Tarjeta Flotante (12+ Años) */
.floating-stat {
    position: absolute;
    bottom: 40px;
    right: -10px;
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    border-left: 5px solid var(--km-primary);
    z-index: 2;
    max-width: 280px;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(157, 204, 7, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--km-primary);
}

/* Animación */
.bounce-animation {
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.feature-item i {
    transition: transform 0.3s ease;
}
.feature-item:hover i {
    transform: translateX(5px);
}

/* =========================================================
   4. TARJETAS DE VALORES, MISIÓN Y VISIÓN
========================================================= */
.value-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(157, 204, 7, 0.15);
    border-color: var(--km-primary);
}

.card-icon-bg {
    width: 70px;
    height: 70px;
    background: var(--km-light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--km-primary);
    transition: all 0.3s ease;
}

.value-card:hover .card-icon-bg {
    background: var(--km-primary);
    color: white;
}

.highlight-card {
    background: linear-gradient(145deg, #ffffff, #f0fdf4);
    border: 1px solid rgba(157, 204, 7, 0.2);
}

/* =========================================================
   5. DECORACIÓN Y OTROS
========================================================= */
.blob-1 {
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--km-primary);
    filter: blur(80px);
    border-radius: 50%;
    top: -300px;
    left: -200px;
    z-index: 0;
    opacity: 0.4;
}

.border-start-primary {
    border-left: 4px solid var(--km-primary) !important;
}

.badge.bg-white {
    transition: all 0.2s ease;
}

.badge.bg-white:hover {
    background-color: var(--km-primary) !important;
    color: white !important;
    border-color: var(--km-primary) !important;
    cursor: default;
}

/* Ajustes Móviles */
@media (max-width: 768px) {
    .floating-stat {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: -30px;
        margin-left: auto;
        margin-right: auto;
        max-width: 90%;
    }
    .carousel-caption h1 {
        font-size: 2rem;
    }
}