/* ESTILOS DEL PANEL PRIVADO */
:root { --lago:#505EF2; --lago-2:#3A45C9; --coral:#F25C5C; --coiron:#F25C5C; --basalto:#333333; --gris:#5E5E5E; --linea:#E6DCDC; --fondo:#F7F2F2; --rojo:#B3261E; --wa:#1DA851; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--fondo); color: var(--basalto); font: 400 16px/1.5 'Montserrat', system-ui, sans-serif; }
a { color: var(--lago); }
:focus-visible { outline: 3px solid var(--coiron); outline-offset: 2px; }
h1, h2 { font-weight: 800; font-family: 'Nunito', system-ui, sans-serif; color: var(--basalto); letter-spacing: -0.01em; line-height: 1.15; }
h1 { font-size: 1.9rem; margin: 0; }
h2 { font-size: 1.15rem; margin: 0 0 4px; }
.a-wrap { width: min(1040px, 100% - 32px); margin-inline: auto; }
.a-main { padding: 32px 0 80px; }

.a-top { background: #fff; color: var(--basalto); border-bottom: 3px solid var(--coral); }
.a-top-in { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; min-height: 60px; padding: 8px 0; }
.a-marca { display: flex; align-items: center; gap: 10px; color: var(--basalto); font-weight: 800; text-decoration: none; font-family: 'Nunito', sans-serif; font-size: 1.05rem; }
.a-marca img { height: 34px; width: auto; }
.a-menu { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.a-menu a { color: var(--basalto); text-decoration: none; padding: 6px 12px; border-radius: 8px; font-weight: 500; }
.a-menu a:hover { background: var(--fondo); color: var(--basalto); }
.a-menu a[aria-current] { background: #FDECEC; color: #C8323A; font-weight: 600; }
.a-user { display: flex; gap: 16px; align-items: center; font-size: .92rem; }
.a-user a, .a-link { color: var(--gris); background: none; border: 0; font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }
.a-user form { margin: 0; }

.a-cab { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.a-btn { display: inline-block; background: var(--lago); color: #fff; border: 0; border-radius: 10px; padding: 11px 18px; font: 600 15px 'Montserrat', sans-serif; text-decoration: none; cursor: pointer; text-align: center; }
.a-btn:hover { background: var(--lago-2); }
.a-btn-wa { background: var(--wa); }
.a-btn-wa:hover { background: #158a42; }
.a-btn-wa-linea { background: #fff; color: #137a3b; box-shadow: inset 0 0 0 2px var(--wa); }
.a-btn-wa-linea:hover { background: #E9F8EF; }
.a-btn-chico { background: #fff; border: 1px solid var(--linea); color: var(--basalto); border-radius: 8px; padding: 7px 12px; font: 500 14px 'Montserrat', sans-serif; cursor: pointer; text-decoration: none; }
.a-btn-chico:hover { border-color: var(--lago); color: var(--lago); }
.a-peligro { color: var(--rojo); }
.a-peligro:hover { border-color: var(--rojo); color: var(--rojo); background: #FDF1F0; }

.a-flash { padding: 12px 16px; border-radius: 10px; margin: 0 0 20px; background: #E3F1E8; color: #1E5631; border: 1px solid #BCDCC7; }
.a-flash p { margin: 0; }
.a-flash-error { background: #FDF1F0; color: var(--rojo); border-color: #F2C9C5; }
.a-ayuda { color: var(--gris); font-size: .93rem; margin: 16px 0; }

.a-lista { display: grid; gap: 12px; }
.a-item { background: #fff; border-radius: 12px; padding: 18px 20px; display: flex; justify-content: space-between; gap: 16px 24px; align-items: center; flex-wrap: wrap; border: 1px solid var(--linea); }
.a-item h2 a { color: inherit; text-decoration: none; }
.a-item h2 a:hover { text-decoration: underline; }
.a-item-pasada { opacity: .65; }
.a-item-info { flex: 1 1 300px; }
.a-meta { color: var(--gris); margin: 0; font-size: .95rem; }
.a-etiquetas { margin: 8px 0 0; display: flex; gap: 6px; flex-wrap: wrap; }
.a-tag { font-size: .8rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: #E8EAFD; color: #3A45C9; }
.a-tag-ok { background: #E3F1E8; color: #1E5631; }
.a-tag-gris { background: #ECEEEE; color: var(--gris); }
.a-tag-alerta { background: #FBF1D6; color: #7A5B00; }
.a-item-acciones { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.a-item-acciones form { margin: 0; }
.a-vacio { background: #fff; border: 1px dashed var(--linea); border-radius: 12px; padding: 32px; text-align: center; }

.a-persona { display: flex; align-items: center; gap: 14px; }
.a-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--linea); display: grid; place-items: center; overflow: hidden; font-weight: 700; color: var(--lago); font-size: 1.3rem; flex-shrink: 0; }
.a-avatar img { width: 100%; height: 100%; object-fit: cover; }

.a-form { display: grid; gap: 18px; background: #fff; border-radius: 12px; padding: 24px; border: 1px solid var(--linea); }
.a-form-ancho { max-width: 760px; }
.a-form fieldset { border: 0; margin: 0; padding: 0 0 8px; display: grid; gap: 18px; }
.a-form legend { font: 700 1.1rem 'Nunito', sans-serif; color: var(--basalto); padding: 0; margin-bottom: 12px; }
.a-form fieldset + fieldset { border-top: 1px solid var(--linea); padding-top: 22px; }
.a-form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.a-form small { font-weight: 400; color: var(--gris); }
.a-req { font-weight: 400; color: var(--gris); font-size: .85rem; }
.a-form input:not([type=checkbox]), .a-form textarea { width: 100%; font: 400 16px 'Montserrat', sans-serif; padding: 10px 12px; border: 1px solid #C3CDCB; border-radius: 8px; background: #fff; color: var(--basalto); }
.a-form input:focus, .a-form textarea:focus { border-color: var(--lago); outline: 2px solid rgba(80,94,242,.2); }
.a-form textarea { resize: vertical; }
.a-fila { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.a-check { display: flex !important; align-items: center; gap: 8px; font-weight: 500 !important; }
.a-check input { width: 18px; height: 18px; accent-color: var(--lago); }
.a-check-grande { background: var(--fondo); padding: 14px; border-radius: 10px; }
.a-actual { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--fondo); padding: 12px; border-radius: 10px; }
.a-actual img { width: 160px; height: 90px; object-fit: cover; border-radius: 6px; }
.a-actual img.a-actual-foto { width: 72px; height: 90px; }
.a-botones { display: flex; gap: 16px; align-items: center; }
.a-dos { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.a-dos h2 { margin-bottom: 4px; }

.a-login { max-width: 400px; margin: 8vh auto 0; }
.a-login h1 { margin-bottom: 6px; }
.a-login-logo { height: 64px; width: auto; margin-bottom: 18px; }
.a-login > p { color: var(--gris); }

@media (max-width: 680px) { .a-fila, .a-dos { grid-template-columns: 1fr; } .a-user { width: 100%; justify-content: space-between; } }
