/* Ajustes responsivos generales */
img { max-width: 100% !important; height: auto !important; }
.iframe-responsive-Ccs-Lnga { width: 100% !important; max-width: 100% !important; border: none !important; border-radius: 10px !important; }

@media (max-width: 767px) {
    .top_cabecera-Ccs-Lnga .letrasCabecera-Ccs-Lnga { text-align: center !important; margin-top: 5px !important; }
    .fecha-col-Ccs-Lnga { display: none !important; }
}

/* --- SECCIÓN #BOXES-Ccs-Lnga Y FLEXBOX FIX --- */

html body #boxes-Ccs-Lnga.home-section1-Ccs-Lnga {
    padding: 60px 0 !important;
    background-color: #f8fafc !important;
}

html body #boxes-Ccs-Lnga .boxes-container-Ccs-Lnga {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -ms-flex-wrap: wrap !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
}

/* Anulación de pseudoelementos de Bootstrap 3 */
html body #boxes-Ccs-Lnga .boxes-container-Ccs-Lnga::before,
html body #boxes-Ccs-Lnga .boxes-container-Ccs-Lnga::after {
    display: none !important;
}

html body #boxes-Ccs-Lnga .custom-box-col-Ccs-Lnga {
    float: none !important;
    display: flex !important;
    flex-direction: column !important;
    margin-bottom: 30px !important;
}

/* Tarjeta Sobria Institucional */
html body #boxes-Ccs-Lnga .custom-card-Ccs-Lnga {
    background: #ffffff !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 12px rgba(13, 50, 98, 0.05) !important;
    padding: 32px 24px !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

html body #boxes-Ccs-Lnga .custom-card-Ccs-Lnga::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 4px !important;
    background: #0D3262 !important;
    transition: background 0.3s ease !important;
}

html body #boxes-Ccs-Lnga .custom-card-Ccs-Lnga:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 12px 24px rgba(13, 50, 98, 0.12) !important;
    border-color: #cbd5e1 !important;
}

html body #boxes-Ccs-Lnga .custom-card-Ccs-Lnga:hover::before {
    background: #EEBF02 !important;
}

/* Cabecera del Card */
html body #boxes-Ccs-Lnga .card-header-custom-Ccs-Lnga {
    text-align: center !important;
    margin-bottom: 24px !important;
}

html body #boxes-Ccs-Lnga .card-icon-wrapper-Ccs-Lnga {
    width: 64px !important;
    height: 64px !important;
    margin: 0 auto 16px !important;
    border-radius: 50% !important;
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #0D3262 !important;
    font-size: 24px !important;
    transition: all 0.3s ease !important;
    overflow: hidden !important;
}

/* Ajuste para imágenes o GIFs dentro del icono */
html body #boxes-Ccs-Lnga .card-icon-wrapper-Ccs-Lnga img {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    border-radius: 50% !important;
}

html body #boxes-Ccs-Lnga .custom-card-Ccs-Lnga:hover .card-icon-wrapper-Ccs-Lnga {
    background: #0D3262 !important;
    color: #ffffff !important;
    border-color: #0D3262 !important;
    transform: scale(1.08) !important;
}

html body #boxes-Ccs-Lnga .card-title-custom-Ccs-Lnga {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0D3262 !important;
    margin: 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    font-family: 'Montserrat', sans-serif !important;
}

html body #boxes-Ccs-Lnga .card-body-custom-Ccs-Lnga {
    flex-grow: 1 !important;
}

/* --- VIÑETAS ELEGANTES Y DINÁMICAS --- */

html body #boxes-Ccs-Lnga .card-list-Ccs-Lnga {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

html body #boxes-Ccs-Lnga .card-list-Ccs-Lnga li {
    position: relative !important;
    padding-left: 28px !important;
    margin-bottom: 14px !important;
    transition: transform 0.25s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

/* Micro-Insignia Circular Vectorial */
html body #boxes-Ccs-Lnga .card-list-Ccs-Lnga li::before {
    content: '\f105' !important; /* Icono ángulo derecho FontAwesome */
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
    position: absolute !important;
    left: 0 !important;
    top: 1px !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    background: rgba(13, 50, 98, 0.07) !important;
    color: #0D3262 !important;
    font-size: 11px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* Enlaces de Viñetas */
html body #boxes-Ccs-Lnga .card-list-Ccs-Lnga li a {
    color: #334155 !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
    display: inline-block !important;
}

/* Efectos de animación Hover */
html body #boxes-Ccs-Lnga .card-list-Ccs-Lnga li:hover {
    transform: translateX(4px) !important;
}

html body #boxes-Ccs-Lnga .card-list-Ccs-Lnga li:hover::before {
    background: #0D3262 !important;
    color: #EEBF02 !important;
    transform: scale(1.15) rotate(90deg) !important;
    box-shadow: 0 3px 8px rgba(13, 50, 98, 0.25) !important;
}

html body #boxes-Ccs-Lnga .card-list-Ccs-Lnga li:hover a {
    color: #0D3262 !important;
}