:root {
  --azul: #2563eb;
  --azul-oscuro: #0f172a;
  --fondo: #f1f5f9;
  --tarjeta: #ffffff;
  --texto: #172033;
  --suave: #64748b;
  --borde: #dbe3ee;
  --verde: #15803d;
  --rojo: #b91c1c;
  --naranja: #b45309;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--fondo);
  color: var(--texto);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.portal-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(
      circle at top left,
      #dbeafe,
      transparent 45%
    ),
    linear-gradient(
      145deg,
      #f8fafc,
      #e2e8f0
    );
}

.login-card {
  width: min(440px, 100%);
  padding: 32px;
  border-radius: 28px;
  background: white;
  box-shadow:
    0 24px 70px
    rgba(15, 23, 42, .16);
}

.marca {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 28px;
}

.marca-logo {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: var(--azul);
  color: white;
  font-weight: 900;
}

.marca h1 {
  margin: 0;
  font-size: 24px;
}

.marca p {
  margin: 4px 0 0;
  color: var(--suave);
}

.campo {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.campo label {
  font-weight: 700;
}

.campo input,
.campo select,
.campo textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--borde);
  border-radius: 13px;
  outline: none;
  background: white;
}

.campo textarea {
  min-height: 110px;
  resize: vertical;
}

.campo input:focus,
.campo select:focus,
.campo textarea:focus {
  border-color: var(--azul);
  box-shadow:
    0 0 0 4px
    rgba(37, 99, 235, .12);
}

.btn-principal {
  width: 100%;
  margin-top: 22px;
  padding: 14px 18px;
  border: 0;
  border-radius: 14px;
  background: var(--azul);
  color: white;
  font-weight: 800;
}

.mensaje {
  min-height: 22px;
  margin-top: 14px;
  color: var(--rojo);
  font-size: 14px;
}

.portal-shell {
  min-height: 100vh;
}

.portal-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  background:
    rgba(15, 23, 42, .96);
  color: white;
  backdrop-filter: blur(14px);
}

.portal-topbar h1 {
  margin: 0;
  font-size: 20px;
}

.portal-topbar p {
  margin: 4px 0 0;
  color: #cbd5e1;
  font-size: 14px;
}

.btn-salir {
  padding: 10px 14px;
  border: 1px solid #475569;
  border-radius: 12px;
  background: transparent;
  color: white;
}

.portal-main {
  width: min(1180px, 100%);
  margin: auto;
  padding: 24px;
}

.bienvenida {
  margin-bottom: 20px;
}

.bienvenida h2 {
  margin: 0;
  font-size: 28px;
}

.bienvenida p {
  margin: 7px 0 0;
  color: var(--suave);
}

.resumen-grid {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.resumen-card,
.panel {
  border: 1px solid var(--borde);
  border-radius: 20px;
  background: var(--tarjeta);
  box-shadow:
    0 10px 25px
    rgba(15, 23, 42, .05);
}

.resumen-card {
  padding: 20px;
}

.resumen-card span {
  color: var(--suave);
  font-size: 14px;
}

.resumen-card strong {
  display: block;
  margin-top: 9px;
  font-size: 26px;
}

.portal-menu {
  display: flex;
  gap: 10px;
  margin: 24px 0 16px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.portal-menu button {
  flex: 0 0 auto;
  padding: 11px 16px;
  border: 1px solid var(--borde);
  border-radius: 999px;
  background: white;
  color: var(--texto);
  font-weight: 700;
}

.portal-menu button.activo {
  border-color: var(--azul);
  background: var(--azul);
  color: white;
}

.panel {
  overflow: hidden;
}

.panel-header {
  padding: 19px 20px;
  border-bottom: 1px solid var(--borde);
}

.panel-header h3 {
  margin: 0;
}

.panel-body {
  padding: 20px;
}

.lista {
  display: grid;
  gap: 12px;
}

.item {
  padding: 16px;
  border: 1px solid var(--borde);
  border-radius: 16px;
  background: #fff;
}

.item-cabecera {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.item h4 {
  margin: 0;
}

.item p {
  margin: 8px 0 0;
  color: var(--suave);
}

.etiqueta {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e2e8f0;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.etiqueta.activo,
.etiqueta.pagada,
.etiqueta.pagado,
.etiqueta.cerrado {
  background: #dcfce7;
  color: var(--verde);
}

.etiqueta.pendiente,
.etiqueta.abierto {
  background: #ffedd5;
  color: var(--naranja);
}

.monto {
  font-size: 20px;
  font-weight: 900;
}

.vacio {
  padding: 30px;
  text-align: center;
  color: var(--suave);
}

.form-ticket {
  display: grid;
  gap: 4px;
  max-width: 660px;
}

.form-ticket .btn-principal {
  width: auto;
  justify-self: start;
}

@media (max-width: 850px) {
  .resumen-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .portal-topbar,
  .portal-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .portal-topbar {
    align-items: center;
  }

  .portal-topbar p {
    display: none;
  }

  .resumen-grid {
    grid-template-columns: 1fr;
  }

  .bienvenida h2 {
    font-size: 23px;
  }

  .login-card {
    padding: 24px;
    border-radius: 22px;
  }
}

/* ============================================================
   EVC PRO ALERTA PORTAL SUSPENDIDO V1
   ============================================================ */

.evc-portal-suspendido-v1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  margin: 0 0 18px;
  padding: 14px 16px;

  border:
    1px solid
    rgba(220, 38, 38, .22);

  border-left:
    4px solid #dc2626;

  border-radius: 16px;

  background:
    #fff7f7;

  box-shadow:
    0 8px 22px
    rgba(127, 29, 29, .05);
}

.evc-portal-suspendido-info-v1 {
  display: flex;
  align-items: center;
  gap: 12px;

  min-width: 0;
}

.evc-portal-suspendido-icon-v1 {
  flex: 0 0 auto;

  width: 34px;
  height: 34px;

  display: grid;
  place-items: center;

  border-radius: 11px;

  background:
    #fee2e2;

  color:
    #b91c1c;

  font-size: 18px;
  font-weight: 900;
}

.evc-portal-suspendido-info-v1 div {
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 3px;
}

.evc-portal-suspendido-info-v1 strong {
  color: #991b1b;
  font-size: 15px;
}

.evc-portal-suspendido-info-v1 span {
  color: #7f1d1d;
  font-size: 13px;
  font-weight: 650;
}

.evc-portal-suspendido-btn-v1 {
  flex: 0 0 auto;

  border: 0;
  border-radius: 11px;

  padding: 10px 14px;

  background: #dc2626;
  color: white;

  font-weight: 800;
  cursor: pointer;
}

.evc-portal-suspendido-btn-v1:hover {
  background: #b91c1c;
}

@media (max-width: 560px) {

  .evc-portal-suspendido-v1 {
    align-items: stretch;
    flex-direction: column;

    padding: 13px;
  }

  .evc-portal-suspendido-btn-v1 {
    width: 100%;
  }
}

/* ============================================================
   FIN EVC PRO ALERTA PORTAL SUSPENDIDO V1
   ============================================================ */


/* ============================================================
   EVC PRO PORTAL PUSH UI V1
   ============================================================ */

.evc-portal-push-v1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  margin: 0 0 18px;
  padding: 14px 16px;

  border: 1px solid #dbe5f2;
  border-radius: 16px;

  background: #ffffff;
}

.evc-portal-push-v1 > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.evc-portal-push-v1 strong {
  font-size: 15px;
  color: #0f172a;
}

.evc-portal-push-v1 span {
  font-size: 13px;
  color: #64748b;
}

.evc-portal-push-v1 button {
  flex: 0 0 auto;

  border: 0;
  border-radius: 11px;

  padding: 10px 15px;

  background: #2563eb;
  color: #ffffff;

  font-weight: 800;
  cursor: pointer;
}

.evc-portal-push-v1 button:disabled {
  opacity: .72;
  cursor: default;
}

@media (max-width: 560px) {

  .evc-portal-push-v1 {
    align-items: stretch;
    flex-direction: column;
  }

  .evc-portal-push-v1 button {
    width: 100%;
  }
}

/* ============================================================
   FIN EVC PRO PORTAL PUSH UI V1
   ============================================================ */


/* ============================================================
   EVC PRO PORTAL - VISTAS EXCLUSIVAS V3
   ============================================================ */

.evc-portal-subvista-v3 {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.evc-portal-subvista-v3 > strong {
  font-size: 20px;
  line-height: 1.2;
}

.evc-portal-volver-v3 {
  appearance: none;
  width: fit-content;
  border: 0;
  border-radius: 12px;
  padding: 11px 15px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  background: #eef4ff;
  color: #1557b0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.evc-portal-volver-v3 span {
  font-size: 19px;
  line-height: 1;
}

/* ============================================================
   FIN VISTAS EXCLUSIVAS V3
   ============================================================ */


/* ==========================================================
   EVC PRO PORTAL FACTURAS PROFESIONAL V1
   ========================================================== */

.evc-portal-factura-v1{
  overflow:hidden;
}

.evc-portal-factura-acciones-v1{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid rgba(100,116,139,.18);
}

.evc-portal-factura-btn-v1{
  flex:1 1 150px;
  min-height:44px;
  padding:10px 16px;
  border:0;
  border-radius:12px;
  background:#1769aa;
  color:#fff;
  font:inherit;
  font-weight:800;
  cursor:pointer;
}

.evc-portal-factura-btn-sec-v1{
  background:#eef4fb;
  color:#1769aa;
  border:1px solid rgba(23,105,170,.20);
}

.evc-portal-factura-btn-v1:active{
  transform:translateY(1px);
}

@media(max-width:600px){

  .evc-portal-factura-acciones-v1{
    display:grid;
    grid-template-columns:1fr 1fr;
  }

  .evc-portal-factura-btn-v1{
    width:100%;
    min-width:0;
    font-size:14px;
  }
}

/* ==========================================================
   FIN EVC PRO PORTAL FACTURAS PROFESIONAL V1
   ========================================================== */

