/* MascotBook · panel Contenido (view-mascot) — design system
   Carga después de admin-elite.css. No afecta EliteCard. */

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Montserrat:wght@400;500;600;700;800&family=DM+Mono:wght@400;500&display=swap");

body.admin-view-mascot,
body.admin-view-mascot .admin-root.view-mascot {
  --mascot-primary: #7c5cbf;
  --mascot-primary-light: #ede8f9;
  --mascot-accent: #f97316;
  --mascot-neutral-50: #fafafa;
  --mascot-neutral-100: #f4f4f5;
  --mascot-neutral-200: #e4e4e7;
  --mascot-neutral-700: #3f3f46;
  --mascot-neutral-900: #18181b;
  --mascot-success: #16a34a;
  --mascot-danger: #dc2626;
}

body.admin-view-mascot {
  font-family: "Montserrat", system-ui, -apple-system, sans-serif;
  color: #2d3436;
}

body.admin-view-mascot .visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* —— Header (solo MascotBook) —— */
body.admin-view-mascot .admin-header {
  background: #fff !important;
  border-bottom: 1px solid var(--mascot-neutral-200) !important;
  min-height: 56px;
  box-shadow: none !important;
}

body.admin-view-mascot .admin-header-grid {
  min-height: 56px;
  align-items: center;
}

/* —— Shell layout —— */
body.admin-view-mascot .admin-root.view-mascot .sidebar {
  background: #fff !important;
  border-right: 1px solid var(--mascot-neutral-200) !important;
}

body.admin-view-mascot .admin-root.view-mascot .sidebar .nav-tab {
  border-radius: 10px !important;
  color: var(--mascot-neutral-700) !important;
  background: transparent !important;
  border: none !important;
  font-weight: 500 !important;
}

body.admin-view-mascot .admin-root.view-mascot .sidebar .nav-tab:hover {
  background: var(--mascot-neutral-100) !important;
}

body.admin-view-mascot .admin-root.view-mascot .sidebar .nav-tab.active {
  background: var(--mascot-primary-light) !important;
  color: var(--mascot-primary) !important;
  font-weight: 600 !important;
}

body.admin-view-mascot .admin-root.view-mascot .main {
  background: #ffffff !important;
  padding: 32px 16px !important;
  overflow-x: hidden;
}

@media (max-width: 640px) {
  body.admin-view-mascot .admin-root.view-mascot .main {
    padding: 16px 12px !important;
  }
}

body.admin-view-mascot .admin-root.view-mascot #panel-contenido {
  background: #ffffff !important;
  overflow-x: hidden;
}

body.admin-view-mascot,
body.admin-view-mascot .admin-root.view-mascot {
  overflow-x: hidden;
  max-width: 100%;
}

/* Contenedor simétrico: Cielo + Crear Perfil */
body.admin-view-mascot .admin-root.view-mascot .mb-profile-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  width: 100%;
  max-width: 100%;
}

/* FAB MascotBook → píldora “Crear Perfil” */
body.admin-view-mascot .admin-root.view-mascot #ec-sidebar-btn-nueva-mascota.ec-sidebar-mis-perfiles__new {
  /* anula el FAB fixed de admin-elite.css */
  position: static !important;
  inset: auto !important;
  right: auto !important;
  bottom: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.45rem !important;
  padding: 0.58rem 0.85rem 0.62rem !important;
  border-radius: 0.75rem !important;
  background: #9b30ff !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  transition: transform 0.2s ease !important;
  width: 100% !important;
  height: auto !important;
  width: 100% !important;
  min-height: 2.9rem !important;
  box-sizing: border-box !important;
  font-size: 0.85rem !important;
  line-height: 1.25 !important;
  letter-spacing: 0.03em !important;
  white-space: nowrap;
  box-shadow: 0 10px 26px rgba(155, 48, 255, 0.32);
  border: none !important;
}

body.admin-view-mascot .admin-root.view-mascot #ec-sidebar-btn-nueva-mascota.ec-sidebar-mis-perfiles__new::before {
  content: none !important;
}

body.admin-view-mascot .admin-root.view-mascot #ec-sidebar-btn-nueva-mascota.ec-sidebar-mis-perfiles__new:hover {
  transform: translateY(-1px) scale(1.02) !important;
}

body.admin-view-mascot .admin-root.view-mascot #ec-sidebar-btn-nueva-mascota.ec-sidebar-mis-perfiles__new:active {
  transform: scale(0.99) !important;
}

body.admin-view-mascot .admin-root.view-mascot #ec-sidebar-btn-nueva-mascota.ec-sidebar-mis-perfiles__new i {
  font-size: 1rem;
  line-height: 1;
  color: #ffffff !important;
}

body.admin-view-mascot .admin-root.view-mascot #ec-sidebar-btn-nueva-mascota.ec-sidebar-mis-perfiles__new span {
  color: #ffffff !important;
  font-weight: 800 !important;
}

/* Mobile: mantener visible sin tapar contenido crítico */
@media (max-width: 640px) {
  body.admin-view-mascot .admin-root.view-mascot #ec-sidebar-btn-nueva-mascota.ec-sidebar-mis-perfiles__new {
    /* En móvil deja de ser flotante: se integra debajo de “Cielo de Mascotas” */
    position: static !important;
    inset: auto !important;
    right: auto !important;
    bottom: auto !important;
    margin: 10px 0 0 !important;
    width: 100% !important;
    justify-content: center !important;
    padding: 0.85rem 1rem !important;
    border-radius: 1rem !important;
    transform: none !important;
  }
}

/* Formulario principal: ancho máximo (supera admin-elite max-width: none) */
body.admin-view-mascot #form-mascot.form-panel--mascot {
  max-width: 760px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100%;
  font-family: "Montserrat", system-ui, sans-serif;
  color: #2d3436;
}

/* —— Hero + share —— */
body.admin-view-mascot #form-mascot .mascot-admin-hero.mb-mascot-hero-banner {
  background: #1c355e !important;
  border: 1px solid #1c355e !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 30px rgba(28, 53, 94, 0.28) !important;
  margin-bottom: 1rem !important;
  overflow: hidden;
}

/* Foto encabezado (folleto) */
body.admin-view-mascot #form-mascot .mb-mascot-hero-banner__inner {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}

body.admin-view-mascot #form-mascot .mb-mascot-hero-media {
  position: relative;
  width: 100%;
  height: 280px;
  border-radius: 15px 15px 0 0;
  overflow: hidden;
  background: #1c355e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 640px) {
  body.admin-view-mascot #form-mascot .mb-mascot-hero-media {
    height: 250px;
  }
}

body.admin-view-mascot #form-mascot .mb-mascot-hero-family-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  background: #1c355e;
}

/* Gradiente sutil para legibilidad del texto */
body.admin-view-mascot #form-mascot .mb-mascot-hero-media::after {
  content: none;
}

body.admin-view-mascot #form-mascot .mb-mascot-hero-media__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 12px;
  padding: 18px 28px 26px 22px;
  color: #fff;
  background: linear-gradient(to bottom, rgba(28, 53, 94, 0) 0%, rgba(28, 53, 94, 0.8) 100%) !important;
  background-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  /* “Aire” a la derecha para no tapar la medalla central */
  padding-right: clamp(34px, 18vw, 190px);
}

/* ── Responsive hero (móvil): imagen arriba, texto debajo ── */
@media (max-width: 768px) {
  body.admin-view-mascot #form-mascot .mascot-admin-hero.mb-mascot-hero-banner {
    background: #ffffff !important;
    border-color: rgba(28, 53, 94, 0.16) !important;
  }

  body.admin-view-mascot #form-mascot .mb-mascot-hero-media {
    height: auto !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 16px !important;
    overflow: hidden;
    background: #ffffff !important;
  }

  body.admin-view-mascot #form-mascot .mb-mascot-hero-family-photo {
    display: block !important;
    width: 100%;
    max-width: 320px;
    height: auto !important;
    margin: 0 auto 20px !important;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
    object-position: center;
    background: transparent;
  }

  body.admin-view-mascot #form-mascot .mb-mascot-hero-media__overlay {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 16px !important;
    background: transparent !important;
    box-sizing: border-box !important;
    gap: 10px !important;
  }

  body.admin-view-mascot #form-mascot .mb-mascot-hero-banner__titles {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  body.admin-view-mascot #form-mascot .mb-mascot-hero-banner__titles h1,
  body.admin-view-mascot #form-mascot .mb-mascot-hero-banner__titles h2,
  body.admin-view-mascot #form-mascot .mb-mascot-hero-banner__titles h3,
  body.admin-view-mascot #form-mascot .mb-mascot-hero-banner__titles p {
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.admin-view-mascot #form-mascot .mb-mascot-hero-media__overlay * {
    background: transparent !important;
    background-color: transparent !important;
  }

  body.admin-view-mascot #form-mascot .mb-mascot-hero-banner__paw {
    border-color: rgba(28, 53, 94, 0.16) !important;
    color: #1c355e !important;
  }

  body.admin-view-mascot #form-mascot .mb-mascot-hero-banner__paw i {
    color: #1c355e !important;
    filter: none !important;
  }

  body.admin-view-mascot #form-mascot .mb-mascot-hero-banner__title {
    color: #1c355e !important;
    -webkit-text-fill-color: #1c355e !important;
    font-size: 1.35rem !important;
    line-height: 1.15;
    text-shadow: none !important;
  }

  body.admin-view-mascot #form-mascot .mb-mascot-hero-banner__tagline {
    color: #1c355e !important;
    -webkit-text-fill-color: #1c355e !important;
    font-size: 0.9rem !important;
    line-height: 1.35;
    text-shadow: none !important;
  }

  body.admin-view-mascot #form-mascot .mb-mascot-share-bar {
    margin-top: 0.55rem;
    justify-content: center;
    padding: 0 0.2rem;
  }

  body.admin-view-mascot #form-mascot .mb-mascot-share-subtle {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* Nada de cajas blancas/blur: solo el “piso” degradado del overlay */
body.admin-view-mascot #form-mascot .mb-mascot-hero-media__overlay * {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

body.admin-view-mascot #form-mascot .mb-mascot-hero-banner__titles {
  margin-top: 0;
}

/* Elimina el “bloque” claro: integra paw + títulos sobre la imagen */
body.admin-view-mascot #form-mascot .mb-mascot-hero-banner__paw {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

body.admin-view-mascot #form-mascot .mb-mascot-hero-banner__title,
body.admin-view-mascot #form-mascot .mb-mascot-hero-banner__tagline {
  color: #ffffff !important;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5) !important;
  background: transparent !important;
}

/* Tagline bajo “MascotBook Pro”: blanco (legibilidad pro), sin fondo */
body.admin-view-mascot #form-mascot .mb-mascot-hero-banner__tagline {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

body.admin-view-mascot #form-mascot .mb-mascot-hero-banner__title,
body.admin-view-mascot #form-mascot .form-mascot-title {
  font-family: "Playfair Display", ui-serif, Georgia, serif !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  -webkit-text-fill-color: currentColor !important;
  background: none !important;
}

body.admin-view-mascot #form-mascot .mascot-admin-tagline,
body.admin-view-mascot #form-mascot .mb-mascot-hero-banner__tagline,
body.admin-view-mascot #form-mascot .mb-mascot-hero-banner__shell,
body.admin-view-mascot #form-mascot .mb-mascot-hero-banner__inner,
body.admin-view-mascot #form-mascot .mb-mascot-hero-banner__left,
body.admin-view-mascot #form-mascot .mb-mascot-hero-banner__titles,
body.admin-view-mascot #form-mascot .mb-mascot-hero-banner__titles * {
  color: rgba(255, 255, 255, 0.92) !important;
}

body.admin-view-mascot #form-mascot .mb-mascot-hero-banner__paw i {
  color: #ffffff !important;
}

/* Panel azul: en ESCRITORIO unificar contenido interno a blanco.
   En móvil este rule rompía legibilidad (pisa el layout blanco). */
@media (min-width: 769px) {
  body.admin-view-mascot #form-mascot .mascot-admin-hero.mb-mascot-hero-banner * {
    color: rgba(255, 255, 255, 0.92) !important;
  }

  body.admin-view-mascot #form-mascot .mascot-admin-hero.mb-mascot-hero-banner h1,
  body.admin-view-mascot #form-mascot .mascot-admin-hero.mb-mascot-hero-banner h2,
  body.admin-view-mascot #form-mascot .mascot-admin-hero.mb-mascot-hero-banner h3,
  body.admin-view-mascot #form-mascot .mascot-admin-hero.mb-mascot-hero-banner h4 {
    color: #ffffff !important;
  }
}

/* Ribbon memorial dentro del hero */
body.admin-view-mascot #form-mascot #mascot-admin-memorial-ribbon {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 12px !important;
  color: #ffffff !important;
}

body.admin-view-mascot #form-mascot #mascot-admin-memorial-ribbon i {
  color: #ffffff !important;
  opacity: 0.95;
}

/* Barra de compartir sobre fondo blanco, pero con acento consistente */
body.admin-view-mascot #form-mascot .mb-mascot-share-bar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Tabs: legibilidad sobre blanco */
body.admin-view-mascot #form-mascot .mascot-tabs.mb-work-tabs {
  background: #ffffff !important;
}

body.admin-view-mascot #form-mascot .mascot-tabs.mb-work-tabs .mb-tab-btn:not(.active) {
  color: #2d3436 !important;
}

body.admin-view-mascot #form-mascot .mascot-tabs.mb-work-tabs .mb-tab-btn.active {
  color: #1c355e !important;
  border-bottom-color: #1c355e !important;
  background: rgba(28, 53, 94, 0.08) !important;
}

body.admin-view-mascot #form-mascot .mb-mascot-share-subtle {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  font-family: "Montserrat", sans-serif !important;
  font-weight: 700 !important;
  transition: border-color 0.15s ease, color 0.15s ease;
}

body.admin-view-mascot #form-mascot .mb-mascot-share-subtle:hover {
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: #ffffff !important;
}

body.admin-view-mascot #form-mascot .mb-mascot-share-bar {
  margin-bottom: 1rem;
}

/* —— Tab shell —— */
body.admin-view-mascot #form-mascot .mascot-tab-container {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(24, 24, 27, 0.08), 0 4px 12px rgba(24, 24, 27, 0.04);
  border: 1px solid var(--mascot-neutral-200);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

body.admin-view-mascot #form-mascot .mascot-tabs.mb-work-tabs {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 1px solid var(--mascot-neutral-200) !important;
  background: #fff !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  scrollbar-width: thin;
}

body.admin-view-mascot #form-mascot .mascot-tabs.mb-work-tabs .mb-tab-btn,
body.admin-view-mascot #form-mascot .mascot-tabs.mb-work-tabs .tab-item {
  flex: 0 0 auto !important;
  min-width: max-content;
  white-space: nowrap;
  padding: 14px 12px !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--mascot-neutral-700) !important;
  font-family: "DM Sans", sans-serif !important;
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  border-bottom: 2px solid transparent !important;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

body.admin-view-mascot #form-mascot .mascot-tabs.mb-work-tabs .mb-tab-btn:hover {
  background: var(--mascot-neutral-50) !important;
  color: var(--mascot-neutral-900) !important;
}

body.admin-view-mascot #form-mascot .mascot-tabs.mb-work-tabs .mb-tab-btn.active {
  background: var(--mascot-primary-light) !important;
  color: var(--mascot-primary) !important;
  font-weight: 600 !important;
  border-bottom-color: var(--mascot-primary) !important;
}

body.admin-view-mascot #form-mascot .mascot-tab-panels {
  padding: 24px;
  background: #fff;
}

@media (max-width: 640px) {
  body.admin-view-mascot #form-mascot .mascot-tab-panels {
    padding: 16px;
  }

  body.admin-view-mascot #form-mascot .mascot-tabs.mb-work-tabs .mb-tab-btn {
    font-size: 0.75rem !important;
    padding: 12px 8px !important;
  }
}

/* Workspace columnas: apilar en móvil (evita overflow lateral) */
@media (max-width: 900px) {
  body.admin-view-mascot #form-mascot .mascot-form-workspace {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    overflow-x: hidden !important;
  }
}

/* Imagen medalla: asegurar no estirar (por si algún estilo previo la pisa) */
body.admin-view-mascot #form-mascot .mb-medal-cta__photo {
  height: auto !important;
  object-fit: contain !important;
}

/* —— Callouts IA —— */
body.admin-view-mascot #form-mascot .mb-mb-value-callout {
  background: var(--mascot-primary-light) !important;
  border: 1px solid var(--mascot-primary) !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
  color: var(--mascot-primary) !important;
  font-weight: 500 !important;
  font-size: 0.875rem !important;
}

/* —— Cards dentro del workspace —— */
body.admin-view-mascot #form-mascot .mascot-panel-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin-bottom: 1.5rem !important;
}

body.admin-view-mascot #form-mascot .mascot-panel-card:last-child {
  margin-bottom: 0 !important;
}

body.admin-view-mascot #form-mascot .mascot-panel-card--identity {
  border-left: none !important;
  padding: 0 !important;
}

body.admin-view-mascot #form-mascot .mascot-panel-card__title {
  font-family: "Playfair Display", ui-serif, Georgia, serif !important;
  color: #2d3436 !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
}

body.admin-view-mascot #form-mascot .mascot-panel-card__subtitle {
  font-family: "Playfair Display", ui-serif, Georgia, serif !important;
  color: #2d3436 !important;
  font-weight: 600 !important;
}

body.admin-view-mascot #form-mascot .mascot-panel-card__hint {
  color: var(--mascot-neutral-700) !important;
  font-size: 0.8125rem !important;
}

/* === Salud / Ficha Médica: tarjeta destacada + iconografía en labels === */
body.admin-view-mascot #form-mascot .mascot-panel-card--health {
  background: #ffffff !important;
  border: 1px solid #e0e0e0 !important;
  border-left: 4px solid #1c355e !important;
  border-radius: 12px !important;
  padding: 18px 18px 8px !important;
  box-shadow: 0 8px 18px rgba(28, 53, 94, 0.08) !important;
}

/* Iconos médicos en labels (Font Awesome) */
body.admin-view-mascot #form-mascot .mascot-panel-card--health label[for]::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  display: inline-block;
  margin-right: 8px;
  color: #1c355e;
  font-size: 1.05em;
  transform: translateY(1px);
}

/* Veterinario */
body.admin-view-mascot #form-mascot .mascot-panel-card--health label[for="m-vet-nombre"]::before,
body.admin-view-mascot #form-mascot .mascot-panel-card--health label[for="m-vet-tel"]::before,
body.admin-view-mascot #form-mascot .mascot-panel-card--health label[for="m-vet-dir"]::before {
  content: "\f0f0"; /* user-md */
}

/* Vacunas / calendario (usa el botón de añadir como referencia) */
body.admin-view-mascot #form-mascot .mascot-panel-card--health #m-vacuna-add i {
  color: #1c355e !important;
}

body.admin-view-mascot #form-mascot .mascot-panel-card--health .mascot-data-table th:first-child::before {
  content: "\f48e"; /* syringe */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 8px;
  color: #1c355e;
}

/* Alergias / cuidados */
body.admin-view-mascot #form-mascot .mascot-panel-card--health label[for="m-fc-alergias"]::before,
body.admin-view-mascot #form-mascot .mascot-panel-card--health label[for="m-fc-cuidados"]::before {
  content: "\f071"; /* exclamation-triangle */
}

/* Historial / antecedentes */
body.admin-view-mascot #form-mascot .mascot-panel-card--health label[for="m-fc-meds"]::before,
body.admin-view-mascot #form-mascot .mascot-panel-card--health label[for="m-salud"]::before {
  content: "\f481"; /* notes-medical */
}

/* Peso / talla / tipo de sangre (aprox) */
body.admin-view-mascot #form-mascot .mascot-panel-card--health label[for="m-fc-sangre"]::before {
  content: "\f496"; /* weight */
}

/* —— Labels & fields —— */
body.admin-view-mascot #form-mascot .field {
  margin-bottom: 20px;
}

body.admin-view-mascot #form-mascot .field > label:not(.mascot-lost-switch-label) {
  font-family: "Montserrat", sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #2d3436 !important;
  margin-bottom: 8px !important;
  display: block !important;
}

body.admin-view-mascot #form-mascot .mascot-lost-switch-label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  margin-bottom: 0 !important;
  font-family: "DM Sans", sans-serif !important;
  font-weight: 600 !important;
  color: var(--mascot-neutral-900) !important;
}

body.admin-view-mascot #form-mascot .field input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]),
body.admin-view-mascot #form-mascot .field textarea,
body.admin-view-mascot #form-mascot .field select {
  width: 100%;
  box-sizing: border-box;
  background: #ffffff !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 8px !important;
  padding: 12px 15px !important;
  font-family: "Montserrat", system-ui, -apple-system, sans-serif !important;
  font-size: 14px !important;
  color: #2d3436 !important;
  outline: none !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

body.admin-view-mascot #form-mascot .field input:focus,
body.admin-view-mascot #form-mascot .field textarea:focus,
body.admin-view-mascot #form-mascot .field select:focus {
  border-color: #1c355e !important;
  box-shadow: 0 0 0 3px rgba(28, 53, 94, 0.12) !important;
  outline: none !important;
}

body.admin-view-mascot #form-mascot .field textarea {
  resize: vertical;
}

/* Placeholders refinados */
body.admin-view-mascot #form-mascot .field input::placeholder,
body.admin-view-mascot #form-mascot .field textarea::placeholder {
  color: #bdbdbd !important;
  font-style: italic;
  opacity: 1;
}

/* Select minimalista (flecha sutil) */
body.admin-view-mascot #form-mascot .field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.2rem !important;
  background-image: linear-gradient(45deg, transparent 50%, #1c355e 50%),
    linear-gradient(135deg, #1c355e 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

body.admin-view-mascot #form-mascot .mascot-field-row--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 1rem;
}

@media (max-width: 640px) {
  body.admin-view-mascot #form-mascot .mascot-field-row--2 {
    grid-template-columns: 1fr;
  }
}

body.admin-view-mascot #form-mascot .field-grid.field-grid--two {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 16px !important;
}

@media (max-width: 640px) {
  body.admin-view-mascot #form-mascot .field-grid.field-grid--two {
    grid-template-columns: 1fr !important;
  }
}

/* Tablas salud */
body.admin-view-mascot #form-mascot .mascot-data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "DM Mono", monospace !important;
  font-size: 13px !important;
}

body.admin-view-mascot #form-mascot .mascot-data-table th {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--mascot-neutral-200);
  color: var(--mascot-neutral-700);
  font-weight: 600;
  font-family: "DM Sans", sans-serif !important;
  font-size: 11px !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.admin-view-mascot #form-mascot .mascot-data-table td {
  padding: 8px;
  border-bottom: 1px solid var(--mascot-neutral-100);
}

body.admin-view-mascot #form-mascot .mascot-data-table input,
body.admin-view-mascot #form-mascot .mascot-data-table select {
  font-family: "DM Mono", monospace !important;
  font-size: 13px !important;
}

/* —— Botones panel mascot —— */
body.admin-view-mascot #form-mascot .btn-save {
  background: #f37021 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 10px 24px !important;
  font-family: "Montserrat", sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  transition: filter 0.15s ease !important;
}

/* Íconos patita naranja en listas de beneficios (reemplaza ✅) */
body.admin-view-mascot #form-mascot .mb-medal-cta__text ul,
body.admin-view-mascot #admin-mb-medal-modal .mb-medal-modal__benefits {
  list-style: none;
  padding-left: 0;
}

body.admin-view-mascot #form-mascot .mb-medal-cta__text li,
body.admin-view-mascot #admin-mb-medal-modal .mb-medal-modal__benefits li {
  position: relative;
  padding-left: 1.5rem;
}

body.admin-view-mascot #form-mascot .mb-medal-cta__text li::before,
body.admin-view-mascot #admin-mb-medal-modal .mb-medal-modal__benefits li::before {
  content: \"\\f1b0\";
  font-family: \"Font Awesome 6 Free\";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0.05rem;
  color: #f37021;
}

/* Oculta el carácter ✅ existente sin tocar HTML (solo en banner medalla) */
body.admin-view-mascot #form-mascot .mb-medal-cta__text li {
  text-indent: -0.85rem;
}

body.admin-view-mascot #form-mascot .btn-save:hover:not(:disabled) {
  filter: brightness(1.08) !important;
}

body.admin-view-mascot #form-mascot .btn-outline:not(.m-gallery-slot-delete):not(.btn-admin-chip--danger),
body.admin-view-mascot #form-mascot .btn-mascot-add,
body.admin-view-mascot #form-mascot .btn-dash-lost-save,
body.admin-view-mascot #form-mascot .btn-qr {
  background: transparent !important;
  border: 1px solid #e0e0e0 !important;
  color: rgba(45, 52, 54, 0.85) !important;
  border-radius: 8px !important;
  font-family: "Montserrat", sans-serif !important;
  font-weight: 600 !important;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease !important;
}

body.admin-view-mascot #form-mascot .btn-outline:hover:not(:disabled),
body.admin-view-mascot #form-mascot .btn-mascot-add:hover:not(:disabled),
body.admin-view-mascot #form-mascot .btn-dash-lost-save:hover:not(:disabled),
body.admin-view-mascot #form-mascot .btn-qr:hover:not(:disabled) {
  border-color: #1c355e !important;
  color: #1c355e !important;
  background: rgba(28, 53, 94, 0.04) !important;
}

body.admin-view-mascot #form-mascot .btn-admin-chip--danger,
body.admin-view-mascot #form-mascot #btn-delete-mascot-profile {
  background: #fff !important;
  border: 1.5px solid var(--mascot-danger) !important;
  color: var(--mascot-danger) !important;
  border-radius: 10px !important;
}

body.admin-view-mascot #form-mascot .btn-admin-chip--danger:hover,
body.admin-view-mascot #form-mascot #btn-delete-mascot-profile:hover {
  background: var(--mascot-danger) !important;
  color: #fff !important;
}

/* —— Zona crítica —— */
body.admin-view-mascot #form-mascot .mascot-danger-zone {
  margin-top: 1.5rem !important;
  padding: 1.25rem !important;
  border-radius: 12px !important;
  background: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  border-top: 2px dashed rgba(220, 38, 38, 0.35) !important;
}

body.admin-view-mascot #form-mascot .mascot-danger-zone__title {
  color: var(--mascot-danger) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
}

body.admin-view-mascot #form-mascot .mascot-danger-zone__hint {
  color: var(--mascot-neutral-700) !important;
  font-size: 0.8125rem !important;
}

/* —— Banner medalla —— */
body.admin-view-mascot #form-mascot .mb-medal-cta {
  border: none !important;
  border-radius: 16px !important;
  padding: 1.25rem 1.5rem !important;
  background: linear-gradient(115deg, #5b21b6 0%, #4f46e5 100%) !important;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.25) !important;
}

body.admin-view-mascot #form-mascot .mb-medal-cta__text h4,
body.admin-view-mascot #form-mascot .mb-medal-cta__text p,
body.admin-view-mascot #form-mascot .mb-medal-cta__text li {
  color: rgba(255, 255, 255, 0.95) !important;
}

body.admin-view-mascot #form-mascot .mb-medal-cta__text,
body.admin-view-mascot #form-mascot .mb-medal-cta__text * {
  color: #ffffff !important;
}

body.admin-view-mascot #form-mascot .mb-medal-cta__price-amount {
  color: #fff !important;
  font-size: 22px !important;
  font-weight: 700 !important;
}

body.admin-view-mascot #form-mascot .mb-medal-cta__price-sub {
  color: rgba(255, 255, 255, 0.75) !important;
}

body.admin-view-mascot #form-mascot .mb-medal-cta__btn {
  background: var(--mascot-accent) !important;
  color: #fff !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  padding: 10px 20px !important;
  border: none !important;
}

body.admin-view-mascot #form-mascot .mb-medal-cta__btn:hover {
  filter: brightness(1.06) !important;
}

body.admin-view-mascot #form-mascot .mb-medal-cta__photo {
  width: 220px;
  max-width: 100%;
  height: auto !important;
  display: block;
  object-fit: contain !important;
  margin-top: 20px;
  margin-bottom: 10px;
  margin-left: auto;
  margin-right: auto;
  -webkit-mask-image: radial-gradient(circle, black 60%, transparent 100%);
  mask-image: radial-gradient(circle, black 60%, transparent 100%);
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
}

body.admin-view-mascot #form-mascot .mb-medal-cta__badge {
  background: rgba(255, 255, 255, 0.95) !important;
  color: #4f46e5 !important;
}

body.admin-view-mascot #form-mascot .mb-medal-cta__disclaimer {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* —— Sidebar perfiles (panel contenido) —— */
body.admin-view-mascot .ec-sidebar-mis-perfiles {
  background: #fff !important;
  border: 1px solid var(--mascot-neutral-200) !important;
  border-radius: 12px !important;
}

body.admin-view-mascot .ec-sidebar-mis-perfiles__title {
  color: var(--mascot-neutral-900) !important;
}

body.admin-view-mascot .ec-sidebar-mis-perfiles__btn--active {
  background: var(--mascot-primary-light) !important;
  color: var(--mascot-primary) !important;
}

/* —— Galería · pastillas horizontales apiladas —— */
body.admin-view-mascot #m-gallery-slots.m-gallery-slots,
body.admin-view-mascot #m-gallery-slots.m-gallery-slots--pill {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 8px !important;
  margin-top: 0.75rem !important;
  width: 100% !important;
}

body.admin-view-mascot #m-gallery-slots .m-gallery-slot--tile {
  position: relative;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
  margin-bottom: 0 !important;
}

body.admin-view-mascot #m-gallery-slots .m-gallery-slot-tile {
  position: relative;
  width: 100%;
  height: 55px;
  min-height: 55px;
  max-height: 55px;
  aspect-ratio: unset !important;
  border-radius: 30px;
  border: 2px dashed var(--mascot-neutral-200);
  background: var(--mascot-neutral-50);
  overflow: hidden;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

body.admin-view-mascot #m-gallery-slots .m-gallery-slot--has-image .m-gallery-slot-tile {
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.08);
}

/* Pestaña Historia y Muro */
body.admin-view-mascot #mb-tab-historia.mascot-panel-card--historia {
  margin-top: 0;
}

/* Visibilidad de paneles según pestaña activa (refuerzo CSS, compatible con .mb-tab-panel-hidden) */
body.admin-view-mascot #form-mascot:has(.mb-tab-btn[data-mb-tab="contenido"].active) [data-mb-tab-panel]:not([data-mb-tab-panel="contenido"]) {
  display: none !important;
}

body.admin-view-mascot #form-mascot:has(.mb-tab-btn[data-mb-tab="historia"].active) [data-mb-tab-panel]:not([data-mb-tab-panel="historia"]) {
  display: none !important;
}

body.admin-view-mascot #form-mascot:has(.mb-tab-btn[data-mb-tab="salud"].active) [data-mb-tab-panel]:not([data-mb-tab-panel="salud"]) {
  display: none !important;
}

body.admin-view-mascot #form-mascot:has(.mb-tab-btn[data-mb-tab="seguridad"].active) [data-mb-tab-panel]:not([data-mb-tab-panel="seguridad"]) {
  display: none !important;
}

body.admin-view-mascot #m-gallery-slots .m-gallery-slot--has-image .m-gallery-slot-tile {
  border-style: solid;
  border-color: var(--mascot-neutral-200);
  background: #000;
}

body.admin-view-mascot #m-gallery-slots .m-gallery-slot-preview {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  z-index: 1;
}

body.admin-view-mascot #m-gallery-slots .m-gallery-slot-empty {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 1rem;
  color: var(--mascot-neutral-700);
  font-family: "DM Sans", sans-serif !important;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  pointer-events: none;
}

body.admin-view-mascot #m-gallery-slots .m-gallery-slot-empty i {
  font-size: 1.1rem;
  opacity: 0.65;
}

/* Pastilla · fila: índice | cámara | nombre archivo | X */
body.admin-view-mascot #m-gallery-slots .foto-pastilla,
body.admin-view-mascot #m-gallery-slots .m-gallery-slot-tile.foto-pastilla__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.65rem 0 0.5rem;
  box-sizing: border-box;
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
}

body.admin-view-mascot #m-gallery-slots .m-gallery-slot--has-image .m-gallery-slot-tile.foto-pastilla__inner {
  background: #ffffff;
  border-color: rgba(0, 123, 255, 0.28);
}

body.admin-view-mascot #m-gallery-slots .m-gallery-slot-camera {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  color: var(--mascot-neutral-700);
  font-size: 1rem;
  z-index: 2;
  pointer-events: none;
}

body.admin-view-mascot #m-gallery-slots .m-gallery-slot-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  z-index: 2;
  pointer-events: none;
  padding-right: 2.5rem;
}

body.admin-view-mascot #m-gallery-slots .m-gallery-slot-filename-display {
  display: block;
  width: 100%;
  min-width: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--mascot-neutral-700);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

body.admin-view-mascot #m-gallery-slots .m-gallery-slot--empty .m-gallery-slot-filename-display {
  color: #9ca3af;
  font-style: italic;
}

body.admin-view-mascot #m-gallery-slots .m-gallery-slot--has-image .m-gallery-slot-filename-display {
  color: var(--mascot-neutral-900);
  font-weight: 600;
}

body.admin-view-mascot #m-gallery-slots .m-gallery-slot-preview,
body.admin-view-mascot #m-gallery-slots .m-gallery-slot-empty {
  display: none !important;
}

body.admin-view-mascot #m-gallery-slots .m-gallery-slot-hit {
  position: absolute;
  inset: 0;
  z-index: 3;
  cursor: pointer;
  margin: 0;
}

/* Botón eliminar (esquina derecha, siempre visible con foto) */
body.admin-view-mascot #m-gallery-slots .btn-eliminar-foto,
body.admin-view-mascot #m-gallery-slots .m-gallery-slot-delete--pill {
  position: absolute !important;
  top: 50% !important;
  right: 10px !important;
  transform: translateY(-50%) !important;
  z-index: 6 !important;
  width: 25px !important;
  height: 25px !important;
  min-height: 25px !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #ff4d4d !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  opacity: 0;
  pointer-events: none !important;
  transition: background 0.2s ease, transform 0.15s ease, opacity 0.15s ease !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

body.admin-view-mascot #m-gallery-slots .m-gallery-slot--has-image .btn-eliminar-foto:not(:disabled),
body.admin-view-mascot #m-gallery-slots .m-gallery-slot--has-image .m-gallery-slot-delete--pill:not(:disabled) {
  opacity: 1 !important;
  pointer-events: auto !important;
}

body.admin-view-mascot #m-gallery-slots .btn-eliminar-foto:hover:not(:disabled),
body.admin-view-mascot #m-gallery-slots .m-gallery-slot-delete--pill:hover:not(:disabled) {
  background: #cc0000 !important;
  transform: translateY(-50%) scale(1.06) !important;
}

body.admin-view-mascot #m-gallery-slots .m-gallery-slot-badge {
  position: static;
  transform: none;
  flex: 0 0 auto;
  z-index: 2;
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(0, 123, 255, 0.1);
  color: #007bff;
  padding: 2px 7px;
  border-radius: 999px;
  font-family: "DM Mono", monospace !important;
  pointer-events: none;
  line-height: 1.2;
}

body.admin-view-mascot #m-gallery-slots .m-gallery-slot--has-image .m-gallery-slot-badge {
  background: rgba(0, 123, 255, 0.14);
  color: #0069d9;
}

/* Guardar · debajo de vista previa móvil */
body.admin-view-mascot .preview-col-save {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin-top: 0.85rem;
  padding-top: 0.65rem;
  flex-shrink: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

body.admin-view-mascot .preview-col-save-btn--mascot {
  width: 100%;
  max-width: 100%;
  display: block;
  box-sizing: border-box;
  padding: 0.72rem 1rem;
  border-radius: 8px;
  border: none;
  background: #007bff !important;
  color: #ffffff !important;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 123, 255, 0.32);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

body.admin-view-mascot .preview-col-save-btn--mascot:hover {
  background: #0069d9 !important;
  box-shadow: 0 6px 18px rgba(0, 123, 255, 0.38);
}

body.admin-view-mascot .preview-col-save-btn--mascot:active {
  transform: translateY(1px);
}

body.admin-view-mascot .preview-col-save-btn--mascot:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

@media (min-width: 1025px) {
  html[data-ec-admin] .preview-col__sticky {
    display: flex !important;
    flex-direction: column !important;
  }

  /* Botón guardar: preview-column.css + mascot-dashboard-layout-fixes.css */
}

/* Upload compactos perfil/banner (lista superior) */
body.admin-view-mascot #form-mascot .compact-image-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.admin-view-mascot #form-mascot .compact-image-item .m-gallery-slot-row {
  flex-wrap: wrap;
  gap: 8px;
}

/* Lost pills */
body.admin-view-mascot #form-mascot .mb-lost-status-pill--safe {
  color: var(--mascot-success) !important;
}

body.admin-view-mascot #form-mascot .mb-lost-status-pill--lost {
  color: var(--mascot-danger) !important;
}

/* === Modo Rescate con GPS (checkbox dash-mascota-perdida) === */
body.admin-view-mascot #form-mascot .mascot-lost-switch-row--xl {
  border: 1px solid #d63031;
  background: rgba(214, 48, 49, 0.05);
  border-radius: 12px;
  padding: 12px 12px;
  margin: 12px 0 18px;
}

body.admin-view-mascot #form-mascot .mascot-lost-switch-label--xl {
  position: relative;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-weight: 700 !important;
  color: #1c355e !important;
}

/* Icono “ubicación/satélite” antes del texto */
body.admin-view-mascot #form-mascot .mascot-lost-switch-label--xl > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body.admin-view-mascot #form-mascot .mascot-lost-switch-label--xl > span::before {
  content: "\f3c5"; /* map-marker-alt / location-dot */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #1c355e;
  font-size: 1.05em;
  transform: translateY(1px);
}

/* Checkbox más grande y táctil */
body.admin-view-mascot #form-mascot #dash-mascota-perdida {
  width: 22px !important;
  height: 22px !important;
  flex: 0 0 auto;
  accent-color: #f37021;
}

/* Halo/pulso cuando está activo (sin JS, usando :has) */
@keyframes mb-gps-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(243, 112, 33, 0.38);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(243, 112, 33, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(243, 112, 33, 0);
  }
}

body.admin-view-mascot #form-mascot .mascot-lost-switch-label--xl:has(#dash-mascota-perdida:checked) #dash-mascota-perdida {
  animation: mb-gps-pulse 1.4s ease-out infinite;
}

/* Preview column legibilidad + sticky (desktop) */
body.admin-view-mascot .preview-col {
  background: #f9f4ee !important;
  padding: 15px !important;
  box-sizing: border-box !important;
  align-items: stretch !important;
}

body.admin-view-mascot .preview-col__sticky {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  align-items: stretch;
}

body.admin-view-mascot .preview-col h3,
body.admin-view-mascot .preview-col .preview-spec,
body.admin-view-mascot .preview-col .link-public,
body.admin-view-mascot .preview-col #public-url {
  width: 100% !important;
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
}

@media (min-width: 1025px) {
  body.admin-view-mascot .admin-root.view-mascot .preview-col {
    position: sticky !important;
    top: 20px !important;
    align-self: flex-start !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
  }

  body.admin-view-mascot .admin-root.view-mascot .preview-col__sticky:not(.contenedor-columna-vista-previa) {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
  }
}

/* —— Accesos rápidos (Instagram / WhatsApp) en footer admin —— */
.admin-footer-contact-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.admin-footer-contact-row .admin-footer-mail {
  margin: 0;
}

.admin-footer-social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
}

.admin-footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(1.75rem, 4vw, 2.05rem);
  height: clamp(1.75rem, 4vw, 2.05rem);
  border-radius: 999px;
  color: rgba(63, 63, 70, 0.82); /* “baja visión” / gris oscuro */
  text-decoration: none;
  transition: transform 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.admin-footer-social-link i {
  font-size: 28px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

@media (min-width: 481px) {
  /* PC: aire elegante entre íconos */
  .admin-footer-social-links {
    gap: 25px !important;
  }
}

.admin-footer-social-link:hover {
  color: rgba(31, 41, 55, 0.98);
  transform: translateY(-1px);
}

.admin-footer-social-link:focus-visible {
  outline: 2px solid rgba(31, 41, 55, 0.35);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .admin-footer-contact-row {
    flex-direction: column;
    gap: 0.35rem;
    text-align: center;
  }

  .admin-footer-social-links {
    gap: 18px;
  }

  /* Móvil: más grande y fácil de tocar (44×44px recomendado) */
  .admin-footer-social-link {
    width: 44px;
    height: 44px;
  }

  .admin-footer-social-link i {
    font-size: 32px;
    width: 36px;
    height: 36px;
  }

  .admin-footer-social-link i.fa-whatsapp,
  .admin-footer-social-link i.fa-instagram {
    font-size: 36px;
    width: 40px;
    height: 40px;
    transform: none;
    transform-origin: center;
  }
}

@media (max-width: 768px) {
  .admin-site-footer .admin-footer-social-link {
    width: 58px !important;
    height: 58px !important;
    overflow: visible;
  }

  .admin-site-footer .admin-footer-social-link i {
    line-height: 1 !important;
  }

  .admin-site-footer .admin-footer-social-link i.fa-whatsapp,
  .admin-site-footer .admin-footer-social-link i.fa-instagram {
    width: 48px !important;
    height: 48px !important;
    font-size: 48px !important;
    transform: none !important;
    transform-origin: center !important;
  }
}

/* —— MascotBook · membresía anual QR (medalla) —— */
.admin-mb-qr-expiry-banner {
  margin: 0;
  padding: 0 1rem 0.75rem;
  background: transparent;
}

.admin-mb-qr-expiry-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.95rem 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  background: linear-gradient(135deg, #0c0e14 0%, #141820 48%, #0a0c10 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 12px 32px rgba(0, 0, 0, 0.28);
  color: #e8eaef;
}

.admin-mb-qr-expiry-banner__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  flex-shrink: 0;
  color: #d4af37;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  font-size: 1rem;
}

.admin-mb-qr-expiry-banner__text {
  flex: 1 1 14rem;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(232, 234, 239, 0.88);
}

.admin-mb-qr-expiry-banner__text strong {
  color: #f5e6b8;
  font-weight: 600;
}

.admin-mb-qr-expiry-banner__emph {
  color: #d4af37;
  font-weight: 500;
}

.admin-mb-qr-expiry-banner__cta {
  flex-shrink: 0;
  margin-left: auto;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.65);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.22) 0%, rgba(212, 175, 55, 0.08) 100%);
  color: #f5e6b8;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.admin-mb-qr-expiry-banner__cta:hover {
  transform: translateY(-1px);
  border-color: rgba(212, 175, 55, 0.9);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.32) 0%, rgba(212, 175, 55, 0.12) 100%);
}

.admin-mb-qr-expiry-banner__cta:focus-visible {
  outline: 2px solid rgba(212, 175, 55, 0.75);
  outline-offset: 2px;
}

.admin-view-mascot .main {
  position: relative;
}

.admin-mb-qr-lock {
  position: absolute;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(6, 8, 12, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.admin-mb-qr-lock__panel {
  width: min(100%, 26rem);
  padding: 2rem 1.75rem 1.85rem;
  text-align: center;
  border-radius: 18px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: linear-gradient(165deg, #12151c 0%, #0a0c10 55%, #06070a 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 24px 48px rgba(0, 0, 0, 0.45);
  color: #e8eaef;
}

.admin-mb-qr-lock__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 0.85rem;
  border-radius: 50%;
  font-size: 1.35rem;
  color: #d4af37;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.admin-mb-qr-lock__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.85);
}

.admin-mb-qr-lock__title {
  margin: 0 0 0.65rem;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f8fafc;
}

.admin-mb-qr-lock__lead {
  margin: 0 0 1.35rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(232, 234, 239, 0.78);
}

.admin-mb-qr-lock__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 11rem;
  padding: 0.7rem 1.35rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, #d4af37 0%, #b8942e 100%);
  color: #0a0c10;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.admin-mb-qr-lock__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(212, 175, 55, 0.38);
}

.admin-mb-qr-lock__cta:focus-visible {
  outline: 2px solid #f5e6b8;
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .admin-mb-qr-expiry-banner__cta {
    width: 100%;
    margin-left: 0;
  }
}

/* —— Sidebar · Control de QRs (solo superadmin) —— */
.ec-superadmin-qr-lotes-wrap {
  margin: 0.85rem 0 0.5rem;
  padding: 0 0.65rem;
}

.ec-superadmin-qr-lotes-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.5);
  background: linear-gradient(145deg, #12151c 0%, #0a0c10 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 8px 20px rgba(0, 0, 0, 0.2);
  color: #e8eaef;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.ec-superadmin-qr-lotes-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(212, 175, 55, 0.82);
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.12) inset,
    0 12px 28px rgba(0, 0, 0, 0.28);
}

.ec-superadmin-qr-lotes-btn:focus-visible {
  outline: 2px solid rgba(212, 175, 55, 0.75);
  outline-offset: 2px;
}

.ec-superadmin-qr-lotes-btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  flex-shrink: 0;
  border-radius: 50%;
  font-size: 0.95rem;
  color: #d4af37;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.32);
}

.ec-superadmin-qr-lotes-btn__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  flex: 1;
  min-width: 0;
  text-align: left;
}

.ec-superadmin-qr-lotes-btn__text strong {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #f5e6b8;
}

.ec-superadmin-qr-lotes-btn__text small {
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(232, 234, 239, 0.62);
  line-height: 1.3;
}

.ec-superadmin-qr-lotes-btn__chev {
  flex-shrink: 0;
  font-size: 0.72rem;
  color: rgba(212, 175, 55, 0.75);
}

.admin-payment-cbu-card.hidden,
.admin-payment-cbu-card[hidden] {
  display: none !important;
}

/* Información de pago (CBU) — panel MascotBook · Seguridad */
body.admin-view-mascot .admin-payment-cbu-card {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--mascot-neutral-200);
  background: var(--mascot-neutral-50);
}

body.admin-view-mascot .admin-payment-cbu-value {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  word-break: break-all;
  margin: 0.5rem 0 0.75rem;
  color: var(--mascot-neutral-900);
}

body.admin-view-mascot .admin-payment-cbu-meta {
  font-size: 0.82rem;
  color: var(--mascot-neutral-700);
  margin: 0 0 0.35rem;
}

/* —— Footer legal unificado (dashboard MascotBook · panel central) —— */
#mb-dash-unified-footer {
  display: none;
}

body.admin-view-mascot #mb-dash-unified-footer {
  display: block;
  width: 100%;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

body.admin-view-mascot #mb-dash-unified-footer #btn-legal-dash {
  font: inherit;
  font-size: inherit;
  color: rgba(107, 114, 128, 0.95);
  background: none;
  border: none;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

body.admin-view-mascot #mb-dash-unified-footer #btn-legal-dash:hover {
  color: rgba(124, 58, 237, 0.95);
}
