:root {
    --portal-yellow: #f5d547;
    --portal-yellow-dark: #d4b82e;
    --portal-navy: #1a2a4a;
}

body {
    background: #f4f6f9;
    color: #222;
}

.portal-nav {
    background: var(--portal-navy);
}

.page-header {
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #dee2e6;
}

.page-header--yellow {
    background: var(--portal-yellow);
    padding: 1rem 1.25rem;
    border-radius: 0.375rem;
    border-bottom: none;
    margin-bottom: 1.25rem;
}

.page-header--yellow h1 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--portal-navy) 0%, #2c3e6b 100%);
    padding: 1rem;
}

.auth-landing {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 920px;
}

.auth-landing--single {
    max-width: 980px;
}

.auth-card {
    background: #fff;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 420px;
    flex: 1 1 320px;
}

.auth-card--wide {
    max-width: 980px;
    flex-basis: 100%;
}

.auth-card h1 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.auth-card .subtitle {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.welcome-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    max-width: 800px;
}

.welcome-card {
    display: block;
    width: 100%;
    text-align: left;
    background: #fff;
    border: 2px solid #dee2e6;
    border-radius: 0.75rem;
    padding: 2rem 1.5rem;
    cursor: pointer;
    transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.welcome-card:hover,
.welcome-card:focus {
    border-color: var(--portal-yellow-dark);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    outline: none;
}

.welcome-card--link {
    text-decoration: none;
    color: inherit;
}

.welcome-card__icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--portal-yellow);
    color: var(--portal-navy);
    font-size: 1.75rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.welcome-card h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.welcome-card p {
    color: #6c757d;
    margin-bottom: 0;
}

.search-panel,
.form-section {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1.25rem;
}

.form-section {
    margin-bottom: 1rem;
}

.section-bar {
    background: #000;
    color: #fff;
    font-weight: bold;
    margin: -1.25rem -1.25rem 1rem;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem 0.5rem 0 0;
}

.section-bar--actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.section-bar--actions .badge {
    margin-left: auto;
    margin-right: 0.5rem;
}

.results-table {
    background: #fff;
    font-size: 0.875rem;
}

.results-table thead {
    background: #e9ecef;
}

.modal-body .form-section {
    margin-bottom: 0;
}

.modal-body .form-section + .form-section {
    margin-top: 1rem;
}

.modal-transferencia {
    max-width: 900px;
    height: calc(100% - 2rem);
    margin: 1rem auto;
}

.modal-transferencia .modal-content {
    max-height: calc(100vh - 2rem);
    overflow: hidden;
}

.modal-transferencia-form {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 2rem);
    overflow: hidden;
}

.modal-transferencia-body {
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    flex: 1 1 auto;
    max-height: calc(100vh - 10rem);
}

.input-group .btn-enviar-link {
    white-space: nowrap;
}

.link-status {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.85rem;
    word-break: break-word;
}

.link-status__url {
    word-break: break-all;
}

.link-status__copy {
    vertical-align: baseline;
    font-size: 0.85rem;
}

.progress {
    background-color: #e9ecef;
}

.seguimiento-estado {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.6rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    background: #fff;
    font-size: 0.8125rem;
    white-space: nowrap;
}

.seguimiento-estado__label {
    font-weight: 600;
}

.seguimiento-dot {
    display: inline-block;
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.seguimiento-dot--negro {
    background-color: #212529;
}

.seguimiento-dot--rojo {
    background-color: #dc3545;
}

.seguimiento-dot--naranja {
    background-color: #fd7e14;
}

.seguimiento-dot--verde {
    background-color: #198754;
}

.seguimiento-dot--gris {
    background-color: #adb5bd;
}

.seguimiento-table td {
    vertical-align: middle;
}

.seguimiento-paso-form {
    min-width: 16rem;
}

.seguimiento-paso-form .input-group {
    flex-wrap: nowrap;
}

.rut-list__row .btn-remove-rut {
    min-width: 2.5rem;
}
