html,
body {
  overflow-x: hidden;
}

body {
  background: #f6f8fb;
  color: #0f172a;
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.variable-data-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.85rem 0;
}

.variable-data-actions button {
  min-height: 36px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font-weight: 850;
  padding: 0 0.75rem;
  cursor: pointer;
}

.variable-table-wrap {
  max-height: 320px;
  overflow: auto;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #fff;
}

.variable-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.variable-table th,
.variable-table td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid #edf2f7;
  text-align: left;
  white-space: nowrap;
}

.variable-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  color: #334155;
  font-weight: 900;
}

.nav-header {
  position: fixed !important;
  inset: 0 0 auto 0 !important;
  z-index: 1000 !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08) !important;
  backdrop-filter: blur(16px);
}

.nav-container {
  max-width: 1280px !important;
  min-height: 64px !important;
  margin: 0 auto !important;
  padding: 0 1.25rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem !important;
}

.logo-link,
.nav-link {
  color: #172033 !important;
  text-decoration: none !important;
}

.logo-carddesigner {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.65rem !important;
  font-weight: 900 !important;
}

.logo-icon {
  width: 38px !important;
  height: 38px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 10px !important;
  background: #0f172a !important;
  color: white !important;
  font-size: 0.78rem !important;
}

.logo-text {
  color: #0f172a !important;
  font-size: 0.98rem !important;
}

/* Real logo — Navbar: ícono cuadrado + texto */
.nav-logo-icon {
  height: 34px !important;
  width: 34px !important;
  object-fit: contain !important;
  display: block !important;
  /* El ícono tiene fondo blanco, se ve bien en navbar blanca */
  filter: none;
  flex-shrink: 0;
}

.logo-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  text-decoration: none !important;
}

.nav-logo-name {
  font-family: 'Inter', sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  letter-spacing: -0.3px !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}

.nav-logo-name strong {
  font-weight: 800 !important;
  color: #0f172a !important;
}

.nav-logo-name em {
  font-style: normal !important;
  font-weight: 700 !important;
  color: #2563eb !important;
}

.logo-link:hover .nav-logo-icon {
  opacity: 0.85;
  transition: opacity 0.18s ease;
}

.nav-menu.desktop-only {
  display: flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
}

.nav-menu.mobile-only {
  display: none !important;
}

.nav-link,
.nav-menu button.nav-link {
  width: auto !important;
  min-height: 38px !important;
  padding: 0.55rem 0.75rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  border-radius: 8px !important;
  color: #334155 !important;
  background: transparent !important;
  border: 0 !important;
  font-weight: 750 !important;
  font-size: 0.9rem !important;
  cursor: pointer !important;
}

.nav-link:hover,
.nav-menu button.nav-link:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

.nav-button {
  width: auto !important;
  min-height: 40px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.6rem 1rem !important;
  border-radius: 9px !important;
  background: #0f172a !important;
  color: white !important;
  text-decoration: none !important;
  font-weight: 850 !important;
  font-size: 0.9rem !important;
  border: 0 !important;
  cursor: pointer !important;
}

.nav-button:hover {
  background: #1e293b !important;
}

.nav-toggle.mobile-only {
  display: none !important;
  width: 42px !important;
  height: 42px !important;
  padding: 0 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 9px !important;
  background: #fff !important;
  place-items: center !important;
}

.nav-toggle span {
  display: block !important;
  width: 18px !important;
  height: 2px !important;
  margin: 3px auto !important;
  background: #0f172a !important;
}

main {
  min-height: 80vh;
}

.landing-page {
  background:
    radial-gradient(circle at 18% 12%, rgba(20, 184, 166, 0.16), transparent 34%),
    radial-gradient(circle at 86% 8%, rgba(15, 23, 42, 0.12), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #eef4f8 42%, #f7fafc 100%);
}

.landing-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.landing-hero {
  padding: 132px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1fr);
  gap: 3.5rem;
  align-items: center;
}

.hero-label,
.section-heading p {
  margin: 0 0 0.8rem;
  color: #0e7490;
  font-size: 0.82rem;
  font-weight: 900;
}

.hero-copy h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3.1rem, 7vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero-description {
  max-width: 62ch;
  margin: 1.35rem 0 0;
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.7rem;
}

.site-btn {
  width: auto !important;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.76rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 900;
  border: 1px solid #cbd5e1;
  cursor: pointer;
}

.site-btn.primary {
  background: #0f172a;
  color: white;
  border-color: #0f172a;
}

.site-btn.secondary {
  background: white;
  color: #0f172a;
}

.site-btn.light {
  background: white;
  color: #0f172a;
  border-color: white;
}

.hero-stats {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.hero-stats div {
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #dbe3ef;
  border-radius: 12px;
}

.hero-stats b {
  display: block;
  font-size: 1.1rem;
}

.hero-stats span {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-studio-preview {
  padding: 1rem;
  background: #dce7ef;
  border: 1px solid #cbd5e1;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
}

.preview-toolbar,
.preview-ruler {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 850;
}

.preview-toolbar {
  padding: 0.45rem 0.35rem 0.9rem;
}

.preview-card {
  position: relative;
  aspect-ratio: 1.586 / 1;
  overflow: hidden;
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(15, 23, 42, 0.06) 1px, transparent 1px),
    #ffffff;
  background-size: 34px 34px;
  border: 12px solid white;
  outline: 1px solid #cbd5e1;
}

.preview-band {
  position: absolute;
  top: 34px;
  left: 0;
  right: 0;
  height: 62px;
  background: #0f172a;
}

.preview-chip {
  position: absolute;
  left: 46px;
  top: 150px;
  width: 80px;
  height: 62px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-radius: 10px;
  overflow: hidden;
  background: #d4af37;
  border: 2px solid #8a6f1f;
}

.preview-chip span {
  border: 1px solid rgba(138, 111, 31, 0.72);
}

.preview-id {
  position: absolute;
  left: 46px;
  bottom: 28px;
  display: grid;
  gap: 0.15rem;
}

.preview-id small {
  color: #0e7490;
  font-weight: 900;
}

.preview-id strong {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
}

.preview-id span {
  color: #64748b;
  font-weight: 700;
}

.preview-qr {
  position: absolute;
  right: 48px;
  bottom: 44px;
  width: 92px;
  height: 92px;
  display: block;
  padding: 7px;
  background: white;
  border: 1px solid #cbd5e1;
  box-sizing: border-box;
}

.preview-qr img {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.preview-ruler {
  padding: 0.9rem 0.35rem 0.1rem;
}

.feature-band,
.plans-section,
.landing-cta {
  padding: 72px 0;
}

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

.feature-grid article,
.plan-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  padding: 1.35rem;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.07);
}

.feature-grid span {
  color: #0e7490;
  font-weight: 900;
}

.feature-grid h2 {
  margin: 0.5rem 0;
  font-size: 1.2rem;
}

.feature-grid p,
.section-heading h2,
.cta-panel p {
  color: #475569;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 1.3rem;
}

.section-heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 1rem;
}

.plan-card {
  position: relative;
}

.plan-card.featured {
  background: #0f172a;
  color: white;
  border-color: #0f172a;
}

.popular-flag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.32rem 0.52rem;
  border-radius: 7px;
  background: #cffafe;
  color: #155e75;
  font-weight: 900;
  font-size: 0.78rem;
}

.plan-header {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.plan-header span {
  font-weight: 900;
}

.plan-header strong {
  font-size: 2.2rem;
}

.plan-header small {
  font-size: 0.9rem;
  color: #64748b;
}

.featured .plan-header small,
.featured li {
  color: #cbd5e1;
}

.plan-annual {
  display: block;
  width: fit-content;
  padding: 0.45rem 0.58rem;
  border: 1px solid #dbe3ef;
  border-radius: 9px;
  background: #f8fafc;
  color: #334155 !important;
  font-weight: 850;
  line-height: 1.35;
}

.featured .plan-annual {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #dff7f3 !important;
}

.plan-card ul {
  margin: 0 0 1.3rem;
  padding-left: 1.1rem;
  line-height: 1.9;
}

.landing-cta {
  padding-bottom: 96px;
}

.products-page {
  background:
    radial-gradient(circle at 10% 10%, rgba(14, 116, 144, 0.1), transparent 30%),
    linear-gradient(180deg, #f8fafc 0%, #eef4f8 100%) !important;
}

.products-page .section-header {
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
}

.products-page .section-header h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(2.2rem, 5vw, 4.3rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.products-page .section-header p {
  max-width: 620px;
  margin: 1rem auto 0;
  color: #536173;
  font-size: 1.05rem;
  line-height: 1.65;
}

.catalog-message {
  max-width: 760px;
  margin: 0 auto 1.1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-weight: 800;
  text-align: center;
}

.catalog-message-success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.catalog-message-warning {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
}

.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 2.8rem;
}

.catalog-filter {
  width: auto !important;
  min-height: 40px;
  padding: 0.52rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #334155;
  font-weight: 850;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.catalog-filter:hover {
  transform: translateY(-1px);
  border-color: #0e7490;
  color: #0f172a;
}

.catalog-filter:active {
  transform: translateY(0);
}

.catalog-filter.is-active {
  border-color: #0f172a;
  background: #0f172a;
  color: #ffffff;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.product-card {
  overflow: hidden;
  border: 1px solid #dbe3ef;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(14, 116, 144, 0.28);
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.13);
}

.product-card-visual {
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 1.1rem;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(15, 23, 42, 0.06) 1px, transparent 1px),
    #e8eef3;
  background-size: 28px 28px;
}

.product-card-visual img {
  max-width: 100%;
  max-height: 210px;
  object-fit: contain;
  border-radius: 14px;
}

.card-preview {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 1.586 / 1;
  padding: 1.15rem;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 38%),
    linear-gradient(135deg, #111827 0%, #1f2937 54%, #0e7490 100%);
  color: #ffffff;
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.24);
}

.card-preview::after {
  content: "NFC";
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.card-preview-chip {
  width: 48px;
  height: 38px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.85);
  border-radius: 8px;
  background: #d4af37;
}

.card-preview-chip span {
  border: 1px solid rgba(94, 72, 16, 0.28);
}

.card-preview-copy {
  position: absolute;
  left: 1.15rem;
  bottom: 1.15rem;
  display: grid;
  gap: 0.14rem;
}

.card-preview-copy small {
  color: #8ee6df;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.card-preview-copy strong {
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  line-height: 1;
}

.card-preview-copy span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
}

.card-preview-qr {
  position: absolute;
  right: 1.1rem;
  bottom: 1.1rem;
  width: 58px;
  height: 58px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 6px;
  border-radius: 9px;
  background: #ffffff;
}

.card-preview-qr i {
  background: #0f172a;
  border-radius: 2px;
}

.product-body {
  padding: 1.15rem;
}

.product-body .badge {
  width: fit-content;
  margin-bottom: 0.75rem;
  padding: 0.28rem 0.45rem;
  border-radius: 7px;
  background: #dff7f3;
  color: #0f766e;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.product-body h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1.24rem;
  line-height: 1.08;
}

.product-body p {
  min-height: 3.2em;
  margin: 0.65rem 0 1rem;
  color: #536173;
  line-height: 1.55;
}

.product-price {
  margin-bottom: 1.1rem;
  color: #0e7490;
  font-size: 1.35rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.product-actions {
  display: grid;
  gap: 0.65rem;
}

.btn-secondary-soft {
  border: 1px solid #0e7490 !important;
  background: #ffffff !important;
  color: #0e7490 !important;
  cursor: pointer !important;
}

.btn-secondary-soft:hover {
  background: #ecfeff !important;
}

.catalog-empty {
  max-width: 520px;
  margin: 0 auto;
  padding: 2.5rem 1rem;
  text-align: center;
}

.catalog-empty-card {
  position: relative;
  width: 168px;
  aspect-ratio: 1.586 / 1;
  margin: 0 auto 1.2rem;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #dbe3ef;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
}

.catalog-empty-card span {
  position: absolute;
  height: 8px;
  border-radius: 999px;
  background: #dbe3ef;
}

.catalog-empty-card span:nth-child(1) {
  left: 18px;
  top: 22px;
  width: 42px;
  background: #d4af37;
}

.catalog-empty-card span:nth-child(2) {
  left: 18px;
  top: 48px;
  width: 96px;
}

.catalog-empty-card span:nth-child(3) {
  left: 18px;
  top: 66px;
  width: 72px;
}

.catalog-empty-card span:nth-child(4) {
  right: 18px;
  bottom: 18px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.catalog-empty h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1.4rem;
}

.catalog-empty p {
  margin: 0.5rem auto 0;
  color: #536173;
}

.product-skeleton {
  min-height: 390px;
  border: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.68), transparent),
    linear-gradient(#dbe3ef 0 0) 24px 250px / 52px 16px no-repeat,
    linear-gradient(#dbe3ef 0 0) 24px 284px / 72% 22px no-repeat,
    linear-gradient(#e8eef3 0 0) 24px 324px / 86% 14px no-repeat,
    linear-gradient(#e8eef3 0 0) 24px 346px / 64% 14px no-repeat,
    linear-gradient(#eef4f8 0 0) 0 0 / 100% 220px no-repeat,
    rgba(255, 255, 255, 0.9);
  background-size:
    220px 100%,
    52px 16px,
    72% 22px,
    86% 14px,
    64% 14px,
    100% 220px,
    auto;
  animation: catalogSkeleton 1.35s ease-in-out infinite;
}

@keyframes catalogSkeleton {
  0% {
    background-position:
      -220px 0,
      24px 250px,
      24px 284px,
      24px 324px,
      24px 346px,
      0 0,
      0 0;
  }
  100% {
    background-position:
      calc(100% + 220px) 0,
      24px 250px,
      24px 284px,
      24px 324px,
      24px 346px,
      0 0,
      0 0;
  }
}

.subscriptions-page {
  min-height: 100vh;
  padding: 108px 0 96px;
  background:
    radial-gradient(circle at 12% 6%, rgba(14, 116, 144, 0.14), transparent 30%),
    radial-gradient(circle at 86% 8%, rgba(15, 23, 42, 0.09), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #eef4f8 100%);
}

.subscriptions-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.subscriptions-hero {
  padding: 34px 0 24px;
  text-align: center;
}

.subscriptions-kicker {
  width: fit-content;
  margin: 0 auto 0.9rem;
  padding: 0.36rem 0.62rem;
  border: 1px solid #b6dfe7;
  border-radius: 999px;
  background: #eefbfc;
  color: #0e7490;
  font-size: 0.78rem;
  font-weight: 950;
}

.subscriptions-hero h1 {
  max-width: 820px;
  margin: 0 auto;
  color: #0f172a;
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.subscriptions-hero p {
  max-width: 760px;
  margin: 1.1rem auto 0;
  color: #44546a;
  font-size: 1.05rem;
  line-height: 1.65;
}

.subscriptions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
  margin-top: 2.2rem;
}

.subscription-card {
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid #d6e1ec;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.subscription-card.featured {
  background:
    radial-gradient(circle at 10% 0%, rgba(20, 184, 166, 0.22), transparent 38%),
    #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 24px 68px rgba(15, 23, 42, 0.24);
}

.subscription-card-header {
  display: grid;
  gap: 0.45rem;
}

.subscription-card-header span {
  color: #0e7490;
  font-size: 0.78rem;
  font-weight: 950;
}

.featured .subscription-card-header span {
  color: #8ee6df;
}

.subscription-card-header strong {
  color: inherit;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.subscription-card-header p,
.subscription-limit span,
.subscription-rules {
  color: #536173;
}

.featured .subscription-card-header p,
.featured .subscription-limit span,
.featured .subscription-rules {
  color: #cbd5e1;
}

.subscription-flag {
  width: fit-content;
  padding: 0.34rem 0.52rem;
  border-radius: 8px;
  background: #dff7f3;
  color: #0f766e;
  font-size: 0.75rem;
  font-weight: 950;
}

.subscription-limit {
  padding: 0.9rem;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: #f8fafc;
}

.subscription-price {
  padding: 0.9rem;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.subscription-price strong {
  display: block;
  color: inherit;
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.subscription-price span {
  display: block;
  margin-top: 0.22rem;
  color: #0e7490;
  font-weight: 950;
}

.subscription-price small {
  display: block;
  margin-top: 0.55rem;
  color: #536173;
  font-size: 0.86rem;
  font-weight: 780;
  line-height: 1.35;
}

.featured .subscription-limit {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}

.featured .subscription-price {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}

.featured .subscription-price span {
  color: #8ee6df;
}

.featured .subscription-price small {
  color: #cbd5e1;
}

.subscription-limit b {
  display: block;
  margin-bottom: 0.24rem;
  color: inherit;
  font-size: 1.05rem;
}

.subscription-limit span {
  display: block;
  line-height: 1.45;
}

.subscription-rules {
  display: grid;
  gap: 0.56rem;
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1.35;
  font-weight: 760;
}

.subscription-rules li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 0.5rem;
  align-items: start;
}

.subscription-rules li::before {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 950;
}

.subscription-rules .ok::before {
  content: "✓";
  background: #dcfce7;
  color: #047857;
}

.subscription-rules .no::before {
  content: "×";
  background: #fee2e2;
  color: #b91c1c;
}

.subscription-action {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 0.78rem 1rem;
  border: 1px solid #0f172a;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 950;
}

.subscription-action.primary {
  background: #0f172a;
  color: #ffffff;
}

.subscription-action.primary.light {
  background: #ffffff;
  color: #0f172a;
  border-color: #ffffff;
}

.subscription-action.secondary {
  background: #ffffff;
  color: #0f172a;
}

.connector-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  gap: 1.1rem;
  margin-top: 4rem;
  padding-top: 2.2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.28);
  align-items: stretch;
}

.connector-copy {
  padding: 1.3rem;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #dbe3ef;
}

.connector-copy span {
  color: #0e7490;
  font-size: 0.78rem;
  font-weight: 950;
}

.connector-copy h2 {
  margin: 0.6rem 0 0;
  color: #0f172a;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.025em;
}

.connector-copy p {
  margin: 1rem 0 0;
  color: #536173;
  line-height: 1.65;
}

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

.connector-card {
  padding: 1.15rem;
  border-radius: 18px;
  background: #0f172a;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.connector-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #dff7f3;
  margin-bottom: 1rem;
}

.connector-icon i {
  display: block;
  background: #0e7490;
}

.database-icon {
  grid-template-rows: repeat(3, 7px);
  gap: 5px;
}

.database-icon i {
  width: 30px;
  height: 7px;
  border-radius: 999px;
}

.printer-icon {
  position: relative;
}

.printer-icon i:nth-child(1) {
  width: 28px;
  height: 16px;
  border-radius: 4px 4px 2px 2px;
}

.printer-icon i:nth-child(2) {
  width: 36px;
  height: 20px;
  border-radius: 6px;
}

.printer-icon i:nth-child(3) {
  width: 26px;
  height: 9px;
  border-radius: 2px;
  background: #ffffff;
}

.connector-card h3 {
  margin: 0;
  font-size: 1.24rem;
}

.connector-card p,
.connector-card li {
  color: #cbd5e1;
}

.connector-card p {
  line-height: 1.55;
}

.connector-card ul {
  margin: 1rem 0 0;
  padding-left: 1rem;
  line-height: 1.75;
}

@media (max-width: 980px) {
  .subscriptions-grid,
  .connector-section,
  .connector-grid {
    grid-template-columns: 1fr;
  }
}

.cta-panel {
  background: #0f172a;
  color: white;
  border-radius: 18px;
  display: grid;
  padding: 1.5rem clamp(1.2rem, 4vw, 2rem);
  grid-template-columns: 1fr auto;
  gap: 1rem 1.4rem;
  row-gap: 1rem;
}

.cta-copy {
  min-width: 0;
}

.cta-panel h2 {
  margin: 0;
  max-width: 700px;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.cta-panel p {
  margin: 0.45rem 0 0;
  color: #cbd5e1;
  max-width: 70ch;
  line-height: 1.45;
  font-size: 0.94rem;
}

.cta-kicker {
  margin: 0;
  display: inline-block;
  color: #7dd3fc;
  font-weight: 900;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.cta-points {
  margin-top: .8rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.cta-points span {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .34rem .56rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.17);
  font-size: .74rem;
  font-weight: 800;
}

.cta-actions {
  display: flex;
  gap: .65rem;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}

.cta-actions .site-btn.light {
  background: #ffffff;
  color: #0f172a;
}

.landing-cta .site-btn.secondary.light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.34);
  color: #ffffff;
}

.footer {
  background: #0b1220;
  color: white;
  padding: 48px 0 28px;
}

.footer .container {
  max-width: 1180px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.footer a {
  color: #cbd5e1;
  text-decoration: none;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #94a3b8;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.site-footer {
  position: relative !important;
  isolation: isolate !important;
  margin: 0 !important;
  padding: 0 !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(20, 184, 166, 0.16), transparent 30%),
    radial-gradient(circle at 82% 16%, rgba(59, 130, 246, 0.16), transparent 28%),
    linear-gradient(180deg, #0f172a 0%, #08111f 100%) !important;
  background-color: #0f172a !important;
  color: #e5edf7 !important;
  border-top: 1px solid rgba(148, 163, 184, 0.18) !important;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent);
}

.site-footer-inner {
  width: min(1180px, calc(100% - 40px)) !important;
  margin: 0 auto !important;
  padding: 44px 0 26px !important;
}

.site-footer-content {
  display: grid !important;
  grid-template-columns: minmax(280px, 1.45fr) repeat(2, minmax(160px, 0.7fr)) !important;
  gap: clamp(1.5rem, 4vw, 4rem) !important;
  align-items: start !important;
}

.site-footer .logo-carddesigner {
  color: #ffffff !important;
}

.site-footer .logo-icon {
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24) !important;
}

.site-footer .logo-text {
  color: #ffffff !important;
}

.footer-full-logo {
  height: 46px;
  width: auto;
  max-width: min(320px, 52vw);
  display: block;
  object-fit: contain;
}

/* Real logo — Footer: ícono blanco + texto blanco */
.footer-logo-wrap {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 4px !important;
}

.footer-logo-icon {
  height: 36px !important;
  width: 36px !important;
  object-fit: contain !important;
  display: block !important;
  /* El ícono tiene fondo blanco con colores azules —
     lo invertimos a blanco puro para el footer oscuro */
  filter: brightness(0) invert(1) !important;
  opacity: 0.9;
  flex-shrink: 0;
}

.footer-logo-name {
  font-family: 'Inter', sans-serif !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  letter-spacing: -0.3px !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}

.footer-logo-name strong {
  font-weight: 800 !important;
  color: #ffffff !important;
}

.footer-logo-name em {
  font-style: normal !important;
  font-weight: 700 !important;
  color: #22d3ee !important;
}

.site-footer-brand p {
  max-width: 430px !important;
  margin: 1rem 0 0 !important;
  color: #b8c4d6 !important;
  font-size: 0.95rem !important;
  line-height: 1.7 !important;
}

.site-footer-section h4 {
  margin: 0 0 0.9rem !important;
  color: #ffffff !important;
  font-size: 0.82rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
}

.site-footer-section ul {
  display: grid !important;
  gap: 0.55rem !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.site-footer-section li {
  margin: 0 !important;
  padding: 0 !important;
}

.site-footer a {
  color: #cbd5e1 !important;
  text-decoration: none !important;
  font-weight: 750 !important;
}

.site-footer a:hover {
  color: #ffffff !important;
}

.site-footer-bottom {
  margin-top: 2rem !important;
  padding-top: 1.1rem !important;
  border-top: 1px solid rgba(226, 232, 240, 0.13) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  color: #94a3b8 !important;
}

.site-footer-bottom p {
  margin: 0 !important;
  color: #94a3b8 !important;
  font-size: 0.9rem !important;
}

.site-footer-links {
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
  flex-wrap: wrap !important;
}

@media (max-width: 900px) {
  .nav-menu.desktop-only {
    display: none !important;
  }

  .nav-toggle.mobile-only {
    display: grid !important;
  }

  .nav-menu.mobile-only.nav-menu-open {
    display: flex !important;
    position: absolute !important;
    top: 64px !important;
    left: 0 !important;
    right: 0 !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.25rem !important;
    padding: 0.75rem 1rem 1rem !important;
    background: rgba(255, 255, 255, 0.98) !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.12) !important;
  }

  .nav-menu.mobile-only .nav-link,
  .nav-menu.mobile-only .nav-button {
    width: 100% !important;
    justify-content: flex-start !important;
  }

  .hero-grid,
  .feature-grid,
  .pricing-grid,
  .cta-panel,
  .cta-points,
  .footer-content {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    justify-content: flex-start;
  }

  .site-footer-content {
    grid-template-columns: 1fr !important;
  }

  .footer-full-logo {
    height: 40px;
    max-width: min(260px, 72vw);
  }

  .landing-hero {
    padding-top: 104px;
  }

  .hero-copy h1 {
    max-width: 11ch;
  }

  .hero-studio-preview {
    min-width: 0;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .site-footer-bottom {
    align-items: flex-start !important;
    flex-direction: column !important;
  }
}

@media (max-width: 560px) {
  .landing-shell {
    width: min(100% - 28px, 1180px);
  }

  .preview-chip {
    left: 24px;
    top: 116px;
    width: 58px;
    height: 44px;
  }

  .preview-id {
    left: 24px;
    bottom: 28px;
  }

  .preview-qr {
    right: 24px;
    bottom: 28px;
    width: 64px;
    height: 64px;
    gap: 4px;
    padding: 6px;
  }
}

.designer-modal {
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(10px);
}

.designer-modal-card {
  width: min(620px, 100%);
  padding: 20px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
}

.designer-modal-card h3 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 18px;
  font-weight: 900;
}

.designer-tool-modal-card {
  max-height: min(90vh, 760px);
  overflow: auto;
  padding: 0;
}

.tool-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 18px 20px;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.tool-modal-header p {
  margin: 0 0 0.25rem;
  color: #0e7490;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tool-modal-header h3 {
  margin: 0;
}

.tool-modal-close {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  padding: 0 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 9px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  font-size: 22px !important;
  line-height: 1 !important;
}

.tool-modal-body {
  padding: 20px;
}

.tool-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.tool-form-grid label {
  display: grid;
  gap: 6px;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 850;
}

.tool-form-grid input,
.tool-form-grid textarea,
.tool-form-grid select {
  width: 100%;
  min-height: 40px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  padding: 9px 10px;
  font: 750 0.9rem Inter, Arial, sans-serif;
  outline: none;
}

.tool-form-grid textarea {
  resize: vertical;
  line-height: 1.45;
}

.tool-form-grid input:focus,
.tool-form-grid textarea:focus,
.tool-form-grid select:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.14);
}

.tool-span-2 {
  grid-column: 1 / -1;
}

.tool-preview-card {
  margin-top: 16px;
  min-height: 150px;
  display: grid;
  place-items: center;
  padding: 16px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background:
    linear-gradient(45deg, #f8fafc 25%, transparent 25%),
    linear-gradient(-45deg, #f8fafc 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f8fafc 75%),
    linear-gradient(-45deg, transparent 75%, #f8fafc 75%);
  background-color: #ffffff;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
}

.tool-preview-card canvas {
  max-width: 100%;
  height: auto;
}

.tool-preview-card img {
  width: 132px;
  height: 132px;
  object-fit: contain;
}

.tool-preview-split {
  display: grid;
  grid-template-columns: minmax(180px, 0.72fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.tool-preview-split p,
.tool-info-box {
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  background: #f0f9ff;
  color: #075985;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.5;
}

.artistic-preview {
  min-height: 180px;
  overflow: hidden;
}

.artistic-preview [data-preview] {
  max-width: 100%;
  text-align: center;
  word-break: break-word;
}

.print-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.print-preview-grid figure {
  margin: 0;
}

.print-preview-grid figcaption {
  margin-bottom: 8px;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 900;
}

.print-preview-grid img {
  display: block;
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
}

.online-template-modal {
  width: min(1080px, calc(100vw - 32px));
}

.online-template-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 14px 20px;
  border-bottom: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.84rem;
  font-weight: 850;
}

.online-template-toolbar button,
.online-template-card button {
  min-width: 0;
  border: 1px solid #0f172a;
  border-radius: 10px;
  background: #0f172a;
  color: #ffffff;
  font-weight: 900;
}

.online-template-toolbar button {
  padding: 9px 12px;
}

.online-template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(216px, 1fr));
  gap: 14px;
  padding: 18px 20px 4px;
}

.online-template-card {
  min-width: 0;
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.online-template-preview {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1.58;
  overflow: hidden;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(226, 232, 240, 0.52) 1px, transparent 1px),
    linear-gradient(0deg, rgba(226, 232, 240, 0.52) 1px, transparent 1px),
    #f8fafc;
  background-size: 18px 18px;
}

.online-template-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
  transition: transform 160ms ease, filter 160ms ease;
}

.online-template-preview:focus {
  outline: none;
}

.online-template-preview:focus-visible {
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.22);
}

.online-template-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  max-width: calc(100% - 16px);
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(236, 254, 255, 0.94);
  color: #155e75;
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.online-template-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  padding: 34px 12px 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.04) 0%, rgba(15, 23, 42, 0.62) 56%, rgba(15, 23, 42, 0.9) 100%);
  pointer-events: none;
}

.online-template-card:hover .online-template-preview img,
.online-template-card:focus-within .online-template-preview img {
  filter: saturate(1.05) contrast(0.98);
  transform: scale(1.025);
}

.online-template-card:hover .online-template-overlay,
.online-template-card:focus-within .online-template-overlay {
  opacity: 1;
  transform: translateY(0);
}

.online-template-overlay strong {
  display: -webkit-box;
  overflow: hidden;
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 950;
  line-height: 1.05;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.58);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.online-template-overlay small {
  overflow: hidden;
  color: #67e8f9;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1.1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.online-template-no-preview,
.online-template-empty {
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 850;
  text-align: center;
}

.online-template-meta {
  min-height: 18px;
  display: flex;
  align-items: center;
}

.online-template-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.online-template-meta span {
  color: #475569;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.online-template-card button {
  width: 100%;
  padding: 10px 12px;
}

.online-template-empty {
  grid-column: 1 / -1;
  min-height: 180px;
  display: grid;
  place-items: center;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
}

.online-template-error {
  color: #991b1b;
  border-color: #fecaca;
  background: #fff1f2;
}

.online-template-warning {
  min-height: auto;
  padding: 12px 14px;
  color: #92400e;
  border-color: #fde68a;
  background: #fffbeb;
}

.designer-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 14px;
  padding: 16px 20px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

.designer-modal-actions button {
  width: auto !important;
  min-width: 112px;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  color: #0f172a;
  font-weight: 800;
}

.designer-modal-actions button[data-add] {
  border-color: #0f172a;
  background: #0f172a;
  color: #ffffff;
}

@media (max-width: 720px) {
  .tool-form-grid,
  .tool-preview-split {
    grid-template-columns: 1fr;
  }
}

.admin-page {
  min-height: 100vh;
  padding: 112px 0 56px;
  background:
    radial-gradient(circle at 10% 10%, rgba(14, 116, 144, 0.10), transparent 24%),
    radial-gradient(circle at 90% 0%, rgba(15, 23, 42, 0.07), transparent 26%),
    linear-gradient(180deg, #f8fbfd 0%, #edf3f8 100%);
}

.admin-shell {
  width: min(1400px, calc(100% - 32px));
  margin: 0 auto;
}

.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 1rem;
}

.admin-hero-copy,
.admin-hero-panel,
.admin-panel,
.admin-form-panel,
.admin-record,
.admin-empty-state {
  border: 1px solid #d8e2ee;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: none;
}

.admin-lockscreen {
  min-height: calc(100vh - 112px);
  display: grid;
  place-items: center;
  padding: 2rem 1rem 3rem;
  background:
    radial-gradient(circle at 10% 10%, rgba(14, 116, 144, 0.10), transparent 24%),
    radial-gradient(circle at 90% 0%, rgba(15, 23, 42, 0.07), transparent 26%),
    linear-gradient(180deg, #f8fbfd 0%, #edf3f8 100%);
}

.admin-lockcard {
  width: min(560px, 100%);
  display: grid;
  gap: 0.85rem;
  padding: 1.5rem;
  border: 1px solid #d8e2ee;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.95);
}

.admin-lockcard h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.admin-lockcard p {
  margin: 0;
  color: #536173;
  line-height: 1.65;
}

.admin-hero-copy {
  padding: 1.4rem;
}

.admin-kicker,
.admin-section-kicker,
.admin-section-head h2,
.admin-panel-head span,
.admin-hero-panel span,
.admin-identity span,
.admin-record-head p,
.admin-record-meta span,
.admin-record-foot small,
.admin-search span,
.admin-inline-field span,
.admin-field-grid span {
  color: #536173;
}

.admin-kicker,
.admin-section-kicker {
  margin: 0 0 0.6rem;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-hero-copy h1 {
  margin: 0;
  max-width: 13ch;
  color: #0f172a;
  font-size: clamp(2.1rem, 3.6vw, 4.1rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.admin-hero-copy p {
  max-width: 68ch;
  margin: 1rem 0 0;
  color: #44546a;
  line-height: 1.7;
  font-size: 1.02rem;
}

.admin-hero-panel {
  padding: 1.2rem;
  display: grid;
  gap: 1rem;
  align-content: start;
}

.admin-identity {
  display: grid;
  gap: 0.2rem;
}

.admin-identity strong {
  color: #0f172a;
  font-size: 1.2rem;
  line-height: 1.1;
}

.admin-identity small {
  color: #64748b;
  font-size: 0.88rem;
}

.admin-hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.admin-hero-grid div,
.admin-chip,
.admin-metric,
.admin-account-card {
  padding: 0.9rem;
  border: 1px solid #d8e2ee;
  border-radius: 14px;
  background: #f8fbfd;
}

.admin-hero-grid span,
.admin-chip span,
.admin-metric span {
  display: block;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-hero-grid strong,
.admin-chip strong,
.admin-metric strong,
.admin-account-card strong {
  display: block;
  color: #0f172a;
  font-size: 1rem;
  line-height: 1.15;
}

.admin-span-2 {
  grid-column: 1 / -1;
}

.admin-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.4rem;
}

.admin-belt {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.admin-belt article {
  padding: 0.95rem 1rem;
  border: 1px solid #d8e2ee;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
}

.admin-belt span {
  display: block;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-belt strong {
  display: block;
  margin-top: 0.2rem;
  color: #0f172a;
  font-size: 1.65rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.admin-belt small {
  display: block;
  margin-top: 0.35rem;
  color: #536173;
  line-height: 1.35;
}

.admin-action-button,
.admin-mini-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.95rem;
  width: auto;
  max-width: 100%;
  border: 1px solid #0f172a;
  border-radius: 12px;
  background: #0f172a;
  color: #ffffff;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

.admin-action-button:hover,
.admin-mini-button:hover {
  transform: translateY(-1px);
  background: #111c31;
}

.admin-action-button-ghost,
.admin-mini-button-ghost {
  background: #ffffff;
  color: #0f172a;
}

.admin-action-button-ghost:hover,
.admin-mini-button-ghost:hover {
  background: #f8fafc;
}

.admin-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 0.5rem;
  padding: 0.9rem;
  border: 1px solid #d8e2ee;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
}

.admin-tab {
  width: 100%;
  min-height: 42px;
  padding: 0.7rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #334155;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.admin-tab:hover {
  background: #f1f5f9;
  transform: translateX(1px);
}

.admin-tab.is-active {
  border-color: rgba(15, 23, 42, 0.18);
  background: #0f172a;
  color: #ffffff;
}

.admin-sidebar-footnote {
  margin-top: 0.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid #e2e8f0;
}

.admin-sidebar-footnote p {
  margin: 0;
  color: #64748b;
  font-size: 0.85rem;
  line-height: 1.5;
}

.admin-workspace {
  display: grid;
  gap: 1rem;
}

.admin-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
}

.admin-product-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr));
  align-items: start;
}

.admin-loading,
.admin-empty-state {
  padding: 1.35rem;
}

.admin-skeleton-line {
  height: 14px;
  width: min(420px, 80%);
  margin-bottom: 0.8rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #e2e8f0 0%, #f8fafc 50%, #e2e8f0 100%);
  background-size: 200% 100%;
  animation: adminShimmer 1.4s ease-in-out infinite;
}

.admin-skeleton-line.short {
  width: min(280px, 55%);
}

.admin-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.admin-skeleton-grid div {
  height: 120px;
  border-radius: 16px;
  background: linear-gradient(90deg, #e2e8f0 0%, #f8fafc 50%, #e2e8f0 100%);
  background-size: 200% 100%;
  animation: adminShimmer 1.4s ease-in-out infinite;
}

@keyframes adminShimmer {
  0% { background-position: 0 0; }
  100% { background-position: 200% 0; }
}

.admin-section {
  display: grid;
  gap: 1rem;
}

.admin-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.admin-section-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.admin-section-head p {
  margin: 0;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
}

.admin-metric {
  min-height: 138px;
  display: grid;
  align-content: start;
  gap: 0.35rem;
}

.admin-metric strong {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  letter-spacing: -0.03em;
}

.admin-metric p {
  margin: 0;
  color: #536173;
  line-height: 1.45;
  font-size: 0.88rem;
}

.tone-blue { background: linear-gradient(180deg, #eff6ff, #ffffff); }
.tone-teal { background: linear-gradient(180deg, #ecfeff, #ffffff); }
.tone-amber { background: linear-gradient(180deg, #fffbeb, #ffffff); }
.tone-slate { background: linear-gradient(180deg, #f8fafc, #ffffff); }
.tone-indigo { background: linear-gradient(180deg, #eef2ff, #ffffff); }
.tone-rose { background: linear-gradient(180deg, #fff1f2, #ffffff); }

.admin-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.admin-chip {
  min-width: 164px;
}

.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.admin-panel,
.admin-form-panel,
.admin-record {
  padding: 1.1rem;
}

.admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.admin-panel-head h3,
.admin-form-panel h3,
.admin-record-head strong {
  margin: 0;
  color: #0f172a;
}

.admin-panel-head span {
  font-size: 0.82rem;
}

.admin-compact-list {
  display: grid;
  gap: 0.55rem;
}

.admin-compact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.admin-compact-row strong {
  color: #0f172a;
}

.admin-compact-row p {
  margin: 0.2rem 0 0;
  color: #64748b;
  font-size: 0.85rem;
}

.admin-account-card {
  display: grid;
  gap: 0.2rem;
}

.admin-account-card p,
.admin-account-card span {
  margin: 0;
  color: #536173;
  font-size: 0.9rem;
}

.admin-search {
  display: grid;
  gap: 0.35rem;
}

.admin-search input,
.admin-inline-field input,
.admin-inline-field textarea,
.admin-field-grid input,
.admin-field-grid textarea,
.admin-field-grid select,
.admin-record-grid input,
.admin-record-grid textarea,
.admin-record-grid select {
  width: 100%;
  min-height: 42px;
  padding: 0.65rem 0.75rem;
  border: 1px solid #cfd8e3;
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
}

.admin-search input:focus,
.admin-inline-field input:focus,
.admin-inline-field textarea:focus,
.admin-field-grid input:focus,
.admin-field-grid textarea:focus,
.admin-field-grid select:focus,
.admin-record-grid input:focus,
.admin-record-grid textarea:focus,
.admin-record-grid select:focus {
  outline: none;
  border-color: #0e7490;
  box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.12);
}

.admin-table-wrap {
  overflow: auto;
  border: 1px solid #d8e2ee;
  border-radius: 16px;
  background: #ffffff;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}

.admin-table th,
.admin-table td {
  padding: 0.85rem 0.85rem;
  border-bottom: 1px solid #edf2f7;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.admin-table td strong {
  display: block;
  color: #0f172a;
}

.admin-subline {
  color: #64748b;
  font-size: 0.84rem;
}

.admin-table select,
.admin-inline-field input,
.admin-record-grid select,
.admin-record-grid textarea,
.admin-record-grid input,
.admin-field-grid input,
.admin-field-grid textarea,
.admin-field-grid select {
  min-width: 0;
}

.admin-mini-button {
  min-height: 38px;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  font-size: 0.86rem;
}

.admin-row-message {
  margin-top: 0.45rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-row-message-ok {
  color: #047857;
}

.admin-row-message-error {
  color: #b91c1c;
}

.admin-choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  max-width: 230px;
}

.admin-choice-group-wide {
  max-width: 330px;
}

.admin-choice {
  min-height: 30px;
  padding: 0.28rem 0.55rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
}

.admin-choice:hover:not(:disabled) {
  border-color: #0891b2;
  color: #0f172a;
}

.admin-choice.is-active {
  border-color: #0f172a;
  background: #0f172a;
  color: #ffffff;
}

.admin-choice:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.admin-hidden {
  display: none !important;
}

.admin-autofill-trap {
  position: fixed;
  left: -100vw;
  top: -100vh;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.admin-record {
  display: grid;
  gap: 0.85rem;
}

.admin-product-card {
  gap: 1rem;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,251,255,.92));
}

.admin-record-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem;
}

.admin-product-head {
  align-items: center;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #e2e8f0;
}

.admin-product-head strong {
  display: block;
  margin-top: 0.1rem;
  font-size: 1.08rem;
  line-height: 1.12;
  text-wrap: balance;
}

.admin-product-eyebrow {
  color: #0e7490;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-record-head p {
  margin: 0.18rem 0 0;
  font-size: 0.86rem;
}

.admin-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: #e2e8f0;
  color: #0f172a;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-record-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.admin-record-grid-wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-product-form {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.8rem;
}

.admin-product-form label {
  grid-column: span 3;
  min-width: 0;
}

.admin-product-form label:nth-of-type(3),
.admin-product-wide {
  grid-column: 1 / -1;
}

.admin-product-form label:nth-of-type(n + 4) {
  grid-column: span 2;
}

.admin-state-field-wide {
  grid-column: span 3;
}

.admin-record-grid label,
.admin-state-field,
.admin-inline-field,
.admin-field-grid label {
  display: grid;
  gap: 0.35rem;
  color: #334155;
  font-size: 0.84rem;
  font-weight: 750;
}

.admin-state-field > span,
.admin-template-link span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-state-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
}

.admin-state-choice {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  font-weight: 900;
  cursor: pointer;
}

.admin-state-choice.selected {
  border-color: #0f172a;
  background: #0f172a;
  color: #ffffff;
}

.admin-template-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.8rem;
  border: 1px solid #d8e2ee;
  border-radius: 12px;
  background: #f8fbff;
}

.admin-product-card .admin-template-link {
  background: #eef6fb;
  border-color: #cfe0ed;
}

.admin-template-link strong {
  display: block;
  margin-top: 0.2rem;
  color: #0f172a;
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.admin-record-foot {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.admin-record-foot span {
  display: block;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-record-foot strong {
  display: block;
  color: #0f172a;
  font-size: 1.15rem;
}

.admin-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.admin-methods-panel {
  display: grid;
  gap: 0.85rem;
  margin: 0.5rem 0 0.85rem;
  padding: 1rem 1.05rem;
  border: 1px solid #dbe5f1;
  border-radius: 18px;
  background: #f8fbff;
}

.admin-methods-head {
  display: grid;
  gap: 0.2rem;
}

.admin-methods-head strong {
  color: #0f172a;
  font-size: 0.96rem;
}

.admin-methods-head span {
  color: #64748b;
  font-size: 0.88rem;
}

.admin-methods-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.admin-toggle-card {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.9rem 0.95rem;
  border: 1px solid #d6e2ef;
  border-radius: 16px;
  background: #fff;
}

.admin-toggle-card input {
  margin-top: 0.2rem;
}

.admin-toggle-copy {
  display: grid;
  gap: 0.18rem;
}

.admin-toggle-copy strong {
  color: #0f172a;
  font-size: 0.92rem;
}

.admin-toggle-copy small {
  color: #64748b;
  line-height: 1.45;
}

.admin-action-button-compact {
  flex: 0 1 auto;
  min-width: clamp(170px, 22vw, 260px);
  padding-inline: 1rem;
}

.admin-product-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, .42fr);
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.admin-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.9rem 0;
}

.admin-form-panel {
  display: grid;
  gap: 0.25rem;
}

.admin-form-panel p {
  margin: 0;
  color: #64748b;
}

.admin-inline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.3rem 0.65rem;
  border: 1px solid #d8e2ee;
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 750;
}

.admin-connector-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.admin-code-block {
  margin: 0;
  padding: 1rem;
  border-radius: 14px;
  background: #0f172a;
  color: #e2e8f0;
  overflow: auto;
  font-size: 0.82rem;
  line-height: 1.6;
}

.admin-empty-state {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
}

.admin-empty-state-compact {
  min-height: 180px;
  padding: 1.25rem;
  align-content: center;
}

.admin-empty-state h2 {
  margin: 0;
  color: #0f172a;
}

.admin-empty-state p {
  margin: 0;
  color: #536173;
  line-height: 1.65;
}

.admin-empty-state .admin-action-button {
  margin-top: 0.35rem;
}

.admin-table-empty {
  display: grid;
  gap: 0.4rem;
  padding: 1rem;
  color: #536173;
}

.admin-table-empty strong {
  color: #0f172a;
  font-size: 1rem;
}

.admin-table-empty p {
  margin: 0;
  line-height: 1.55;
}

@media (max-width: 1180px) {
  .admin-hero,
  .admin-layout,
  .admin-belt,
  .admin-summary-grid,
  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }

  .admin-metrics,
  .admin-connector-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .admin-page {
    padding-top: 96px;
  }

  .admin-shell {
    width: min(100% - 20px, 1400px);
  }

  .admin-record-grid,
  .admin-record-grid-wide,
  .admin-product-form,
  .admin-field-grid,
  .admin-hero-grid,
  .admin-belt,
  .admin-metrics,
  .admin-connector-grid {
    grid-template-columns: 1fr;
  }

  .admin-product-form label,
  .admin-product-form label:nth-of-type(3),
  .admin-product-form label:nth-of-type(n + 4),
  .admin-product-wide,
  .admin-state-field-wide {
    grid-column: 1 / -1;
  }

  .admin-product-actions,
  .admin-template-link,
  .admin-methods-grid {
    grid-template-columns: 1fr;
  }

  .admin-chip,
  .admin-action-button,
  .admin-mini-button {
    width: 100%;
  }

  .admin-action-button-compact {
    min-width: 0;
  }

  .admin-section-head,
  .admin-record-foot {
    align-items: start;
    flex-direction: column;
  }

  .admin-table {
    min-width: 820px;
  }
}
