
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f3f4f6;
    color: #1f2937;
    display: flex;
    justify-content: center;
    align-items: flex-start; 
    min-height: 100vh;
    padding: 20px;
    margin: 0;
    box-sizing: border-box;
}


.contenedor-principal {
    background: white;
    width: 100%;
    max-width: 500px;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

header {
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 15px;
}

header h1 {
    color: #2563EB;
    margin: 0;
    font-size: 2rem;
}

header p {
    color: #6b7280;
    margin-top: 5px;
    font-size: 0.95rem;
}


.tabs {
    display: flex;
    background-color: #f3f4f6;
    padding: 4px;
    border-radius: 8px;
    margin-bottom: 25px;
}


.tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    color: #6b7280;
    border-radius: 6px;
    transition: all 0.2s;
}

.tab-btn.activo {
    background-color: white;
    color: #2563EB;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}


input, select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 15px;
    transition: border-color 0.2s;
}

input:focus, select:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}


fieldset {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #f9fafb;
}

legend {
    font-weight: 600;
    color: #374151;
    padding: 0 5px;
}


.fila-dos {
    display: flex;
    gap: 12px;
}


button[type="submit"], .btn-principal {
    width: 100%;
    padding: 14px;
    background-color: #2563EB;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 10px;
    transition: background-color 0.2s;
}

button[type="submit"]:hover, .btn-principal:hover {
    background-color: #1d4ed8;
}

button:disabled {
    background-color: #93c5fd;
    cursor: not-allowed;
}


#usuario-info {
    background-color: #eff6ff;
    color: #1e40af;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
}


.btn-secundario {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    background-color: white;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.btn-secundario:hover {
    background-color: #fef2f2;
}


.mensaje {
    display: none;
    margin-bottom: 15px;
}

.alerta {
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    margin-bottom: 15px;
}

.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.exito {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}


.tarjeta-envio {
    background: white;
    border: 1px solid #e5e7eb;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid #2563EB;
}

.encabezado-tarjeta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.95rem;
}
.divBotonBorrarEnvio{
    margin-top: 10px; 
    text-align: right;
}
.etiqueta {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: bold;
}

.etiqueta.pendiente {
    background-color: #fef3c7;
    color: #d97706;
}

.etiqueta.completado {
    background-color: #d1fae5;
    color: #059669;
}

.detalle {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 8px;
    border-top: 1px solid #f3f4f6;
    padding-top: 5px;
}


.formulario-oculto {
    display: none;
}

.separador {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 30px 0;
}


.error-texto{
    color: red;
}