/*
 * Estilos por pagina — mobile-first.
 */

/* === BUSCAR CASILLERO === */
.search-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
}

/* Solo centrar verticalmente si NO hay resultados debajo */
.search-container:only-child {
    min-height: calc(100vh - 56px - 64px - 2rem);
    min-height: calc(100dvh - 56px - 64px - 2rem);
}

.search-title {
    font-size: var(--font-size-2xl);
    font-weight: 900;
    color: var(--navy);
    margin-bottom: var(--spacing-xs);
}

.search-subtitle {
    color: var(--gray-500);
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-xl);
    max-width: 300px;
}

.search-form {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.search-form .btn {
    width: 100%;
}

@media (min-width: 768px) {
    .search-form {
        flex-direction: row;
    }
    .search-form .form-input {
        flex: 1;
    }
    .search-form .btn {
        width: auto;
    }
    .search-title {
        font-size: var(--font-size-3xl);
    }
}

/* === PAQUETES LIST === */
.paquete-count {
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    color: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--radius-xl);
    font-size: var(--font-size-lg);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-md);
    box-shadow: 0 4px 12px rgba(232, 101, 26, 0.3);
}

/* === FIRMA === */
.firma-container {
    max-width: 100%;
}

.firma-canvas-wrapper {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 4px;
    background: var(--white);
    margin-bottom: var(--spacing-md);
    touch-action: none;
}

.firma-canvas {
    width: 100%;
    height: 200px;
    cursor: crosshair;
    touch-action: none;
    border-radius: var(--radius-md);
}

.firma-info {
    margin-bottom: var(--spacing-md);
}

.firma-info p {
    margin-bottom: 4px;
    color: var(--gray-600);
    font-size: var(--font-size-sm);
}

.firma-info strong {
    color: var(--navy);
}

@media (min-width: 768px) {
    .firma-container {
        max-width: 700px;
        margin: 0 auto;
    }
    .firma-canvas {
        height: 250px;
    }
}

/* === CONFIRMACION === */
.confirmacion-container {
    text-align: center;
    padding: var(--spacing-lg) 0;
}

.confirmacion-icon {
    width: 80px;
    height: 80px;
    background: var(--success-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    font-size: 2.5rem;
    color: var(--success);
}

.confirmacion-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    text-align: left;
}

.confirmacion-label {
    color: var(--gray-500);
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.confirmacion-value {
    font-weight: 600;
    font-size: var(--font-size-base);
    margin-top: 2px;
}

/* === LOGIN === */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 56px);
    min-height: calc(100dvh - 56px);
    padding: var(--spacing-lg);
}

.login-card {
    width: 100%;
    max-width: 380px;
}

.login-logo {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.login-logo .navbar-logo {
    font-size: var(--font-size-3xl);
    display: block;
}

/* === HISTORIAL === */
.historial-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.historial-item:active {
    background: var(--gray-50);
}

.historial-numero {
    font-weight: 700;
    color: var(--navy);
}

.historial-cliente {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
}

.historial-right {
    text-align: right;
}

.historial-paquetes {
    font-weight: 700;
    color: var(--orange);
    font-size: var(--font-size-lg);
}

.historial-fecha {
    font-size: var(--font-size-xs);
    color: var(--gray-400);
}
