/* SURADA · estilos de "Mi cuenta" y del panel de administración (mismos colores que la portada) */
:root {
  --fondo: #141416; --fondo-2: #1c1c1f; --tarjeta: #222226; --borde: #2e2e33;
  --texto: #f4f4f5; --texto-2: #a1a1aa; --marca: #f25c05; --marca-2: #ff7a2e;
  --ok: #22c55e; --aviso: #f59e0b; --mal: #ef4444; --radio: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--fondo); color: var(--texto); font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.55; min-height: 100vh; }
a { color: var(--marca-2); text-decoration: none; }
a:hover { text-decoration: underline; }
.contenedor { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.barra { position: sticky; top: 0; z-index: 10; background: rgba(20, 20, 22, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--borde); }
.barra .contenedor { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--texto); }
.logo:hover { text-decoration: none; }
.logo img { width: 30px; height: 30px; }
.logo span { color: var(--marca); }
.barra .der { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--texto-2); min-width: 0; }
.barra .der .correo { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
main { padding: 36px 0 70px; }
h1 { font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 800; margin-bottom: 6px; }
h2 { font-size: 1.15rem; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.sub { color: var(--texto-2); margin-bottom: 28px; }
.tarjeta { background: var(--tarjeta); border: 1px solid var(--borde); border-radius: var(--radio); padding: 24px; margin-bottom: 20px; }
.estrecha { max-width: 440px; margin: 30px auto; }
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--marca); color: #fff; font: inherit; font-weight: 700; padding: 11px 20px; border-radius: 10px; border: 0; cursor: pointer; transition: background .2s; }
.boton:hover { background: var(--marca-2); text-decoration: none; }
.boton:disabled { opacity: .55; cursor: wait; }
.boton.sec { background: transparent; border: 1px solid var(--borde); color: var(--texto); }
.boton.sec:hover { border-color: var(--marca); }
.boton.chico { padding: 6px 12px; font-size: .85rem; border-radius: 8px; }
.boton.peligro { background: transparent; border: 1px solid #7f1d1d; color: #fca5a5; }
.boton.bloque { width: 100%; }
.fila { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.fila.fin { justify-content: flex-end; }
form label, .campo { display: block; font-size: .88rem; color: var(--texto-2); margin-bottom: 14px; }
input, select, textarea { display: block; width: 100%; margin-top: 6px; background: var(--fondo-2); border: 1px solid var(--borde); color: var(--texto); font: inherit; padding: 11px 12px; border-radius: 9px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--marca); border-color: transparent; }
.rejilla2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }
.pestanas { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.pestanas button { background: var(--tarjeta); border: 1px solid var(--borde); color: var(--texto-2); font: inherit; font-weight: 600; padding: 9px 16px; border-radius: 9px; cursor: pointer; }
.pestanas button.activa { background: var(--marca); border-color: var(--marca); color: #fff; }
.tabla-env { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th { text-align: left; color: var(--texto-2); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .4px; padding: 8px 10px; border-bottom: 1px solid var(--borde); white-space: nowrap; }
td { padding: 10px; border-bottom: 1px solid var(--borde); vertical-align: middle; }
td.der, th.der { text-align: right; white-space: nowrap; }
.etq { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.etq.ok { background: rgba(34, 197, 94, .15); color: #86efac; }
.etq.aviso { background: rgba(245, 158, 11, .15); color: #fcd34d; }
.etq.mal { background: rgba(239, 68, 68, .15); color: #fca5a5; }
.etq.gris { background: #2e2e33; color: var(--texto-2); }
.vacio { color: var(--texto-2); padding: 8px 0; }
.nota { color: var(--texto-2); font-size: .86rem; }
.aviso-caja { background: rgba(242, 92, 5, .1); border: 1px solid rgba(242, 92, 5, .4); border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; font-size: .92rem; }
.codigo { font-family: Consolas, monospace; font-size: .78rem; word-break: break-all; background: var(--fondo-2); border: 1px solid var(--borde); border-radius: 8px; padding: 8px 10px; color: var(--texto-2); max-height: 64px; overflow: hidden; }
.local { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 0; border-bottom: 1px solid var(--borde); }
.local:last-child { border-bottom: 0; }
.local b { font-size: 1.05rem; }
.local .meta { color: var(--texto-2); font-size: .88rem; }
.toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 100; width: min(92vw, 460px); }
.toast { background: #2a2a30; border: 1px solid var(--borde); border-left: 4px solid var(--marca); padding: 11px 14px; border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); font-size: .92rem; }
.toast.ok { border-left-color: var(--ok); }
.toast.error { border-left-color: var(--mal); }
dialog { margin: auto; background: var(--tarjeta); color: var(--texto); border: 1px solid var(--borde); border-radius: var(--radio); padding: 24px; width: min(94vw, 520px); }
dialog::backdrop { background: rgba(0, 0, 0, .6); }
dialog h2 { margin-bottom: 16px; }
.oculto { display: none !important; }
@media (max-width: 640px) { .barra .der .correo { display: none; } .tarjeta { padding: 18px; } }
