/**
 * EliteCard — tokens alineados con admin (Dark Premium)
 * Dorado #D4AF37 · fondos #050505 / #101010 · texto principal #E0E0E0
 */

:root {
  --ec-void: #050505;
  --ec-coal: #101010;
  --ec-card: #181818;
  --ec-gold: #d4af37;
  --ec-gold-soft: rgba(212, 175, 55, 0.35);
  --ec-mist: #e0e0e0;
  --ec-mist-dim: rgba(224, 224, 224, 0.52);
  --lux-black: var(--ec-void);
  --lux-ivory: #ebe6dc;
  --lux-silk: #a3a3a3;
  --lux-gold-a: #d4af37;
  --lux-gold-b: #f2e6a7;
  --lux-gold-c: #9a7b28;
  --lux-footer-bg: #d8d4cc;
  --font-lux: "Poppins", system-ui, -apple-system, sans-serif;
}

html {
  height: 100%;
  background: linear-gradient(168deg, var(--ec-void) 0%, var(--ec-coal) 45%, #0c0c0c 100%);
  background-color: var(--ec-void);
}

/* Tarjeta pública card.html (MascotBook / EliteCard): no forzar fondo luxury global */
html[data-ec-card] {
  height: auto;
  min-height: 100%;
  background: #0a0a0a;
  background-image: none;
}

html[data-ec-admin] {
  height: auto;
  min-height: 100%;
  background: #f8fafc;
  background-image: none;
}

body.luxury-body {
  min-height: 100%;
  min-height: 100dvh;
  margin: 0;
  font-family: var(--font-lux);
  font-weight: 300;
  background: transparent;
  color: var(--lux-ivory);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

/* Ocupa todo el alto útil cuando el navegador oculta barras o en modo app */
.app-shell {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  /* 9:16 respecto al alto de ventana; fallback vh por si dvh falla en escritorio */
  max-width: min(100vw, 56.25vh);
  max-width: min(100vw, 56.25dvh);
}

/* Contenedor del avatar: equilibrado, sin “placa” */
.avatar-led-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

/* Halo suave — rectángulo redondeado tipo iPhone */
.avatar-led-halo {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  width: 106%;
  height: 106%;
  transform: translate(-50%, -50%);
  border-radius: 1.6875rem;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    rgba(212, 175, 55, 0.12) 0%,
    transparent 70%
  );
  filter: blur(12px);
}

/* Marco dorado fino — esquinas redondeadas */
.avatar-gold-ring {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  padding: 2px;
  border-radius: 1.5625rem;
  background: linear-gradient(
    140deg,
    var(--lux-gold-c) 0%,
    var(--lux-gold-b) 42%,
    var(--lux-gold-a) 58%,
    var(--lux-gold-b) 72%,
    var(--lux-gold-c) 100%
  );
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.22),
    0 10px 28px rgba(0, 0, 0, 0.35);
}

/**
 * Retrato estilo iPhone: 4:5, esquinas suaves, sin deformar la imagen.
 */
.avatar-inner {
  position: relative;
  width: min(8.75rem, 78vw);
  aspect-ratio: 4 / 5;
  flex-shrink: 0;
  border-radius: 1.5rem;
  overflow: hidden;
  background: #0a0a0a;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(212, 175, 55, 0.14);
}

.avatar-inner.avatar-inner--empty {
  background: linear-gradient(160deg, #141414 0%, #0a0a0a 50%, #121212 100%);
}

.avatar-inner.avatar-inner--empty::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 38%;
  height: 38%;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.2);
  opacity: 0.65;
  pointer-events: none;
}

.avatar-inner--empty .avatar-photo {
  visibility: hidden;
  pointer-events: none;
}

/* Con foto: el <img> debe seguir siendo bloque (nunca display:none solo por Tailwind en móvil). */
.avatar-inner:not(.avatar-inner--empty) .avatar-photo {
  visibility: visible;
}

@media (min-width: 640px) {
  .avatar-inner {
    width: min(9.5rem, 72vw);
  }
}

.avatar-photo {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  image-rendering: auto;
}

/**
 * Contenedor tarjeta / botones / retrato — visibilidad estable en móvil (.ec-*).
 * No usar display:none ni opacity:0 sobre estos selectores en breakpoints móviles.
 */
.ec-card-container {
  position: relative;
  z-index: 1;
}

.ec-profile-frame {
  height: auto;
  min-height: 100px;
}

.ec-profile-frame .ec-profile-img {
  display: block;
  min-height: 100px;
  width: 100%;
  object-fit: cover;
  object-position: center center;
}

.ec-contact-button {
  position: relative;
  z-index: 1;
}

.footer-bar-light .ec-contact-button {
  z-index: 101;
}

/* Móvil: contenedor de retrato y píldoras sin colapso a 0 ni ocultar por error de grid */
@media (max-width: 639.98px) {
  .ec-card-container {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .ec-card-container .reveal-item {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
  }

  .ec-card-container .links-stagger > a.ec-contact-button,
  .ec-card-container .links-stagger > button.ec-contact-button {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
  }

  .ec-contact-button {
    z-index: 999;
  }

  .avatar-inner:not(.avatar-inner--empty) .ec-profile-img {
    opacity: 1 !important;
  }

  .avatar-inner--empty .ec-profile-img {
    visibility: hidden !important;
  }

  .avatar-led-wrap,
  .avatar-gold-ring,
  .avatar-inner,
  .avatar-inner.ec-profile-frame {
    max-width: 100%;
  }

  .avatar-inner,
  .avatar-inner.ec-profile-frame {
    width: min(8.75rem, 78vw);
    min-width: 6.5rem;
    height: auto;
    min-height: 100px;
  }

  .avatar-photo,
  .ec-profile-frame .ec-profile-img {
    display: block;
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 100px;
  }

  .link-pill.pill-action,
  .link-pill.pill-action.ec-contact-button {
    display: grid !important;
    width: 100% !important;
    min-width: 0;
    min-height: 2.75rem;
    box-sizing: border-box;
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
  }

  #btn-vcard.ec-contact-button,
  #btn-share.ec-contact-button {
    display: flex !important;
    min-height: 2.75rem;
    min-width: 0;
    flex: 1 1 0%;
    z-index: 999;
  }
}

/* Cabecera */
.led-name {
  color: var(--lux-ivory);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

.led-sub {
  color: var(--ec-mist-dim);
  font-weight: 300;
  font-size: 1.15rem;
  line-height: 1.55;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
}

@media (min-width: 640px) {
  .led-sub {
    font-size: 0.875rem;
  }
}

/* Sello institucional */
.footer-seal-wrap.hidden-seal {
  display: none !important;
}

.footer-seal-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  border-radius: 50%;
  background: linear-gradient(
    145deg,
    rgba(212, 175, 55, 0.48),
    rgba(242, 230, 167, 0.3),
    rgba(154, 123, 40, 0.45)
  );
  box-shadow: 0 0 0 1px rgba(191, 149, 63, 0.18);
}

.footer-seal-img {
  display: block;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

/* Barra inferior — texto negro muy legible */
.footer-bar-light {
  background-color: var(--lux-footer-bg);
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  z-index: 100;
}

.footer-bar-light .footer-action-label {
  color: #0a0a0a !important;
  font-weight: 600;
  font-size: 1rem !important;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

@media (min-width: 400px) {
  .footer-bar-light .footer-action-label {
    font-size: 1.1rem !important;
  }
}

.footer-avatar-mini {
  width: 1.375rem;
  height: 1.375rem;
  min-width: 1.375rem;
  min-height: 1.375rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: center center;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.5);
}

.footer-icon-gold {
  display: inline-block;
  background: linear-gradient(
    145deg,
    var(--lux-gold-c),
    var(--lux-gold-b),
    var(--lux-gold-a)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Píldoras */
.pill-action {
  transition: transform 0.16s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.pill-action:active {
  transform: scale(0.987);
}

/* Texto de botones incrementado */
.ec-contact-button .col-start-2 {
  font-size: 1.05rem !important;
  letter-spacing: 0.04em;
}
@media (min-width: 400px) {
  .ec-contact-button .col-start-2 {
    font-size: 1.15rem !important;
  }
}

.link-pill {
  border-color: rgba(64, 64, 64, 0.95) !important;
}

.link-pill:hover {
  background-color: #0c0c0c;
  border-color: rgba(212, 175, 55, 0.38) !important;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.06);
}

.pill-icon-disc {
  width: 2.5rem;
  height: 2.5rem;
}

.pill-icon-disc i {
  font-size: 0.8rem;
  opacity: 0.96;
}

/* Reveal suave */
@keyframes led-reveal {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal-item {
  animation: led-reveal 1.15s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
}

.reveal-d1 {
  animation-delay: 0.06s;
}
.reveal-d2 {
  animation-delay: 0.18s;
}
.reveal-d3 {
  animation-delay: 0.3s;
}
.reveal-d4 {
  animation-delay: 0.42s;
}
.reveal-d5 {
  animation-delay: 0.54s;
}
.reveal-d6 {
  animation-delay: 0.66s;
}

.links-stagger > a,
.links-stagger > button {
  animation: led-reveal 1.05s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
}

.links-stagger > a:nth-child(1),
.links-stagger > button:nth-child(1) {
  animation-delay: 0.52s;
}
.links-stagger > a:nth-child(2),
.links-stagger > button:nth-child(2) {
  animation-delay: 0.64s;
}
.links-stagger > a:nth-child(3),
.links-stagger > button:nth-child(3) {
  animation-delay: 0.76s;
}
.links-stagger > a:nth-child(4),
.links-stagger > button:nth-child(4) {
  animation-delay: 0.88s;
}
.links-stagger > a:nth-child(5),
.links-stagger > button:nth-child(5) {
  animation-delay: 1s;
}
.links-stagger > a:nth-child(6),
.links-stagger > button:nth-child(6) {
  animation-delay: 1.12s;
}
.links-stagger > a:nth-child(7),
.links-stagger > button:nth-child(7) {
  animation-delay: 1.24s;
}
.links-stagger > a:nth-child(8),
.links-stagger > button:nth-child(8) {
  animation-delay: 1.36s;
}
.links-stagger > a:nth-child(9),
.links-stagger > button:nth-child(9) {
  animation-delay: 1.48s;
}
.links-stagger > a:nth-child(10),
.links-stagger > button:nth-child(10) {
  animation-delay: 1.6s;
}

.footer-reveal {
  animation: led-reveal 1.15s cubic-bezier(0.22, 1, 0.36, 1) 0.78s forwards;
  opacity: 0;
}

.footer-seal-reveal {
  animation: led-reveal 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.68s forwards;
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-item,
  .links-stagger > a,
  .links-stagger > button,
  .footer-reveal,
  .footer-seal-reveal {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .preloader-y-spin,
  .preloader-x-float,
  .preloader-shine,
  .preloader-logo-img {
    animation: none !important;
  }
}

/* ——— Preloader PWA ——— */
body.preloader-active {
  overflow: hidden;
}

#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(168deg, var(--ec-void) 0%, var(--ec-coal) 55%, #080808 100%);
  transition: opacity 0.75s ease, visibility 0.75s ease;
}

#preloader.preloader--hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#preloader.preloader--done {
  display: none;
}

.preloader-scene {
  perspective: 1100px;
  perspective-origin: 50% 42%;
}

.preloader-y-spin {
  transform-style: preserve-3d;
  animation: preloader-spin-y 4s linear infinite;
}

@keyframes preloader-spin-y {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(360deg);
  }
}

/* Inclinación en X para lectura 3D tipo moneda / placa */
.preloader-x-float {
  transform-style: preserve-3d;
  animation: preloader-x-float 2.8s ease-in-out infinite;
}

@keyframes preloader-x-float {
  0%,
  100% {
    transform: rotateX(10deg) translateZ(0.5rem);
  }
  50% {
    transform: rotateX(-14deg) translateZ(0.25rem);
  }
}

.preloader-logo-wrap {
  position: relative;
  width: 4.55rem;
  height: 4.55rem;
  transform-style: preserve-3d;
}

@media (min-width: 400px) {
  .preloader-logo-wrap {
    width: 5.25rem;
    height: 5.25rem;
  }
}

.preloader-logo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 0.875rem;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(212, 175, 55, 0.28);
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
  animation: preloader-logo-pulse 2.4s ease-in-out infinite;
}

@keyframes preloader-logo-pulse {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.12) drop-shadow(0 0 18px rgba(212, 175, 55, 0.38));
  }
}

.preloader-shine {
  position: absolute;
  inset: -2px;
  border-radius: 1.2rem;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 38%,
    rgba(242, 230, 167, 0.5) 48%,
    rgba(255, 255, 255, 0.32) 50%,
    rgba(212, 175, 55, 0.42) 52%,
    transparent 65%,
    transparent 100%
  );
  background-size: 220% 100%;
  mix-blend-mode: overlay;
  animation: preloader-shine-move 2.4s ease-in-out infinite;
  opacity: 0.85;
}

@supports (mix-blend-mode: plus-lighter) {
  .preloader-shine {
    mix-blend-mode: plus-lighter;
  }
}

@keyframes preloader-shine-move {
  0% {
    background-position: 130% 0;
  }
  100% {
    background-position: -130% 0;
  }
}

/* Crédito EliteCard / WebElite Solutions (PWA / tarjeta) */
.webelite-credit {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.45);
  text-decoration: none;
  transition:
    color 0.28s ease,
    letter-spacing 0.28s ease;
}

.webelite-credit:hover {
  color: rgba(242, 230, 167, 0.88);
  letter-spacing: 0.16em;
}

.webelite-credit-brand {
  font-weight: 500;
  background: linear-gradient(
    105deg,
    rgba(212, 175, 55, 0.9),
    rgba(255, 248, 220, 0.95),
    rgba(212, 175, 55, 0.9)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.webelite-credit:hover .webelite-credit-brand {
  background: linear-gradient(105deg, #e8d060, #fffef5, #e8d060);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Shell tarjeta — coherente con panel */
.app-shell.ec-app-shell {
  background: linear-gradient(180deg, transparent 0%, rgba(8, 8, 8, 0.35) 100%);
}

/* Modales EliteCard (glass + borde dorado fino) */
.ec-modal-elite-backdrop {
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.ec-modal-elite-panel {
  background: rgba(24, 24, 24, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.28);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
}

.ec-modal-elite-panel .ec-input-elite {
  border: 1px solid rgba(224, 224, 224, 0.12);
  background: rgba(5, 5, 5, 0.55);
  color: var(--ec-mist);
  font-family: var(--font-lux);
  font-weight: 300;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.ec-toast-elite {
  font-family: var(--font-lux);
  font-weight: 300;
  border-color: rgba(212, 175, 55, 0.2) !important;
  background: rgba(24, 24, 24, 0.92) !important;
  color: var(--ec-mist) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ——— Temas de tarjeta (variables + html / body) ——— */
html.ec-theme-minimal {
  --ec-void: #f4f4f5;
  --ec-coal: #fafafa;
  --ec-card: #ffffff;
  --ec-gold: #262626;
  --ec-gold-soft: rgba(38, 38, 38, 0.2);
  --ec-mist: #171717;
  --ec-mist-dim: rgba(23, 23, 23, 0.55);
  --lux-black: #171717;
  --lux-ivory: #0a0a0a;
  --lux-silk: #525252;
  --lux-gold-a: #404040;
  --lux-gold-b: #737373;
  --lux-gold-c: #262626;
  --lux-footer-bg: #e8e8e8;
  background: linear-gradient(168deg, #fafafa 0%, #f0f0f0 45%, #e5e5e5 100%);
  background-color: var(--ec-void);
}

html.ec-theme-electric {
  --ec-void: #050b14;
  --ec-coal: #0a1628;
  --ec-card: #0f172a;
  --ec-gold: #22d3ee;
  --ec-gold-soft: rgba(34, 211, 238, 0.35);
  --ec-mist: #ecfeff;
  --ec-mist-dim: rgba(236, 254, 255, 0.55);
  --lux-black: #020617;
  --lux-ivory: #ecfeff;
  --lux-silk: #94a3b8;
  --lux-gold-a: #22d3ee;
  --lux-gold-b: #67e8f9;
  --lux-gold-c: #0e7490;
  --lux-footer-bg: #0c1829;
  background: linear-gradient(168deg, #050b14 0%, #0a1628 45%, #082030 100%);
  background-color: var(--ec-void);
}

html.ec-theme-minimal .app-shell.ec-app-shell {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.04) 100%);
}

html.ec-theme-electric .app-shell.ec-app-shell {
  background: linear-gradient(180deg, transparent 0%, rgba(34, 211, 238, 0.06) 100%);
}

html.ec-theme-minimal .ec-contact-button.link-pill,
html.ec-theme-minimal .ec-contact-button.pill-action {
  color: #0a0a0a !important;
  background-color: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
}

html.ec-theme-minimal .ec-contact-button .pill-icon-disc i {
  color: #fff !important;
}

html.ec-theme-electric .ec-contact-button.link-pill,
html.ec-theme-electric .ec-contact-button.pill-action {
  color: #ecfeff !important;
  background-color: rgba(15, 23, 42, 0.9) !important;
  border-color: rgba(34, 211, 238, 0.35) !important;
}

html.ec-theme-electric .footer-bar-light {
  border-top-color: rgba(34, 211, 238, 0.22);
}

html.ec-theme-electric .footer-bar-light .footer-action-label {
  color: #ecfeff !important;
}

html.ec-theme-minimal .footer-bar-light {
  border-top-color: rgba(0, 0, 0, 0.08);
}

html.ec-theme-minimal .footer-bar-light .footer-action-label {
  color: #0a0a0a !important;
}

/* Avatar: circular vs retrato redondeado */
#app-root[data-avatar-shape="circle"] .avatar-inner {
  aspect-ratio: 1 / 1;
  width: min(9.5rem, 82vw);
  border-radius: 9999px;
}

#app-root[data-avatar-shape="circle"] .avatar-gold-ring {
  border-radius: 9999px;
}

#app-root[data-avatar-shape="circle"] .avatar-led-halo {
  border-radius: 9999px;
}

#app-root[data-avatar-shape="circle"] .avatar-photo {
  border-radius: 9999px;
}

/* Botones: grilla solo íconos */
#app-root[data-link-layout="icons"] #links-container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (max-width: 360px) {
  #app-root[data-link-layout="icons"] #links-container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

#app-root[data-link-layout="icons"] #links-container > .ec-contact-button {
  display: grid !important;
  grid-template-columns: 1fr !important;
  width: 100%;
  max-width: none;
  min-height: 0;
  aspect-ratio: 1;
  padding: 0.4rem;
  border-radius: 1rem;
  justify-items: center;
  align-items: center;
}

#app-root[data-link-layout="icons"] #links-container > .ec-contact-button .col-start-2,
#app-root[data-link-layout="icons"] #links-container > .ec-contact-button .col-start-3 {
  display: none !important;
}

#app-root[data-link-layout="icons"] #links-container > .ec-contact-button .pill-icon-disc {
  grid-column: 1;
}

html.ec-theme-minimal .webelite-credit {
  color: rgba(64, 64, 64, 0.5);
}

html.ec-theme-minimal .webelite-credit:hover {
  color: rgba(23, 23, 23, 0.85);
}

html.ec-theme-minimal .led-name,
html.ec-theme-minimal .led-sub,
html.ec-theme-minimal #display-org,
html.ec-theme-minimal #display-cargo-detalle {
  color: #171717 !important;
  text-shadow: none !important;
}

html.ec-theme-minimal .footer-bar-light .footer-action-label {
  color: #111 !important;
}

html.ec-theme-electric .webelite-credit {
  color: rgba(34, 211, 238, 0.42);
}

html.ec-theme-electric .webelite-credit:hover {
  color: rgba(103, 232, 249, 0.88);
}

/* Plan rescate: trial vencido en tarjeta pública */
.ec-rescue-banner {
  margin-top: 0.35rem;
  padding: 0.65rem 1rem 0.5rem;
  text-align: center;
}

.ec-rescue-banner-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  max-width: 100%;
  padding: 0.55rem 1rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(250, 248, 242, 0.92);
  background: linear-gradient(135deg, rgba(30, 28, 22, 0.95), rgba(12, 12, 10, 0.98));
  border: 1px solid rgba(212, 175, 55, 0.38);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.45),
    0 0 20px rgba(212, 175, 55, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.ec-rescue-banner-link:hover {
  border-color: rgba(244, 208, 63, 0.55);
  color: #fdfbf5;
  box-shadow:
    0 6px 28px rgba(0, 0, 0, 0.5),
    0 0 24px rgba(212, 175, 55, 0.14);
}

html.ec-theme-minimal .ec-rescue-banner-link {
  color: rgba(23, 23, 23, 0.88);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 245, 245, 0.98));
  border-color: rgba(64, 64, 64, 0.22);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

html.ec-theme-electric .ec-rescue-banner-link {
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(34, 211, 238, 0.1);
}

/* MascotBook — modo alerta (mascota perdida) */
@keyframes ec-mascota-alerta-pulse {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  25% {
    transform: translate3d(-1px, 0, 0);
  }
  75% {
    transform: translate3d(1px, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ec-mascota-alerta .ec-card-container,
  html.ec-mascota-alerta .ec-card-container {
    animation: none !important;
  }
}

html.ec-mascota-alerta,
html.ec-mascota-alerta body {
  --ec-alert-bg: #1a0505;
  --ec-alert-text: #fff5f5;
}

html.ec-mascota-alerta body {
  background: radial-gradient(ellipse 120% 80% at 50% 0%, #3a0a0a 0%, #120303 45%, #050505 100%) !important;
}

html.ec-mascota-alerta .ec-card-container {
  animation: ec-mascota-alerta-pulse 2.8s ease-in-out infinite;
}

html.ec-mascota-alerta .led-name,
html.ec-mascota-alerta .led-sub {
  color: #fff5f5 !important;
  text-shadow: 0 0 20px rgba(220, 38, 38, 0.35) !important;
}

html.ec-mascota-alerta .avatar-gold-ring {
  box-shadow:
    0 0 0 1px rgba(220, 38, 38, 0.5),
    0 0 32px rgba(220, 38, 38, 0.25) !important;
}

html.ec-mascota-alerta .ec-contact-button.link-pill {
  border-color: rgba(220, 38, 38, 0.45) !important;
  background: linear-gradient(180deg, rgba(40, 10, 10, 0.95), rgba(20, 5, 5, 0.98)) !important;
  color: #fff5f0 !important;
}

.ec-rescue-banner--mascota {
  margin-top: 0.25rem;
}

.ec-rescue-banner-link--mascota {
  border-color: rgba(248, 113, 113, 0.45) !important;
  background: linear-gradient(135deg, rgba(60, 15, 15, 0.95), rgba(25, 8, 8, 0.98)) !important;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.45),
    0 0 20px rgba(220, 38, 38, 0.12);
}

.ec-rescue-banner-link--mascota:hover {
  border-color: rgba(252, 165, 165, 0.55) !important;
}

/* —— MascotBook · Ficha médica pública —— */
.ec-pet-tabbar-inner {
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.06);
}

.ec-pet-tab {
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
}

.ec-pet-tab--active {
  color: #f5efd8 !important;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.18), rgba(212, 175, 55, 0.06));
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.12);
}

.ec-ficha-medica-panel {
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 1.15rem;
  margin-left: 0.25rem;
  margin-right: 0.25rem;
  padding-top: 0.75rem;
  background: linear-gradient(165deg, #0a0a0c 0%, #060508 50%, #08070a 100%);
  box-shadow:
    inset 0 1px 0 rgba(212, 175, 55, 0.08),
    0 0 40px rgba(212, 175, 55, 0.04);
}

.ec-ficha-medica-panel .ec-ficha-inner {
  border: 1px solid rgba(212, 175, 55, 0.14);
  border-radius: 0.85rem;
  background: rgba(0, 0, 0, 0.35);
}

.ec-ficha-stack-card {
  transform: rotate(-0.25deg);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.ec-ficha-stack-card:nth-child(even) {
  transform: rotate(0.35deg);
}
.ec-pet-mode .ec-ficha-stack-card:hover {
  transform: translateY(-2px) rotate(0deg);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
}
.ec-pet-mode .avatar-photo {
  opacity: 0;
  animation: ec-study-fade 0.55s ease forwards;
}

.ec-ficha-alerta-glow {
  border-color: rgba(248, 113, 113, 0.45) !important;
  box-shadow:
    0 0 0 1px rgba(248, 113, 113, 0.2),
    0 0 28px rgba(248, 113, 113, 0.18),
    0 0 48px rgba(212, 175, 55, 0.06) !important;
  animation: ec-ficha-alerta-pulse 2.4s ease-in-out infinite;
}

@keyframes ec-ficha-alerta-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(248, 113, 113, 0.2),
      0 0 24px rgba(248, 113, 113, 0.14),
      0 0 40px rgba(212, 175, 55, 0.05);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(248, 113, 113, 0.35),
      0 0 36px rgba(248, 113, 113, 0.22),
      0 0 56px rgba(212, 175, 55, 0.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ec-ficha-alerta-glow {
    animation: none;
  }

  .ec-vacuna-warn-icon {
    animation: none !important;
  }
}

.ec-vacuna-timeline-item {
  position: relative;
  padding-left: 1.35rem;
  border-left: 2px solid rgba(212, 175, 55, 0.28);
}

.ec-vacuna-timeline-item:last-child {
  border-left-color: transparent;
}

.ec-vacuna-timeline-item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 0.35rem;
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--ec-gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.45);
}

.ec-vacuna-warn-icon {
  color: #fbbf24;
  animation: ec-vacuna-blink 1.1s ease-in-out infinite;
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.55));
}

@keyframes ec-vacuna-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.ec-pet-study-thumb {
  cursor: pointer;
  border-radius: 0.65rem;
  border: 1px solid rgba(212, 175, 55, 0.25);
  overflow: hidden;
  aspect-ratio: 1;
  background: #000;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.ec-pet-study-thumb:hover {
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.ec-pet-study-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: ec-study-fade 0.5s ease forwards;
}

@keyframes ec-study-fade {
  from {
    opacity: 0;
    transform: scale(0.985);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== MascotBook: Social-Pet Redesign ===== */
.ec-pet-mode {
  --ec-pet-bg-a: #ff6b6b;
  --ec-pet-bg-b: #5f6fff;
  --ec-pet-bg-c: #36d399;
  --ec-pet-card: #ffffff;
  --ec-pet-text: #1f2937;
  --ec-pet-muted: #6b7280;
  --ec-pet-shadow: 0 14px 36px rgba(17, 24, 39, 0.12);
  --ec-pet-accent: #5f6fff;
}

html.ec-pet-mode,
html.ec-pet-mode body,
html:has(.ec-pet-mode),
html:has(.ec-pet-mode) body {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 107, 107, 0.38), transparent 42%),
    radial-gradient(circle at 82% 8%, rgba(95, 111, 255, 0.4), transparent 46%),
    linear-gradient(180deg, #f7fbff 0%, #eef3ff 52%, #f6fdf8 100%) !important;
}

.ec-pet-mode .avatar-led-halo {
  background: radial-gradient(ellipse at center, rgba(95, 111, 255, 0.26) 0%, transparent 72%);
}

.ec-pet-mode .avatar-gold-ring {
  padding: 3px;
  border-radius: 1.75rem;
  background: linear-gradient(135deg, #ff6b6b 0%, #5f6fff 54%, #36d399 100%);
  box-shadow: 0 12px 32px rgba(95, 111, 255, 0.24);
}

.ec-pet-mode .avatar-inner {
  width: min(11rem, 82vw);
  border-radius: 1.6rem;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.2);
}

.ec-pet-mode .led-name {
  color: #1f2937 !important;
  font-weight: 600;
  text-shadow: none;
}

.ec-pet-mode .led-sub,
.ec-pet-mode #display-org,
.ec-pet-mode #display-cargo-detalle,
.ec-pet-mode #display-bio {
  color: #6b7280 !important;
  text-shadow: none !important;
}

.ec-pet-social-feed {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-bottom: 0.4rem;
}

.ec-pet-social-card {
  border-radius: 1.15rem;
  border: 1px solid color-mix(in oklab, var(--ec-pet-accent), white 74%);
  background: var(--ec-pet-card);
  box-shadow: var(--ec-pet-shadow);
  padding: 0.95rem;
}

.ec-pet-social-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.71rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ec-pet-accent);
}

.ec-pet-social-text {
  margin: 0;
  color: var(--ec-pet-text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.ec-pet-hero-photo-wrap {
  overflow: hidden;
  border-radius: 0.95rem;
}

.ec-pet-hero-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  opacity: 0;
  animation: ec-study-fade 0.55s ease forwards;
}

.ec-pet-like-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.ec-pet-like-chip {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 9999px;
  background: color-mix(in oklab, var(--ec-pet-accent), white 88%);
  color: #283046;
  padding: 0.5rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 500;
}

.ec-pet-like-chip i {
  color: var(--ec-pet-accent);
}

.ec-pet-moment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.ec-pet-moment-btn {
  border: 0;
  padding: 0;
  margin: 0;
  border-radius: 0.7rem;
  overflow: hidden;
  cursor: pointer;
  background: #dbe6ff;
}

.ec-pet-moment-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
  opacity: 0;
  animation: ec-study-fade 0.5s ease forwards;
}

.ec-pet-care-list p {
  margin: 0.28rem 0;
  color: var(--ec-pet-text);
  font-size: 0.92rem;
  line-height: 1.45;
}

.ec-pet-care-list strong {
  color: #374151;
}

.ec-pet-family-btn {
  border: 0;
  border-radius: 9999px;
  padding: 0.8rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--ec-pet-accent);
  box-shadow: 0 12px 24px color-mix(in oklab, var(--ec-pet-accent), black 72%);
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.ec-pet-family-btn:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

#app-root.ec-pet-mode.theme-classic {
  --ec-pet-card: #151515;
  --ec-pet-text: #ebe6dc;
  --ec-pet-muted: #b9b3aa;
  --ec-pet-accent: #d4af37;
  --ec-pet-shadow: 0 16px 34px rgba(0, 0, 0, 0.36);
}

#app-root.ec-pet-mode.theme-classic .ec-pet-social-card {
  background: #151515;
}

#app-root.ec-pet-mode.theme-classic .ec-pet-social-text,
#app-root.ec-pet-mode.theme-classic .ec-pet-care-list p,
#app-root.ec-pet-mode.theme-classic .ec-pet-care-list strong {
  color: #ebe6dc;
}

#app-root.ec-pet-mode.theme-organic,
#app-root.ec-pet-mode.theme-park {
  --ec-pet-card: #fffde8;
  --ec-pet-text: #123b2f;
  --ec-pet-muted: #3a6b5b;
  --ec-pet-accent: #1fbf75;
}

#app-root.ec-pet-mode.theme-candy {
  --ec-pet-card: #fff7fe;
  --ec-pet-text: #4b3f5e;
  --ec-pet-muted: #7d6d96;
  --ec-pet-accent: #ff5fb2;
}

#app-root.ec-pet-mode.theme-night {
  --ec-pet-card: #111a33;
  --ec-pet-text: #dbeafe;
  --ec-pet-muted: #a3b4d8;
  --ec-pet-accent: #60a5fa;
  --ec-pet-shadow: 0 16px 34px rgba(3, 7, 18, 0.52);
}

#app-root.ec-pet-mode.theme-glass {
  --ec-pet-card: rgba(255, 255, 255, 0.68);
  --ec-pet-text: #1f2a44;
  --ec-pet-muted: #4d5d7a;
  --ec-pet-accent: #5b8cff;
}

#app-root.ec-pet-mode.theme-organic .ec-pet-hero-photo-wrap,
#app-root.ec-pet-mode.theme-park .ec-pet-hero-photo-wrap,
#app-root.ec-pet-mode.theme-candy .ec-pet-hero-photo-wrap {
  border-radius: 1.3rem;
  border: 2px solid color-mix(in oklab, var(--ec-pet-accent), white 62%);
}

#app-root.ec-pet-mode.theme-organic .ec-pet-social-feed,
#app-root.ec-pet-mode.theme-park .ec-pet-social-feed,
#app-root.ec-pet-mode.theme-candy .ec-pet-social-feed {
  gap: 1rem;
}

#app-root.ec-pet-mode.theme-night .ec-pet-social-card {
  border-color: rgba(96, 165, 250, 0.35);
  background: rgba(15, 23, 42, 0.9);
}

#app-root.ec-pet-mode.theme-night .ec-pet-social-text,
#app-root.ec-pet-mode.theme-night .ec-pet-care-list p,
#app-root.ec-pet-mode.theme-night .ec-pet-care-list strong {
  color: #dbeafe;
}

#app-root.ec-pet-mode.theme-glass .ec-pet-social-card {
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(11px);
  -webkit-backdrop-filter: blur(11px);
  border-color: rgba(91, 140, 255, 0.28);
}

#app-root.ec-pet-mode.pet-relief .ec-pet-social-card {
  box-shadow:
    10px 10px 24px rgba(15, 23, 42, 0.12),
    -10px -10px 24px rgba(255, 255, 255, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* MascotBook — texturas de fondo (selector público) */
.ec-pet-bg-toolbar .ec-pet-bg-btn.ec-pet-bg-btn--on {
  border-color: rgba(34, 211, 238, 0.75);
  background: rgba(255, 255, 255, 0.22);
}

#app-root.ec-pet-bg-burbujas.ec-pet-mode::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.55) 0 7px, transparent 8px),
    radial-gradient(circle at 38% 42%, rgba(255, 255, 255, 0.35) 0 5px, transparent 6px),
    radial-gradient(circle at 72% 22%, rgba(255, 255, 255, 0.4) 0 6px, transparent 7px),
    radial-gradient(circle at 55% 68%, rgba(255, 255, 255, 0.3) 0 4px, transparent 5px);
  background-size: 120px 120px;
}

#app-root.ec-pet-bg-huellas.ec-pet-mode::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='%231f2937' fill-opacity='0.12'%3E%3Cpath d='M22 46c-3 2-7-2-5-5 2-2 6-2 5 5zm20 0c3 2 7-2 5-5-2-2-6-2-5 5z'/%3E%3Cellipse cx='36' cy='36' rx='11' ry='9'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 72px 72px;
}

#app-root.ec-pet-bg-glass.ec-pet-mode::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.42) 0%, transparent 42%),
    linear-gradient(315deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
  backdrop-filter: blur(0.5px);
}

#app-root.ec-pet-mode > * {
  position: relative;
  z-index: 1;
}

/* =============================================================================
   MascotBook — UI pública (card.html #layout-mascot). No afecta EliteCard.
   ============================================================================= */

#layout-mascot .mb-lost-banner {
  animation: mb-lost-pulse-red 1.5s ease-in-out infinite;
  background: linear-gradient(90deg, #dc2626, #ef4444, #dc2626);
  background-size: 200% 100%;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: clamp(0.68rem, 3vw, 0.82rem);
  padding: 0.65rem 0.75rem;
  text-align: center;
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.55);
}

@keyframes mb-lost-pulse-red {
  0%,
  100% {
    opacity: 1;
    filter: brightness(1);
    background-position: 0% 50%;
  }
  50% {
    opacity: 0.92;
    filter: brightness(1.15);
    background-position: 100% 50%;
  }
}

#layout-mascot .mb-lost-legal-note {
  font-size: 12px;
  color: rgba(107, 114, 128, 0.95);
  line-height: 1.55;
  margin: 0.75rem 0 0;
  padding: 0 0.35rem;
  text-align: center;
}

#layout-mascot .mb-lost-actions .mb-lost-legal-note {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

#layout-mascot #mascot-block-owner .mb-lost-legal-note {
  text-align: left;
  margin-top: 0.85rem;
  padding: 0;
}

#layout-mascot .mb-panic-wrap {
  margin-top: 0.65rem;
  width: 100%;
}

#layout-mascot .mb-panic-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 900;
  font-size: clamp(0.78rem, 3.2vw, 0.95rem);
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(180deg, #ef4444, #b91c1c);
  border: 2px solid rgba(254, 202, 202, 0.85);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 12px 36px rgba(185, 28, 28, 0.45);
  cursor: pointer;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

#layout-mascot .mb-panic-btn:disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}

/* Lightbox fotos MascotBook (perfil + galería) */
.mb-photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 6000;
  display: grid;
  place-items: center;
  padding: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right))
    max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
  box-sizing: border-box;
}

.mb-photo-lightbox.hidden {
  display: none !important;
}

.mb-photo-lightbox__backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(0, 0, 0, 0.9);
  cursor: zoom-out;
}

.mb-photo-lightbox__content {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1200px);
  max-height: 90dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.mb-photo-lightbox__content .mb-photo-lightbox__close,
.mb-photo-lightbox__content .mb-photo-lightbox__img {
  pointer-events: auto;
}

.mb-photo-lightbox__close {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.mb-photo-lightbox__close:hover {
  background: rgba(30, 41, 59, 0.92);
}

.mb-photo-lightbox__img {
  max-width: 100%;
  max-height: 85dvh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.35rem;
  vertical-align: middle;
}

/* Pre-pop-up: permiso GPS antes de navigator.geolocation (modo mascota perdida) */
.mb-gps-modal {
  position: fixed;
  inset: 0;
  z-index: 6500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  box-sizing: border-box;
}

.mb-gps-modal.hidden {
  display: none !important;
}

.mb-gps-modal__backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.mb-gps-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 22rem;
  border-radius: 1.15rem;
  padding: 1.35rem 1.2rem 1.2rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #0f172a;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.08),
    0 24px 48px rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(139, 92, 246, 0.22);
  font-family: "Poppins", system-ui, sans-serif;
  text-align: center;
}

.mb-gps-modal__title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #5b21b6;
}

.mb-gps-modal__text {
  margin: 0 0 1.1rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #334155;
  text-align: left;
}

.mb-gps-modal__btn {
  display: block;
  width: 100%;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: 0.85rem;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(180deg, #7c3aed, #5b21b6);
  box-shadow: 0 8px 24px rgba(91, 33, 182, 0.35);
  box-sizing: border-box;
}

.mb-gps-modal__btn:hover {
  filter: brightness(1.05);
}

.mb-gps-modal__cancel {
  display: block;
  width: 100%;
  margin-top: 0.65rem;
  padding: 0.5rem;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#layout-mascot .mascot-photo,
#layout-mascot .gallery-item {
  cursor: zoom-in;
}

#layout-mascot .mb-hero {
  position: relative;
  width: 100%;
  min-height: 200px;
  overflow: hidden;
}

#layout-mascot .mb-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

#layout-mascot .mb-hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 62%, rgba(0, 0, 0, 0.16) 100%);
  opacity: 0;
}

#layout-mascot .mb-hero.mb-hero--has-img .mb-hero-shade {
  opacity: 1;
}

/* Menos solapamiento con el banner que -2.6rem (mascot-social.css) */
#layout-mascot .mb-ig-profile {
  position: relative;
  z-index: 2;
  margin-top: -1.35rem;
}

/* Footer marca: logo + nombre agencia centrados (especialmente en móvil) */
#layout-mascot footer.mb-brand-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: min(100%, 100vw);
  box-sizing: border-box;
  margin: 1rem auto 0.6rem;
  padding-left: max(1rem, env(safe-area-inset-left, 0px));
  padding-right: max(1rem, env(safe-area-inset-right, 0px));
  cursor: pointer;
}

#layout-mascot footer.mb-brand-footer > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

#layout-mascot footer.mb-brand-footer strong,
#layout-mascot footer.mb-brand-footer small {
  display: block;
  text-align: center;
  width: 100%;
}

#layout-mascot footer.mb-brand-footer img {
  flex-shrink: 0;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

#layout-mascot footer.mb-brand-footer .mb-brand-footer-mail {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
}

#layout-mascot footer.mb-brand-footer .mb-brand-footer-mail {
  color: rgba(15, 23, 42, 0.72);
}

#layout-mascot #mb-app-unified-footer {
  width: 100%;
  max-width: min(100%, 100vw);
  box-sizing: border-box;
  padding-left: max(1rem, env(safe-area-inset-left, 0px));
  padding-right: max(1rem, env(safe-area-inset-right, 0px));
  line-height: 1.55;
}

#layout-mascot #mb-app-unified-footer #btn-legal-app {
  font: inherit;
  font-size: inherit;
  color: rgba(100, 116, 139, 0.95);
  background: none;
  border: none;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

#layout-mascot #mb-app-unified-footer #btn-legal-app:hover {
  color: rgba(124, 58, 237, 0.95);
}

/* Móvil: una columna centrada (logo + texto alineados entre sí) */
@media (max-width: 767px) {
  #layout-mascot footer.mb-brand-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    float: none;
    margin-left: auto;
    margin-right: auto;
    padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
    text-align: center;
  }

  #layout-mascot footer.mb-brand-footer > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: center;
  }

  #layout-mascot footer.mb-brand-footer img {
    float: none;
    display: block;
    margin: 0 auto 10px;
    text-align: center;
  }

  #layout-mascot footer.mb-brand-footer strong,
  #layout-mascot footer.mb-brand-footer small {
    margin: 0;
    padding: 0;
    text-align: center;
    width: 100%;
  }
}

/* Superficies MascotBook: capas en mascot-theme-engine.css (sin pisar el tema) */

