@font-face {
    font-family: "Montserrat";
    src: url("/Montserrat/Montserrat-Medium.ttf") format("truetype");
    font-display: swap;
}

:root {
    --upfim-green: #0f5132;
    --upfim-green-light: #198754;
    --upfim-dark: #06192E;
    --upfim-wine: #520f1d;
    --upfim-gold: #b9975b;
    --upfim-bg: #f4f7f6;
    --upfim-card: #ffffff;
    --upfim-text: #263238;
    --upfim-muted: #6c757d;
}

* {
    box-sizing: border-box;
}

body.estadia-body {
    min-height: 100vh;
    margin: 0;
    font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(15, 81, 50, 0.18), transparent 35%),
        linear-gradient(135deg, #06192E 0%, #0f5132 55%, #073b2a 100%);
    color: var(--upfim-text);
}

.estadia-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.estadia-card {
    width: 100%;
    max-width: 520px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 28px;
    padding: 42px 34px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.estadia-logo-box {
    width: 84px;
    height: 84px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5faf8;
    border-radius: 24px;
    box-shadow: inset 0 0 0 1px rgba(15, 81, 50, 0.12);
}

.estadia-logo {
    max-width: 54px;
    max-height: 54px;
}

.estadia-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(15, 81, 50, 0.1);
    color: var(--upfim-green);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.estadia-card h1 {
    margin-bottom: 14px;
    color: var(--upfim-dark);
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 800;
}

.estadia-card p {
    margin: 0 auto 28px;
    max-width: 420px;
    color: var(--upfim-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.btn-upfim {
    padding: 12px 24px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--upfim-green), var(--upfim-green-light));
    border: none;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(15, 81, 50, 0.25);
}

.btn-upfim:hover,
.btn-upfim:focus {
    color: #ffffff;
    background: linear-gradient(135deg, #0b3f27, #146c43);
    transform: translateY(-1px);
}

@media (max-width: 576px) {
    .estadia-card {
        padding: 34px 24px;
        border-radius: 22px;
    }
}
.estadia-page {
    min-height: 100vh;
    background: #f4f7f6;
    font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--upfim-text);
}

.top-gob-navbar {
    background: var(--gob-wine, #520f1d);
    padding: 8px 0;
}

.gob-logo-link img {
    max-width: 100%;
    object-fit: contain;
}

.gob-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.gob-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.88rem;
    opacity: 0.92;
}

.gob-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.estadia-main-navbar {
    border-bottom: 1px solid rgba(6, 25, 46, 0.08);
}

.upfim-logo {
    width: 210px;
    max-width: 100%;
}

.estadia-main-navbar .nav-link {
    color: var(--upfim-dark);
    font-weight: 600;
    padding-left: 14px !important;
    padding-right: 14px !important;
}

.estadia-main-navbar .nav-link:hover {
    color: var(--upfim-green);
}

.estadia-hero {
    padding: 70px 0;
    background:
        radial-gradient(circle at 15% 15%, rgba(255,255,255,0.16), transparent 28%),
        linear-gradient(135deg, #06192E 0%, #0f5132 60%, #073b2a 100%);
    color: #ffffff;
}

.estadia-hero h1 {
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 18px;
}

.estadia-hero p {
    max-width: 720px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.88);
}

.estadia-badge-light {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.login-card,
.info-card,
.contact-card {
    background: #ffffff;
    border-radius: 26px;
    box-shadow: 0 18px 45px rgba(6, 25, 46, 0.12);
    border: 1px solid rgba(6, 25, 46, 0.08);
}

.login-card {
    padding: 30px;
}

.login-card-header {
    margin-bottom: 24px;
}

.login-card-header h2 {
    margin-bottom: 4px;
    color: var(--upfim-dark);
    font-size: 1.55rem;
    font-weight: 900;
}

.login-card-header p {
    margin: 0;
    color: var(--upfim-muted);
}

.form-label {
    color: var(--upfim-dark);
    font-weight: 700;
}

.form-control {
    min-height: 48px;
    border-radius: 14px;
    border-color: #d9e2df;
}

.form-control:focus {
    border-color: var(--upfim-green);
    box-shadow: 0 0 0 0.22rem rgba(15, 81, 50, 0.15);
}

.info-card {
    padding: 30px;
}

.info-card h3,
.contact-card h3 {
    color: var(--upfim-dark);
    font-weight: 900;
    margin-bottom: 14px;
}

.info-card p {
    color: var(--upfim-muted);
    line-height: 1.8;
}

.mini-card {
    height: 100%;
    padding: 20px;
    border-radius: 20px;
    background: #f6faf8;
    border: 1px solid rgba(15, 81, 50, 0.10);
}

.mini-card span {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border-radius: 12px;
    background: rgba(15, 81, 50, 0.12);
    color: var(--upfim-green);
    font-weight: 900;
}

.mini-card strong {
    display: block;
    color: var(--upfim-dark);
    margin-bottom: 6px;
}

.mini-card p {
    margin: 0;
    font-size: 0.9rem;
}

.alert-upfim {
    border: 0;
    border-left: 6px solid var(--upfim-gold);
    border-radius: 18px;
    background: #fff8e8;
    color: #5c430b;
    padding: 20px 22px;
}

.alert-upfim a {
    color: var(--upfim-green);
    font-weight: 800;
}

.contact-card {
    padding: 30px;
    position: sticky;
    top: 22px;
}

.contact-card p {
    color: var(--upfim-muted);
    line-height: 1.7;
}

.contact-card a {
    color: var(--upfim-green);
    font-weight: 800;
    text-decoration: none;
}

.contact-card a:hover {
    text-decoration: underline;
}

.estadia-footer {
    margin-top: 60px;
    padding: 34px 0;
    background: var(--footer-wine, #9C223C);
    color: #ffffff;
}

.footer-logo {
    max-width: 260px;
    width: 100%;
}

.footer-shield {
    width: 82px;
    max-width: 100%;
}

.estadia-footer p {
    font-size: 0.9rem;
    line-height: 1.6;
}

@media (max-width: 991px) {
    .estadia-hero {
        padding: 48px 0;
    }

    .contact-card {
        position: static;
    }
}

@media (max-width: 576px) {
    .login-card,
    .info-card,
    .contact-card {
        padding: 24px;
        border-radius: 22px;
    }

    .upfim-logo {
        width: 170px;
    }
}
/* =========================
   WIZARD (FORMULARIO POR PASOS)
   ========================= */

.wizard-card {
    background: #ffffff;
    border-radius: 26px;
    padding: 34px;
    box-shadow: 0 18px 50px rgba(6, 25, 46, 0.12);
    border: 1px solid rgba(6, 25, 46, 0.08);
}

/* PASOS SUPERIORES */
.wizard-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.wizard-step {
    text-align: center;
    padding: 14px 8px;
    border-radius: 18px;
    background: #f4f7f6;
    color: var(--upfim-muted);
    border: 1px solid #e4ebe8;
    transition: all 0.3s ease;
}

.wizard-step span {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #dfe8e4;
    color: var(--upfim-dark);
    font-weight: 900;
    margin-bottom: 6px;
}

.wizard-step p {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
}

/* ACTIVO */
.wizard-step.active {
    background: rgba(15, 81, 50, 0.12);
    border-color: rgba(15, 81, 50, 0.4);
    color: var(--upfim-green);
}

.wizard-step.active span {
    background: var(--upfim-green);
    color: #ffffff;
}

/* PANE */
.wizard-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.wizard-pane.active {
    display: block;
}

.wizard-pane h3 {
    color: var(--upfim-dark);
    font-weight: 900;
    margin-bottom: 20px;
}

/* SUBTÍTULOS */
.section-subtitle {
    color: var(--upfim-dark);
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 12px;
}

/* BOTONES */
.wizard-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 30px;
}

/* TARJETAS INTERNAS */
.form-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(6, 25, 46, 0.06);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* INPUTS */
.form-label {
    font-weight: 700;
    color: var(--upfim-dark);
}

.form-control,
.form-select {
    border-radius: 12px;
    min-height: 44px;
    border-color: #d9e2df;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--upfim-green);
    box-shadow: 0 0 0 0.2rem rgba(15,81,50,0.15);
}

/* ALERTAS */
.alert-upfim {
    border: 0;
    border-left: 6px solid var(--upfim-gold);
    border-radius: 16px;
    background: #fff8e8;
    color: #5c430b;
    padding: 18px 20px;
}

/* CONFIRMACIÓN FINAL */
.confirmation-box {
    background: #f6faf8;
    border: 1px solid rgba(15, 81, 50, 0.12);
    border-radius: 18px;
    padding: 20px;
}

.confirmation-box p {
    margin-bottom: 8px;
}

/* MENSAJE UPLOAD */
.upload-msg {
    font-size: 0.9rem;
    color: var(--upfim-muted);
}

/* ANIMACIÓN */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 992px) {
    .wizard-steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {

    .wizard-card {
        padding: 22px;
        border-radius: 20px;
    }

    .wizard-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .wizard-actions {
        flex-direction: column-reverse;
    }

    .wizard-actions .btn {
        width: 100%;
    }
}


/* =========================
   AJUSTE: FLUJO DE DOCUMENTOS / SEGUIMIENTO
   Reemplaza cualquier regla previa de .process-strip o .process-item
   ========================= */

.process-strip,
.process-strip.mb-4 {
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: center !important;
    gap: 10px !important;
    margin: 24px 0 34px !important;
    padding: 18px !important;
    background: #ffffff !important;
    border: 1px solid rgba(6, 25, 46, 0.08) !important;
    border-radius: 24px !important;
    box-shadow: 0 14px 38px rgba(6, 25, 46, 0.08) !important;
    overflow-x: auto !important;
}

.process-item {
    position: relative !important;
    width: 92px !important;
    min-width: 92px !important;
    max-width: 92px !important;
    min-height: 92px !important;
    display: flex !important;
    flex: 0 0 92px !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 10px 8px !important;
    background: #f4f7f6 !important;
    border: 2px solid #dfe8e4 !important;
    border-radius: 18px !important;
    text-align: center !important;
    transition: all 0.25s ease !important;
}

.process-item:not(:last-child)::after {
    content: "" !important;
    position: absolute !important;
    top: 32px !important;
    right: -12px !important;
    width: 14px !important;
    height: 3px !important;
    background: #dfe8e4 !important;
    border-radius: 999px !important;
    z-index: 1 !important;
}

.process-item.completed:not(:last-child)::after {
    background: var(--upfim-green) !important;
}

.process-item img,
.process-strip .process-item img {
    display: block !important;
    width: 34px !important;
    max-width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    max-height: 34px !important;
    object-fit: contain !important;
    margin: 0 auto !important;
}

.process-item span {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    color: var(--upfim-muted) !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    line-height: 1.12 !important;
    white-space: normal !important;
}

.process-item.completed {
    background: rgba(15, 81, 50, 0.10) !important;
    border-color: var(--upfim-green) !important;
    box-shadow: 0 10px 24px rgba(15, 81, 50, 0.13) !important;
}

.process-item.completed span {
    color: var(--upfim-green) !important;
}

.process-item:hover {
    transform: translateY(-2px) !important;
}

@media (max-width: 991px) {
    .process-strip,
    .process-strip.mb-4 {
        justify-content: flex-start !important;
        padding: 14px !important;
    }
}

@media (max-width: 576px) {
    .process-item {
        width: 82px !important;
        min-width: 82px !important;
        max-width: 82px !important;
        flex-basis: 82px !important;
        min-height: 84px !important;
    }

    .process-item img,
    .process-strip .process-item img {
        width: 30px !important;
        max-width: 30px !important;
        min-width: 30px !important;
        height: 30px !important;
        max-height: 30px !important;
    }

    .process-item span {
        font-size: 0.62rem !important;
    }
}
