/* =========================================================
   SIGIE.css — Warm Premium + Normativa (ordenado y limpio)
   - Una propiedad por línea
   - Sin duplicados
   - Mantiene tus clases actuales
========================================================= */

/* -----------------------------
   Variables
----------------------------- */
:root{
  --bg:#f7f8ff;
  --surface:#ffffff;
  --surface2:#fbfcff;
  --text:#0b1220;
  --muted:#546174;
  --border:rgba(15,23,42,.10);
  --primary:#2f6bff;
  --primary2:#13c7b7;
  --accent3:#7c3aed;
  --shadow:0 18px 50px rgba(11,18,32,.10);
  --shadow2:0 10px 28px rgba(11,18,32,.08);
  --radius:16px;
}

/* -----------------------------
   Base
----------------------------- */
*{
  box-sizing:border-box;
}

html,
body{
  height:100%;
}

body{
  margin:0;
  font-family:Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:var(--bg);
}

/* Fondo con vida + elegancia */
.bg{
  background:
    radial-gradient(1000px 620px at 16% 10%, rgba(47,107,255,.20), transparent 62%),
    radial-gradient(900px 540px at 78% 18%, rgba(19,199,183,.16), transparent 60%),
    radial-gradient(900px 540px at 56% 96%, rgba(124,58,237,.12), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.82), rgba(247,248,255,1)),
    var(--bg);
}

.container{
  width:min(1300px, 92%);
  margin:0 auto;
}

/* -----------------------------
   Topbar / Header
----------------------------- */
.topbar{
  position:sticky;
  top:0;
  z-index:10;
  background:rgba(249,250,255,.90);
  backdrop-filter:blur(10px);
  border-bottom:1px solid #22B0F2;
}

.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
}

.brand__logo{
  width:38px;
  height:38px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg, rgba(47,107,255,.98), rgba(19,199,183,.92));
  color:#fff;
  font-weight:800;
  box-shadow:0 12px 26px rgba(47,107,255,.22);
}

.brand__name{
  font-size:20px;
  font-weight:800;
  letter-spacing:.3px;
}

.brand__tag{
  font-size:12px;
  color:rgba(84,97,116,.95);
  margin-top:-2px;
}

.nav{
  display:flex;
  gap:8px;
  align-items:center;
}

.nav__link{
  color:var(--muted);
  text-decoration:none;
  font-size:13px;
  padding:8px 10px;
  border-radius:10px;
}

.nav__link:hover{
  color:var(--text);
  background:rgba(15,23,42,.04);
}

/* -----------------------------
   Botones
----------------------------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:6px 10px;
  border-radius:12px;
  border:1px solid #ADA6A6;
  color:var(--text);
  text-decoration:none;
  background:rgba(255,255,255,.86);
  box-shadow:0 1px 0 rgba(11,18,32,.05);
  cursor:pointer;
  transition:transform .14s ease, box-shadow .14s ease, border-color .14s ease, filter .14s ease, background .14s ease;
}

.btn:hover{
  transform:translateY(-1px);
  box-shadow:var(--shadow2);
  border-color:rgba(47,107,255,.18);
  background:rgba(255,255,255,.86);
}

.btn--primary{
  border:0;
  color:#fff;
  font-weight:700;
  background:linear-gradient(135deg, var(--primary), var(--primary2));
  box-shadow:0 18px 40px rgba(47,107,255,.18);
  position:relative;
  overflow:hidden;
  padding:12px 12px;
}

.btn--primary::after{
  content:"";
  position:absolute;
  inset:-40% -60%;
  background:radial-gradient(circle at 30% 30%, rgba(255,255,255,.28), transparent 55%);
  transform:rotate(10deg);
  opacity:.55;
  pointer-events:none;
}

.btn--primary:hover{
  filter:saturate(1.05);
  background:linear-gradient(135deg, var(--primary), var(--primary2));
  color:#fff;
}

.btn--ghost{
  background:transparent;
  box-shadow:none;
}

.btn--ghost:hover{
  background:rgba(15,23,42,.04);
  box-shadow:none;
}

.w100{
  width:100%;
}

/* ✅ Ícono WhatsApp (Font Awesome) */
.btn--wa i{
  font-size:18px;
  color:#25D366;
  line-height:1;
}

/* Header: botón "Iniciar sesión" mismo tamaño que links del menú */
.topbar .btn{
  font-size:13px;
  font-weight:500;
  padding:7px 12px;
}

@media (max-width:520px){
  .btn{
    padding:7px 12px;
  }
}

/* -----------------------------
   Tipografía
----------------------------- */
.h1{
  font-size:44px;
  line-height:1.05;
  letter-spacing:-.8px;
  margin:0 0 12px;
  color:var(--text);
}

.h1::after{
  content:"";
  display:block;
  width:84px;
  height:4px;
  margin-top:14px;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(47,107,255,.95), rgba(19,199,183,.85), rgba(124,58,237,.65));
  opacity:.85;
}

.h2{
  font-size:22px;
  letter-spacing:-.2px;
  margin:0 0 6px;
}

.h3{
  font-size:16px;
  margin:0 0 6px;
}

.p{
  font-size:15px;
  line-height:1.6;
  color:rgba(11,18,32,.78);
  margin:0 0 14px;
  max-width:56ch;
}

.p2{
  font-size:13px;
  line-height:1.55;
  color:rgba(84,97,116,.95);
  margin:0;
}

@media (max-width:520px){
  .h1{
    font-size:36px;
  }
}

/* -----------------------------
   Hero
----------------------------- */
.hero{
  padding:64px 0 22px;
}

.hero__grid{
  display:grid;
  grid-template-columns:1.18fr .82fr;
  gap:18px;
  align-items:stretch;
}

.hero__cta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:14px 0 12px;
}

@media (max-width:900px){
  .hero__grid{
    grid-template-columns:1fr;
  }
}

/* -----------------------------
   Cards (premium)
----------------------------- */
.card{
  background:linear-gradient(180deg, var(--surface), var(--surface2));
  border:1px solid #22B0F2;
  border-radius:var(--radius);
  box-shadow:var(--shadow2);
  position:relative;
  overflow:hidden;
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  padding: 30px;
}

.card::before{
  content:"";
  position:absolute;
  inset:0;
  padding:1px;
  border-radius:inherit;
  background:linear-gradient(135deg, rgba(47,107,255,.20), rgba(19,199,183,.16), rgba(124,58,237,.12));
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;
  mask-composite:exclude;
  pointer-events:none;
  opacity:.9;
}

.card:hover{
  transform:translateY(0px);
  box-shadow:var(--shadow);
}

/* -----------------------------
   Preview (mini dashboard)
----------------------------- */
.preview{
  overflow:hidden;
}

.preview__top{
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-bottom:1px solid var(--border);
  background:rgba(11,18,32,.02);
  position:relative;
}

.preview__top::after{
  content:"";
  position:absolute;
  left:12px;
  right:12px;
  bottom:-1px;
  height:2px;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(47,107,255,.60), rgba(19,199,183,.52), rgba(124,58,237,.40));
  opacity:.75;
}

.dot{
  width:10px;
  height:10px;
  border-radius:999px;
  background:rgba(15,23,42,.12);
}

.preview__title{
  margin-left:8px;
  color:var(--muted);
  font-size:13px;
}

.preview__body{
  padding:14px;
}

.kpi{
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px;
  margin-bottom:10px;
  background:linear-gradient(180deg, rgba(47,107,255,.04), rgba(19,199,183,.03));
}

.kpi__label{
  color:var(--muted);
  font-size:12px;
}

.kpi__value{
  font-size:22px;
  font-weight:700;
  margin-top:4px;
}

.kpi:hover{
  border-color:rgba(47,107,255,.18);
}

.muted{
  color:var(--muted);
  font-size:12px;
  margin-top:6px;
}

/* -----------------------------
   Secciones y grids
----------------------------- */
.section{
  padding:42px 0;
}

.grid{
  display:grid;
  gap:12px;
  grid-template-columns:repeat(4, 1fr);
  margin-top:12px;
}

.grid .card{
  padding:16px;
}

@media (max-width:980px){
  .grid{
    grid-template-columns:repeat(2, 1fr);
  }
}

@media (max-width:520px){
  .grid{
    grid-template-columns:1fr;
  }
}

/* Grid 2 columnas (Normativa) */
.grid--2{
  grid-template-columns:repeat(2, 1fr);
}

@media (max-width:980px){
  .grid--2{
    grid-template-columns:1fr;
  }
}

/* Utilidad para padding en cards específicas */
.pad{
  padding:16px;
}

/* -----------------------------
   Chips (ajustado)
----------------------------- */
.chips{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}

.chip{
  font-size:12px;
  font-weight:600;
  color:rgba(11,18,32,.88);
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(47,107,255,.18);
  background:linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.70));
  box-shadow:0 10px 22px rgba(11,18,32,.06);
}

.chip:hover{
  border-color:rgba(19,199,183,.18);
}

/* -----------------------------
   Contact (tu index lo usa)
----------------------------- */
.contact{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:16px;
}

.contact__actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

@media (max-width:700px){
  .contact{
    flex-direction:column;
    align-items:flex-start;
  }
}

/* -----------------------------
   Footer (✅ centrado)
----------------------------- */
.footer{
  border-top:1px solid var(--border);
  padding:16px 0;
  margin-top:22px;
  background:rgba(255,255,255,.55);
}

.footer__inner{
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
  text-align:center;
}

/* -----------------------------
   Auth / Forms
----------------------------- */
.auth{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:22px;
}

.auth__card{
  width:min(460px, 94%);
  padding:18px;
}

.form{
  margin-top:12px;
  display:grid;
  gap:10px;
}

.label{
  font-size:12px;
  color:var(--muted);
}

.input{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
  color:var(--text);
  outline:none;
  box-shadow:0 1px 0 rgba(15,23,42,.04);
}

.input:focus{
  border-color:rgba(47,107,255,.55);
  box-shadow:0 0 0 4px rgba(47,107,255,.14);
}

.alert{
  margin-top:10px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(239,68,68,.25);
  background:rgba(239,68,68,.08);
  color:rgba(127,29,29,.95);
  font-size:13px;
}

.link{
  color:rgba(47,107,255,.95);
  text-decoration:none;
}

.link:hover{
  text-decoration:underline;
}

/* -----------------------------
   Normativa (Ribbon + Notice)
----------------------------- */
.ribbon{
  border-bottom:1px solid rgba(15,23,42,.10);
  background:linear-gradient(90deg, rgba(47,107,255,.10), rgba(19,199,183,.08), rgba(124,58,237,.06));
}

.ribbon__inner{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  padding:10px 0;
}

.ribbon__pill{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.75);
  border:1px solid rgba(47,107,255,.18);
  color:rgba(11,18,32,.80);
  font-weight:600;
}

.ribbon__text{
  font-size:12.5px;
  color:rgba(11,18,32,.74);
}

.ribbon__link{
  margin-left:auto;
  font-size:12.5px;
  text-decoration:none;
  color:rgba(47,107,255,.95);
  font-weight:600;
}

.ribbon__link:hover{
  text-decoration:underline;
}

.notice{
  margin-top:14px;
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:14px;
  border-radius:16px;
  border:1px solid rgba(47,107,255,.14);
  background:linear-gradient(135deg, rgba(47,107,255,.08), rgba(19,199,183,.06), rgba(255,255,255,.65));
  box-shadow:0 10px 24px rgba(11,18,32,.06);
}

.notice__icon{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:linear-gradient(135deg, rgba(47,107,255,.92), rgba(19,199,183,.88));
  color:#fff;
  box-shadow:0 10px 20px rgba(47,107,255,.18);
  flex:0 0 auto;
}

.notice__title{
  font-weight:700;
  color:rgba(11,18,32,.92);
  margin-bottom:4px;
}

.notice__text{
  color:rgba(11,18,32,.76);
  line-height:1.55;
  font-size:13px;
}

.legal-note{
  margin-top:10px;
  font-size:12px;
  color:rgba(84,97,116,.92);
}

/* Resaltado */
.hl{
  position:relative;
  display:inline-block;
  font-weight:700;
  color:var(--text);
  padding:0 .08em;
  z-index:0;
}

.hl::after{
  content:"";
  position:absolute;
  left:.10em;
  right:.10em;
  bottom:.08em;
  height:.38em;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(47,107,255,.32), rgba(19,199,183,.26), rgba(124,58,237,.22));
  opacity:.45;
  z-index:-1;
}

/* Quitar el highlight detrás del texto SOLO en el H1 */
.h1 .hl::after{
  display:none;
}

/* Preview extras */
.kpi__row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}

.kpi__badge{
  font-size:11px;
  font-weight:600;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.10);
  background:rgba(255,255,255,.70);
  color:rgba(11,18,32,.74);
  line-height:1;
  white-space:nowrap;
}

.kpi__badge--up{
  border-color:rgba(19,199,183,.22);
  background:linear-gradient(180deg, rgba(19,199,183,.14), rgba(255,255,255,.70));
  color:rgba(9,74,68,.95);
}

.kpi__badge--ok{
  border-color:rgba(47,107,255,.20);
  background:linear-gradient(180deg, rgba(47,107,255,.12), rgba(255,255,255,.70));
  color:rgba(10,34,92,.95);
}

.kpi__badge--warn{
  border-color:rgba(124,58,237,.18);
  background:linear-gradient(180deg, rgba(124,58,237,.10), rgba(255,255,255,.70));
  color:rgba(52,20,92,.95);
}

.bar{
  margin-top:10px;
  height:9px;
  border-radius:999px;
  background:rgba(11,18,32,.06);
  overflow:hidden;
  position:relative;
}

.bar__fill{
  display:block;
  height:100%;
  width:var(--p, 60%);
  border-radius:999px;
  background:linear-gradient(90deg, var(--primary), var(--primary2), var(--accent3));
  box-shadow:0 10px 20px rgba(47,107,255,.14);
}

.bar--soft .bar__fill{
  opacity:.70;
  filter:saturate(.95);
}

.spark{
  margin-top:10px;
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(15,23,42,.08);
  background:linear-gradient(180deg, rgba(255,255,255,.70), rgba(255,255,255,.55));
}

.spark__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}

.spark__label{
  font-size:12px;
  font-weight:700;
  color:rgba(11,18,32,.84);
}

.spark__meta{
  font-size:12px;
  color:rgba(84,97,116,.95);
}

.spark__bars{
  display:flex;
  gap:6px;
  align-items:flex-end;
  height:46px;
}

.spark__bars i{
  display:block;
  width:8px;
  height:var(--h, 50%);
  border-radius:999px;
  background:linear-gradient(180deg, rgba(47,107,255,.75), rgba(19,199,183,.55));
  opacity:.95;
}

/* Módulos */
#modulos .container{
  padding:22px;
  border-radius:22px;
  border:1px solid rgba(15,23,42,.08);
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(47,107,255,.10), transparent 60%),
    radial-gradient(850px 380px at 92% 22%, rgba(19,199,183,.09), transparent 58%),
    linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.72));
}

#modulos .grid .card{
  padding:18px;
}

.module-card__head{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:8px;
}

.module-card__icon{
  width:40px;
  height:40px;
  border-radius:14px;
  display:grid;
  place-items:center;
  border:1px solid rgba(47,107,255,.18);
  background:linear-gradient(135deg, rgba(47,107,255,.16), rgba(19,199,183,.12));
  color:rgba(11,18,32,.86);
  box-shadow:0 12px 24px rgba(47,107,255,.10);
  flex:0 0 auto;
}

.module-card__icon svg{
  width:20px;
  height:20px;
}

#modulos .h3{
  margin:0;
  font-weight:700;
  color:rgba(11,18,32,.92);
}

#modulos .p2{
  color:rgba(11,18,32,.72);
}

#modulos .h2{
  margin-bottom:10px;
}

.module-card__icon{
  color:var(--icon, rgba(11,18,32,.86));
  border-color:rgba(47,107,255,.18);
  background:linear-gradient(135deg,
    color-mix(in srgb, var(--icon, #2f6bff) 18%, transparent),
    color-mix(in srgb, var(--icon, #13c7b7) 10%, transparent)
  );
}

.module-card__icon svg{
  stroke:var(--icon, rgba(11,18,32,.86));
}

@supports not (color: color-mix(in srgb, #000 50%, #fff)){
  .module-card__icon{
    background:linear-gradient(135deg, rgba(47,107,255,.16), rgba(19,199,183,.12));
  }
}



/* =========================================
   FIX FONDO (no se repite al hacer scroll)
   - Fondo fijo en una capa detrás (::before)
   - Evita “cortes” o “repetición” en páginas largas
========================================= */

html{
  background: var(--bg);
}

body.bg{
  position: relative;
  background: none !important; /* anulamos el background del body */
}

/* Capa fija que ocupa toda la pantalla */
body.bg::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background:
    radial-gradient(1000px 620px at 16% 10%, rgba(47,107,255,.20), transparent 62%),
    radial-gradient(900px 540px at 78% 18%, rgba(19,199,183,.16), transparent 60%),
    radial-gradient(900px 540px at 56% 96%, rgba(124,58,237,.12), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.82), rgba(247,248,255,1)),
    var(--bg);

  background-repeat: no-repeat;
  background-size: cover;
}

/* (Opcional) iOS a veces sufre con fixed: si ves parpadeos, usa scroll */
@supports (-webkit-touch-callout: none){
  body.bg::before{
    position: absolute;
  }
}



/* =========================================
   Sticky footer SOLO para el panel (app)
========================================= */
.app-shell{
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

.app-shell .app-main{
  flex:1;
}

/* En el panel, no necesitamos margen extra arriba del footer */
.app-shell .footer{
  margin-top:0;
}







/* -----------------------------
   Alerts (variantes)
----------------------------- */
.alert--ok{
  border-color: rgba(34,197,94,.28);
  background: rgba(34,197,94,.10);
  color: rgba(6,95,70,.98);
}

/* -----------------------------
   Owner Dashboard (tiles)
----------------------------- */
.owner{
  width: min(1040px, 100%);
  margin: 0 auto;
}

.owner__hero{
  padding: 18px;
}

.owner__head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.owner__sub{
  margin-top: 6px;
  max-width: 72ch;
}

.owner__actions{
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.owner__action{
  grid-column: span 12;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);

  background: rgba(255,255,255,.72);
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 1px 0 rgba(11,18,32,.05);

  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease, background .14s ease;
}

.owner__action:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow2);
  border-color: rgba(47,107,255,.18);
  background: rgba(255,255,255,.80);
}

.owner__action:focus-visible{
  outline: 2px solid rgba(47,107,255,.45);
  outline-offset: 2px;
}

.owner__icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;

  border: 1px solid rgba(47,107,255,.18);
  background: linear-gradient(135deg, rgba(47,107,255,.14), rgba(19,199,183,.10));
  box-shadow: 0 12px 24px rgba(47,107,255,.10);
  color: rgba(11,18,32,.86);
}

.owner__icon--iiee{
  border-color: rgba(47,107,255,.22);
  background: linear-gradient(135deg, rgba(47,107,255,.18), rgba(255,255,255,.55));
}

.owner__icon--apafa{
  border-color: rgba(245,158,11,.22);
  background: linear-gradient(135deg, rgba(245,158,11,.16), rgba(255,255,255,.55));
}

.owner__icon--director{
  border-color: rgba(34,197,94,.22);
  background: linear-gradient(135deg, rgba(34,197,94,.14), rgba(255,255,255,.55));
}

.owner__body{
  min-width: 0;
}

.owner__title{
  font-size: 15px;
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
}

.owner__desc{
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(84,97,116,.95);
}

.owner__go{
  margin-left: auto;
  opacity: .70;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 2px;
}

@media (min-width: 860px){
  .owner__action{
    grid-column: span 4;
  }
}



/* =========================================
   Tables (panel)
========================================= */
.table-wrap{
  margin-top: 12px;
  overflow: auto;
  border-radius: 16px;
  border: 1px solid #22B0F2;
  background: rgba(255,255,255,.62);
  box-shadow: 0 12px 28px rgba(11,18,32,.06);
}

.table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
}

.table--wide{
  min-width: 980px;
}

.table thead th{
  position: sticky;
  top: 0;
  z-index: 1;
  text-align: left;
  font-size: 12px;
  letter-spacing: .2px;
  color: rgba(84,97,116,.95);
  background: rgba(249,250,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15,23,42,.10);
  padding: 12px 12px;
}

.table tbody td{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(15,23,42,.07);
  vertical-align: top;
  color: rgba(11,18,32,.88);
  background: rgba(255,255,255,.72);
}

.table tbody tr:nth-child(even) td{
  background: rgba(255,255,255,.62);
}

.table tbody tr:hover td{
  background: linear-gradient(90deg, rgba(47,107,255,.06), rgba(19,199,183,.04), rgba(255,255,255,.70));
}

.table tbody tr:last-child td{
  border-bottom: 0;
}

/* Texto auxiliar */
.meta{
  opacity: .75;
  font-weight: 500;
}

/* =========================================
   Pills (status)
========================================= */
.pill{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.70);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.pill--active{
  border-color: rgba(19,199,183,.22);
  background: linear-gradient(180deg, rgba(19,199,183,.14), rgba(255,255,255,.70));
  color: rgba(9,74,68,.95);
}

.pill--inactive{
  border-color: rgba(239,68,68,.22);
  background: linear-gradient(180deg, rgba(239,68,68,.12), rgba(255,255,255,.70));
  color: rgba(127,29,29,.95);
}

.pill--muted{
  border-color: rgba(15,23,42,.10);
  background: rgba(15,23,42,.03);
  color: rgba(84,97,116,.95);
}

/* =========================================
   Actions cell (forms/buttons)
========================================= */
.actions{
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.actions form{
  margin: 0;
}

.input--sm{
  padding: 10px 12px;
  border-radius: 12px;
  min-width: 260px;
}

.btn--sm{
  padding: 7px 12px;
  border-radius: 12px;
  font-size: 13px;
}

/* Alertas (sin inline) */
.alert--ok{
  border-color: rgba(34,197,94,.28);
  background: rgba(34,197,94,.10);
  color: rgba(6,95,70,.98);
}

.alert--err{
  border-color: rgba(239,68,68,.25);
  background: rgba(239,68,68,.08);
  color: rgba(127,29,29,.95);
}

/* Header de página dentro de card */
.page-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.page-head .h2{ margin: 0; }
.page-head .p2{ margin-top: 6px; }

@media (max-width: 720px){
  .actions{
    justify-content: flex-start;
  }
  .input--sm{
    min-width: 220px;
  }
}

