        :root {
            --guinda-principal: #761c3f; /* Fondo oscuro */
            --guinda-claro: #852643;    /* Botón Estadísticas */
            --dorado-maqueta: #c9b590;  /* Dorado institucional */
            --blanco-puro: #ffffff;
        }

         body {
            font-family: 'Montserrat';
            margin: 0;
            padding: 0;
            /* background-image: url('../img/fondo web.png'); */
            background-size: cover; /* Cubre todo el espacio */
            background-position: center center; /* Centra la imagen */
            background-attachment: fixed; /* Fija la imagen al desplazarse */
            background-repeat: no-repeat; /* Evita que se repita */
            /* background-color: #f8f9fa;  */
            min-height: 100vh;
            }

        

        /* Navbar estilo maqueta */
        .navbar-custom {
            background-color: var(--guinda-principal);
            padding: 1.2rem 0;
        }

        .nav-link-custom {
            color: white !important;
            font-weight: 500;
            margin: 0 15px;
            text-decoration: none;
            font-size: 1rem;
        }

        .btn-geoportal-nav {
            background-color: var(--dorado-maqueta);
            color: #4d4029 !important;
            font-weight: 700;
            border-radius: 8px;
            padding: 6px 18px;
            font-size: 0.85rem;
        }

        /* Hero Section */
        .hero-container {
            background-color: var(--guinda-principal);
            color: white;
            padding: 60px 0 140px 0;
            position: relative;
            overflow: hidden;
        }

        /* Corte curvo inferior */
        .hero-container::after {
            content: "";
            position: absolute;
            bottom: -1px;
            left: 0;
            width: 100%;
            height: 100px;
            background: white;
            clip-path: ellipse(75% 100% at 50% 100%);
        }

        .text-dorado {
            color: var(--dorado-maqueta) !important;
        }

        .hero-title-main {
            font-size: 3.5rem;
            line-height: 1.1;
            margin-bottom: 20px;
        }

        .bold-title { font-weight: 800; }
        .light-title { font-weight: 300; }

        .hero-description {
            font-size: 0.95rem;
            opacity: 0.9;
            max-width: 500px;
            line-height: 1.6;
        }

        /* Botones Hero */
        .btn-explorar-mapas {
            background-color: var(--dorado-maqueta);
            color: #4d4029;
            border-radius: 12px;
            padding: 12px 25px;
            font-weight: 700;
            border: none;
            margin-right: 15px;
        }

        .btn-ver-estadisticas {
            background-color: var(--guinda-claro);
            color: white;
            border: 1px solid rgba(255,255,255,0.3);
            border-radius: 12px;
            padding: 12px 25px;
            font-weight: 600;
        }

        /* Lista de Checks Dorados */
        .check-list-dorada {
            margin-top: 35px;
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--dorado-maqueta) !important;
        }

        .check-item {
            display: inline-flex;
            align-items: center;
            margin-right: 25px;
        }

        .check-item i {
            margin-right: 8px;
            font-size: 1.1rem;
        }
        /* Sección Información Clave */
        .section-title-gold {
            color: var(--dorado-maqueta);
            font-weight: 700;
            font-size: 2.2rem;
            margin-bottom: 5px;
        }

        .health-card {
            background-color: var(--guinda-principal);
            border-radius: 40px; /* Bordes muy redondeados de la maqueta */
            color: white;
            padding: 50px;
            overflow: hidden;
            position: relative;
        }

        .health-icon-circle {
            width: 60px;
            height: 60px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.8rem;
            margin-bottom: 20px;
        }

        .main-percentage {
            font-size: 5rem;
            font-weight: 800;
            color: var(--dorado-maqueta); /* Color dorado para el 58.9% */
            line-height: 1;
        }

        /* Mini tarjetas inferiores (Seguro Social / Popular) */
        .mini-badge-stats {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 15px;
            padding: 15px;
            text-align: center;
            flex: 1;
        }

        .mini-badge-stats .stat-value {
            font-size: 1.8rem;
            font-weight: 700;
            display: block;
        }

        /* Botón Ver más datos */
        .btn-more-data {
            background-color: var(--guinda-principal);
            color: white;
            border-radius: 12px;
            padding: 12px 35px;
            font-weight: 600;
            border: none;
            margin-top: 30px;
        }

        /* Paginación (Puntos grises) */
        .dot-pagination {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-top: 25px;
        }

        .dot {
            width: 12px;
            height: 12px;
            background-color: #bbb;
            border-radius: 50%;
        }

        .dot.active {
            background-color: var(--dorado-maqueta);
        }
        /* Sección de Capas Geográficas */
        .layers-section {
            padding: 80px 0;
            background-color: #fff;
        }

        .layer-card-item {
            display: flex;
            align-items: center;
            background: #f8f9fa;
            border-radius: 15px;
            padding: 15px 20px;
            margin-bottom: 15px;
            text-decoration: none;
            transition: all 0.3s ease;
            border: 1px solid transparent;
        }

        .layer-card-item:hover {
            transform: translateX(10px);
            background: #fff;
            box-shadow: 0 5px 15px rgba(0,0,0,0.08);
        }

        /* Colores específicos de la maqueta */
        .layer-card-item.active-layer { background-color: var(--guinda-principal); color: white; }
        .layer-card-item.active-layer .bi-chevron-right { color: white; }

        .layer-icon-box {
            width: 45px;
            height: 45px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
            font-size: 1.2rem;
            color: white;
        }

        /* Colores de iconos según maqueta */
        .bg-poblacion { background-color: #a6264c; }
        .bg-educacion { background-color: #4db6ac; }
        .bg-bienestar { background-color: #d81b60; }
        .bg-urbano { background-color: #00897b; }
        .bg-turistico { background-color: #9ccc65; }

        /* Bloque del Mapa y Datos Inferiores */
        .map-info-footer {
            background-color: #fdf6ec; /* Tono crema de la maqueta */
            border-radius: 0 0 15px 15px;
            padding: 20px;
            display: flex;
            justify-content: space-around;
            text-align: center;
        }

        .data-stat-box span {
            display: block;
            font-weight: 800;
            font-size: 1.5rem;
            color: var(--dorado-maqueta);
        }

        /* Beneficios Inferiores */
        .benefit-card {
            background-color: var(--guinda-principal);
            color: white;
            border-radius: 20px;
            padding: 30px;
            height: 100%;
            display: flex;
            gap: 15px;
        }

        .benefit-icon {
            background: rgba(255,255,255,0.1);
            width: 50px;
            height: 50px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .btn-visor-interactivo {
            background-color: var(--dorado-maqueta);
            color: white;
            font-weight: 700;
            padding: 15px 40px;
            border-radius: 12px;
            border: none;
            margin-top: 40px;
            transition: background 0.3s;
        }
        /* Sección Infografías */
        .info-section {
            padding: 80px 0;
        }

        .info-card-container {
            background: #ffffff;
            border-radius: 25px;
            padding: 25px;
            height: 100%;
            border: 1px solid rgba(0,0,0,0.08);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .info-card-container:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        }

        /* Colores de borde y títulos por categoría */
        .border-crecimiento { border-top: 5px solid #c9b590; }
        .border-femenil { border-top: 5px solid #7b1fa2; }
        .border-embarazo { border-top: 5px solid #c2185b; }
        .border-desigualdad { border-top: 5px solid #00796b; }

        .text-crecimiento { color: #c9b590; }
        .text-femenil { color: #7b1fa2; }
        .text-embarazo { color: #c2185b; }
        .text-desigualdad { color: #00796b; }

        /* Bloque inferior "¿Por qué usar nuestras infografías?" */
        .benefits-dark-box {
            background-color: var(--guinda-principal);
            color: white;
            border-radius: 25px;
            padding: 40px;
            margin-top: 60px;
        }

        .benefit-icon-circle {
            width: 50px;
            height: 50px;
            background: rgba(255,255,255,0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 15px;
            color: var(--dorado-maqueta);
        }
        /* Sección Gobierno Transparente */
        .transparencia-section {
            background-color: var(--guinda-principal);
            color: white;
            padding: 80px 0;
        }

        .logo-white-box {
            background: white;
            border-radius: 15px;
            padding: 30px;
            display: flex;
            justify-content: space-around;
            align-items: center;
            margin-bottom: 60px;
            flex-wrap: wrap;
            gap: 20px;
        }

        .logo-white-box img {
            height: 45px;
            filter: grayscale(100%);
            opacity: 0.7;
            transition: all 0.3s;
        }

        .logo-white-box img:hover {
            filter: grayscale(0%);
            opacity: 1;
        }

      /* Estilo 3D para las tarjetas */
        .card-transparencia-3d {
            background: rgba(255, 255, 255, 0.12);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 25px;
            padding: 40px 30px;
            text-align: center;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
            height: 100%;
            cursor: default;
        }

        /* Efecto Flotante al pasar el mouse */
        .card-transparencia-3d:hover {
            transform: translateY(-15px) scale(1.03);
            background: rgba(255, 255, 255, 0.18);
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
            border-color: var(--dorado-maqueta);
        }

        /* Iconos circulares dorados estilo 3D */
        .icon-box-3d {
            width: 70px;
            height: 70px;
            background: var(--dorado-maqueta);
            color: var(--guinda-principal);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.8rem;
            margin: 0 auto 20px;
            box-shadow: 0 8px 20px rgba(201, 181, 144, 0.4);
            transition: transform 0.3s ease;
        }

        .card-transparencia-3d:hover .icon-box-3d {
            transform: rotateY(360deg);
        }

        /* Estilo para la Ola (Wave) */
        .custom-shape-divider-top-1711290000 {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            overflow: hidden;
            line-height: 0;
            transform: rotate(180deg);
        }
        .custom-shape-divider-top-1711290000 svg {
            position: relative;
            display: block;
            width: calc(100% + 1.3px);
            height: 80px;
        }
        .icon-circle-gold {
            width: 60px;
            height: 60px;
            background: var(--dorado-maqueta);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
            color: var(--guinda-principal);
            font-size: 1.5rem;
        }

        /* Footer Institucional */
        .footer-main {
            background-color: var(--guinda-principal);
            color: white;
            padding: 60px 0 20px 0;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        .footer-link {
            color: white;
            text-decoration: none;
            display: block;
            margin-bottom: 8px;
            opacity: 0.8;
            transition: opacity 0.3s;
        }

        .footer-link:hover {
            opacity: 1;
        }

        .social-icons a {
            color: white;
            font-size: 1.2rem;
            margin-right: 15px;
            opacity: 0.8;
        }

        .social-icons a:hover {
            opacity: 1;
        }

        .btn-search-footer {
            border: 1px solid var(--dorado-maqueta);
            color: var(--dorado-maqueta);
            border-radius: 20px;
            padding: 5px 20px;
            text-decoration: none;
            display: inline-block;
            margin-top: 15px;
        }
        /* Colores de Marca por Categoría */
        .icon-poblacion { background-color: #a6264c; color: white; }
        .icon-educacion { background-color: #4db6ac; color: white; }
        .icon-bienestar { background-color: #d81b60; color: white; }
        .icon-urbano    { background-color: #00897b; color: white; }
        .icon-turistico  { background-color: #9ccc65; color: white; }

        /* Títulos con colores específicos */
        .text-educacion { color: #4db6ac !important; }
        .text-bienestar { color: #d81b60 !important; }
        .text-urbano    { color: #00897b !important; }
        .text-turistico  { color: #9ccc65 !important; }

        /* Ajuste para los iconos de imagen real */
        .capa-icon-img {
            width: 24px;
            height: 24px;
            object-fit: contain;
        }

        .layer-card-item {
            display: flex;
            align-items: center;
            background: #f8f9fa;
            border-radius: 12px;
            padding: 12px 20px;
            margin-bottom: 12px;
            text-decoration: none;
            transition: all 0.3s ease;
            border: 1px solid rgba(0,0,0,0.05);
        }

        .layer-card-item:hover {
            transform: translateX(8px);
            background: #fff;
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        }
        /* Contenedor fullscreen */
        .geoportal-fullscreen {
            position: fixed;
            inset: 0; /* shorthand de top/left/right/bottom */
            width: 100vw;
            height: 100vh;
            background-color: white;
            z-index: 99999;
            margin: 0;
            padding: 0;
            display: none;
        }

        /* Iframe */
        .geoportal-iframe {
            width: 100%;
            height: 100%;
            border: none;
            display: block;
        }

    .geoportal-close-btn {
        position: fixed;
        top: 10px;
        right: 10px;
        z-index: 100001;

        background: transparent; /* sin círculo */
        border: none;
        box-shadow: none;

        color: #ffffff; /* X blanca */

        font-size: 22px;
        font-weight: bold;
        line-height: 1;

        cursor: pointer;

        display: flex;
        align-items: center;
        justify-content: center;

        width: auto;
        height: auto;

        transition: all 0.2s ease;
    }

    /* Hover sutil */
    .geoportal-close-btn:hover {
        opacity: 0.7;
        transform: scale(1.1);
    }
    /* Eliminar color azul de los enlaces de capas */
    .js-capa-selector {
        text-decoration: none !important;
        color: inherit !important; /* Hereda el color del padre, no el azul del navegador */
    }

    /* Forzar que el título sea gris oscuro por defecto */
    .js-capa-selector .fw-bold {
        color: #333 !important;
        transition: color 0.3s ease;
    }

    /* Forzar que la descripción sea gris claro por defecto */
    .js-capa-selector small {
        color: #6c757d !important;
        transition: color 0.3s ease;
    }

    /* Cuando la tarjeta tiene la clase active-layer, todo pasa a blanco */
    .js-capa-selector.active-layer .fw-bold,
    .js-capa-selector.active-layer small,
    .js-capa-selector.active-layer i {
        color: white !important;
        opacity: 1 !important;
    }
    /* Colores de títulos cuando NO están seleccionados */
    .text-educacion { color: #4db6ac !important; }
    .text-bienestar { color: #d81b60 !important; }
    .text-urbano    { color: #00897b !important; }
    .text-turistico  { color: #9ccc65 !important; }

    /* Evita que los enlaces se pongan azules por defecto */
    .js-capa-selector {
        text-decoration: none !important;
    }

    /* Contenedor principal de logos */
    .logo-white-box {
        background: white;
        border-radius: 20px;
        padding: 40px 60px; /* Aumentamos el padding interno */
        display: flex;
        justify-content: space-between; /* Distribución uniforme */
        align-items: center;
        margin-bottom: 60px;
        gap: 30px;
    }

    /* Control de tamaños por tipo de logo para que no se vean pequeños */
    .logo-white-box img {
        filter: grayscale(100%);
        opacity: 0.6;
        transition: all 0.3s ease;
        object-fit: contain;
    }

    /* Logos que son más anchos (IGECEM e INEGI) */
    .logo-img-xl {
        height: 65px; /* Subimos de 45px a 65px */
        max-width: 220px;
    }

    /* Logos que son más compactos (Datos Abiertos y COESPO) */
    .logo-img-lg {
        height: 80px; /* Estos pueden ser un poco más altos por su forma */
        max-width: 180px;
    }

    /* Efecto Hover para mantener la elegancia */
    .logo-white-box img:hover {
        filter: grayscale(0%);
        opacity: 1;
        transform: scale(1.05);
    }

  /* EFECTO DINÁMICO FORZADO */
.visor-mapa-interactivo {
    display: block !important;
    position: relative !important;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    z-index: 20 !important;
}

.img-mapa-efecto {
    width: 100% !important;
    height: auto !important;
    min-height: 500px !important; /* Forzamos que sea más largo */
    object-fit: cover !important;
    transition: all 0.6s ease !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3) !important;
}

/* El efecto visual al pasar el mouse */
.visor-mapa-interactivo:hover .img-mapa-efecto {
    transform: scale(1.04) translateY(-10px) !important;
    box-shadow: 0 40px 70px rgba(0,0,0,0.5) !important;
}

/* Animación de rotación suave para el logo */
.logo-loading-geo {
    animation: pulse-geo 2s infinite ease-in-out;
    filter: drop-shadow(0 0 15px rgba(201, 181, 144, 0.4));
}

@keyframes pulse-geo {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

/* Asegurar que el spinner use el dorado institucional */
.text-dorado {
    color: var(--dorado-maqueta) !important;
}
/* Contenedor de la miniatura */
.card-image-container {
    position: relative;
    width: 100%;
    height: 220px; /* Altura fija para que el texto no suba y se encime */
    background: #f8f9fa; /* Fondo gris claro profesional */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.img-portada-sistema {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Para ver la infografía completa sin recortes */
    transition: transform 0.4s ease;
}

/* Badge de ID con estilo gubernamental */
.card-id-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #761c3f; /* Guinda institucional */
    color: #c9b590;    /* Dorado institucional */
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
/* Botón de retorno estilo Sistema de Datos */
/* Colores institucionales aplicados al texto */
.text-guinda {
    color: var(--guinda-principal) !important;
    font-weight: 600;
}

.text-dorado-oscuro {
    color: #a68b59 !important; /* Un dorado más legible para textos pequeños */
}

/* Rediseño del botón para que no llame tanto la atención */
.btn-volver-premium {
    background: #fdfdfd;
    border: 1px solid #eee;
    color: #888;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.btn-volver-premium:hover {
    background: #f8f9fa;
    color: var(--guinda-principal) !important;
    border-color: var(--dorado-maqueta);
    transform: translateX(-3px);
}

.fw-600 { font-weight: 600; }
/* Ajuste del buscador para que se vea más integrado */
.search-wrapper-modern {
    background: #fff;
    border-radius: 50px;
    padding: 2px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.search-wrapper-modern:focus-within {
    border-color: var(--dorado-maqueta);
    box-shadow: 0 8px 20px rgba(0,0,0,0.05) !important;
}

.x-small { font-size: 0.75rem; }

/* Estilo específico para las cards de la página de inicio */
.counter-card-v2 {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05); /* Sombra suave para dar volumen */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.counter-card-v2:hover {
    transform: translateY(-10px) rotate(2deg); /* Efecto lúdico al pasar el mouse */
    box-shadow: 0 25px 50px rgba(118, 28, 63, 0.1) !important;
}

/* Ajuste para imágenes dentro de tarjetas 3D */
.card-transparencia-3d img {
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2));
    transition: transform 0.4s ease;
}

.card-transparencia-3d:hover img {
    transform: scale(1.1) rotate(-5deg); /* Efecto dinámico */
}

/* Forzar el centrado del botón visor */
.btn-visor-interactivo {
    margin-left: auto;
    margin-right: auto;
    display: inline-flex;
    align-items: center;
}
/* Cards de Datos Abiertos en Inicio */
.counter-promo-card {
    background: #ffffff !important; /* Forza el fondo blanco */
    border-radius: 25px !important;
    padding: 30px 20px !important;
    transition: all 0.4s ease !important;
    border: 1px solid rgba(0,0,0,0.03) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important; /* Sombra para dar volumen */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin-bottom: 10px;
}

.counter-promo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(118, 28, 63, 0.12) !important;
}

/* Números y etiquetas centradas */
.promo-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--guinda-principal);
    margin: 8px 0 2px 0;
}

.promo-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #666;
}
/* Rediseño de Badges de Información */
.mini-badge-stats.d-flex {
    background: #ffffff !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04) !important; /* Sombra sutil para profundidad */
    padding: 12px 25px !important;
    transition: all 0.3s ease;
    cursor: default;
}

/* Efecto al pasar el mouse */
.mini-badge-stats.d-flex:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(118, 28, 63, 0.08) !important;
    border-color: var(--dorado-maqueta) !important;
}

/* Estilo de los iconos dentro de los badges */
.mini-badge-stats i {
    color: var(--guinda-principal);
    filter: drop-shadow(0 2px 4px rgba(118, 28, 63, 0.1));
}

.mini-badge-stats span {
    color: #444 !important; /* Texto más oscuro para mejor legibilidad */
    font-size: 0.85rem !important;
}

/* CONTENEDOR DE BENEFICIOS ESTILO INFOGRAFÍAS */
.benefits-dark-box {
    background-color: var(--guinda-principal) !important; /* Color institucional */
    border-radius: 35px !important;
    padding: 60px 40px !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
}

/* Iconos circulares sutiles */
.benefit-icon-circle {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.1) !important; /* Fondo translúcido */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--dorado-maqueta); /* Contraste dorado institucional */
}

/* Títulos y textos */
.benefits-dark-box h6 {
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.benefits-dark-box p {
    line-height: 1.5;
    font-weight: 300;
}

/* Peso máximo para títulos principales */
.fw-800 { 
    font-weight: 800 !important; 
}

/* FOOTER INSTITUCIONAL CON IMAGEN */
.footer-main {
    background: linear-gradient(rgba(118, 28, 63, 0.7), rgba(118, 28, 63, 0.7)), 
                url('../img/plecahf.png') no-repeat center center !important;
    background-size: cover !important;
    padding: 80px 0 40px 0 !important;
    
    /* Borde superior + Doble resplandor */
    border-top: 2px solid var(--guinda-claro) !important;
    /* box-shadow: 0 -5px 20px rgba(201, 181, 144, 0.6), 0 0 40px rgba(201, 181, 144, 0.2) !important; */
}

/* Aseguramos que los enlaces del footer se vean bien sobre el nuevo fondo */
.footer-link {
    color: rgba(255,255,255,0.8) !important;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--dorado-maqueta) !important;
    padding-left: 5px;
}

.navbar-custom {
    background: linear-gradient(rgba(118, 28, 63, 0.7), rgba(118, 28, 63, 0.7)), 
                url('../img/plecahf.png') no-repeat center center !important;
    background-size: cover !important;
    padding: 15px 0 !important;
    
    /* Borde sólido + Doble resplandor para intensidad */
    border-bottom: 2px solid var(--guinda-claro) !important;
    /* box-shadow: 0 5px 20px rgba(201, 181, 144, 0.6), 0 0 40px rgba(201, 181, 144, 0.2) !important; */
}

/* ESTILO DE INDICADORES RÁPIDOS */
.icon-circle-mini {
    width: 45px;
    height: 45px;
    background: rgba(118, 28, 63, 0.08); /* Fondo guinda muy sutil */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--guinda-principal);
    font-size: 1.3rem;
}

.fw-800 { font-weight: 800 !important; }

/* Efecto de elevación sutil para la franja */
.counter-value {
    letter-spacing: -1px;
}

/* TARJETAS DE CONTADORES PREMIUM */
.counter-glass-card {
    background: rgba(255, 255, 255, 0.85); /* Un poco más translúcido */
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    /* BORDE: Cambiamos el beige por un blanco translúcido o un gris casi invisible */
    border: 1px solid rgba(255, 255, 255, 0.4); 
    /* SOMBRA: Una sombra muy suave y profunda, nada de colores tierra */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04); 
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.counter-glass-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 1);
    /* Sombra más marcada en el hover para dar profundidad */
    box-shadow: 0 20px 40px rgba(118, 28, 63, 0.08); 
    border-color: var(--dorado-maqueta);
}

/* EL ICONO: Más minimalista */
.icon-badge-gold {
    width: 48px;
    height: 48px;
    background: #fdf6ec; /* Un crema muy claro, casi blanco */
    color: var(--guinda-principal); /* El guinda le da autoridad */
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(201, 181, 144, 0.2);
}

.counter-glass-card:hover .icon-badge-gold {
    background: var(--guinda-principal);
    color: white;
    transform: rotate(-5deg); /* Un pequeño detalle dinámico */
}

/* CORRECCIÓN DE TEXTOS OSCUROS Y ESTILOS DE CARRUSEL */

/* MEJORA DE VISIBILIDAD EN CARRUSEL */
.health-card {
    background-color: var(--guinda-principal);
    border-radius: 40px;
    padding: 50px;
    color: #ffffff !important; /* Forza texto blanco */
}

/* El porcentaje ahora brilla y es legible */
.main-percentage {
    font-size: 4.8rem;
    font-weight: 800;
    color: var(--dorado-maqueta) !important;
    text-shadow: 0 0 15px rgba(201, 181, 144, 0.4); /* Resplandor dorado */
    line-height: 1;
}

.text-bright {
    color: rgba(255, 255, 255, 0.95) !important; /* Blanco casi puro */
    font-weight: 500;
}

.mini-badge-stats {
    background: rgba(255, 255, 255, 0.15) !important; /* Fondo más claro para contraste */
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
}

.mini-badge-stats .stat-value {
    color: #ffffff !important;
    font-size: 1.8rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Elimina el efecto de los dots de Bootstrap para usar tus dots dorados */
.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #bbb;
    border: none;
    margin: 0 5px;
}

.carousel-indicators .active {
    background-color: var(--dorado-maqueta) !important;
    transform: scale(1.2);
}

/* AJUSTE DE VELOCIDAD DE TRANSICIÓN */
.carousel-item {
    transition: transform 0.4s ease-in-out !important; /* Transición más veloz entre slides */
}

/* Brillo extra para asegurar que los porcentajes resalten al cambiar */
.carousel-item.active .main-percentage {
    animation: glow-number 1s ease-out;
}

@keyframes glow-number {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* ESTILOS PARA EL CARRUSEL DE SOLO IMÁGENES */

/* Mantiene la proporción y nitidez de tus banners */
/* ELIMINACIÓN DEL BLOQUE BLANCO Y MODERNIZACIÓN */

/* Forzamos que el carrusel no tenga fondos ni rellenos accidentales */
#bannerCarousel {
    background: transparent !important;
    padding: 0 !important;
}

/* Forzamos a los indicadores a flotar sobre el banner */
.carousel-indicators.dot-pagination {
    position: absolute !important; /* Salta fuera del flujo normal del documento */
    bottom: 15px !important;      /* Se posiciona al fondo de la imagen */
    margin: 0 !important;
    padding: 0 !important;
    z-index: 15 !important;
    background: transparent !important; /* Elimina cualquier fondo blanco residual */
}

/* Estilo de los puntos dorados para que resalten sobre cualquier imagen */
.carousel-indicators [data-bs-target] {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    background-color: rgba(255,255,255,0.5) !important; /* Color base sutil */
    border: 1px solid rgba(0,0,0,0.1) !important;
    transition: all 0.3s ease !important;
}

.carousel-indicators .active {
    background-color: var(--dorado-maqueta) !important; /* Activo en dorado institucional */
    transform: scale(1.3) !important;
    box-shadow: 0 0 10px rgba(201, 181, 144, 0.8) !important; /* Brillo dorado */
}