/* Modern list styles */
.osdo-list {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px 20px;
    box-shadow: 0 2px 8px 0 rgba(0,0,0,0.04);
    margin-bottom: 32px;
    list-style: none;
}
.osdo-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1.08rem;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
    background: var(--osdo-verde-secundario-light, #eaf7fa);
    color: var(--osdo-gris-oscuro, #2d3a3a);
    border-radius: 8px;
    margin-bottom: 8px;
    box-shadow: 0 1px 4px rgba(84, 187, 201, 0.07);
}
.osdo-list li:last-child {
    border-bottom: none;
}
.osdo-list-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--osdo-verde-secundario-light, #eaf7fa);
    border-radius: 50%;
    color: var(--osdo-verde-secundario, #1fa37a);
    font-size: 1.5rem;
    margin-right: 8px;
}
.osdo-list a {
        color: var(--osdo-verde-secundario, #1fa37a);
        font-weight: 500;
        text-decoration: underline;
}

/* end of modern list styles */
/* Card title emphasis */
.card .card-title {
    font-family: var(--font-titulo, 'Montserrat', sans-serif);
    font-weight: 700;
    font-size: 1.12rem;
    color: var(--osdo-verde-principal, #035f68);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 0.5rem;
}

/* Hero / CTA compacto */
.hero-cta {
    padding: 1.1rem 0 1.6rem 0;
}
.hero-cta .card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfeff 100%);
    border: 1px solid rgba(3,95,104,0.06);
    box-shadow: 0 6px 20px rgba(3,95,104,0.04);
    border-radius: 12px;
}
.btn-osdo {
    background: var(--osdo-verde-principal, #035f68);
    color: var(--osdo-blanco);
    border: none;
    padding: 0.6rem 1.1rem;
    border-radius: 8px;
    font-weight: 600;
}
.btn-osdo:hover { background: var(--osdo-verde-principal-hover, #024850); }
.hero-cta .small-note { color: var(--osdo-gris-medio); margin-top: 0.5rem; }
@media (max-width: 767px) {
    .hero-cta .card { padding: 1rem; }
    .hero-cta .card .card-title { font-size: 1.05rem; }
    .hero-cta .text-md-end { text-align: left !important; margin-top: .75rem; }
}
@media (min-width: 992px) {
    /* Desktop-only: make the hero CTA narrower and centered (50% width) */
    .hero-cta .card {
        width: 50%;
        margin-left: auto;
        margin-right: auto;
    }
}
.card .card-title::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    background: var(--osdo-verde-secundario, #54bbc9);
    border-radius: 2px;
    margin-top: 8px;
}

/* --- LISTADO GRID MODERNO OSDO --- */
.osdo-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem 2.2rem;
    list-style: none;
    padding: 0;
    margin: 2rem 0 2.5rem 0;
}
.osdo-list-grid-item {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    background: var(--osdo-verde-secundario-light, #eaf7fa);
    color: var(--osdo-gris-oscuro);
    border-radius: var(--border-radius-lg, 8px);
    padding: 0.7rem 1.1rem;
    font-size: 1.04rem;
    box-shadow: 0 1px 4px rgba(84, 187, 201, 0.07);
    transition: background 0.2s, color 0.2s;
    min-width: 0;
    word-break: break-word;
}
.osdo-list-grid-item:hover {
    background: var(--osdo-verde-secundario, #54bbc9);
    color: var(--osdo-blanco);
}
.osdo-list-grid-item .osdo-list-icon {
    color: var(--osdo-verde-principal, #035f68);
    flex-shrink: 0;
    font-size: 1.1em;
    margin-top: 0.1em;
    transition: color 0.2s;
}
.osdo-list-grid-item:hover .osdo-list-icon {
    color: var(--osdo-blanco);
}
@media (max-width: 992px) {
    .osdo-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .osdo-list-grid {
        grid-template-columns: 1fr;
    }
}
/* ============================================
   OSDO - Sistema de Estilos Personalizado
   Gestión de Comprobantes
   ============================================ */

/* --- VARIABLES CSS (Custom Properties) --- */
:root {
    /* Colores de marca OSDO */
    --osdo-verde-principal: #035f68;
    --osdo-verde-secundario: #54bbc9;
    --osdo-gris-auxiliar: #c6c6c6;
    
    /* Variaciones de colores principales */
    --osdo-verde-principal-hover: #024850;
    --osdo-verde-principal-light: rgba(3, 95, 104, 0.1);
    --osdo-verde-secundario-hover: #3da8b6;
    --osdo-verde-secundario-light: rgba(84, 187, 201, 0.1);
    
    /* Colores complementarios */
    --osdo-gris-oscuro: #333333;
    --osdo-gris-medio: #666666;
    --osdo-gris-claro: #f5f5f5;
    --osdo-blanco: #ffffff;
    
    /* Tipografía */
    --font-titulo: 'Gotham Light', 'Montserrat', sans-serif;
    --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Tamaños de fuente */
    --fs-h1: 2.5rem;
    --fs-h2: 2rem;
    --fs-h3: 1.75rem;
    --fs-h4: 1.5rem;
    --fs-h5: 1.25rem;
    --fs-h6: 1rem;
    --fs-body: 0.95rem;
    --fs-small: 0.875rem;
    
    /* Espaciado */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    
    /* Bordes y sombras */
    --border-radius: 4px;
    --border-radius-lg: 8px;
    --box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* --- FUENTES --- */
@font-face {
    font-family: 'Gotham Light';
    src: url('/fonts/Gotham-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham Medium';
    src: url('/fonts/Gotham-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/fonts/Montserrat-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* --- ESTILOS GLOBALES --- */
body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    color: var(--osdo-gris-oscuro);
    background-color: var(--osdo-gris-claro);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-titulo);
    font-weight: 300;
    color: var(--osdo-verde-principal);
    margin-bottom: var(--spacing-md);
}

h1, .h1 { font-size: var(--fs-h1); }
h2, .h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-h3); }
h4, .h4 { font-size: var(--fs-h4); }
h5, .h5 { font-size: var(--fs-h5); }
h6, .h6 { font-size: var(--fs-h6); }

a {
    color: var(--osdo-verde-principal);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--osdo-verde-secundario);
    text-decoration: underline;
}

/* --- NAVBAR PERSONALIZADA --- */
.navbar {
    background-color: var(--osdo-blanco) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 1rem;
}

.navbar-brand {
    padding: 0;
    margin: 0;
}

.navbar-brand img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.navbar-light .navbar-nav .nav-link {
    color: var(--osdo-verde-principal);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
    color: var(--osdo-verde-secundario);
    background-color: var(--osdo-verde-secundario-light);
    border-radius: var(--border-radius);
}

.navbar-light .navbar-nav .nav-link.active {
    color: var(--osdo-verde-secundario);
    font-weight: 600;
}

.navbar-toggler {
    border-color: var(--osdo-verde-principal);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23035f68' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* --- TOPBAR (barra superior informativa) --- */
.topbar {
    background: linear-gradient(90deg, var(--osdo-verde-secundario), #2aa6b2) !important;
    color: #fff !important;
    /* Reducido al 50% según petición */
    font-size: 0.775rem !important;
    padding: 0.35rem 0;
    --topbar-height: 44px;
    height: var(--topbar-height);
    display: flex !important;
    align-items: center;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
}
.topbar .container { max-width: 1140px; }
.topbar-link {
    color: rgba(255,255,255,0.95) !important;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 500;
    text-decoration: none;
}
.topbar-link .fa { font-size: 1em !important; color: rgba(255,255,255,0.95); }
.topbar-sep { color: rgba(255,255,255,0.2); margin: 0 0.5rem; }
.topbar-right { gap: 1.2rem; display: flex; }
.topbar-right .topbar-link { padding-left: 1.2rem; border-left: 1px solid rgba(255,255,255,0.08); }
.topbar-right .topbar-link:first-child { border-left: none; padding-left: 0; }
.topbar a:hover { color: #fff; text-decoration: underline; opacity: 0.95; }

@media (max-width: 768px) {
    .topbar { font-size: 0.88rem; padding: 0.25rem 0; }
    .topbar .tb-text { display: none; }
    .topbar-right .topbar-link.d-none.d-md-inline { display: none !important; }
}

/* Mobile compact topbar styles */
@media (max-width: 768px) {
    .topbar { height: 40px; --topbar-height: 40px; }
    .topbar .topbar-left, .topbar .topbar-right { display: none !important; }
    .topbar-compact { position: fixed; top: 0; left: 0; right: 0; z-index: 10001; height: 40px; background: linear-gradient(90deg, var(--osdo-verde-secundario), #2aa6b2) !important; color: #fff; padding: 6px 10px; align-items: center; justify-content: space-between; }
    .topbar-compact .compact-left, .topbar-compact .compact-right { align-items: center; display: flex; }
    .topbar-compact .compact-link { color: #fff !important; font-size: 0.95rem; padding: 6px; text-decoration: none; }
    .topbar-compact .compact-link .fa { font-size: 1.05rem; }
    /* make sure navbar is below compact topbar */
    .navbar { top: var(--topbar-height,40px); }
    body { padding-top: calc(var(--topbar-height,40px) + 70px); }
}

/* Ajustes para evitar que el navbar fijo quede encima del topbar */
.navbar {
    top: var(--topbar-height, 44px);
}

/* Reservar espacio para topbar + navbar fijo */
body {
    padding-top: calc(var(--topbar-height, 44px) + 70px);
}

@media (max-width: 768px) {
    body { padding-top: calc(var(--topbar-height, 44px) + 70px); }
}

/* --- BOTONES BOOTSTRAP PERSONALIZADOS --- */
.btn {
    font-family: var(--font-body);
    font-weight: 500;
    border-radius: var(--border-radius);
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--osdo-verde-principal);
    color: var(--osdo-blanco);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--osdo-verde-principal-hover);
    box-shadow: var(--box-shadow-lg);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--osdo-verde-secundario);
    color: var(--osdo-blanco);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: var(--osdo-verde-secundario-hover);
    box-shadow: var(--box-shadow-lg);
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 2px solid var(--osdo-verde-principal);
    color: var(--osdo-verde-principal);
    background-color: transparent;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--osdo-verde-principal);
    color: var(--osdo-blanco);
}

.btn-outline-secondary {
    border: 2px solid var(--osdo-verde-secundario);
    color: var(--osdo-verde-secundario);
    background-color: transparent;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    background-color: var(--osdo-verde-secundario);
    color: var(--osdo-blanco);
}

.btn-sm {
    padding: 0.25rem 1rem;
    font-size: var(--fs-small);
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

/* --- FORMULARIOS --- */
.form-label {
    font-weight: 500;
    color: var(--osdo-gris-oscuro);
    margin-bottom: var(--spacing-xs);
}

.form-control,
.form-select {
    border: 1px solid var(--osdo-gris-auxiliar);
    border-radius: var(--border-radius);
    padding: 0.5rem 0.75rem;
    font-family: var(--font-body);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--osdo-verde-secundario);
    box-shadow: 0 0 0 0.2rem var(--osdo-verde-secundario-light);
    outline: none;
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545;
}

.form-control.is-valid,
.form-select.is-valid {
    border-color: var(--osdo-verde-secundario);
}

.form-check-input:checked {
    background-color: var(--osdo-verde-principal);
    border-color: var(--osdo-verde-principal);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem var(--osdo-verde-principal-light);
}

/* (Se removieron estilos temporales de `.formulario-modern` a petición del usuario) */

/* --- CARDS --- */
.card {
    border: 1px solid var(--osdo-gris-auxiliar);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
    box-shadow: var(--box-shadow-lg);
    transform: translateY(-4px);
}

.card-header {
    background-color: var(--osdo-verde-principal);
    color: var(--osdo-blanco);
    font-family: var(--font-titulo);
    font-weight: 500;
    border-bottom: none;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.card-footer {
    background-color: var(--osdo-gris-claro);
    border-top: 1px solid var(--osdo-gris-auxiliar);
}

/* --- TABLAS --- */
.table {
    font-size: var(--fs-body);
}

.table thead th {
    background-color: var(--osdo-verde-principal);
    color: var(--osdo-blanco);
    font-weight: 500;
    border: none;
    padding: 0.75rem;
}

.table tbody tr:hover {
    background-color: var(--osdo-verde-principal-light);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

.table-bordered {
    border: 1px solid var(--osdo-gris-auxiliar);
}

.table-bordered th,
.table-bordered td {
    border: 1px solid var(--osdo-gris-auxiliar);
}

/* --- MODALS --- */
.modal-header {
    background-color: var(--osdo-verde-principal);
    color: var(--osdo-blanco);
    border-bottom: none;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-title {
    font-family: var(--font-titulo);
    font-weight: 300;
    color: var(--osdo-blanco);
}

.modal-footer {
    border-top: 1px solid var(--osdo-gris-auxiliar);
}

/* --- ALERTS --- */
.alert-primary {
    background-color: var(--osdo-verde-principal-light);
    border-color: var(--osdo-verde-principal);
    color: var(--osdo-verde-principal);
}

.alert-secondary {
    background-color: var(--osdo-verde-secundario-light);
    border-color: var(--osdo-verde-secundario);
    color: var(--osdo-verde-secundario-hover);
}

/* --- BADGES --- */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

.badge.bg-primary {
    background-color: var(--osdo-verde-principal) !important;
}

.badge.bg-secondary {
    background-color: var(--osdo-verde-secundario) !important;
}

/* --- PAGINATION --- */
.pagination .page-link {
    color: var(--osdo-verde-principal);
    border-color: var(--osdo-gris-auxiliar);
}

.pagination .page-link:hover {
    background-color: var(--osdo-verde-principal-light);
    color: var(--osdo-verde-principal);
}

.pagination .page-item.active .page-link {
    background-color: var(--osdo-verde-principal);
    border-color: var(--osdo-verde-principal);
}

/* --- BREADCRUMB --- */
.breadcrumb {
    background-color: transparent;
}

.breadcrumb-item.active {
    color: var(--osdo-verde-principal);
}

.breadcrumb-item a {
    color: var(--osdo-verde-secundario);
}

/* --- FOOTER --- */
.footer {
    background-color: var(--osdo-blanco);
    border-top: 2px solid var(--osdo-verde-principal);
    padding: 0.5rem 0;
    margin-top: 2rem;
    font-size: 0.85rem;
}

.footer a {
    color: var(--osdo-verde-principal);
}

.footer img {
    height: 20px;
    margin-bottom: 0.25rem;
}

/* Footer layout: responsive 3-column area for desktop, stacked on mobile */
.footer .footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.6rem 2.4rem;
    align-items: start;
    padding: 2rem 0;
}

/* Top area of footer: different background and centered 3 columns */
.footer .footer-top {
    padding: 2.4rem 0;
    background: var(--osdo-verde-principal);
    color: var(--osdo-blanco);
}
.footer .footer-top a { color: var(--osdo-blanco); }
.footer .footer-top .usefull-link ul li a:hover { color: var(--osdo-blanco); text-decoration: underline; }

/* Bottom area (second container): lighter background and centered 2 divisions */
.footer .footer-bottom {
    padding: 2rem 0;
    background: var(--osdo-verde-secundario-light);
    color: var(--osdo-gris-oscuro);
}
.footer .footer-bottom a { color: var(--osdo-verde-principal); }

/* Ensure footer-bottom content uses 2 centered columns on desktop */
.footer .footer-bottom .footer-content {
    grid-template-columns: repeat(2, 1fr);
    max-width: 1100px;
    margin: 0 auto;
    gap: 2rem;
        align-items: center;
        text-align: center;
}

    /* Center inner content of footer-bottom columns */
    .footer .footer-bottom .footer-content > .footer-brand,
    .footer .footer-bottom .footer-content > .footer-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .footer .footer-bottom .footer-brand .footer-logo,
    .footer .footer-bottom .footer-brand .footer-logo img { margin: 0 auto; display: block; }
    .footer .footer-bottom .footer-info .contacto-super { margin-top: .6rem; }
    .footer .footer-bottom .footer-info .contacto-super span,
    .footer .footer-bottom .footer-info .contacto-super a { display: block; }

@media (max-width: 768px) {
    .footer .footer-bottom .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer .footer-top .row > div { text-align: center; }
}

.footer .footer-brand,
.footer .footer-info,
.footer .footer-links {
    min-width: 0;
}

.footer .footer-brand { text-align: left; }
.footer .footer-brand .footer-logo img { height: 64px; }

.footer .footer-info p,
.footer .footer-info a {
    color: var(--osdo-gris-oscuro);
}

.footer .usefull-link ul { list-style: none; padding: 0; margin: 0; }
.footer .usefull-link ul li { margin-bottom: 0.45rem; }
.footer .usefull-link ul li a { color: var(--osdo-verde-principal); text-decoration: none; }
.footer .usefull-link ul li a:hover { color: var(--osdo-verde-secundario); text-decoration: underline; }

@media (max-width: 992px) {
    .footer .footer-content { grid-template-columns: repeat(2, 1fr); }
}

/* --- CONTACT CARD & CTA STYLES --- */
.contact-card {
    background: linear-gradient(180deg, rgba(3,95,104,0.03), rgba(3,95,104,0.01));
    border: 1px solid rgba(3,95,104,0.06);
    padding: 1.2rem;
    border-radius: 10px;
    margin-bottom: 1.2rem;
}
.contact-card h4 { color: var(--osdo-verde-principal); margin-bottom: 0.6rem; }

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.8rem 1.2rem;
    align-items: start;
    margin-bottom: 1rem;
}
.contact-item { display:flex; gap:0.8rem; align-items:flex-start; }
.contact-icon { color: var(--osdo-verde-secundario); font-size: 1.6rem; margin-top:4px; }
.contact-item a { color: var(--osdo-verde-principal); text-decoration: none; }

.contact-actions { display:flex; gap:0.6rem; flex-wrap:wrap; margin-top:0.6rem; }
.btn-contact {
    display:inline-flex; align-items:center; gap:0.6rem;
    background: var(--osdo-verde-principal);
    color: var(--osdo-blanco);
    padding: 0.5rem 0.9rem; border-radius: 999px; text-decoration:none; font-weight:600;
    box-shadow: 0 6px 18px rgba(3,95,104,0.06);
}
.btn-contact i { font-size:1rem; }
.btn-contact.btn-whatsapp { background: #25D366; box-shadow: 0 6px 14px rgba(37,211,102,0.06); }
.btn-contact.btn-phone { background: linear-gradient(90deg, #0b8a8f, #035f68); }
.btn-contact:hover { transform: translateY(-2px); }

.contact-divider { margin-top:1rem; border-color: rgba(3,95,104,0.06); }

@media (max-width: 576px) {
    .contact-actions { justify-content: center; }
}

@media (max-width: 576px) {
    .footer { padding: 1rem 0; }
    .footer .footer-content { grid-template-columns: 1fr; gap: 1rem; padding: 1rem 0; }
    .footer .footer-brand { text-align: center; }
}

/* Action box used in article pages (centered call-to-action) */
.action-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 900px;
    margin: 1rem auto 0 auto;
    padding: 1rem 1.2rem;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border: 1px solid rgba(3,95,104,0.06);
    box-shadow: 0 8px 30px rgba(3,95,104,0.04);
}
.action-box.small { max-width: 760px; padding: 0.85rem; }
.action-box.gray-bg { background: linear-gradient(180deg, rgba(3,95,104,0.04), rgba(3,95,104,0.02)); }
.action-box .action-box-text h3 { margin: 0 0 0.25rem 0; color: var(--osdo-verde-principal); }
.action-box .action-box-text .small-note { margin: 0; color: var(--osdo-gris-medio); font-size: 0.95rem; }
.action-box .action-box-button { display:flex; align-items:center; }

@media (max-width: 768px) {
    .action-box { flex-direction: column; text-align: center; }
    .action-box .action-box-button { margin-top: 0.6rem; }
}

/* --- UTILIDADES PERSONALIZADAS --- */
.bg-osdo-principal {
    background-color: var(--osdo-verde-principal) !important;
    color: var(--osdo-blanco) !important;
}

/* --- LISTAS MODERNAS OSDO --- */
.osdo-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}
.osdo-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: var(--osdo-verde-secundario-light, #eaf7fa);
    color: var(--osdo-gris-oscuro);
    border-radius: var(--border-radius-lg, 8px);
    padding: 0.75rem 1.2rem;
    margin-bottom: 0.7rem;
    font-size: 1.08rem;
    box-shadow: 0 1px 4px rgba(84, 187, 201, 0.07);
    transition: background 0.2s;
}
.osdo-list li:hover {
    background: var(--osdo-verde-secundario, #54bbc9);
    color: var(--osdo-blanco);
}
.osdo-list li:hover a {
    color: var(--osdo-blanco);
    text-decoration-color: var(--osdo-blanco);
}
.osdo-list li .osdo-list-icon {
    color: var(--osdo-verde-principal, #035f68);
    flex-shrink: 0;
    font-size: 1.2em;
    margin-top: 0.1em;
    transition: color 0.2s;
}
.osdo-list li:hover .osdo-list-icon {
    color: var(--osdo-blanco);
}

.bg-osdo-secundario {
    background-color: var(--osdo-verde-secundario) !important;
    color: var(--osdo-blanco) !important;
}

.text-osdo-principal {
    color: var(--osdo-verde-principal) !important;
}

.text-osdo-secundario {
    color: var(--osdo-verde-secundario) !important;
}

.border-osdo-principal {
    border-color: var(--osdo-verde-principal) !important;
}

.border-osdo-secundario {
    border-color: var(--osdo-verde-secundario) !important;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    :root {
        --fs-h1: 2rem;
        --fs-h2: 1.75rem;
        --fs-h3: 1.5rem;
        --fs-h4: 1.25rem;
    }
    
    .navbar-brand img {
        height: 40px;
    }
}

@media (max-width: 576px) {
    :root {
        --fs-h1: 1.75rem;
        --fs-h2: 1.5rem;
        --fs-h3: 1.25rem;
    }
    
    .navbar-brand img {
        height: 35px;
    }
}

.accordion.acd, .accordion.plus-icon {
    background: transparent;
    border-radius: 10px;
}
.accordion.acd .acd-group, .accordion.plus-icon .acd-group {
    margin-bottom: 0.6rem;
}
.accordion.acd .acd-heading, .accordion.plus-icon .acd-heading {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: .75rem;
    padding: .85rem 1rem;
    background: linear-gradient(180deg,#ffffff,#fbfeff);
    border: 1px solid rgba(3,95,104,0.06);
    border-radius: 8px;
    cursor: pointer;
    color: var(--osdo-verde-principal);
    font-weight: 600;
    text-decoration: none;
    text-align: left;
}
.accordion.acd .acd-heading i.theme-color, .accordion.plus-icon .acd-heading i.theme-color {
    color: var(--osdo-verde-secundario);
    margin-right: .5rem;
}
.accordion.acd .acd-heading .acd-chevron i, .accordion.plus-icon .acd-heading .acd-chevron i {
    color: var(--osdo-gris-medio);
    transition: transform .25s ease;
}
.accordion.acd .acd-heading .acd-chevron, .accordion.plus-icon .acd-heading .acd-chevron {
    margin-left: auto;
}
.accordion.acd .acd-group.open .acd-heading .acd-chevron i, .accordion.plus-icon .acd-group.open .acd-heading .acd-chevron i {
    transform: rotate(180deg);
}
.accordion.acd .acd-des, .accordion.plus-icon .acd-des {
    overflow: hidden;
    max-height: 0;
    transition: max-height .3s ease;
    padding: 0 1rem;
    background: rgba(84,187,201,0.02);
    border-left: 3px solid transparent;
    border-radius: 0 0 8px 8px;
    margin-top: .5rem;
}
.accordion.acd .acd-group.open .acd-des, .accordion.plus-icon .acd-group.open .acd-des {
    /* when open, max-height will be set inline by JS to scrollHeight */
    border-left-color: var(--osdo-verde-secundario);
    padding: .85rem 1rem;
}
.accordion.acd .acd-des p,
.accordion.acd .acd-des div,
.accordion.plus-icon .acd-des p,
.accordion.plus-icon .acd-des div {
    margin-bottom: .6rem;
    color: var(--osdo-gris-oscuro);
}

@media (min-width: 992px) {
    .accordion.acd .acd-heading, .accordion.plus-icon .acd-heading { padding: 1rem 1.2rem; }
    .accordion.acd .acd-des, .accordion.plus-icon .acd-des { padding-left: 1.2rem; padding-right: 1.2rem; }
}

/* --- Habitos Saludables: improved content formatting inside accordion --- */
.accordion .acd-des .entry-content {
    padding: .5rem 0;
    font-size: 1rem;
    color: var(--osdo-gris-oscuro);
}
.accordion .acd-des .entry-content h3,
.accordion .acd-des .entry-content h4 {
    color: var(--osdo-verde-principal);
    font-weight: 600;
    margin-top: .6rem;
    margin-bottom: .45rem;
}
.accordion .acd-des .entry-content h3.mb-30 { font-size: 1.25rem; }
.accordion .acd-des .entry-content h4 { font-size: 1.05rem; }
.accordion .acd-des .entry-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: .65rem;
}
.accordion .acd-des .entry-content .image-contentmini {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: .5rem 0 .8rem 0;
    border-radius: 8px;
}

/* Apply same readable styles even when .entry-content wrapper is not present */
.accordion .acd-des h3,
.accordion .acd-des h4 {
    color: var(--osdo-verde-principal);
    font-weight: 600;
    margin-top: .6rem;
    margin-bottom: .45rem;
}
.accordion .acd-des h3.mb-30 { font-size: 1.25rem; }
.accordion .acd-des h4 { font-size: 1.05rem; }
.accordion .acd-des p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: .65rem;
    color: var(--osdo-gris-oscuro);
}
.accordion .acd-des img.image-contentmini {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: .5rem 0 .8rem 0;
    border-radius: 8px;
}

/* Article content images: centered, responsive and constrained */
.entry-content img.image-content,
.blog-detail img.image-content,
img.image-content {
    display: block;
    margin: 1rem auto;
    width: 100%;
    max-width: 880px;
    height: auto;
    border-radius: 8px;
}

@media (max-width: 576px) {
    .entry-content img.image-content,
    .blog-detail img.image-content,
    img.image-content { max-width: 100%; }
}

/* --- CARTELERA / CAROUSEL DE NOVEDADES (OSDO) --- */
.cartelera-wrapper { width: 100%; }
.cartelera { position: relative; }
.cartel-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: rgba(255,255,255,0.82);
    color: var(--osdo-gris-oscuro);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(3,95,104,0.06);
    overflow: hidden;
    border: 1px solid rgba(3,95,104,0.05);
    backdrop-filter: blur(6px);
}
.cartel-card .cartel-content { padding: 1.6rem 1.6rem; flex: 1 1 auto; width: 100%; }
.cartel-card .cartel-title {
    font-family: var(--font-titulo);
    font-weight: 600;
    color: var(--osdo-verde-principal);
    margin: 0 0 0.5rem 0;
    font-size: 1.06rem;
}
.cartel-card .cartel-text { color: var(--osdo-gris-medio); margin-bottom: .6rem; line-height: 1.6; }
.cartel-card .cartel-contact { color: var(--osdo-verde-principal); font-weight: 700; }

/* Estilos para enlaces dentro del carousel */
.cartel-card .cartel-link {
    color: var(--osdo-verde-principal);
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    display: inline-block;
}
.cartel-card .cartel-link:hover {
    color: var(--osdo-verde-secundario, #1fa37a);
    border-bottom-color: var(--osdo-verde-secundario, #1fa37a);
    transform: translateY(-1px);
}
.cartel-card .cartel-link-whatsapp:hover {
    color: #25D366;
    border-bottom-color: #25D366;
}
.cartel-card .cartel-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
}
.cartel-card .cartel-link:hover::before {
    width: 100%;
}

.cartel-media { flex: 0 0 90px; padding: .4rem; }
.cartel-media img { width: 90px; height: auto; border-radius: 8px; display: block; }

/* If `.cartel-media` is removed (e.g. image onerror hides it), allow the content to use full width */
.cartel-card:has(.cartel-media[style*="display:none"]) .cartel-content,
.cartel-card:not(:has(.cartel-media)) .cartel-content {
    max-width: 100%;
    flex: 1 1 100%;
}

/* Preparación para modo "imagen-única" dentro del slide */
.cartel-image-only { padding: 0; }
.cartel-image-only .cartel-content { display: none; }
.cartel-image-only .cartel-media { display: block; width: 100%; padding: 0; }
.cartel-image-only .cartel-media img { width: 100%; height: auto; object-fit: cover; border-radius: 8px; }

/* Fallback class when .cartel-media hidden via JS to force full-width text */
.cartel-card.no-media { display: flex; }
.cartel-card.no-media .cartel-media { display: none !important; }
.cartel-card.no-media .cartel-content { flex: 1 1 100%; width: 100%; }

.cartelera .carousel-indicators [data-bs-target] {
    width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5);
}
.cartelera .carousel-indicators .active { background: #ffffff; }

.cartelera-controls .btn { font-weight: 600; }

@media (max-width: 768px) {
    .cartel-card { flex-direction: column; text-align: left; }
    .cartel-media { display: none; }
    .cartel-card .cartel-content { padding: 1rem; }
}

/* small polish so controls sit visibly below the carousel */
.cartelera-wrapper { padding: 0.5rem 0; }

.accordion .acd-des ul {
    padding-left: 1.15rem;
    margin-bottom: .8rem;
}
.accordion .acd-des li { margin-bottom: .45rem; }

/* On medium+ screens, float small inline images and keep text flow neat */
@media (min-width: 768px) {
    .accordion .acd-des .entry-content .image-contentmini {
        float: left;
        width: 120px;
        margin-right: 1rem;
        margin-bottom: .5rem;
    }
    .accordion .acd-des .entry-content .row > .col-lg-11 {
        /* avoid extremely wide text next to small image */
        max-width: calc(100% - 140px);
    }
}

/* Make inline lists inside the habits content clearer */
.accordion .acd-des .entry-content ul {
    padding-left: 1.15rem;
    margin-bottom: .8rem;
}
.accordion .acd-des .entry-content li {
    margin-bottom: .45rem;
}

/* --- ATENCION SECUNDARIA: columns, cards and meds --- */
.osdo-columns {
    display: block;
    padding: 0;
    margin: 0 0 1rem 0;
}
.osdo-columns li {
    padding: .28rem 0;
    line-height: 1.45;
}
@media (min-width: 992px) {
    .osdo-columns {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: .4rem 2rem;
    }
}

.practicas-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
    margin: 1rem 0 1.5rem 0;
}
.practica-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(3,95,104,0.06);
    transition: transform .18s ease, box-shadow .18s ease;
}
.practica-card .card-body {
    padding: .9rem 1rem;
}
.practica-card h5 {
    margin-bottom: .45rem;
    color: var(--osdo-verde-principal);
    font-weight: 700;
}
.practica-card p { margin-bottom: 0; color: var(--osdo-gris-oscuro); }
.practica-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(3,95,104,0.08); }
@media (min-width: 768px) {
    .practicas-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1200px) {
    .practicas-grid { grid-template-columns: repeat(3, 1fr); }
}

.meds-section { margin: 1rem 0 1.5rem 0; }
.meds-summary {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: .9rem 1rem;
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(5,97,104,0.03), rgba(84,187,201,0.02));
    border: 1px solid rgba(3,95,104,0.06);
    margin-bottom: .9rem;
}
.meds-summary .badge { margin-right: .5rem; }
.med-grid { display: grid; grid-template-columns: 1fr; gap: .7rem; }
.med-card {
    padding: .75rem 1rem;
    border-radius: 8px;
    background: var(--osdo-blanco);
    border: 1px solid var(--osdo-gris-auxiliar);
    box-shadow: 0 4px 14px rgba(3,95,104,0.03);
}
.med-card .med-title { font-weight: 700; color: var(--osdo-verde-principal); margin-bottom: .4rem; }
.med-card ul { margin: 0; padding-left: 1.05rem; }

@media (min-width: 768px) {
    .med-grid { grid-template-columns: repeat(2,1fr); }
}

/* --- Blog / Cards used in prestaciones-sociales.html --- */
.blog-entry {
    background: linear-gradient(180deg,#ffffff,#fbfeff);
    border: 1px solid rgba(3,95,104,0.06);
    border-radius: 12px;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}
.blog-entry .entry-image { max-height: 160px; overflow: hidden; }
.blog-entry .entry-image img { width: 100%; height: auto; display:block; }
.blog-entry .blog-detail { padding: .9rem 1rem; }
.blog-entry .entry-title a { color: var(--osdo-verde-principal); font-weight:700; text-transform: none; text-decoration: none; }
.blog-entry .entry-title a:hover { color: var(--osdo-verde-secundario); text-decoration: underline; }
.blog-entry .entry-content { color: var(--osdo-gris-oscuro); font-size: 1rem; line-height: 1.6; }
.blog-entry .entry-content p { margin-bottom: .6rem; }
.blog-entry .entry-content ul { padding-left: 1.15rem; margin-bottom: .6rem; }
.blog-entry .entry-content h7 { display:block; font-size: .88rem; color: var(--osdo-gris-medio); margin-top: .5rem; }
.blog-entry:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(3,95,104,0.06); }

/* Article page: lead paragraph and share buttons */
.entry-title { font-size: 1.9rem; font-weight: 800; color: var(--osdo-verde-principal); margin-bottom: .5rem; }
.entry-meta { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; color: var(--osdo-gris-medio); font-size: .95rem; }
.entry-meta .meta-item { display: inline-flex; gap: .4rem; align-items: center; }
.lead { font-size: 1.08rem; color: var(--osdo-gris-oscuro); font-weight: 500; margin-bottom: .8rem; }
.share-buttons { display: flex; gap: .6rem; margin-top: 1rem; }
.share-buttons a { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .6rem; background: #fff; border: 1px solid rgba(3,95,104,0.06); border-radius: 8px; color: var(--osdo-verde-principal); text-decoration: none; box-shadow: 0 4px 14px rgba(3,95,104,0.03); }
.share-buttons a:hover { background: var(--osdo-verde-secundario-light); color: var(--osdo-blanco); }
.share-buttons a.copied { position: relative; }

/* Styling to keep article header tidy when there is NO .entry-image */
.blog-detail { display: block; }
.entry-title.title-modern { margin-bottom: .5rem; line-height: 1.08; }
.entry-title.title-modern::before { left: 0; }
.subtitle { display: block; color: var(--osdo-gris-medio); margin-bottom: .9rem; font-size: 1.02rem; }
.entry-image { margin-bottom: 1rem; }
.entry-meta { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; color: var(--osdo-gris-medio); font-size: .95rem; margin-bottom: .5rem; }
.entry-meta .meta-item { display: inline-flex; align-items: center; gap: .45rem; }
.entry-content { margin-top: .8rem; }
.quote-modern { background: linear-gradient(90deg, rgba(84,187,201,0.03), rgba(3,95,104,0.02)); padding: 1rem; border-radius: 8px; }

/* If there is no image, tighten vertical spacing so content remains compact and readable */
@supports(selector(:has(*))) {
    .blog-detail:not(:has(.entry-image)) .entry-title.title-modern { margin-top: .2rem; }
    .blog-detail:not(:has(.entry-image)) .share-buttons { margin-top: .6rem; }
}

@media (max-width: 575px) {
    .entry-title { font-size: 1.4rem; }
    .share-buttons { flex-wrap: wrap; }
}

/* Article subheadings and inline lists */
.entry-content h5 {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--osdo-verde-principal);
    margin-top: 1.15rem;
    margin-bottom: .6rem;
    position: relative;
    padding-left: 1rem;
}
.entry-content h5::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 36px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--osdo-verde-secundario, #54bbc9), var(--osdo-verde-principal, #035f68));
}

/* Make plain ul in articles look like osdo-list when not explicitly using the component */
.entry-content ul { list-style: none; padding-left: 0; margin-left: 0; }
.entry-content ul li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    margin-bottom: .45rem;
    color: var(--osdo-gris-oscuro, #2d3a3a);
}
.entry-content ul li::before {
    /* Unicode for FontAwesome check-circle (fa-check-circle: f058) */
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-style: normal;
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: 50%;
    background: var(--osdo-verde-secundario-light, #eaf7fa);
    color: var(--osdo-verde-principal, #035f68);
    margin-right: 6px;
    margin-left: 0;
    flex-shrink: 0;
}

@media (max-width: 576px) {
    .entry-content ul li::before { width: 30px; height: 30px; line-height: 30px; font-size: .9rem; }
}

/* make the 'Ventajas' list more compact and readable */
.title p { margin: .25rem 0; font-size: 1rem; color: var(--osdo-gris-oscuro); }

/* responsive tweak: three-up grid on very large screens */
@media (min-width: 1200px) {
    .row > .col-lg-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
}

/* Article page layout tweaks: center main column and enlarge header image */
.contratacion-online .col-lg-9 {
    margin-left: auto;
    margin-right: auto;
    float: none;
    max-width: 920px;
    width: 100%;
    box-sizing: border-box;
}

/* Page background for article area to match model */
.contratacion-online {
    background: #f7f9fb;
    padding: 2rem 0 3rem;
}

/* increase header image height by ~50% (was 160px -> now 240px) */
.contratacion-online .entry-image {
    max-height: 240px;
    overflow: hidden;
}
.contratacion-online .entry-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

@media (max-width: 767px) {
    .contratacion-online .entry-image { max-height: 200px; }
    .contratacion-online .entry-image img { height: 200px; }
}

/* --- Compact list with modal details (option 3) --- */
.compact-list { list-style: none; padding: 0; margin: 0 0 1.25rem 0; }
.compact-list li { display: flex; align-items: center; gap: .75rem; padding: .7rem 1rem; border-radius: 8px; background: #fff; border: 1px solid rgba(3,95,104,0.04); margin-bottom: .6rem; cursor: pointer; }
.compact-list li:hover { background: var(--osdo-verde-secundario-light); }
.compact-list li .icon { width: 34px; height: 34px; display:flex; align-items:center; justify-content:center; color:var(--osdo-verde-secundario); background: rgba(84,187,201,0.06); border-radius:50%; }
.compact-list li .title { font-weight:600; color:var(--osdo-verde-principal); }
.compact-list li .chev { margin-left:auto; color:var(--osdo-gris-medio); }

/* hide original card grid when compact list is active */
.blog-grid--hidden { display: none; }

/* Modal image sizing: keep images smaller to avoid very large modals */
#detailModal .entry-image img,
#detailModal img.entry-image,
#detailModal .entry-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* --- News section: modern slider + tabbed dates list --- */
.news-section {
    padding: 2.5rem 0 2rem; /* un poco más de espacio vertical */
    margin-top: 2.5rem; /* separación desde la sección anterior */
    border-top: 1px solid rgba(3,95,104,0.04); /* sutil separación visual */
    background: transparent;
}
.news-section .section-title .title {
    color: var(--osdo-verde-principal);
    font-weight: 700;
    margin-bottom: .75rem;
}

/* Modern section title style used for Noticias / Otras Noticias / Agenda */
.title-modern {
    display: inline-block;
    position: relative;
    padding-left: 0.9rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--osdo-verde-principal);
    letter-spacing: 0.2px;
}
.title-modern::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 66%;
    background: linear-gradient(180deg, var(--osdo-verde-principal), var(--osdo-verde-secundario));
    border-radius: 3px;
    box-shadow: 0 6px 18px rgba(3,95,104,0.06);
}
.title-modern.small { font-size: 1rem; font-weight:700; }

@media (max-width: 575px) {
    .title-modern { font-size: 1.05rem; padding-left: 0.7rem; }
    .title-modern::before { width:4px; height:60%; }
}

/* Stronger presence for article titles that also use title-modern */
.entry-title.title-modern {
    font-size: 2.0rem;
    font-weight: 900;
    letter-spacing: 0.25px;
    line-height: 1.08;
    margin-bottom: .5rem;
    padding-left: 1rem;
    text-shadow: 0 4px 12px rgba(3,95,104,0.05);
}
.entry-title.title-modern::before {
    height: 70%;
    width: 6px;
}

@media (min-width: 1200px) {
    .entry-title.title-modern { font-size: 2.6rem; }
}
@media (max-width: 575px) {
    .entry-title.title-modern { font-size: 1.3rem; padding-left: .8rem; }
    .entry-title.title-modern::before { width:4px; height:60%; }
}

/* Decorative style for blockquotes matching the title accent */
.quote-modern {
    position: relative;
    padding-left: 1.2rem;
    background: rgba(3,95,104,0.02);
    border-radius: 8px;
    padding: 1rem 1rem 1rem 1.2rem;
    margin: .6rem 0 1rem 0;
}
.quote-modern::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 66%;
    background: linear-gradient(180deg, var(--osdo-verde-principal), var(--osdo-verde-secundario));
    border-radius: 3px;
    box-shadow: 0 6px 18px rgba(3,95,104,0.04);
}

@media (max-width: 575px) {
    .quote-modern { padding-left: .9rem; }
    .quote-modern::before { left: .4rem; width:4px; height:60%; }
}
.news-slider .blog-overlay {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 26px rgba(3,95,104,0.06);
    transition: transform .18s ease, box-shadow .18s ease;
}
.news-slider .blog-image img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}
.news-slider .blog-name {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    right: 1rem;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.news-slider .tag {
    background: rgba(0,0,0,0.25);
    color: #fff;
    padding: .25rem .5rem;
    border-radius: 999px;
    font-size: .75rem;
    text-transform: uppercase;
}

/* Make carousel titles more readable over images: semi-transparent panel */
.news-slider .blog-name h4 a {
    background: rgba(0,0,0,0.3);
    color: #fff;
    padding: .35rem .6rem;
    border-radius: 6px;
    display: inline-block;
    text-decoration: none;
}
.news-slider .blog-name h4 a:hover { text-decoration: underline; }

@media (max-width: 575px) {
    .news-slider .blog-name h4 a { display: block; padding: .45rem .6rem; }
}

/* Owl carousel dots/arrows styling (if used) */
.owl-dots { text-align: center; margin-top: .75rem; }
.owl-dot { width: 10px; height: 10px; display: inline-block; border-radius: 50%; background: rgba(3,95,104,0.16); margin: 0 .25rem; }
.owl-dot.active { background: var(--osdo-verde-principal); }

/* Tabs area (dates list) */
.news-tabs .nav-tabs { display: flex; gap: .4rem; flex-wrap: wrap; border-bottom: none; }
.news-tabs .nav-tabs .nav-link {
    border: 1px solid rgba(3,95,104,0.06);
    border-radius: 6px;
    padding: .08rem .28rem; /* ultra compact */
    color: var(--osdo-verde-principal);
    font-weight: 600;
    font-size: .62rem; /* more compact typography */
    line-height: 1;
    white-space: nowrap;
    letter-spacing: 0.1px;
}
.news-tabs .nav-tabs .nav-link.active {
    /* use the secondary-hover token for stronger contrast */
    background: var(--osdo-verde-secundario-hover);
    color: var(--osdo-blanco);
    box-shadow: 0 10px 26px rgba(61,168,182,0.22);
    border-color: rgba(61,168,182,0.18);
    transform: translateY(-2px);
}
.news-tabs .tab-content {
    margin-top: 1rem;
    background: linear-gradient(180deg,#ffffff,#fbfeff);
    border: 1px solid rgba(3,95,104,0.04);
    padding: .8rem;
    border-radius: 10px;
}
.news-tabs .table-1 td { padding: .45rem .6rem; vertical-align: middle; }
.news-tabs .table-1 tbody tr:hover { background: rgba(84,187,201,0.03); }

@media (max-width: 767px) {
    .news-slider .blog-image img { height: 160px; }
    .news-tabs .nav-tabs { justify-content: flex-start; }
}

/* --- Otras Noticias: sidebar recent-post tweaks --- */
.sidebar-widget .recent-post {
    display: flex;
    gap: .8rem;
    align-items: center;
}
.sidebar-widget .recent-post .recent-post-image {
    flex: 0 0 92px;
    max-width: 92px;
    overflow: hidden;
    border-radius: 6px;
}
.sidebar-widget .recent-post .recent-post-image img { width: 100%; height: 64px; object-fit: cover; display:block; }
.sidebar-widget .recent-post .recent-post-info { flex: 1 1 auto; }
.sidebar-widget .recent-post .recent-post-info a { color: var(--osdo-verde-principal); font-weight:600; display:block; }
.sidebar-widget .recent-post .recent-post-info span { display:block; color:var(--osdo-verde-secundario); font-size:.9rem; margin-top:.35rem; }

/* Featured headlines under the slider — card layout for three-up */
.featured-news .recent-post {
    display: block;
    background: #ffffff;
    border: 1px solid rgba(3,95,104,0.06);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(3,95,104,0.06);
    margin-bottom: .9rem;
}
.featured-news .recent-post .recent-post-info { text-align:center; padding: .6rem 0; }
.featured-news .recent-post .recent-post-info h5 { margin: .2rem 0 .4rem; font-size: 1rem; font-weight:700; color:var(--osdo-verde-principal); }
.featured-news .recent-post .recent-post-info span { color:var(--osdo-verde-secundario); font-style:italic; font-size:.88rem; }

/* Make sure featured headlines have breathing room on wider screens */
@media (min-width: 768px) {
    .featured-news { padding-top: .6rem; }
}



/* Agenda / Calendar - modernized table + month tabs */
.tab.nav-border {
    --agenda-radius: 10px;
}
.tab.nav-border .nav-tabs {
    gap: .5rem;
    display: flex;
    flex-wrap: wrap;
    padding: .35rem;
}
.tab.nav-border .nav-tabs .nav-link {
    border: 1px solid rgba(3,95,104,0.06);
    border-radius: 8px;
    padding: .35rem .6rem;
    color: var(--osdo-verde-principal);
    background: transparent;
    font-weight: 600;
    font-size: .9rem;
}
.tab.nav-border .nav-tabs .nav-link:hover {
    background: var(--osdo-verde-secundario-light);
}
.tab.nav-border .nav-tabs .nav-link.active {
    background: var(--osdo-verde-principal);
    color: var(--osdo-blanco);
    box-shadow: 0 8px 20px rgba(3,95,104,0.12);
    transform: translateY(-2px);
}

.tab-content {
    margin-top: .8rem;
}
.tab-content .table-1 {
    background: var(--osdo-blanco);
    border-radius: var(--agenda-radius);
    box-shadow: 0 6px 20px rgba(3,95,104,0.06);
    overflow: hidden;
    border: none;
}
.tab-content .table-1.table-bordered, .tab-content .table-1.table-bordered td, .tab-content .table-1.table-bordered th {
    border: none;
}
.tab-content .table-1 td { padding: .6rem .75rem; vertical-align: middle; }
.tab-content .table-1 tbody tr { border-bottom: 1px solid rgba(3,95,104,0.04); }
.tab-content .table-1 tbody tr:last-child { border-bottom: none; }
.tab-content .table-1 tbody tr:hover { background: rgba(84,187,201,0.03); }
.tab-content .table-1 td:first-child {
    width: 56px;
    font-weight: 700;
    color: var(--osdo-verde-principal);
    text-align: center;
    background: linear-gradient(180deg, rgba(84,187,201,0.06), rgba(3,95,104,0.02));
}
.tab-content .table-1 td:nth-child(2) { color: var(--osdo-gris-oscuro); }

/* Small screens: compact and readable */
@media (max-width: 575px) {
    .tab.nav-border .nav-tabs .nav-link { font-size: .78rem; padding: .28rem .5rem; }
    .tab-content .table-1 td { padding: .5rem .5rem; }
    .tab-content .table-1 td:first-child { width: 44px; font-size: .95rem; }
}

/* Cartelera (carousel) styles used in index */
.cartelera { }
.cartel-card { background: linear-gradient(180deg,#ffffff,#fbfeff); border-radius: 12px; border: 1px solid rgba(3,95,104,0.06); box-shadow: 0 8px 24px rgba(3,95,104,0.06); }
.cartel-title { color: var(--osdo-verde-principal); margin-bottom: .35rem; font-weight:700; }
.cartel-text { color: var(--osdo-gris-oscuro); margin-bottom: .25rem; }
.cartel-contact { color: var(--osdo-verde-secundario); font-weight:600; }
.cartel-media img { width: 160px; height: auto; object-fit: cover; display:block; }
.carousel-control-prev-icon, .carousel-control-next-icon { filter: drop-shadow(0 2px 6px rgba(0,0,0,0.18)); }

@media (max-width: 767px) {
    .cartel-media { display: none !important; }
    .cartel-card { padding: .9rem; }
}

/* Overrides to center contact-card content (title, items, CTAs) */
.contact-card { text-align: center; }
.contact-card h4 { text-align: center; margin-left: 0; }
.contact-grid { justify-items: center; }
.contact-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.contact-item .contact-icon { margin: 0 0 8px 0; }
.contact-actions { justify-content: center; }

@media (min-width: 992px) {
    /* keep grid columns but center content inside each */
    .contact-grid { grid-template-columns: repeat(3, 1fr); }
}




