/* ============================================================
   Portal Clientes Motorman · Kubota — estilos del portal y panel admin.
   Reusa los tokens y botones de portal-base.css.
   ============================================================ */

/* ---------- Material Liquid Glass ----------
   Superficies translúcidas que refractan el fondo (blur + saturate),
   con un borde superior luminoso que simula la luz sobre el vidrio.
   Jerarquía: barra superior y modales = material grueso; tarjetas = medio;
   elementos internos = tinte sin blur (nunca vidrio sobre vidrio). */
:root {
  --glass-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  --glass-border: rgba(255, 255, 255, 0.13);
  --glass-edge: rgba(255, 255, 255, 0.25);
  --glass-radius: 24px;
  --glass-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.65);
}

/* El atributo [hidden] siempre debe ocultar, aunque una clase fije display
   (p. ej. .p-login usa display:grid y sin esto seguiría ocupando espacio). */
[hidden] { display: none !important; }

.portal-body { min-height: 100vh; display: flex; flex-direction: column; }

/* Fondo aurora: color detrás del vidrio para que la translucidez se note */
.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.55;
}
.bg-aurora::before,
.bg-aurora::after {
  content: '';
  position: absolute;
  border-radius: 50%;
}
.bg-aurora::before {
  width: 55vw; height: 55vw;
  top: -18vw; left: -12vw;
  background: radial-gradient(circle, rgba(var(--red-rgb), 0.28), transparent 65%);
}
.bg-aurora::after {
  width: 48vw; height: 48vw;
  bottom: -16vw; right: -10vw;
  background: radial-gradient(circle, rgba(73, 204, 212, 0.22), transparent 65%),
    radial-gradient(circle at 30% 30%, rgba(255, 90, 31, 0.13), transparent 60%);
}

.glass, .p-card, .p-login-card, .a-modal {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-edge), var(--glass-shadow);
}

/* ---------- Selector de idioma ES/EN ---------- */
.p-lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
  background: rgba(18, 26, 40, 0.035);
}
.p-lang-toggle button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.p-lang-toggle button.active { background: var(--red); color: #fff; }
.p-lang-toggle-login {
  position: fixed;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  z-index: 5;
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
}

/* ---------- Login ---------- */
.p-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}
.p-login-card {
  width: min(420px, 100%);
  border-radius: calc(var(--glass-radius) + 4px);
  padding: 2.2rem 2rem;
}
.p-login-back { display: inline-block; color: var(--muted); font-size: 0.85rem; margin-bottom: 1.4rem; transition: color 0.2s; }
.p-login-back:hover { color: var(--text); }
.p-login-logo { height: 42px; margin-bottom: 1.2rem; }
.p-login-card h1 { font-size: 1.7rem; margin-bottom: 0.5rem; }
.p-login-sub { color: var(--muted); font-size: 0.92rem; margin: 0 0 1.4rem; }
.p-login-help { color: var(--muted); font-size: 0.85rem; text-align: center; margin: 1.2rem 0 0; }
.p-login-help a { color: var(--red-2); font-weight: 600; }

.p-field { display: block; margin-bottom: 1rem; }
.p-field span { display: block; font-size: 0.82rem; font-weight: 600; color: var(--muted); margin-bottom: 0.35rem; text-transform: uppercase; letter-spacing: 0.06em; }
.p-field input, .p-field select, .p-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(18, 26, 40, 0.035);
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s, background 0.2s;
}
.p-field input:focus, .p-field select:focus, .p-field textarea:focus {
  outline: none;
  border-color: var(--red-2);
  background: rgba(18, 26, 40, 0.05);
}
.p-field select option { background: var(--panel); color: var(--text); }

/* Mostrar / ocultar clave */
.p-pass-wrap { position: relative; display: block; }
.p-pass-wrap input { padding-right: 3rem; }
.p-pass-toggle {
  position: absolute;
  top: 50%;
  right: 0.45rem;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.p-pass-toggle:hover { color: var(--text); background: rgba(18, 26, 40, 0.06); }
.p-pass-toggle:active { transform: translateY(-50%) scale(0.92); }
.p-pass-toggle .eye-slash { opacity: 0; transition: opacity 0.15s; }
.p-pass-toggle.showing .eye-slash { opacity: 1; }

.p-error {
  color: color-mix(in srgb, var(--red-2) 65%, white);
  background: rgba(var(--red-rgb), 0.1);
  border: 1px solid rgba(var(--red-rgb), 0.35);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  font-size: 0.88rem;
  margin: 0 0 1rem;
}

.p-demo-hint {
  background: rgba(255, 90, 31, 0.08);
  border: 1px solid rgba(255, 90, 31, 0.35);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}
.p-demo-hint code { color: var(--amber); font-weight: 600; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- App bar (estilo móvil) ---------- */
.p-appbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem clamp(0.8rem, 4vw, 2.5rem);
  padding-top: max(0.55rem, env(safe-area-inset-top));
  /* Material estructural: más grueso/opaco que las tarjetas, pero siempre claro */
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.p-appbar-brand { display: inline-flex; align-items: center; }
.p-appbar .brand-img { height: 30px; }

/* Botón hamburguesa (misma animación que el inicio) */
.p-burger {
  width: 44px; height: 44px;
  padding: 0; border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  flex: none;
  z-index: 60;
}
.p-burger span {
  display: block;
  position: absolute;
  left: 11px;
  width: 22px; height: 2px;
  border-radius: 2px;
  background: var(--text);
  top: 21px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.p-burger span:nth-child(1) { transform: translateY(-6px); }
.p-burger span:nth-child(3) { transform: translateY(6px); }
.p-burger.open span:nth-child(1) { transform: rotate(45deg); }
.p-burger.open span:nth-child(2) { opacity: 0; }
.p-burger.open span:nth-child(3) { transform: rotate(-45deg); }

/* Campanita de notificaciones + avatar, agrupados a la derecha */
.p-appbar-right { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; }
.p-bell-btn {
  position: relative;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s var(--ease);
}
.p-bell-btn:hover { background: rgba(255, 255, 255, 0.06); }
.p-bell-btn:active { transform: scale(0.94); }
.p-bell-dot {
  position: absolute;
  top: 4px; right: 4px;
  min-width: 16px; height: 16px;
  padding: 0 3px;
  border-radius: 999px;
  background: var(--red-2);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
}

/* Panel de notificaciones */
.p-notif-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 12, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  z-index: 50;
}
.p-notif-backdrop.show { opacity: 1; }
.p-notif-panel {
  position: fixed;
  top: 0; right: 0;
  height: 100dvh;
  width: min(88vw, 380px);
  z-index: 55;
  display: flex;
  flex-direction: column;
  padding: calc(1rem + env(safe-area-inset-top)) 0 calc(1rem + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.9));
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 60px -20px rgba(18, 26, 40, 0.25);
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  overflow-y: auto;
}
.p-notif-panel.open { transform: translateX(0); }
.p-notif-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.2rem 1.2rem 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.4rem;
}
.p-notif-head h2 { font-size: 1.1rem; }
.p-notif-close {
  width: 34px; height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(18, 26, 40, 0.06);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
}
.p-notif-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
}
.p-notif-item:hover { background: rgba(18, 26, 40, 0.04); }
.p-notif-item.unread { background: rgba(var(--red-rgb), 0.06); }
.p-notif-item .ico { font-size: 1.2rem; flex: none; }
.p-notif-body { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.p-notif-title { font-weight: 700; font-size: 0.94rem; }
.p-notif-item.unread .p-notif-title::before { content: '● '; color: var(--red-2); font-size: 0.6em; }
.p-notif-text { color: var(--muted); font-size: 0.85rem; }
.p-notif-date { color: var(--muted-2); font-size: 0.76rem; margin-top: 0.1rem; }

/* Avatar → perfil (a la derecha) */
.p-avatar-btn {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
  flex: none;
  transition: transform 0.2s var(--ease);
}
.p-avatar-btn:active { transform: scale(0.94); }
.p-profile-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-2));
  color: #fff;
  display: grid;
  place-items: center;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  flex: none;
  box-shadow: 0 4px 14px -4px rgba(var(--red-rgb), 0.6);
}
.p-profile-avatar.lg { width: 52px; height: 52px; font-size: 1.1rem; }

/* ---------- Drawer ---------- */
.p-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 12, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  z-index: 50;
}
.p-drawer-backdrop.show { opacity: 1; }
.p-drawer {
  position: fixed;
  top: 0; left: 0;
  height: 100dvh;
  width: min(84vw, 330px);
  z-index: 55;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: calc(1.4rem + env(safe-area-inset-top)) 1.2rem calc(1.2rem + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.9));
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border-right: 1px solid var(--line);
  box-shadow: 24px 0 60px -20px rgba(18, 26, 40, 0.25);
  transform: translateX(-100%);
  transition: transform 0.35s var(--ease);
  overflow-y: auto;
}
.p-drawer.open { transform: translateX(0); }
.p-drawer-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.4rem 0.4rem 1.1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.6rem;
}
.p-drawer-name { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 1.02rem; }
.p-drawer-sub { color: var(--muted); font-size: 0.82rem; margin-top: 0.1rem; }
.p-drawer-nav { display: flex; flex-direction: column; flex: 1; }
.p-drawer-nav a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 0.6rem;
  border-radius: 12px;
  color: var(--text);
  font-weight: 600;
  font-size: 1.02rem;
  transition: background 0.2s, transform 0.2s var(--ease);
}
.p-drawer-nav a .ico { font-size: 1.15rem; width: 1.5rem; text-align: center; }
.p-drawer-nav a:hover, .p-drawer-nav a:active { background: rgba(18, 26, 40, 0.05); transform: translateX(0.2rem); }
.p-drawer-foot { display: flex; flex-direction: column; gap: 0.55rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.p-drawer-back { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 0.3rem; transition: color 0.2s; }
.p-drawer-back:hover { color: var(--text); }
body.p-menu-open { overflow: hidden; }

/* Control de accesibilidad: tamaño del texto */
.p-drawer-a11y { padding: 0.8rem 0.6rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0.4rem 0; }
.p-drawer-a11y-label { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 0.6rem; }
.p-a11y-steps { display: flex; gap: 0.4rem; }
.p-a11y-steps button {
  flex: 1;
  padding: 0.5rem 0;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.p-a11y-steps button:nth-child(1) { font-size: 0.85rem; }
.p-a11y-steps button:nth-child(2) { font-size: 1.05rem; }
.p-a11y-steps button:nth-child(3) { font-size: 1.25rem; }
.p-a11y-steps button.active { background: var(--red); border-color: var(--red); color: #fff; }

/* Tamaño de texto: escala toda la interfaz (casi todo usa rem) */
html[data-textsize="lg"] { font-size: 112.5%; }
html[data-textsize="xl"] { font-size: 125%; }

/* ---------- Topbar (panel admin) ---------- */
.p-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.p-topbar .brand-img { height: 34px; }
.p-topbar-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  border-left: 1px solid var(--line-strong);
  padding-left: 1rem;
}
.p-topbar-user { margin-left: auto; display: flex; align-items: center; gap: 0.9rem; }
.p-logout { padding: 0.5rem 1.1rem; font-size: 0.85rem; }

.p-demo-banner {
  background: rgba(255, 90, 31, 0.12);
  border-bottom: 1px solid rgba(255, 90, 31, 0.3);
  color: var(--amber);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
}

/* ---------- Layout (mobile-first) ---------- */
.p-main {
  width: min(var(--maxw), 100%);
  margin: 0 auto;
  padding: 1.4rem clamp(0.9rem, 4vw, 2.5rem) 3rem;
  flex: 1;
}
.p-hello h1 { font-size: clamp(1.5rem, 6vw, 2.4rem); }
.p-hello-sub { color: var(--muted); margin: 0.3rem 0 0; font-size: 0.92rem; }

/* ---------- Bienvenida al portal ---------- */
.p-welcome {
  position: relative;
  overflow: hidden;
  margin-top: 1.1rem;
  padding: 1.1rem clamp(1.1rem, 4vw, 1.6rem);
  border-radius: var(--glass-radius);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-edge), var(--glass-shadow);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(var(--red-rgb), 0.1), transparent 60%),
    var(--glass-bg);
}
.p-welcome-eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--red-2);
  margin-bottom: 0.4rem;
}
.p-welcome-text {
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.5;
  max-width: 62ch;
}
.p-welcome-text strong { color: var(--text); }

.p-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.2rem;
}
.p-card {
  border-radius: var(--glass-radius);
  padding: 1.3rem;
  min-width: 0;
  scroll-margin-top: 4.5rem;
}
.p-card-title {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 1rem;
}
.p-card-subtitle { color: var(--muted); font-size: 0.88rem; margin: -0.6rem 0 1rem; }

/* Trío de tarjetas de contacto: ejecutivo, servicio técnico, repuestos */
.p-trio {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  scroll-margin-top: 4.5rem;
}

/* En pantallas anchas: todas las tarjetas del mismo ancho (una sola columna) */
@media (min-width: 880px) {
  .p-main { padding-top: 2.2rem; }
  .p-grid { gap: 1.2rem; margin-top: 1.6rem; }
  .p-card { padding: 1.5rem; }
  .p-trio { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
}

/* ---------- Alerta de mantención ---------- */
.p-alert {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
  padding: 0.9rem 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 90, 31, 0.4);
  background: rgba(255, 90, 31, 0.1);
  font-size: 0.95rem;
}
.p-alert.p-alert-ok { border-color: rgba(37, 211, 102, 0.35); background: rgba(37, 211, 102, 0.08); }
.p-alert .ico { font-size: 1.3rem; }
.p-alert strong { color: var(--text); }
.p-alert .btn { margin-left: auto; padding: 0.5rem 1.1rem; font-size: 0.85rem; }

/* ---------- Tabs de motores ---------- */
.p-machine-switch { margin-top: 1.4rem; }
.p-machine-switch-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  margin-bottom: 0.5rem;
}
.p-machine-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.p-machine-tabs button {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.p-machine-tabs button.active { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- Mi motor: HERO imponente ---------- */
.p-hero-machine { margin-top: 1.2rem; scroll-margin-top: 4.5rem; }
/* Destello breve al cambiar de máquina en "Mis Máquinas", para que se note
   que toda la ficha (specs, repuestos, mantenciones) recién se actualizó. */
#machine-hero.p-flash { animation: machine-flash 0.7s var(--ease); }
@keyframes machine-flash {
  0% { box-shadow: 0 0 0 3px rgba(var(--red-2-rgb), 0.55); }
  100% { box-shadow: 0 0 0 3px rgba(var(--red-2-rgb), 0); }
}
@media (prefers-reduced-motion: reduce) {
  #machine-hero.p-flash { animation: none; }
}
.p-hero {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--glass-radius) + 4px);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-edge), var(--glass-shadow);
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(var(--red-rgb), 0.14), transparent 55%),
    var(--glass-bg);
  isolation: isolate;
}
.p-hero-empty { padding: 2rem 1.4rem; }

/* Imagen de la máquina, grande y sangrada al borde superior */
.p-hero-media {
  position: relative;
  display: grid;
  place-items: center;
  padding: 1.4rem 1rem 0.4rem;
  min-height: 190px;
}
.p-hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 60% at 50% 55%, rgba(var(--red-rgb), 0.18), transparent 70%);
  z-index: -1;
}
.p-hero-media img {
  width: 100%;
  max-width: 560px;
  max-height: 360px;
  object-fit: contain;
  filter: drop-shadow(0 24px 34px rgba(0, 0, 0, 0.55));
}

.p-hero-body { padding: 0.4rem clamp(1.1rem, 5vw, 1.8rem) clamp(1.3rem, 5vw, 1.8rem); }
.p-hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--red-2);
  margin-bottom: 0.35rem;
}
.p-hero-model {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 9vw, 3.2rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.p-hero-model span { color: var(--red-2); }
.p-hero-serial { color: var(--muted); font-size: 0.86rem; margin: 0.5rem 0 0; }

/* Estadísticas grandes (horas / garantía) */
.p-hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin: 1.2rem 0;
}
.p-hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: rgba(18, 26, 40, 0.035);
}
.p-hero-stat .v { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 1.7rem; line-height: 1; }
.p-hero-stat .l { color: var(--muted); font-size: 0.78rem; line-height: 1.25; }
.p-warranty-note { display: block; margin-top: 0.15rem; color: var(--muted-2); font-size: 0.68rem; line-height: 1.3; }
.p-hero-stat.ok { border-color: rgba(37, 211, 102, 0.4); background: rgba(37, 211, 102, 0.08); }
.p-hero-stat.ok .v { color: #34d97b; }
.p-hero-stat.warn { border-color: rgba(255, 90, 31, 0.4); background: rgba(255, 90, 31, 0.08); }
.p-hero-stat.warn .v { color: var(--amber); }

/* Acciones rápidas: grandes, con ícono, pensadas para pulgar y para
   público que no está acostumbrado a interfaces densas. */
.p-hero-actions { display: flex; flex-direction: column; gap: 0.6rem; margin: 1.2rem 0; }
.p-action-btn {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(18, 26, 40, 0.035);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s var(--ease);
}
.p-action-btn .ico { font-size: 1.3rem; flex: none; }
.p-action-btn:hover { background: rgba(var(--red-rgb), 0.1); border-color: rgba(var(--red-rgb), 0.4); }
.p-action-btn:active { transform: scale(0.98); }
@media (min-width: 480px) {
  .p-hero-actions { flex-direction: row; flex-wrap: wrap; }
  .p-action-btn { width: auto; flex: 1 1 auto; justify-content: center; }
}

.p-hours-label { display: block; color: var(--muted); font-size: 0.84rem; margin-bottom: 0.5rem; }

/* Ficha técnica plegable */
.p-hero-specs { margin-top: 1.2rem; border-top: 1px solid var(--line); padding-top: 0.4rem; }
.p-hero-specs > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
}
.p-hero-specs > summary::-webkit-details-marker { display: none; }
.p-hero-specs > summary:hover { color: var(--text); }
.p-hero-specs .caret { color: var(--red-2); transition: transform 0.25s var(--ease); }
.p-hero-specs[open] .caret { transform: rotate(180deg); }
.p-specs { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.p-specs td { padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.p-specs td:first-child { color: var(--muted); padding-right: 1rem; }
.p-specs tr:last-child td { border-bottom: none; }

/* En pantallas anchas: imagen a un lado, datos al otro */
@media (min-width: 720px) {
  .p-hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; }
  .p-hero-media { height: 100%; padding: 1.8rem; min-height: 320px; }
  .p-hero-media img { max-height: 460px; }
  .p-hero-body { padding: 1.8rem 2rem 1.8rem 0.5rem; }
}

/* ---------- Mantenciones ---------- */
.p-maint-group-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  margin: 0 0 0.6rem;
}
.p-maint-group-title:not(:first-child) { margin-top: 1.4rem; }
.p-maint-list { display: flex; flex-direction: column; gap: 0.7rem; }
.p-maint {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(18, 26, 40, 0.02);
}
.p-maint .st {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--muted-2);
  flex: none;
}
.p-maint.done .st { background: #34d97b; }
.p-maint.next .st { background: var(--amber); box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.18); }
.p-maint-info { min-width: 0; }
.p-maint-info h3 { font-size: 0.98rem; font-family: 'Hanken Grotesk', sans-serif; font-weight: 600; }
.p-maint-info p { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.84rem; }
.p-maint-meta { margin-left: auto; text-align: right; color: var(--muted); font-size: 0.82rem; white-space: nowrap; }
.p-maint.done .p-maint-meta { color: #34d97b; }
.p-maint .btn { margin-left: 1rem; padding: 0.45rem 1rem; font-size: 0.82rem; white-space: nowrap; }
@media (max-width: 620px) {
  .p-maint { flex-wrap: wrap; }
  .p-maint-meta { margin-left: 1.7rem; text-align: left; width: 100%; }
  .p-maint .btn { margin-left: 1.7rem; }
}

/* ---------- Documentos ---------- */
.p-docs { display: flex; flex-direction: column; gap: 0.6rem; }
.p-doc {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.2s, background 0.2s;
}
.p-doc:hover { border-color: var(--line-strong); background: rgba(18, 26, 40, 0.03); }
.p-doc .ico { font-size: 1.2rem; }
.p-doc-name { font-size: 0.92rem; font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-doc-date { margin-left: auto; color: var(--muted-2); font-size: 0.78rem; white-space: nowrap; }
.p-doc .btn { padding: 0.4rem 0.9rem; font-size: 0.8rem; flex: none; }

/* ---------- Repuestos recurrentes ---------- */
.p-discount {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(37, 211, 102, 0.35);
  background: rgba(37, 211, 102, 0.07);
  font-size: 0.9rem;
}
.p-discount-code {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px dashed rgba(37, 211, 102, 0.55);
  border-radius: 10px;
  background: rgba(37, 211, 102, 0.12);
  color: #34d97b;
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s;
}
.p-discount-code:hover { background: rgba(37, 211, 102, 0.2); }
.p-parts-model { margin: 0 0 1.2rem; }
.p-parts-model .p-machine-tabs button .ico { margin-right: 0.3rem; }
.p-parts-cats { margin-bottom: 1rem; }
.p-parts-grid { display: grid; grid-template-columns: 1fr; gap: 0.9rem; }
.p-part {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  background: rgba(18, 26, 40, 0.02);
  transition: border-color 0.2s, background 0.2s, transform 0.15s var(--ease);
}
.p-part:hover { border-color: var(--line-strong); background: rgba(18, 26, 40, 0.04); transform: translateY(-2px); }
.p-part-img {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  background: rgba(18, 26, 40, 0.035);
  margin-bottom: 0.7rem;
  overflow: hidden;
  padding: 0.4rem;
}
.p-part-img img { width: 100%; height: 100%; object-fit: contain; }
.p-part-img .ico { font-size: 2rem; opacity: 0.5; }
.p-part-fit {
  align-self: flex-start;
  margin-bottom: 0.35rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(18, 26, 40, 0.06);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.p-part-name { font-weight: 700; font-size: 0.96rem; }
.p-part-desc { color: var(--muted); font-size: 0.83rem; margin-top: 0.25rem; }
.p-part-cta { margin-top: 0.7rem; color: var(--red-2); font-weight: 700; font-size: 0.85rem; }

.p-parts-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.3rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.p-parts-pager .btn { padding: 0.45rem 1rem; font-size: 0.82rem; }
.p-parts-pager .btn:disabled { opacity: 0.4; cursor: default; }
@media (min-width: 620px) { .p-parts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .p-parts-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Kubota Academia (videos) ---------- */
.p-academy-grid { display: grid; grid-template-columns: 1fr; gap: 0.9rem; }
@media (min-width: 620px) { .p-academy-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .p-academy-grid { grid-template-columns: repeat(3, 1fr); } }
.p-academy-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  background: rgba(18, 26, 40, 0.02);
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s var(--ease);
}
.p-academy-card:not(:disabled):hover { border-color: var(--line-strong); background: rgba(18, 26, 40, 0.04); transform: translateY(-2px); }
.p-academy-card:disabled { cursor: default; opacity: 0.7; }
.p-academy-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(18, 26, 40, 0.06);
  display: grid;
  place-items: center;
}
.p-academy-thumb img { width: 100%; height: 100%; object-fit: cover; }
.p-academy-thumb .ico { font-size: 2rem; opacity: 0.5; }
.p-academy-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.28);
  transition: background 0.2s;
}
.p-academy-play::before {
  content: '';
  position: absolute;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: rgba(20, 22, 28, 0.55);
}
.p-academy-play { text-indent: 0.15em; } /* centra visualmente el triángulo ▶ dentro del círculo */
.p-academy-card:not(:disabled):hover .p-academy-play { background: rgba(0, 0, 0, 0.42); }
.p-academy-title { font-weight: 700; font-size: 0.96rem; padding: 0.8rem 0.9rem 0; }
.p-academy-desc { color: var(--muted); font-size: 0.83rem; padding: 0.25rem 0.9rem 0.9rem; }
.p-academy-badge {
  align-self: flex-start;
  margin: 0 0.9rem 0.9rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: rgba(228, 21, 28, 0.1);
  color: var(--red-2);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.p-academy-course {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.p-academy-course p { margin: 0; color: var(--muted); font-size: 0.9rem; max-width: 40ch; }
.p-academy-course .btn { flex: none; }

/* Modal de reproducción de video */
.p-video-modal { max-width: 640px; width: 100%; position: relative; }
.p-video-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: none;
  background: rgba(18, 26, 40, 0.08);
  color: inherit;
  font-size: 1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.p-video-close:hover { background: rgba(18, 26, 40, 0.16); }
.p-video-frame { width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; margin-top: 0.5rem; background: #000; }
.p-video-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Trío de contacto: ejecutivo, servicio técnico, repuestos ---------- */
/* Misma estructura para las 3 tarjetas: imagen centrada arriba, nombre, rol/descripción y acción.
   El .p-card se vuelve columna flex para que las 3 tarjetas (de distinto largo de texto)
   terminen con el botón alineado abajo, a la misma altura. */
.p-trio > .p-card { display: flex; flex-direction: column; }
.p-contact-body { display: flex; flex-direction: column; flex: 1; }
.p-contact-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.35rem; flex: 1; }
.p-contact-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-2));
  display: grid; place-items: center;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
  flex: none;
  overflow: hidden;
  margin-bottom: 0.3rem;
}
.p-contact-avatar img { width: 100%; height: 100%; object-fit: cover; }
.p-contact-avatar.logo { background: #fff; border: 1px solid var(--line); padding: 12px; box-sizing: border-box; }
.p-contact-avatar.logo img { width: 100%; height: 100%; object-fit: contain; }
.p-contact-name { font-weight: 700; font-size: 1.05rem; }
.p-contact-role { color: var(--muted); font-size: 0.84rem; max-width: 24ch; }
.p-contact-actions { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; width: 100%; margin-top: auto; padding-top: 0.9rem; }
.p-contact-actions .btn { justify-content: center; width: 100%; }
.btn-wa {
  background: #25d366;
  color: #06281a;
  font-weight: 700;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.btn-wa .wa-ico { flex: none; }

/* ---------- Promociones ---------- */
.p-promos { display: flex; flex-direction: column; gap: 0.8rem; }
.p-promo {
  border: 1px solid rgba(var(--red-rgb), 0.35);
  background: linear-gradient(135deg, rgba(var(--red-rgb), 0.1), transparent 60%);
  border-radius: 14px;
  padding: 1rem 1.2rem;
}
.p-promo h3 { font-size: 1.02rem; font-family: 'Hanken Grotesk', sans-serif; font-weight: 700; }
.p-promo p { margin: 0.3rem 0 0; color: var(--muted); font-size: 0.88rem; }
.p-promo-valid { display: inline-block; margin-top: 0.55rem; font-size: 0.76rem; font-weight: 600; color: var(--red-2); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Consejos ---------- */
.p-tips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.p-tip {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  background: rgba(18, 26, 40, 0.02);
}
.p-tip h3 { font-size: 0.95rem; font-family: 'Hanken Grotesk', sans-serif; font-weight: 600; }
.p-tip p { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.86rem; }
@media (max-width: 700px) { .p-tips { grid-template-columns: 1fr; } }

.p-empty { color: var(--muted-2); font-size: 0.9rem; padding: 0.4rem 0; }

/* ---------- Footer ---------- */
.p-footer {
  border-top: 1px solid var(--line);
  padding: 1.2rem clamp(1rem, 4vw, 2.5rem);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted-2);
  font-size: 0.82rem;
}
.p-footer a { color: var(--muted); }
.p-footer a:hover { color: var(--text); }

/* ============================================================
   Panel admin
   ============================================================ */
.a-layout { display: flex; flex: 1; min-height: 0; }
.a-nav {
  width: 220px;
  flex: none;
  border-right: 1px solid var(--line);
  padding: 1.2rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  /* Región estructural: más opaca que las tarjetas, siempre clara */
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
}
.a-nav button {
  text-align: left;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.a-nav button:hover { color: var(--text); background: rgba(18, 26, 40, 0.045); }
.a-nav button.active { background: rgba(var(--red-rgb), 0.14); color: var(--red-2); }
.a-content { flex: 1; padding: 1.8rem clamp(1rem, 3vw, 2.2rem); min-width: 0; overflow-x: auto; }
.a-content h1 { font-size: 1.5rem; margin-bottom: 1.2rem; }

@media (max-width: 820px) {
  .a-layout { flex-direction: column; }
  .a-nav { width: 100%; flex-direction: row; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--line); }
  .a-nav button { white-space: nowrap; }
}

.a-toolbar { display: flex; gap: 0.7rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.1rem; }
.a-toolbar .btn { padding: 0.55rem 1.2rem; font-size: 0.88rem; }
.a-toolbar select {
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--text);
  font: inherit;
}

.a-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.a-table th {
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  padding: 0.5rem 0.7rem;
  border-bottom: 1px solid var(--line-strong);
}
.a-table td { padding: 0.65rem 0.7rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.a-table .btn { padding: 0.35rem 0.8rem; font-size: 0.78rem; margin-right: 0.3rem; }
.a-table .muted { color: var(--muted-2); font-size: 0.82rem; }

/* Modal simple */
.a-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(5, 7, 10, 0.7);
  backdrop-filter: blur(4px);
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1rem;
  overflow-y: auto;
}
.a-modal {
  width: min(520px, 100%);
  /* Material más grueso/opaco que las tarjetas: capa modal sobre scrim, siempre claro */
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.92));
  border-radius: calc(var(--glass-radius) + 4px);
  padding: 1.6rem;
  max-height: 90vh;
  overflow-y: auto;
  /* Se materializa: blur + escala juntos, no un simple fade */
  animation: glass-in 0.3s var(--ease);
}
@keyframes glass-in {
  from { opacity: 0; transform: scale(0.96); filter: blur(6px); }
  to { opacity: 1; transform: scale(1); filter: blur(0); }
}
.a-modal h2 { font-size: 1.2rem; margin-bottom: 1.2rem; }
.a-modal-actions { display: flex; gap: 0.7rem; justify-content: flex-end; margin-top: 1.2rem; }
.a-modal-actions .btn { padding: 0.55rem 1.3rem; font-size: 0.88rem; }
.a-checkbox-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.a-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  user-select: none;
}
.a-checkbox input { width: auto; margin: 0; }
.a-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 560px) { .a-form-row { grid-template-columns: 1fr; } }
.a-modal-hint { color: var(--muted); font-size: 0.82rem; line-height: 1.4; margin: -0.4rem 0 0.9rem; }

/* Toast */
.a-toast {
  position: fixed;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 12px 32px -12px rgba(18, 26, 40, 0.35);
  color: var(--text);
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-size: 0.9rem;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
  pointer-events: none;
  max-width: min(90vw, 480px);
}
.a-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.a-toast.err { border-color: rgba(var(--red-rgb), 0.5); color: color-mix(in srgb, var(--red) 85%, black); }

@media (prefers-reduced-motion: reduce) {
  .a-toast { transition: opacity 0.22s var(--ease); transform: translateX(-50%); }
  .a-toast.show { transform: translateX(-50%); }
  .a-modal { animation: none; }
}

/* ============================================================
   Fallbacks de accesibilidad del material Liquid Glass
   ============================================================ */

/* Menos transparencia: superficies escarchadas → sólidas */
@media (prefers-reduced-transparency: reduce) {
  .glass, .p-card, .p-login-card, .a-modal, .p-topbar, .p-appbar, .p-drawer, .p-notif-panel, .a-nav, .a-toast {
    background: var(--panel);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .bg-aurora { display: none; }
}

/* Más contraste: fondos casi sólidos con borde definido */
@media (prefers-contrast: more) {
  .glass, .p-card, .p-login-card, .a-modal, .p-topbar, .p-appbar, .p-drawer, .p-notif-panel, .a-nav, .a-toast {
    background: var(--panel);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-color: var(--line-strong);
  }
}

/* Navegadores sin backdrop-filter: panel sólido equivalente */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .p-card, .p-login-card, .a-modal, .p-topbar, .p-appbar, .p-drawer, .p-notif-panel, .a-nav, .a-toast {
    background: linear-gradient(180deg, var(--panel), var(--panel-2));
  }
}
