/* ==========================================================================
   HOJA DE ESTILOS CENTRAL - PORTAL MOVILIDAD BOGOTÁ (DISEÑO PROFESIONAL)
   ========================================================================== */

:root {
    --primary-color: #002f6c;    /* Azul institucional / Informativo serio */
    --accent-color: #e63946;     /* Rojo Alerta para restricciones y Pico y Placa */
    --success-color: #2a9d8f;    /* Verde para estados conformes y éxitos */
    --dark-color: #1d3557;       /* Azul oscuro para títulos de texto */
    --light-bg: #f8f9fa;         /* Fondo gris claro limpio */
    --white: #ffffff;
    --gray-text: #6c757d;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-color);
    line-height: 1.6;
}

/* --- Navegación Principal (Header) --- */
header {
    background-color: var(--white);
    border-bottom: 3px solid var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-text span {
    color: var(--accent-color);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
    padding: 5px 10px;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.btn-alert {
    background-color: var(--accent-color);
    color: var(--white) !important;
    border-radius: 4px;
    padding: 8px 16px !important;
    border-bottom: none !important;
}

.btn-alert:hover {
    background-color: #b71c1c;
}

/* --- Contenedor y Estructura Común --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
}

.section-desc {
    color: var(--gray-text);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* --- Grillas Informativas (Inicio y Actualidad) --- */
.grid-noticias {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.card-noticia {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid #eef2f5;
    transition: transform 0.3s ease;
}

.card-noticia:hover {
    transform: translateY(-5px);
}

.card-body {
    padding: 20px;
}

.card-body h2 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.badge-tag {
    display: inline-block;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 10px;
    background-color: #e1ecf4;
    color: var(--primary-color);
}

.badge-tag.alerta {
    background-color: #ffe3e3;
    color: var(--accent-color);
}

/* --- Cajas de Trámites y Formularios (Trámites y Contacto) --- */
.box-tramite {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-left: 5px solid var(--primary-color);
}

.box-tramite h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 47, 108, 0.2);
}

.btn-action {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-action:hover {
    background-color: #001f4d;
}

/* --- Pie de Página Técnico (Footer Global) --- */
footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 20px 20px;
    margin-top: 60px;
    font-size: 0.9rem;
}

.footer-content {
    max-width: 1200px;
    margin: 20px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-section p {
    line-height: 1.5;
}

.footer-section a {
    color: #94a3b8;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    max-width: 1200px;
    margin: 20px auto 0;
    padding-top: 20px;
    border-top: 1px solid #334155;
    color: #64748b;
    font-size: 0.8rem;
}

/* --- Adaptación a Celulares --- */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .section-title {
        font-size: 1.8rem;
    }
}
