/* Netrix Enlace - Estilos compartidos (tema claro) */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f0f2f5; color: #333; }
a { color: #0891b2; text-decoration: none; }
a:hover { color: #06738f; }
.header { background: #1a1a2e; color: white; padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; }
.header h1 { font-size: 18px; }
.header .user { font-size: 13px; color: #93c5fd; }
.header a { color: #93c5fd; text-decoration: none; font-size: 13px; margin-left: 16px; }
.header a:hover { color: white; }
.nav { background: white; border-bottom: 1px solid #e0e0e0; padding: 12px 24px; display: flex; gap: 24px; flex-wrap: wrap; }
.nav a { color: #555; text-decoration: none; font-size: 14px; font-weight: 500; padding-bottom: 12px; border-bottom: 2px solid transparent; white-space: nowrap; transition: color .15s, border-color .15s; }
.nav a:hover, .nav a.active { color: #1a1a2e; border-bottom-color: #1a1a2e; }
.nav-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ef4444; color: white; font-size: 11px; font-weight: 700; vertical-align: top; margin-left: 4px; }
.container { padding: 24px; max-width: 1200px; margin: 0 auto; }
.card { background: white; border-radius: 10px; padding: 20px; margin-bottom: 20px; box-shadow: 0 2px 12px rgba(0,0,0,.06); transition: transform .15s, box-shadow .15s; }
.card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.card h2 { font-size: 16px; margin-bottom: 16px; color: #1a1a2e; }
.card h3 { font-size: 15px; color: #1a1a2e; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid #f0f2f5; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 768px) { .grid-2 { grid-template-columns: 1fr; } }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
th { text-align: left; padding: 10px 12px; background: #f8f9fa; border-bottom: 2px solid #e0e0e0; color: #555; font-weight: 600; }
td { padding: 10px 12px; border-bottom: 1px solid #eee; }
tr:nth-child(even) { background: #fafbfc; }
tr:hover { background: #f0f4ff; }
@media (max-width: 768px) { .hide-mobile { display: none !important; } td, th { padding: 8px 6px; font-size: 13px; } }
.estado { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.estado-recibido { background: #dbeafe; color: #1e40af; }
.estado-preparando { background: #fef3c7; color: #92400e; }
.estado-listo { background: #dcfce7; color: #166534; }
.estado-entregado { background: #f3f4f6; color: #4b5563; }
.estado-cancelado { background: #fef2f2; color: #991b1b; }
.estado-pendiente { background: #fff7ed; color: #9a3412; }
.estado-confirmada { background: #dbeafe; color: #1e40af; }
.estado-completada { background: #dcfce7; color: #166534; }
.btn { display: inline-block; padding: 8px 20px; background: #1a1a2e; color: white; border: none; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .15s, transform .1s; }
.btn:hover { background: #2d2d4e; }
.btn:active { transform: scale(.97); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-outline { background: white; color: #1a1a2e; border: 2px solid #e0e0e0; transition: background .15s, border-color .15s; }
.btn-outline:hover { background: #f8f9fa; border-color: #1a1a2e; }
.btn-danger { background: #ef4444; color: white; }
.btn-danger:hover { background: #dc2626; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: #333; margin-bottom: 4px; }
.form-group label.required::after { content: ' *'; color: #ef4444; font-weight: 700; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 8px 12px; border: 2px solid #e0e0e0; border-radius: 6px; font-size: 14px; font-family: inherit; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #1a1a2e; }
.form-group .help { font-size: 12px; color: #888; margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.mensaje { background: #dcfce7; color: #166534; padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.mensaje-error { background: #fee2e2; color: #991b1b; }
.empty { text-align: center; padding: 40px 24px; color: #999; }
.empty-icon { font-size: 40px; margin-bottom: 12px; opacity: .6; }
.empty-title { font-size: 15px; font-weight: 600; color: #777; margin-bottom: 4px; }
.empty-sub { font-size: 13px; color: #aaa; margin-bottom: 16px; }
.pagination { display: flex; align-items: center; gap: 8px; margin-top: 16px; justify-content: center; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-block; padding: 6px 12px; border: 1px solid #e0e0e0; border-radius: 4px; font-size: 13px; color: #555; text-decoration: none; }
.pagination a:hover { background: #f0f2f5; }
.pagination .active { background: #1a1a2e; color: white; border-color: #1a1a2e; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; z-index: 100; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease; }
.modal.active { opacity: 1; visibility: visible; }
.modal-content { background: white; border-radius: 10px; padding: 24px; max-width: 500px; width: 90%; max-height: 80vh; overflow-y: auto; }
.stat-card { background: white; border-radius: 10px; padding: 20px; text-align: center; }
.stat-card .num { font-size: 28px; font-weight: 800; }
.stat-card .label { font-size: 12px; margin-top: 4px; opacity: .7; }
.timeline { position: relative; padding: 20px 0; }
.timeline-item { display: flex; align-items: flex-start; gap: 16px; padding: 12px 0; }
.timeline-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; border: 2px solid #e0e0e0; }
.timeline-icon.completed { border-color: #10b981; background: #10b981; color: white; }
.timeline-content { flex: 1; }
.timeline-content h4 { font-size: 14px; margin-bottom: 2px; }
.timeline-content p { font-size: 12px; color: #888; }
code { background: #f0f2f5; padding: 2px 6px; border-radius: 4px; font-size: 13px; }
hr { border: none; border-top: 1px solid #e0e0e0; margin: 16px 0; }
img { max-width: 100%; height: auto; }
@media (max-width: 600px) { body { font-size: 15px; } .container { padding: 12px; } .card { padding: 14px; } .nav { gap: 12px; overflow-x: auto; } }
