/* ============================================================
   CSS DE TRÁMITES – GENERAL Y DEPENDENCIAS
   ------------------------------------------------------------
   Usado en:
   - tramites.html (dependencias)
   - tramites-[dependencia].html (trámites)
============================================================ */

/* CONTENEDOR */
section#tramites {
    padding: 2rem 1rem;
    background: white;
    max-width: 1100px;
    margin: 1rem auto;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.15);
    text-align: center;
}

/* TÍTULO */
section#tramites h1 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #001f3f;
    margin-bottom: 1.2rem;
}

/* DESCRIPCIÓN */
section#tramites .descripcion {
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

/* GRID */
.tramites-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
}

/* TARJETA */
.tramite-card {
    background: white;
    border-left: 6px solid #001f3f;
    border-radius: 12px;
    padding: 1.6rem 1.4rem;
    box-shadow: 0 6px 18px rgba(0,0,0,.10);
    transition: transform .25s ease, box-shadow .25s ease;
    text-align: left;
}

/* TARJETA COMO ENLACE (PÁGINA GENERAL) */
.tramite-card.enlace {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.tramite-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(0,0,0,.15);
}

/* HEADER */
.tramite-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tramite-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #001f3f;
}

.tramite-header span {
    font-size: 1.4rem;
    font-weight: bold;
    color: #001f3f;
}

/* DETALLE (SOLO DEPENDENCIAS) */
.tramite-detalle {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    border-top: 1px solid #e6ecf3;
    margin-top: 1rem;
    padding-top: 0;
    transition: all .3s ease;
}

.tramite-card.activo .tramite-detalle {
    max-height: 500px;
    opacity: 1;
    padding-top: 1rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .tramites-grid {
        grid-template-columns: 1fr;
    }
}


