/* =========================================================
   user.css - KONSUTERA ONLINE (V. UNIFICADA GOLD STANDARD)
   ========================================================= */

/* =========================================================
   Tamaño de página y scroll
   ========================================================= */
html {
    overflow-y: scroll;
}

/* =========================================================
   TOP BAR – Fondo gris y layout
   ========================================================= */
.container-topbar {
    background-color: #555555;
    padding-top: 8px;
    padding-bottom: 8px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1320px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

.top-bar .contact {
    font-size: 13px;
    color: #FFFFFF;
}

.top-bar .links {
    font-size: 13px;
}

.top-bar .links a {
    color: #FFFFFF;
    text-decoration: none;
    margin-left: 15px;
    transition: color 0.2s ease;
}

.top-bar .links a:hover {
    color: #e8e8e8;
    text-decoration: underline;
}

/* Responsive móviles */
@media (max-width: 767px) {
    .top-bar {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .top-bar .links a {
        margin-left: 10px;
        margin-right: 10px;
    }
}

/* =========================================================
   HOME – HERO SLIDER (PREMIUM REFINADO - VERSIÓN FINAL)
   ========================================================= */

.home-hero-slider {
    margin-top: -1px;
    position: relative;
    overflow: hidden;
}

/* Velo Verde con Gradiente */
.home-hero-slider .hero-bg {
    position: relative;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.home-hero-slider .hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(44, 90, 51, 0.95) 0%, rgba(147, 195, 0, 0.7) 100%);
    z-index: 1;
}

.home-hero-slider .hero-bg>* {
    position: relative;
    z-index: 2;
}

/* REGLA DE ORO: Altura fija y centrado vertical */
.home-hero-slider .carousel-item {
    height: 440px !important;
    min-height: 440px !important;
}

.home-hero-slider .carousel-item.active,
.home-hero-slider .carousel-item-next,
.home-hero-slider .carousel-item-prev {
    display: flex !important;
    align-items: center !important;
}

/* EL ESCUDO: 80px a los lados en PC */
.container-slider-fix {
    width: 100% !important;
    max-width: 1320px !important;
    padding-left: 80px !important;
    padding-right: 80px !important;
    margin: 0 auto;
}



/* --- ANIMACIONES DE ENTRADA (RÁPIDAS Y DINÁMICAS) ---
.home-hero-slider .carousel-item.active h1 {
    animation: fadeInUpSlider 0.4s ease-out backwards;
}
.home-hero-slider .carousel-item.active .lead {
    animation: fadeInUpSlider 0.4s ease-out 0.1s backwards;
}
.home-hero-slider .carousel-item.active img {
    animation: fadeInUpSlider 0.4s ease-out 0.2s backwards;
}
.home-hero-slider .carousel-item.active .btn {
    animation: fadeInUpSlider 0.4s ease-out 0.3s backwards;
}
@keyframes fadeInUpSlider {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
*/

/* --- TEXTO (H1 Y LEAD) Y BOTÓN OVALADO --- */
.home-hero-slider .text-slide h1 {
    color: #ffffff !important; /* <--- COLOR BLANCO FORZADO */
    font-size: 3rem;           /* <--- TAMAÑO DEFINIDO */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.home-hero-slider .text-slide .lead {
    color: #ffffff !important; /* <--- SUBTÍTULO BLANCO FORZADO */
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 40px;
    opacity: 1;
}

/* BOTÓN OVALADO CON ANIMACIÓN DE SALTO */
.home-hero-slider .btn-primary {
    background-color: #93c300 !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 12px 45px !important;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    width: fit-content;
    display: inline-block;
}

.home-hero-slider .btn-primary:hover {
    background-color: #ffffff !important;
    color: #2c5a33 !important;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}




/* --- INDICADORES (BOLITAS) --- */
.home-hero-slider .carousel-indicators button {
    width: 30px;
    height: 10px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.4);
    margin: 0 8px;
    border: none;
    transition: all 0.4s ease;
}

.home-hero-slider .carousel-indicators button.active {
    width: 60px;
    background-color: #93c300;
    opacity: 1;
}

/* Imagen con sombra natural */
.home-hero-slider .carousel-item img {
    height: 350px !important;
    max-height: 85%;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.35));
}

/* Flechas con 20px de separación */
.home-hero-slider .carousel-control-prev,
.home-hero-slider .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    border: none;
    position: absolute;
    opacity: 0.8;
}

.home-hero-slider .carousel-control-prev { left: 20px !important; }
.home-hero-slider .carousel-control-next { right: 20px !important; }

.home-hero-slider .carousel-control-prev:hover,
.home-hero-slider .carousel-control-next:hover {
    background-color: #93c300;
    opacity: 1;
}

/* --- RESPONSIVE CELULAR --- */
@media (max-width: 767px) {
    .home-hero-slider .carousel-item,
    .home-hero-slider .carousel-item.active {
        min-height: 400px !important;
        max-height: 400px !important;
        padding: 40px 10px 60px !important;
    }
    .container-slider-fix { padding: 0 10px !important; }
    .home-hero-slider .text-slide {
        text-align: center !important;
        align-items: center !important;
        padding: 0 !important;
        margin-bottom: 20px;
        display: flex !important;
        flex-direction: column !important;
    }
    .home-hero-slider .text-slide h1 {
        font-size: 1.5rem !important;
        margin-bottom: 10px !important;
    }
    .home-hero-slider .text-slide .lead {
        font-size: 0.9rem !important;
        line-height: 1.2 !important;
    }
    .home-hero-slider .btn-primary {
        padding: 8px 25px !important;
        font-size: 12px !important;
    }
    .home-hero-slider .img-slide {
        display: flex !important;
        justify-content: center !important;
    }
    .home-hero-slider .carousel-item img {
        height: 130px !important;
        width: auto !important;
        margin-top: 10px;
    }
    .home-hero-slider .carousel-control-prev,
    .home-hero-slider .carousel-control-next { display: none; }
}

/* =========================================================
   HEADER – Alineación y estructura
   ========================================================= */
.header-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-height: 60px;
    padding: 0 !important;
}

/* =========================================================
   HEADER – Logo reducido y alineación
   ========================================================= */
.site-branding {
    min-height: 41px;
    padding-top: 8px;
    padding-bottom: 8px;
    margin-right: 50px;
}

.site-branding img {
    width: auto;
    height: 41px;
    max-height: 41px;
    max-width: 214px;
    vertical-align: middle;
    display: block;
}

@media (max-width: 767px) {
    .site-branding img {
        height: 36px;
        max-width: 180px;
    }
}

/* =========================================================
   HEADER – MAIN NAV
   ========================================================= */
.main-nav {
    display: flex;
    align-items: center;
    margin-left: 0 !important;
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}

.main-nav ul.navbar-nav {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}

.container-header nav { margin-top: 0 !important; }

/* =========================================================
   MENÚ PRINCIPAL – BOTONES COMPLETO (RESPONSIVE)
   ========================================================= */
.container-header .mod-menu .navbar-nav { gap: 0 !important; }

@media (min-width: 992px) {
    .container-header .mod-menu>li+li { margin-left: 0 !important; }
}

/* Estilo base de los enlaces */
#mod-menu1.mod-menu.mod-list.nav>li.nav-item>a {
    font-size: 14px;
    background-color: #FFFFFF;
    color: #555555;
    border-top: 5px solid #FFFFFF;
    padding-top: 16px;
    padding-bottom: 16px;
    padding-left: 15px;
    padding-right: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.05em;
    text-decoration: underline;
    transition: background-color 0.15s ease-in-out,
        color 0.15s ease-in-out,
        border-top-color 0.15s ease-in-out;
}

/* Quitar margen del primer botón */
#mod-menu1.mod-menu.mod-list.nav>li.nav-item:first-child>a { margin-left: 0; }

/* Hover */
#mod-menu1.mod-menu.mod-list.nav>li.nav-item>a:hover {
    background-color: #b2d2b6 !important;
    border-top-color: #99bb23 !important;
    color: #555555 !important;
    text-decoration: underline !important;
}

/* Estado activo */
#mod-menu1.mod-menu.mod-list.nav>li.nav-item.current>a,
#mod-menu1.mod-menu.mod-list.nav>li.nav-item.active>a {
    background-color: #dddddd !important;
    border-top-color: #FFFF00 !important;
    color: #FFFFFF !important;
    text-decoration: none !important;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, .05);
}

/* Submenús */
#mod-menu1.mod-menu.mod-list.nav li.nav-item ul.dropdown-menu {
    background-color: #FFFFFF;
    border: 1px solid #ccc;
    padding: 0;
    min-width: 200px;
    display: none;
    position: absolute;
    z-index: 9999;
}
#mod-menu1.mod-menu.mod-list.nav li.nav-item:hover>ul.dropdown-menu { display: block; }
#mod-menu1.mod-menu.mod-list.nav li.nav-item ul.dropdown-menu li a {
    font-size: 14px;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 15px;
    padding-right: 15px;
    color: #555555;
    background-color: #FFFFFF;
    border-top: 1px solid #eee;
    text-decoration: none;
    display: block;
    transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}
#mod-menu1.mod-menu.mod-list.nav li.nav-item ul.dropdown-menu li a:hover {
    background-color: #b2d2b6;
    color: #555555;
}

/* Responsive menú hamburguesa */
.navbar-toggler {
    border: none;
    background: transparent;
    margin-top: 10px;
}
.navbar-toggler .icon-menu { font-size: 24px; color: #555555; }
#mod-menu1.mod-menu.mod-list.nav>li.nav-item>a { white-space: nowrap !important; }

/* =========================================================
   SOLUCIÓN STICKY FONDO INFINITO
   ========================================================= */
header.header.container-header.full-width {
    background-color: #ffffff !important;
    z-index: 1040 !important;
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.header-main.container {
    background: transparent !important;
    max-width: 1320px;
    margin: 0 auto;
}
.header-inner { background-color: #ffffff !important; }
body.site { overflow-x: clip; }
.position-sticky.sticky-top { top: 0 !important; }

/* =========================================================
   ESTADOS RESPONSIVE DEL HEADER Y MENÚ
   ========================================================= */

/* ESTADO A: Escritorio (1240px+) */
@media (min-width: 1240px) {
    .header-inner { flex-direction: row !important; flex-wrap: nowrap !important; }
    .navbar-toggler { display: none !important; }
    .navbar-collapse { display: flex !important; }
    #mod-menu1.mod-menu.mod-list.nav { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; }
}

/* ESTADO B: Tablet (768px - 1239px) */
@media (min-width: 768px) and (max-width: 1239px) {
    .header-inner { flex-direction: column !important; align-items: flex-start !important; }
    .site-branding { margin-bottom: 10px; margin-right: 0 !important; }
    .main-nav .navbar-collapse { display: flex !important; visibility: visible !important; }
    .main-nav .navbar-toggler { display: none !important; }
    #mod-menu1.mod-menu.mod-list.nav, .main-nav .navbar-nav { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; gap: 0 !important; }
    #mod-menu1.mod-menu.mod-list.nav>li.nav-item>a { padding-top: 10px !important; padding-bottom: 10px !important; padding-left: 12px !important; padding-right: 12px !important; font-size: 13px !important; }
}

/* ESTADO C: Intermedio (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .header-inner { flex-direction: column !important; align-items: flex-start !important; }
    .site-branding { margin-bottom: 10px; margin-right: 0 !important; }
    .main-nav .navbar-collapse { display: flex !important; visibility: visible !important; }
    .main-nav .navbar-toggler { display: none !important; }
    #mod-menu1.mod-menu.mod-list.nav, .main-nav .navbar-nav, .container-header .mod-menu .navbar-nav { display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; gap: 0 !important; width: 100% !important; }
    #mod-menu1.mod-menu.mod-list.nav>li.nav-item { display: inline-flex !important; }
    #mod-menu1.mod-menu.mod-list.nav>li.nav-item>a { padding-top: 8px !important; padding-bottom: 8px !important; padding-left: 10px !important; padding-right: 10px !important; font-size: 11px !important; }
}

/* ESTADO D: Celular (< 576px) */
@media (max-width: 575px) {
    .header-inner { flex-direction: row !important; justify-content: space-between !important; }
    .main-nav .navbar-collapse:not(.show) { display: none !important; }
    .navbar-toggler { display: block !important; }
    .main-nav .navbar-collapse.show .navbar-nav, #mod-menu1.mod-menu.mod-list.nav { flex-direction: column !important; background-color: #ffffff; width: 100%; }
    #mod-menu1.mod-menu.mod-list.nav>li.nav-item>a { justify-content: flex-start !important; padding-top: 12px !important; padding-bottom: 12px !important; }
}


/* =========================================================
   TARJETAS DESTACADAS HOME (GOLD STANDARD UNIFICADO)
   ========================================================= */
/* Contenedor Exterior */
.container-featured-cards {
    background-color: #fdfdfd; 
    padding-top: 80px; 
    padding-bottom: 80px;
}
/* Envoltura de Tarjetas */
.featured-cards-wrapper {
    max-width: 1320px;
    margin: 0 auto;
}
/* La Tarjeta */
.featured-card {
    background-color: #ffffff;
    border: 1px solid #f0f0f0; 
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}
/* Efectos al pasar el ratón (Hover) */
.featured-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: #93c300; 
}
/* Área de Imagen / Icono */
.featured-card-image {
    width: 100%;
    height: 140px; 
    background-color: #fcfcfc; /* Ese gris suave que mencionaste */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px; /* Para que respiren los iconos */
}
/* Ajuste Inteligente de Imagen */
.featured-card-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Siempre muestra la imagen completa sin cortes */
    transition: transform 0.4s ease;
}
/* Zoom elegante en hover */
.featured-card:hover .featured-card-image img {
    transform: scale(1.1); 
}
/* Cuerpo de la Tarjeta */
.featured-card-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center; /* Alineación central premium */
}
/* Títulos */
.featured-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 12px;
    line-height: 1.3;
}
/* Texto de descripción */
.featured-card-text {
    font-size: 0.95rem;
    color: #777777;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}
/* Botón "Ver más" */
.featured-card-link {
    display: inline-block;
    font-size: 0.85rem;
    color: #93c300;
    text-decoration: none !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    margin-top: auto;
}
.featured-card-link:hover {
    color: #2c5a33;
    letter-spacing: 2px;
}

/* =========================================================
   SECCIÓN DE TESTIMONIOS
   ========================================================= */
.testimonials-section {
    background-image: url('/images/backgrounds/testimonials-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 60px;
    padding-bottom: 60px;
    position: relative;
}
.testimonials-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.85);
    z-index: 1;
}
.testimonials-section .container { position: relative; z-index: 2; max-width: 1320px; margin: 0 auto; padding-left: 15px; padding-right: 15px; }
.testimonials-title {
    text-align: center; font-size: 2.5rem; font-weight: 700; color: #555555;
    margin-bottom: 10px; text-transform: uppercase; letter-spacing: 2px;
}
.testimonials-title::after { content: ""; display: block; width: 120px; height: 3px; background-color: #99bb23; margin: 15px auto 40px; }
.testimonials-carousel { position: relative; overflow: hidden; }
.testimonials-wrapper { display: flex; gap: 24px; transition: transform 0.5s ease; }
.testimonial-card {
    flex: 0 0 calc(25% - 18px); max-width: calc(25% - 18px);
    background-color: #ffffff; border: 1px solid #cccccc; border-radius: 8px;
    padding: 30px 24px 24px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative; min-height: 350px; display: flex; flex-direction: column;
}
.testimonial-quote-icon {
    position: absolute; top: -15px; left: 24px; width: 50px; height: 50px;
    background-color: #99bb23; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #ffffff; font-size: 24px;
}
.testimonial-text { font-size: 0.95rem; line-height: 1.6; color: #666666; margin-top: 20px; flex-grow: 1; }
.testimonial-text strong { display: block; font-size: 1rem; color: #555555; margin-top: 20px; margin-bottom: 5px; }
.testimonial-avatar { display: flex; justify-content: center; align-items: center; margin-top: 20px; }
.testimonial-avatar img { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; border: 3px solid #99bb23; }
.testimonials-indicators { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.testimonial-indicator { width: 12px; height: 12px; border-radius: 50%; background-color: #cccccc; border: none; cursor: pointer; transition: all 0.3s ease; padding: 0; }
.testimonial-indicator.active { background-color: #99bb23; width: 14px; height: 14px; }

/* Responsive Testimonios */
@media (min-width: 768px) and (max-width: 1199px) {
    .testimonial-card { flex: 0 0 calc(33.333% - 16px); max-width: calc(33.333% - 16px); }
}
@media (min-width: 576px) and (max-width: 767px) {
    .testimonial-card { flex: 0 0 calc(50% - 12px); max-width: calc(50% - 12px); }
}
@media (max-width: 575px) {
    .testimonial-card { flex: 0 0 100%; max-width: 100%; }
}


/* =========================================================
   TESTIMONIOS HOME - TITULO LINK OCULTO Y ANIMADO
   ========================================================= */
h2.testimonials-title a, 
h2.testimonials-title a:hover, 
h2.testimonials-title a:focus,
h2.testimonials-title a:active {
    text-decoration: none !important; /* Quita el subrayado azul */
    color: #555555 !important;       /* Mantiene el gris original */
    display: inline-block !important; /* Permite que el texto se mueva */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

h2.testimonials-title a:hover {
    transform: translateY(-8px) !important; /* El movimiento hacia arriba */
    color: #93c300 !important;             /* Cambia a verde al tocarlo */
}


/* =========================================================
   SECCIÓN DE NOVEDADES (BLOG)
   ========================================================= */
.bar.background-white { background-color: #ffffff; padding: 60px 0; }
.bar.no-mb { margin-bottom: 0; }
.heading.text-center h2 {
    font-size: 2.5rem; font-weight: 700; color: #555555;
    margin-bottom: 10px; text-transform: uppercase; letter-spacing: 2px;
}
.heading.text-center h2::after { content: ""; display: block; width: 120px; height: 3px; background-color: #99bb23; margin: 15px auto 40px; }
.box-image-text.blog {
    text-align: center; margin-bottom: 30px; border: 1px solid #e5e5e5; border-radius: 4px; overflow: hidden; transition: all 0.3s ease;
}
.box-image-text.blog:hover { box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); transform: translateY(-5px); }
.box-image-text.blog .top { overflow: hidden; }
.box-image-text.blog .top img { width: 100%; height: auto; transition: transform 0.3s ease; }
.box-image-text.blog .content { padding: 20px; text-align: left; }
.box-image-text.blog .content h6 { font-size: 0.85rem; color: #999999; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }
.box-image-text.blog .content h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 15px; line-height: 1.4; min-height: 50px; }
.box-image-text.blog .content h4 a { color: #555555; text-decoration: none; }
.box-image-text.blog .content p.intro { font-size: 0.9rem; color: #999999; line-height: 1.6; margin-bottom: 15px; min-height: 80px; }
.btn-template-main {
    color: #99bb23; background-color: #ffffff; border: 1px solid #99bb23; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
    padding: 8px 20px; font-size: 13px; border-radius: 0; display: inline-block; text-decoration: none;
}
.btn-template-main:hover { color: #ffffff; background-color: #99bb23; }

/* =========================================================
   FOOTER – VERSIÓN FINAL CONSOLIDADA (MÁXIMA PRECISIÓN)
   ========================================================= */

/* NIVEL 1: Fondo y Contenedor Principal */
.footer-nivel-1 { 
    background-color: #666666; 
    color: #FFFFFF; 
    padding: 60px 0; 
}

/* FLEXBOX PARA IGUALAR ALTURAS */
.footer-nivel-1 .container > .row, 
.footer-nivel-1 ul.mod-articles-items {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 30px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    align-items: stretch !important;
}

/* items de lista / columnas */
.footer-nivel-1 .container > .row > div,
.footer-nivel-1 ul.mod-articles-items > li {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 280px !important;
}

/* TARJETAS DEL FOOTER: Estáticas y con Alto Fijo */
.footer-nivel-1 .mod-articles-item-content, 
.footer-nivel-1 .mod-custom, 
.footer-nivel-1 .card-footer-item {
    background-color: rgba(255, 255, 255, 0.05); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px; 
    padding: 30px; 
    
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important; 
    width: 100% !important;

    /* --- [AJUSTE DE ALTO FIJO Y SEGURIDAD] --- */
    height: 280px !important; 
    overflow: hidden !important; 
}

/* Versión TOTALMENTE ESTÁTICA (Sin cambios al pasar el ratón) */
.footer-nivel-1 .mod-articles-item-content:hover, 
.footer-nivel-1 .mod-custom:hover, 
.footer-nivel-1 .card-footer-item:hover {
    transform: none !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Títulos y Estética */
.footer-nivel-1 h3, 
.footer-nivel-1 .footer-title {
    font-size: 1.1rem !important; 
    font-weight: 800 !important; 
    text-transform: uppercase;
    letter-spacing: 1.5px; 
    margin-bottom: 20px !important; 
    color: #93c300; 
}

.footer-nivel-1 p, 
.footer-nivel-1 li { 
    font-size: 0.9rem !important; 
    color: rgba(255, 255, 255, 0.85); 
    line-height: 1.7; 
}
.footer-nivel-1 hr { border-top: 1px solid rgba(255, 255, 255, 0.2); margin: 15px 0; }
.footer-nivel-1 a { color: #FFF !important; text-decoration: none; }
.footer-nivel-1 a:hover { color: #93c300 !important; text-decoration: underline; }


/* NIVEL 2: Copyright (Apilado Vertical Perfecto) */
.footer-nivel-2 { 
    background: #333333; 
    color: rgba(255, 255, 255, 0.5); 
    padding: 20px 0 !important; /* Espacio arriba y abajo del bloque negro */
    border-top: 1px solid rgba(255,255,255,0.05); 
}

/* Forzamos a que los párrafos se apilen */
.footer-nivel-2 .footer-copyright { 
    display: flex !important; 
    flex-direction: column !important; /* <--- ESTO hace que se pongan uno arriba del otro */
    align-items: flex-start !important; /* Alinea todos a la izquierda */
    gap: 15px; /* Espacio de separación entre los párrafos */
    font-size: 0.5rem; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

/* Limpieza de los párrafos individuales */
.footer-nivel-2 .footer-copyright p {
    margin: 0 !important; 
    padding: 0 !important;
    line-height: 1.6;
    text-align: left !important;
    width: 100%; /* Asegura que ocupen todo el ancho para que no se "empujen" */
}

/* Limpieza de otros elementos de Joomla que puedan molestar */
.footer-nivel-2 ul, 
.footer-nivel-2 li,
.footer-nivel-2 .mod-articles-item-content {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}


/* =========================================================
   REGLA DE LIMPIEZA AUTOMÁTICA (GENÉRICA)
   ========================================================= */
/* 
   Oculta Breadcrumbs y Componente Nativo automáticamente si detecta:
   1. HOME: Presencia de .home-hero-slider
   2. LISTADOS CUSTOM: Presencia de .container-novedades
   3. CONSULTORÍAS: Presencia de .layout-bloques-konsutera
*/

body:has(.container-novedades) .container-component,
body:has(.container-novedades) .mod-breadcrumbs__wrapper,
body:has(.layout-bloques-konsutera) .mod-breadcrumbs__wrapper,
body:has(.home-hero-slider) .container-component,
body:has(.home-hero-slider) .mod-breadcrumbs__wrapper {
    display: none !important;
}

body:has(.container-novedades) .site-grid,
body:has(.home-hero-slider) .site-grid {
    display: block !important;
}

/* =========================================================
   ESTILLOS PARA LISTADOS (Seminarios, Biblioteca, Noticias)
   ========================================================= */

/* Intro de textos */
.heading p.lead {
    max-width: 900px;
    margin: 20px auto 40px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
}

/* Evitar mayúsculas forzadas en títulos de Intro */
.container-novedades .heading h2 { text-transform: none !important; }

/* Estructura del contenedor de novedades y orden flexible */
.container-novedades {
    padding-top: 50px !important;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
}

/* Ordenar: 1º Módulo de Título/Intro, 2º Tarjetas */
.container-novedades .heading,
.container-novedades .mod-custom {
    order: -1; 
    margin-bottom: 50px !important;
}

.container-novedades section.bar {
    order: 10;
    padding-top: 20px !important;
}

/* Soporte para Grid de 8 columnas */
.col-md-8-cols {
    flex: 0 0 12.5% !important;
    max-width: 12.5% !important;
}
@media (max-width: 991px) {
    .col-md-8-cols {
        flex: 0 0 25% !important; /* 4 por fila en tablets */
        max-width: 25% !important;
    }
}
@media (max-width: 767px) {
    .col-md-8-cols {
        flex: 0 0 50% !important; /* 2 por fila en móviles */
        max-width: 50% !important;
    }
}


/* =========================================================
   SISTEMA DE BLOQUES MODULARES (Seminarios y Consultorías)
   ========================================================= */

/* 1. IGUALAR ESPACIADO SUPERIOR con Seminarios */
.com-content-article.layout-bloques-konsutera {
    padding-top: 50px !important; 
    display: block;
}

body.layout-bloques-konsutera {
    padding-top: 0 !important;
}

/* 2. Anular el margen "mt-4" (24px) nativo */
.layout-bloques-konsutera > .container {
    margin-top: 0 !important;
}

/* Título UNIFICADO */
.layout-bloques-konsutera h1,
.layout-bloques-konsutera h1.display-4 { 
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: #555555 !important;
    letter-spacing: 2px !important;
    text-transform: none !important;
    border-bottom: none !important; 
    padding-bottom: 0 !important; 
    margin-bottom: 10px !important;
}

/* Raya verde UNIFICADA */
.layout-bloques-konsutera h1::after,
.layout-bloques-konsutera h1.display-4::after {
    content: "";
    display: block;
    width: 120px;
    height: 3px;
    background-color: #99bb23;
    margin: 15px auto 40px !important;
}

/* Textos y títulos internos */
.layout-bloques-konsutera .block-text { line-height: 1.8; font-size: 1.15rem; color: #444; }
.layout-bloques-konsutera .block-text h2,
.layout-bloques-konsutera .block-text h3,
.layout-bloques-konsutera .block-text h4 {
    color: #2c5a33; font-weight: 700; margin-top: 1.5rem; margin-bottom: 1rem;
}
.layout-bloques-konsutera .block-item { padding-top: 15px; padding-bottom: 15px; }

/* --- CAMBIO COLOR DE LINKS EN TEXTO (Solicitud Usuario) --- */
.layout-bloques-konsutera .block-text a {
    color: #93c300 !important; /* Verde Konsutera */
    font-weight: 700;
    text-decoration: underline;
    transition: color 0.2s ease;
}
.layout-bloques-konsutera .block-text a:hover {
    color: #333333 !important; /* Gris Oscuro al pasar el mouse */
}

/* Bloques destacados (Global check) */
.layout-bloques-konsutera .block-item:has(.bloque-global-check) {
    background: #f9f9f9; border-radius: 15px; padding: 30px;
}

/* Tablas limpias */
.layout-bloques-konsutera table[border="0"],
.layout-bloques-konsutera table[border="0"] td { border: none !important; }

/* =========================================================
   PROTECCIÓN Y BLINDAJE VISUAL
   ========================================================= */

/* Si hay Módulos de Novedades, OCULTAMOS el artículo central */
body:has(.container-novedades) .container-component {
    display: none !important;
}
/* Ocultamos banners y migas de pan en estos layouts */
body:has(.layout-bloques-konsutera) .container-banner,
body:has(.layout-bloques-konsutera) .container-featured-cards,
body:has(.layout-bloques-konsutera) .container-testimonials,
body:has(.layout-bloques-konsutera) .mod-breadcrumbs__wrapper {
    display: none !important;
}

.com-content-article__navigation,
.pagenav,
.mod-articles-category-nav { display: none !important; }

/* =========================================================
   IGUALAR ALTURA TARJETAS (Novedades en Home)
   ========================================================= */
.container-novedades .col-md-4, 
.container-novedades .col-sm-6 {
    display: flex !important;
    flex-direction: column !important;
}
.box-image-text.blog {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important; 
}
.box-image-text.blog .content {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}
.box-image-text.blog .content .read-more {
    margin-top: auto !important;
}

/* =========================================================
   CONTROL DE ALTURA - SOLO SEMINARIOS Y CONTENIDOS (BLOQUES)
   ========================================================= */
/* 1. Anulamos el padding de 60px que trae tu archivo PHP */
.com-content-article.layout-bloques-konsutera {
    padding-top: 0 !important; 
    
    /* 2. CONTROL MAESTRO: Ajusta este número negativo para subir/bajar */
    margin-top: 34px !important; 
}
/* 3. Quitamos el margen automático (mt-4) del contenedor interno */
.layout-bloques-konsutera > .container {
    margin-top: 0 !important;
}



/* =========================================================
   VISFORM - DISEÑO DINÁMICO KONSUTERA
   ========================================================= */
.dynamic-layout-container {
    background-color: #f9f9f9;
    padding: 35px;
    border-radius: 15px;
    margin-top: 50px;
    border: 1px solid #eee;
}

.visforms-form-form {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    max-width: 850px; 
    margin: 40px auto !important; 
}

.visforms-form-form h1 {
    text-align: center;
    font-weight: 800;
    color: #333;
    margin-bottom: 30px;
    text-transform: none;
}

.visforms-form-form label {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    text-align: left !important;
    padding-left: 0 !important;
    margin-bottom: 5px !important;
}

.visforms-form-form .btn-primary, 
.visforms-form-form input[type="submit"] {
    background-color: #93c300 !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 12px 40px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    color: #fff !important;
    display: block;
    margin: 20px auto 0;
    transition: all 0.2s ease;
}

.visforms-form-form .btn-primary:hover {
    transform: translateY(-2px);
    background-color: #2c5a33 !important;
}


/* =========================================================
   VISFORMS - PÁGINA DE AGRADECIMIENTO /gracias
   ========================================================= */
body:has(.konsutera-thankyou) .fields-container {
    display: none !important;
}
.konsutera-thankyou {
    text-align: center;
    padding: 60px 30px;
    max-width: 650px;
    margin: 40px auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.08);
    border-top: 5px solid #93c300;
}
.konsutera-thankyou .thankyou-icon {
    width: 80px;
    height: 80px;
    background-color: #93c300;
    color: white;
    font-size: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(147,195,0,0.4);
}
.konsutera-thankyou h2 {
    color: #2c3e50;
    font-size: 1.9rem;
    margin-bottom: 15px;
    font-weight: 700;
}
.konsutera-thankyou .thankyou-main {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 8px;
}
.konsutera-thankyou .thankyou-sub {
    font-size: 1rem;
    color: #888;
    margin-bottom: 35px;
}
.konsutera-thankyou .thankyou-btn {
    display: inline-block;
    background-color: #93c300;
    color: #fff !important;
    padding: 12px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.konsutera-thankyou .thankyou-btn:hover {
    background-color: #7aaa00;
    transform: translateY(-2px);
}




/* =========================================================
   TARJETAS TESTIMONIAL
   ========================================================= */


/* Bloque de Testimonio Premium (Bootstrap) */
.testimonial-premium-block {
    background-color: #ffffff;
    border-start: 6px solid #93c300 !important; /* Verde Konsutera */
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-premium-block:hover {
    transform: translateX(5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

/* Comilla decorativa de fondo */
.testimonial-premium-block::before {
    content: "“";
    position: absolute;
    top: -20px;
    right: 30px;
    font-size: 10rem;
    color: #93c300;
    opacity: 0.05;
    font-family: serif;
    pointer-events: none;
}

.testimonial-premium-block .testimonial-avatar {
    width: 100px;
    height: 100px;
}

.testimonial-premium-block .author-name {
    color: #2c5a33;
    font-size: 1.1rem;
    display: block;
}

/* =========================================================
   GRILLA DE LOGOS DE CLIENTES (COLOR -> GRIS HOVER)
   ========================================================= */
.clients-grid-container {
    width: 95% !important;
    margin: 40px auto !important;
}

.clients-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 15px !important;
    align-items: center !important;
    justify-items: center !important;
}

.client-logo-item {
    width: 100% !important;
    height: 110px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px !important;
    background-color: #ffffff !important;
    border: 1px solid #f0f0f0 !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
}

.client-logo-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08) !important;
    transform: translateY(-3px) !important;
    /* Al pasar el mouse, el borde se vuelve gris suave en lugar de verde */
    border-color: #cccccc !important; 
}

/* ESTADO INICIAL: Color original */
.client-logo-item img {
    max-width: 100% !important;
    max-height: 80px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    filter: grayscale(0%); /* Color original */
    opacity: 1;            /* Nitidez total */
    transition: all 0.4s ease; /* Transición un poco más suave */
}

/* ESTADO HOVER: Cambia a Gris */
.client-logo-item:hover img {
    filter: grayscale(100%) !important; /* Se vuelve blanco y negro */
    opacity: 0.5 !important;            /* Se vuelve un poco transparente */
}

/* Responsividad */
@media (max-width: 992px) {
    .clients-grid { grid-template-columns: repeat(3, 1fr) !important; }
}

@media (max-width: 576px) {
    .clients-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .client-logo-item { height: 95px !important; }
    .client-logo-item img { max-height: 65px !important; }
}


