/* ============================================================
   Portal público — Mesa de Partes Virtual
   Reconstrucción del diseño clásico (teal #00A1C9) en Bootstrap 5
   ============================================================ */
:root {
    --portal-teal: #03A9F4;
    --portal-teal-d: #087eb4;
    --portal-blue: #1f6fe5;
    --portal-green: #28a745;
    --portal-gray: #707070;
}

body.portal-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #eef4f7 url('img/fondo_login.jpg') no-repeat center top;
    background-size: cover;
    background-attachment: fixed;
}

/* ---------- Navbar ---------- */
.portal-nav {
    background: var(--portal-teal);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
}

.portal-nav .navbar-brand img {
    height: 52px;
}

.portal-nav .nav-link {
    color: #fff !important;
    font-weight: 600;
}

.portal-nav .nav-link:hover {
    color: #e6f7fd !important;
}

.portal-nav .btn-ingresar {
    background: var(--portal-green);
    border: none;
    color: #fff;
    font-weight: 600;
}

.portal-nav .btn-ingresar:hover {
    background: #218838;
    color: #fff;
}

/* ---------- Footer ---------- */
.portal-footer {
    margin-top: auto;
    background: rgba(19, 19, 19, .78);
    color: #fff;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    padding: .7em 0;
}

/* ---------- Landing (buscador + tarjetas) ---------- */
.portal-hero {
    flex-grow: 1;
    padding: 2rem 0 3rem;
}

.portal-title {
    color: var(--portal-teal);
    font-weight: 800;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    margin-bottom: 1.2rem;
    animation: portalFadeUp .6s ease both;
}

.portal-search-label {
    color: var(--portal-gray);
    font-weight: 700;
    font-size: 1.1rem;
}

.portal-search-input {
    text-align: center;
    letter-spacing: 1px;
    border: 1px solid #cfd8dc;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .05);
}

.portal-search-input:focus {
    border-color: var(--portal-teal);
    box-shadow: 0 0 0 .2rem rgba(0, 161, 201, .2);
}

.portal-btn-consultar {
    background: var(--portal-green);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: .65rem;
    font-size: 1.05rem;
    transition: background .2s, transform .15s;
}

.portal-btn-consultar:hover {
    background: #218838;
    color: #fff;
    transform: translateY(-1px);
}

/* Tarjetas de tipo de trámite */
.portal-cards {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.portal-cards:hover .portal-card {
    opacity: .45;
    filter: saturate(.15);
}

.portal-card {
    display: block;
    text-decoration: none;
    color: var(--portal-gray);
    border: 1px solid #cfd8dc;
    border-radius: 12px;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 3px 10px rgba(0, 0, 0, .08);
    padding: 1.6rem 1rem;
    text-align: center;
    transition: transform .25s, box-shadow .25s, opacity .25s, filter .25s;
    animation: portalFadeUp .6s ease both;
}

.portal-cards:hover .portal-card:hover,
.portal-card:hover {
    opacity: 1 !important;
    filter: none !important;
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 10px 24px rgba(0, 161, 201, .22);
    border-color: var(--portal-teal);
}

.portal-card img {
    width: 150px;
    max-width: 60%;
    margin-bottom: .6rem;
}

.portal-card-title {
    font-weight: 700;
    font-size: 1.15rem;
    color: #4a4a4a;
    margin: 0;
}

/* ---------- Wizard / stepper ---------- */
.portal-form-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .12);
    animation: portalFadeUp .5s ease both;
}

.portal-form-head {
    padding: 1.4rem 1.6rem .6rem;
}

.portal-form-title {
    font-size: 1.5rem;
    color: #37474f;
    font-weight: 700;
    margin: 0;
}

.stepper {
    display: flex;
    align-items: center;
    padding: 1.2rem 1.6rem;
}

.stepper .step {
    display: flex;
    align-items: center;
    color: #9aa5ab;
    font-weight: 700;
}

.stepper .step .bullet {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #cfd8dc;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: .5rem;
    transition: background .3s;
}

.stepper .step.active {
    color: var(--portal-teal);
}

.stepper .step.active .bullet {
    background: var(--portal-teal);
}

.stepper .step.done .bullet {
    background: var(--portal-green);
}

.stepper .line {
    flex: 1;
    height: 3px;
    background: #cfd8dc;
    margin: 0 .8rem;
    border-radius: 2px;
}

.stepper .line.done {
    background: var(--portal-teal);
}

.step-panel {
    display: none;
    animation: portalFadeUp .4s ease both;
}

.step-panel.active {
    display: block;
}

/* Secciones tipo tarjeta (encabezado de color) */
.portal-section {
    border: 1px solid #e3e8ea;
    border-radius: 8px;
    margin: 0 1.6rem 1.4rem;
    overflow: hidden;
}

.portal-section-head {
    background: var(--portal-teal);
    color: #fff;
    font-weight: 700;
    padding: .7rem 1rem;
}

.portal-section-head.blue {
    background: var(--portal-blue);
}

.portal-section-body {
    padding: 1.2rem;
}

.portal-section-sub {
    text-align: center;
    font-weight: 700;
    color: #37474f;
    margin: .4rem 0 1.2rem;
}

/* Inputs con icono a la izquierda (estilo clásico) */
.input-icon {
    display: flex;
}

.input-icon .icon {
    background: #eceff1;
    border: 1px solid #ced4da;
    border-right: none;
    border-radius: .375rem 0 0 .375rem;
    color: #607d8b;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
}

.input-icon .form-control,
.input-icon .form-select {
    border-radius: 0 .375rem .375rem 0;
}

.portal-label {
    font-weight: 700;
    color: #455a64;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .3px;
}

/* Resumen del envío (paso 3) */
.resumen-envio {
    border: 1px solid #cfe8f3;
    border-radius: .5rem;
    background: #f6fbfd;
    overflow: hidden;
}
.resumen-tabla { margin: 0; }
.resumen-tabla th,
.resumen-tabla td {
    padding: .5rem .8rem;
    vertical-align: top;
    border-color: #e3eef3;
    font-size: .9rem;
}
.resumen-tabla th {
    width: 34%;
    text-align: left;
    font-weight: 700;
    color: #37474f;
    background: #eef7fb;
    text-transform: uppercase;
    font-size: .78rem;
    letter-spacing: .2px;
}
.resumen-tabla td { color: #263238; word-break: break-word; }

.portal-actions {
    display: flex;
    justify-content: space-between;
    padding: 0 1.6rem 1.6rem;
}

@keyframes portalFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal horarios */
.portal-modal-head {
    background: var(--portal-teal);
    color: #fff;
}

.portal-modal-head .btn-close {
    filter: invert(1);
}