/* =========================================
   ESTILOS PERSONALIZADOS - SOCONUSCO
   ========================================= */

body { 
    background-color: #f8f9fa; 
    border-top: 6px solid #7a1c27; /* Línea superior color vino[cite: 1] */
}

/* Colores Institucionales */
.bg-brand-maroon { background-color: #7a1c27 !important; }
.bg-brand-gold { background-color: #c6a66a !important; color: #111 !important; font-weight: 600; border: none; }
.bg-brand-gold:hover { background-color: #b5955a !important; }
.bg-brand-dark { background-color: #161c24 !important; } /* Tono oscuro del banner[cite: 1] */
.text-brand-maroon { color: #7a1c27 !important; }
.text-brand-gold { color: #c6a66a !important; }

/* Encabezado de Logos */
.header-logo { height: 70px; width: auto; object-fit: contain; }
.header-banner-bg {

    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('img/fondo_baner.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 20px 0;
}

/* Ajustes de texto para que resalten sobre la imagen de fondo */
.header-banner-bg h4 {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.header-banner-bg small {
    color: #f3e5ab !important; /* Tono dorado claro para que luzca bien */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
.hero-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('img/baner.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 450px;
}
/* Menú de Navegación */
.navbar-nav .nav-link { 
    font-weight: 600; 
    font-size: 13px;
    text-transform: uppercase;
    transition: color 0.2s; 
    letter-spacing: 0.5px;
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link:focus { color: #7a1c27 !important; }
.dropdown-menu { border-top: 3px solid #7a1c27 !important; border-radius: 0; margin-top: 0; }
.dropdown-item { font-size: 14px; }

/* Banner Principal (Hero) */
.hero-banner {
    background-color: #161c24; /* Color sólido oscuro en lugar de imagen[cite: 1] */
    min-height: 450px;
}

/* Botones Oscuros y Claros */
.dark-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.5);
    color: white;
    padding: 8px 16px;
    text-transform: uppercase;
    font-size: 12px;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}
.dark-btn:hover { background: rgba(255,255,255,0.1); color: white; }

.outline-maroon-btn {
    background: transparent;
    border: 1px solid #7a1c27;
    color: #7a1c27;
    padding: 8px 16px;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
    font-weight: 500;
}
.outline-maroon-btn:hover { background: #7a1c27; color: white; }

/* Tarjetas de Servicios */
.service-card-horiz {
    background: white;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #7a1c27;
    text-decoration: none;
    color: #333;
    transition: box-shadow 0.2s, transform 0.2s;
}
.service-card-horiz:hover { 
    box-shadow: 0 8px 20px rgba(0,0,0,0.08); 
    transform: translateY(-3px);
}
.service-card-horiz .icon { font-size: 30px; color: #7a1c27; }

/* Botones de Servicios Rápidos */
.service-outline-btn {
    border: 1px solid rgba(255,255,255,0.6);
    color: white;
    background: transparent;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    text-align: center;
    transition: 0.3s;
    font-size: 14px;
    font-weight: 500;
    min-width: 180px;
}
.service-outline-btn:hover { background: rgba(255,255,255,0.1); border-color: white; color: white; }

/* Pie de Página (Footer) */
footer a { color: #cccccc; text-decoration: none; transition: color 0.3s; }
footer a:hover { color: #ffffff; text-decoration: underline; }

/* =========================================
   TARJETAS LGCG (INFORMACIÓN FINANCIERA)
   ========================================= */

.lgcg-title-hr {
    border-top: 2px solid #7a1c27; /* Línea separadora color vino */
    width: 100%;
    margin: 15px auto 30px auto;
    opacity: 1;
}

.lgcg-card {
    border: 2px solid #7a1c27; /* Borde color institucional adaptado */
    border-radius: 6px;
    padding: 20px 15px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    background: white;
    height: 100%;
    min-height: 160px;
}

.lgcg-card:hover {
    box-shadow: 0 8px 20px rgba(122, 28, 39, 0.15);
    transform: translateY(-4px);
    background-color: #fdfbf7;
}

.lgcg-card .icon-img {
    height: 55px; /* Tamaño para los iconos ilustrativos */
    width: auto;
    margin-bottom: 15px;
    object-fit: contain;
}

.lgcg-card .card-text {
    color: #7a1c27;
    font-size: 15px;
    font-weight: 500;
    margin: 0;
    line-height: 1.3;
}
/* =========================================
   NUEVO DISEÑO LGCG
   ========================================= */

/* Texto Legal Superior */
.lgcg-header-text {
    text-align: justify;
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* Títulos Centrales */
.lgcg-top-title {
    color: #003f72;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
}
.lgcg-main-title {
    color: #003f72;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 20px;
}
.lgcg-year-title {
    color: #666;
    font-weight: 700;
    text-align: center;
    font-size: 2.2rem;
    margin: 40px 0 20px;
}

/* -----------------------------------------
   FORMATO 1: Listas Horizontales (Ingresos)
   ----------------------------------------- */
.lgcg-list-box {
    border: 2px solid #003f72;
    border-radius: 10px;
    background: white;
    padding: 30px;
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.lgcg-list-year {
    font-size: 2.8rem;
    font-weight: bold;
    color: #777;
    width: 25%;
    text-align: center;
}
.lgcg-list-buttons {
    width: 75%;
    padding-left: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.btn-lgcg-doc {
    background-color: #007bb5;
    color: white;
    text-align: left;
    padding: 12px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s;
    display: flex;
    align-items: center;
}
.btn-lgcg-doc i { margin-right: 12px; font-size: 16px; }
.btn-lgcg-doc:hover { background-color: #005a87; color: white; }

/* -----------------------------------------
   FORMATO 2: Trimestres (Estado Contable)
   ----------------------------------------- */
.trimester-card {
    border: 2px solid #003f72;
    border-radius: 10px;
    background: white;
    padding: 0;
    height: 100%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.trimester-title {
    text-align: center;
    font-weight: 700;
    font-size: 1.3rem;
    padding: 15px 0;
    border-bottom: 2px solid #003f72;
    margin: 0;
    color: #000;
}
.trimester-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
/* Cuadros internos solicitados para cada punto */
.trimester-item-box {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 12px;
    background-color: #fcfcfc;
    display: flex;
    align-items: flex-start;
    text-decoration: none;
    color: #444;
    font-size: 12px;
    transition: 0.2s;
    line-height: 1.4;
}
.trimester-item-box:hover {
    border-color: #003f72;
    background-color: #f0f7fb;
    color: #003f72;
}
.trimester-item-box i {
    color: #003f72;
    font-size: 16px;
    margin-right: 10px;
    margin-top: 2px;
}

@media (max-width: 768px) {
    .lgcg-list-box { flex-direction: column; text-align: center; padding: 20px; }
    .lgcg-list-year { width: 100%; border-right: none; margin-bottom: 20px; }
    .lgcg-list-buttons { width: 100%; padding-left: 0; }
}
/* -----------------------------------------
   FORMATO 3: Cuenta Pública (Lista simple)
   ----------------------------------------- */
.cp-row { 
    display: flex; 
    align-items: center; 
    margin-bottom: 20px; 
    max-width: 800px; 
    margin-left: auto; 
    margin-right: auto;
}
.cp-year { 
    font-size: 2rem; 
    font-weight: bold; 
    color: #777; 
    width: 120px; 
    text-align: right; 
    margin-right: 30px; 
}
.cp-btn { 
    flex-grow: 1; 
    background: white; 
    border: 1px solid #ddd; 
    border-radius: 30px; 
    padding: 12px 25px; 
    color: #555; 
    text-decoration: none; 
    font-weight: 500; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); 
    display: flex; 
    align-items: center; 
    transition: 0.3s; 
}
.cp-btn:hover { 
    border-color: #003f72; 
    color: #003f72; 
    background: #f8fafd; 
}
.cp-btn i { 
    color: #003f72; 
    margin-right: 15px; 
    font-size: 1.2rem; 
}

/* -----------------------------------------
   FORMATO 4: Recuadro Anual Centrado (Obra Pública)
   ----------------------------------------- */
.anual-card {
    border: 2px solid #003f72;
    border-radius: 10px;
    padding: 20px;
    background: white;
    max-width: 400px;
    margin: 0 auto 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.anual-title {
    font-weight: bold;
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #000;
}

@media (max-width: 768px) { 
    .cp-row { flex-direction: column; } 
    .cp-year { text-align: center; margin: 0 0 10px 0; width: 100%; } 
    .cp-btn { width: 100%; justify-content: center; } 
}
.bg-brand-maroon {
    background-color: #7a1c27 !important;
}
.text-brand-maroon {
    color: #7a1c27 !important;
}

/* Banner superior estilo portal */
.portal-banner {
    background: linear-gradient(rgba(122, 28, 39, 0.9), rgba(122, 28, 39, 0.9)), url('fondo-header.jpg');
    background-size: cover;
    background-position: center;
    padding: 50px 20px;
    color: white;
    text-align: center;
    border-bottom: 4px solid #b8860b;
}

/* Títulos con barra lateral característica */
.section-title-bar {
    border-left: 4px solid #7a1c27;
    padding-left: 12px;
    font-weight: bold;
    color: #333;
    margin-bottom: 25px;
}

/* Tarjetas de contenido estilo LGCG */
.lgcg-card-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-top: 3px solid #7a1c27;
    border-radius: 8px;
    padding: 25px;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.lgcg-card-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    border-color: #7a1c27;
}

.lgcg-card-item img.icon-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 15px;
}

.lgcg-card-item .card-title-text {
    font-weight: bold;
    color: #2c3e50;
    font-size: 1.05rem;
    margin-bottom: 15px;
}

/* Botón interno de las tarjetas */
.card-action-btn {
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    color: #7a1c27;
    font-weight: 600;
    font-size: 0.85srem;
    padding: 8px 15px;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.lgcg-card-item:hover .card-action-btn {
    background: #7a1c27;
    color: white;
}
.btn-pnt {
    background-color: #c6a66a; /* Dorado Soconusco */
    color: #4a151f !important; /* Texto oscuro/vino */
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
}
.btn-pnt:hover {
    background-color: #b5955a;
    color: #4a151f !important;
}

/* Botón Vino específico para Infomex */
.btn-infomex {
    background-color: #7a1c27; /* Vino Soconusco */
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
}
.btn-infomex:hover {
    background-color: #5c141c;
    color: #ffffff !important;
}

/* Enlaces del Marco Jurídico */
.juridico-link {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #c6a66a !important; /* Borde izquierdo dorado */
    color: #444;
    text-decoration: none;
    transition: all 0.2s ease;
}
.juridico-link:hover {
    background: #f8f9fa;
    border-left-color: #7a1c27 !important;
    color: #7a1c27;
}
.juridico-link i {
    color: #b0b0b0;
}