
:root {
  --blue-950: #03255a;
  --blue-900: #063875;
  --blue-700: #0874b9;
  --blue-500: #18a9d4;
  --yellow-500: #ffb900;
  --yellow-100: #fff7d8;
  --ink: #10213a;
  --muted: #607089;
  --surface: #ffffff;
  --soft: #f4f8fc;
  --line: #dce6f1;
  --danger: #c93636;
  --success: #16855b;
  --shadow: 0 22px 55px rgba(4, 39, 86, .12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 7% 0%, rgba(255, 201, 40, .18), transparent 25rem),
    radial-gradient(circle at 100% 18%, rgba(24, 169, 212, .17), transparent 30rem),
    linear-gradient(180deg, #fafdff 0%, #f3f8fd 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.site-header {
  padding: 14px 18px 0;
}

.topbar {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
}

.brand-link {
  grid-column: 2;
  display: block;
}

.brand-link img {
  display: block;
  width: min(350px, 65vw);
  max-height: 190px;
  object-fit: contain;
}

.language-picker {
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 8px 24px rgba(4,39,86,.08);
}

.language-picker select {
  border: 0;
  outline: 0;
  color: var(--blue-950);
  background: transparent;
  font-weight: 800;
}

.app-shell {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 8px 0 55px;
}

.intro, .product-hero {
  max-width: 780px;
  margin: 0 auto 30px;
  text-align: center;
}

.intro.compact { margin-bottom: 25px; }

.eyebrow, .section-kicker {
  margin: 0 0 7px;
  color: var(--blue-700);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .15em;
}

.intro h1, .product-hero h1 {
  margin: 0;
  color: var(--blue-950);
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -.045em;
}

.intro p:last-child, .product-hero > p:last-child {
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.55;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 18px;
  color: var(--blue-900);
  font-weight: 800;
  text-decoration: none;
}

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

.product-card {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 21px;
  color: var(--ink);
  background: rgba(255,255,255,.95);
  box-shadow: 0 10px 28px rgba(4,38,80,.06);
  text-align: left;
  text-decoration: none;
  transition: .2s ease;
}

.product-card:hover, .product-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(8,116,185,.5);
  box-shadow: 0 18px 36px rgba(4,46,98,.12);
  outline: none;
}

.product-card.is-selected {
  border-color: var(--yellow-500);
  box-shadow: 0 0 0 3px rgba(255,185,0,.17), 0 18px 36px rgba(4,46,98,.12);
}

.product-icon, .hero-icon, .selected-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--blue-700);
  background: var(--soft);
  overflow: hidden;
}

.product-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
}

.product-icon img { width: 35px; height: 35px; }

.product-copy strong {
  display: block;
  margin-bottom: 5px;
  color: var(--blue-950);
  font-size: 1.02rem;
}

.product-copy span {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.35;
}

.hero-icon {
  width: 116px;
  height: 116px;
  margin: 0 auto 18px;
  border-radius: 34px;
  box-shadow: 0 15px 40px rgba(4,46,98,.12);
}

.hero-icon img { width: 72px; height: 72px; }
.hero-icon.generic img { width: 65px; height: 65px; }

.editor-panel, .read-result {
  margin-top: 25px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255,255,255,.97);
  box-shadow: var(--shadow);
}

.editor-heading {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 25px;
}

.editor-heading h2, .read-result h2 {
  margin: 0;
  color: var(--blue-950);
  font-size: clamp(1.45rem, 3vw, 2.1rem);
}

.selected-icon {
  width: 68px;
  height: 68px;
  border-radius: 21px;
}

.selected-icon img { width: 39px; height: 39px; }

.editor-description {
  margin: 7px 0 0;
  color: var(--muted);
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field.full { grid-column: 1 / -1; }

.field label {
  color: var(--blue-950);
  font-size: .88rem;
  font-weight: 800;
}

.field small {
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.35;
}

.field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid #cad8e7;
  border-radius: 14px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfdff;
  outline: none;
}

.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(24,169,212,.14);
}

.field textarea {
  min-height: 115px;
  resize: vertical;
}

.inline-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
}

.mini-button {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 0 15px;
  color: var(--blue-900);
  background: #fff;
  font-weight: 800;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
}

.check-row input { width: 18px; height: 18px; }

.payload-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px dashed #bdd0e3;
  border-radius: 17px;
  background: linear-gradient(135deg, #f8fbff, #f1f8fc);
}

.payload-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

#payloadPreview, #generalPayloadPreview {
  display: block;
  max-width: 760px;
  overflow-wrap: anywhere;
  color: var(--blue-950);
}

.size-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--blue-900);
  background: #e5f4fb;
  font-size: .79rem;
  font-weight: 800;
}

.size-pill.is-warning {
  color: #8a5100;
  background: #fff1c9;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 20px;
}

.primary-button, .secondary-button, .restore-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 49px;
  border-radius: 14px;
  padding: 0 20px;
  font-weight: 900;
}

.primary-button {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  box-shadow: 0 13px 23px rgba(6,56,117,.22);
}

.secondary-button {
  border: 1px solid #bad0e5;
  color: var(--blue-900);
  background: #fff;
}

.secondary-button img { width: 22px; height: 22px; }

.restore-button {
  border: 1px solid #e6b632;
  color: #654600;
  background: var(--yellow-100);
}

.primary-button:disabled, .secondary-button:disabled, .restore-button:disabled {
  opacity: .55;
  cursor: wait;
}

.nfc-mark {
  display: inline-block;
  transform: rotate(-10deg);
  letter-spacing: -2px;
}

.read-result-head {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  color: var(--blue-900);
  background: var(--soft);
  font-size: 1.55rem;
}

.read-records {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.read-record {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdff;
}

.read-record span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.read-record pre {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--blue-950);
  font-family: inherit;
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 9px;
  padding: 18px 20px 30px;
  color: var(--muted);
  font-size: .84rem;
}

.site-footer strong { color: var(--blue-900); }

.status-dialog {
  width: min(430px, calc(100% - 30px));
  border: 0;
  border-radius: 27px;
  padding: 31px;
  text-align: center;
  color: var(--ink);
  box-shadow: 0 30px 90px rgba(0,22,55,.34);
}

.status-dialog::backdrop {
  background: rgba(3,26,58,.58);
  backdrop-filter: blur(4px);
}

.status-dialog h2 {
  margin: 18px 0 8px;
  color: var(--blue-950);
}

.status-dialog p {
  margin: 0 auto 20px;
  color: var(--muted);
  line-height: 1.5;
}

.signal-animation {
  position: relative;
  width: 92px;
  height: 92px;
  margin: 0 auto;
}

.signal-animation::before {
  content: "NFC";
  position: absolute;
  inset: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--yellow-500);
  font-size: .66rem;
  font-weight: 950;
}

.signal-animation span {
  position: absolute;
  inset: 0;
  border: 3px solid var(--blue-500);
  border-radius: 50%;
  animation: pulse 1.8s infinite ease-out;
}

.signal-animation span:nth-child(2) { animation-delay: .45s; }
.signal-animation span:nth-child(3) { animation-delay: .9s; }

@keyframes pulse {
  0% { transform: scale(.28); opacity: .9; }
  100% { transform: scale(1); opacity: 0; }
}

.toast {
  position: fixed;
  z-index: 20;
  right: 18px;
  bottom: 18px;
  max-width: min(430px, calc(100% - 36px));
  padding: 14px 17px;
  border-radius: 14px;
  color: #fff;
  background: var(--blue-950);
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
}

.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

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

@media (max-width: 690px) {
  .topbar {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .brand-link {
    grid-column: 1;
    justify-self: start;
  }

  .brand-link img {
    width: min(270px, 62vw);
    max-height: 150px;
  }

  .language-picker { grid-column: 2; }

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

  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

  .product-card {
    min-height: 142px;
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
  }

  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }

  .payload-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .action-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .primary-button, .secondary-button, .restore-button { width: 100%; }

  .site-footer {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 390px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-card {
    min-height: 96px;
    flex-direction: row;
  }
}

/* Versión 6: cada ruta funciona como configurador aislado */
.brand-link {
  cursor: default;
  user-select: none;
}

.back-link {
  display: none !important;
}

#landingView .product-grid {
  display: none !important;
}


/* Versión 7: pedidos por WhatsApp en la portada */
.order-card {
  max-width: 850px;
  margin: 28px auto 0;
  padding: clamp(21px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255,255,255,.97);
  box-shadow: var(--shadow);
}

.order-heading {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 25px;
}

.order-heading h2 {
  margin: 0;
  color: var(--blue-950);
  font-size: clamp(1.55rem, 4vw, 2.3rem);
}

.order-heading p:last-child {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.whatsapp-badge {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 22px;
  background: #25D366;
  box-shadow: 0 13px 28px rgba(37,211,102,.25);
}

.whatsapp-badge img {
  width: 40px;
  height: 40px;
}

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

.order-form .full {
  grid-column: 1 / -1;
}

.order-form textarea {
  min-height: 105px;
}

.order-message {
  padding: 16px 18px;
  border: 1px dashed #b9d3c3;
  border-radius: 17px;
  background: #f3fcf6;
}

.order-message > span {
  display: block;
  margin-bottom: 8px;
  color: #177944;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.order-message pre {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: inherit;
  font-size: .88rem;
  line-height: 1.5;
}

.whatsapp-order-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 55px;
  border-radius: 16px;
  padding: 0 22px;
  color: #fff;
  background: #25D366;
  box-shadow: 0 14px 28px rgba(37,211,102,.28);
  font-weight: 900;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.whatsapp-order-button:hover,
.whatsapp-order-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(37,211,102,.34);
  outline: none;
}

.whatsapp-order-button img {
  width: 26px;
  height: 26px;
}

@media (max-width: 690px) {
  .order-heading {
    align-items: flex-start;
  }

  .whatsapp-badge {
    width: 58px;
    height: 58px;
    border-radius: 18px;
  }

  .whatsapp-badge img {
    width: 33px;
    height: 33px;
  }

  .order-form {
    grid-template-columns: 1fr;
  }

  .order-form .full {
    grid-column: auto;
  }
}

/* Versión 9: un único campo profesional de cantidad */
#orderQuantity {
  appearance: auto;
}


/* Versión 10: logo centrado en móvil, aviso de guardar y guía visual */
@media (max-width: 690px) {
  .topbar {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 132px;
  }

  .brand-link {
    display: block;
    margin: 0 auto;
  }

  .brand-link img {
    display: block;
    width: min(270px, 68vw);
    max-height: 145px;
    margin: 0 auto;
  }

  .language-picker {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
  }
}

.save-page-notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 850px;
  margin: 0 auto 24px;
  padding: 17px 19px;
  border: 1px solid rgba(255, 185, 0, .42);
  border-radius: 18px;
  background: linear-gradient(135deg, #fffaf0, #fff4cf);
  box-shadow: 0 10px 26px rgba(119, 82, 0, .08);
}

.save-page-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #735000;
  background: #ffd65a;
  font-size: 1.05rem;
}

.save-page-notice strong {
  display: block;
  margin-bottom: 3px;
  color: #614500;
  font-size: .96rem;
}

.save-page-notice p {
  margin: 0;
  color: #745f2e;
  font-size: .86rem;
  line-height: 1.45;
}

.guide-section {
  max-width: 980px;
  margin: 34px auto 0;
}

.guide-header {
  text-align: center;
  margin-bottom: 22px;
}

.guide-header h2 {
  margin: 6px 0 8px;
  color: var(--blue-950);
  font-size: clamp(1.6rem, 3.8vw, 2.35rem);
}

.guide-header p:last-child {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
}

.guide-hero-card {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 22px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255,255,255,.98);
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}

.guide-hero-media {
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, #fbfdff, #eef5fb);
  min-height: 320px;
  display: grid;
  place-items: center;
}

.guide-hero-media img {
  display: block;
  width: 100%;
  max-width: 400px;
  height: auto;
}

.guide-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(32, 145, 225, .12);
  color: #0f6caf;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.guide-hero-copy h3 {
  margin: 12px 0 10px;
  color: var(--blue-950);
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
}

.guide-hero-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.guide-card {
  position: relative;
  padding: 22px 20px 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.98);
  box-shadow: var(--shadow);
}

.guide-step-number {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #e8f3ff;
  color: #1669ab;
  font-size: .82rem;
  font-weight: 900;
}

.guide-mini-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(180deg, #f2f8ff, #e7f3ff);
  font-size: 1.55rem;
  margin-bottom: 14px;
}

.guide-card h3 {
  margin: 0 0 8px;
  color: var(--blue-950);
  font-size: 1.06rem;
}

.guide-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: .93rem;
}

@media (max-width: 920px) {
  .guide-hero-card {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 480px) {
  .save-page-notice {
    padding: 15px 16px;
  }

  .save-page-icon {
    width: 34px;
    height: 34px;
  }

  .guide-hero-card,
  .guide-card {
    border-radius: 22px;
  }
}


/* Versión 11: guía visual real de configuración en 4 pasos */
.guide-grid-four {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guide-card-photo {
  padding: 16px 16px 18px;
}

.guide-photo {
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(180deg, #f7fbff, #eef5fb);
  border: 1px solid var(--line);
  margin-bottom: 14px;
}

.guide-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.guide-card-photo h3 {
  margin: 0 0 8px;
  color: var(--blue-950);
  font-size: 1.06rem;
}

.guide-card-photo p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: .93rem;
}

@media (max-width: 920px) {
  .guide-grid-four {
    grid-template-columns: 1fr;
  }
}


/* Versión 12: galería de modelos y guía visual CanaryTap */
.showcase-section{max-width:1040px;margin:34px auto 0}
.showcase-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px}
.showcase-card{padding:12px;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:0 12px 28px rgba(4,39,86,.08);text-align:center}
.showcase-card img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:15px;margin-bottom:9px}
.showcase-card strong{color:var(--blue-950);font-size:.86rem}
.guide-photo img{aspect-ratio:1/1;object-fit:cover}
@media(max-width:900px){.showcase-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:520px){.showcase-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* Versión 13: personalización, ideas de uso y públicos */
.custom-offer-section,
.use-cases-section {
  max-width: 1040px;
  margin: 36px auto 0;
}

.custom-offer-card {
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(360px, 1.1fr);
  gap: 34px;
  align-items: center;
  overflow: hidden;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(24, 169, 212, .22);
  border-radius: 32px;
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 190, 35, .19), transparent 17rem),
    linear-gradient(135deg, rgba(255,255,255,.99), rgba(236,248,255,.98));
  box-shadow: var(--shadow);
}

.custom-offer-gallery {
  position: relative;
  min-height: 390px;
}

.custom-photo {
  position: absolute;
  display: block;
  object-fit: cover;
  border: 8px solid #fff;
  border-radius: 25px;
  box-shadow: 0 24px 52px rgba(4, 39, 86, .18);
}

.custom-photo-main {
  z-index: 3;
  left: 8%;
  top: 2%;
  width: 67%;
  transform: rotate(-4deg);
}

.custom-photo-secondary {
  z-index: 2;
  right: 1%;
  top: 18%;
  width: 50%;
  transform: rotate(7deg);
}

.custom-photo-third {
  z-index: 4;
  right: 14%;
  bottom: 0;
  width: 43%;
  transform: rotate(-2deg);
}

.custom-offer-copy h2,
.use-cases-header h2 {
  margin: 5px 0 12px;
  color: var(--blue-950);
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.custom-offer-text,
.use-cases-header > p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.custom-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 21px;
}

.custom-feature-grid span {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 49px;
  padding: 11px 13px;
  border: 1px solid rgba(8,116,185,.14);
  border-radius: 14px;
  color: var(--blue-950);
  background: rgba(255,255,255,.83);
  font-size: .88rem;
  font-weight: 760;
}

.custom-feature-grid b {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  color: #fff;
  background: var(--blue-700);
}

.custom-offer-note {
  margin: 17px 0 0;
  color: var(--blue-700);
  font-size: .88rem;
  font-weight: 760;
}

.custom-offer-button,
.audience-banner a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 49px;
  margin-top: 19px;
  border-radius: 14px;
  padding: 0 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  box-shadow: 0 13px 25px rgba(6,56,117,.2);
  font-weight: 900;
  text-decoration: none;
}

.use-cases-header {
  max-width: 780px;
  margin: 0 auto 24px;
  text-align: center;
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.use-case-card {
  position: relative;
  min-height: 245px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 15px 36px rgba(4,39,86,.08);
}

.use-case-icon {
  display: grid;
  place-items: center;
  width: 55px;
  height: 55px;
  margin-bottom: 15px;
  border-radius: 18px;
  background: linear-gradient(145deg, #e8f6ff, #fff4c8);
  font-size: 1.55rem;
}

.use-case-card h3 {
  margin: 0 0 9px;
  color: var(--blue-950);
  font-size: 1.06rem;
}

.use-case-card p {
  margin: 0;
  color: var(--muted);
  font-size: .91rem;
  line-height: 1.57;
}

.audience-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 18px;
  padding: 20px 22px;
  border: 1px solid rgba(255,185,0,.38);
  border-radius: 21px;
  background: linear-gradient(135deg, #fff8da, #eefaff);
}

.audience-banner strong {
  color: var(--blue-950);
  line-height: 1.5;
}

.audience-banner a {
  flex: 0 0 auto;
  margin-top: 0;
}

@media (max-width: 920px) {
  .custom-offer-card {
    grid-template-columns: 1fr;
  }

  .custom-offer-gallery {
    width: min(100%, 580px);
    min-height: 420px;
    margin: 0 auto;
  }

  .use-cases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .custom-offer-card {
    padding: 23px 17px;
    border-radius: 25px;
  }

  .custom-offer-gallery {
    min-height: 315px;
  }

  .custom-photo {
    border-width: 5px;
    border-radius: 19px;
  }

  .custom-feature-grid,
  .use-cases-grid {
    grid-template-columns: 1fr;
  }

  .use-case-card {
    min-height: auto;
  }

  .audience-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .audience-banner a {
    width: 100%;
  }
}


/* V14: portada comercial, imágenes responsivas y configuradores especializados */
.experience-section,
.showcase-section,
.custom-offer-section,
.use-cases-section,
.packaging-section,
.guide-section,
.order-card-final { margin-top: 28px; }

.experience-slider {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #071c38;
  box-shadow: var(--shadow);
}
.experience-slide { position:absolute; inset:0; opacity:0; transition:opacity .65s ease; pointer-events:none; }
.experience-slide.is-active { opacity:1; pointer-events:auto; }
.experience-slide > img { width:100%; height:100%; min-height:520px; display:block; object-fit:cover; object-position:center; }
.experience-slide::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg, rgba(3,25,57,.90) 0%, rgba(3,25,57,.55) 38%, rgba(3,25,57,.04) 72%); }
.experience-caption { position:absolute; z-index:2; left:clamp(22px,5vw,62px); bottom:clamp(28px,6vw,70px); width:min(480px,78%); color:#fff; }
.experience-caption h2 { margin:10px 0; font-size:clamp(1.8rem,4.2vw,3.4rem); line-height:1.02; letter-spacing:-.035em; }
.experience-caption p { margin:0; max-width:46ch; line-height:1.55; font-size:1.02rem; }
.experience-badge { display:inline-flex; padding:8px 12px; border-radius:999px; color:#fff; background:linear-gradient(135deg,#7c3aed,#ec4899,#f59e0b); font-size:.76rem; font-weight:900; letter-spacing:.1em; text-transform:uppercase; }
.experience-badge.professional { background:linear-gradient(135deg,var(--blue-700),var(--blue-500)); }
.slider-arrow { position:absolute; z-index:3; top:50%; width:44px; height:44px; margin-top:-22px; border:1px solid rgba(255,255,255,.45); border-radius:50%; color:#fff; background:rgba(3,26,58,.52); backdrop-filter:blur(8px); font-size:2rem; line-height:1; }
.slider-prev { left:14px; } .slider-next { right:14px; }
.slider-dots { position:absolute; z-index:3; left:50%; bottom:17px; display:flex; gap:7px; transform:translateX(-50%); }
.slider-dots span { width:9px; height:9px; border-radius:50%; background:rgba(255,255,255,.45); }
.slider-dots span.is-active { width:25px; border-radius:999px; background:#fff; }

.showcase-grid-complete { grid-template-columns:repeat(5,minmax(0,1fr)); }
.showcase-visual { position:relative; width:100%; aspect-ratio:1/1; overflow:hidden; border-radius:18px; background:#f5f9fd; }
.showcase-keyring { width:100%; height:100%; display:block; object-fit:contain; }
.showcase-symbol { position:absolute; right:9px; bottom:9px; width:43px; height:43px; display:grid; place-items:center; overflow:hidden; border:3px solid #fff; border-radius:14px; background:#fff; box-shadow:0 7px 20px rgba(3,35,73,.20); }
.showcase-symbol img { width:100%; height:100%; object-fit:cover; }

.hero-icon.with-keychain { position:relative; width:min(210px,72vw); height:180px; border-radius:28px; overflow:visible; background:linear-gradient(145deg,#fff,#edf5fb); }
.hero-icon.with-keychain .hero-keychain { width:100%; height:100%; object-fit:contain; border-radius:25px; }
.hero-brand-mini { position:absolute; right:-5px; bottom:-5px; width:68px; height:68px; display:grid; place-items:center; overflow:hidden; border:5px solid #fff; border-radius:22px; background:#fff; box-shadow:0 12px 30px rgba(4,39,86,.22); }
.hero-brand-mini img { width:100% !important; height:100% !important; object-fit:cover; }

.packaging-card { display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); align-items:center; gap:clamp(25px,5vw,60px); padding:clamp(22px,4vw,45px); border:1px solid var(--line); border-radius:30px; background:linear-gradient(135deg,#fff,#f1f8fd); box-shadow:var(--shadow); }
.packaging-image img { width:100%; max-height:480px; display:block; object-fit:contain; border-radius:24px; }
.packaging-copy h2 { margin:0; color:var(--blue-950); font-size:clamp(1.7rem,3.5vw,2.8rem); line-height:1.05; }
.packaging-copy > p { color:var(--muted); line-height:1.6; }
.packaging-features { display:grid; gap:10px; margin-top:20px; }
.packaging-features span { padding:12px 14px; border:1px solid var(--line); border-radius:14px; color:var(--blue-900); background:#fff; font-weight:800; }

.order-card-final { scroll-margin-top:25px; }

/* Never let generated/product images overflow on phones. */
img { max-width:100%; }

@media (max-width: 900px) {
  .showcase-grid-complete { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .packaging-card { grid-template-columns:1fr; }
}
@media (max-width: 650px) {
  .topbar { grid-template-columns:1fr auto; align-items:center; }
  .brand-link { grid-column:1; justify-self:start; }
  .brand-link img { width:min(220px,58vw); max-height:110px; }
  .language-picker { grid-column:2; }
  .experience-slider, .experience-slide > img { min-height:490px; }
  .experience-slide > img { object-position:62% center; }
  .experience-slide::after { background:linear-gradient(0deg,rgba(3,25,57,.94) 0%,rgba(3,25,57,.55) 48%,rgba(3,25,57,.05) 78%); }
  .experience-caption { left:20px; right:20px; bottom:42px; width:auto; }
  .slider-arrow { width:38px; height:38px; font-size:1.6rem; }
  .showcase-grid-complete { grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; }
  .showcase-card { min-width:0; }
  .showcase-symbol { width:37px; height:37px; }
  .hero-icon.with-keychain { width:min(190px,78vw); height:160px; }
}
@media (prefers-reduced-motion: reduce) {
  .experience-slide { transition:none; }
}

/* V16: carrusel ampliado de soluciones CanaryTap. Solo afecta a la portada. */
.experience-slider-v16 {
  min-height: 520px;
  background: #061a34;
  isolation: isolate;
}
.experience-slider-v16 .experience-slide picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.experience-slider-v16 .experience-slide picture img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center;
}
.experience-slider-v16 .experience-slide:not(.has-caption)::after {
  background: linear-gradient(180deg, rgba(2,16,35,.02) 0%, rgba(2,16,35,.08) 70%, rgba(2,16,35,.30) 100%);
}
.experience-slider-v16 .experience-caption-compact {
  left: clamp(22px, 4vw, 48px);
  bottom: clamp(72px, 8vw, 92px);
  width: min(460px, 76%);
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 20px;
  background: rgba(3,25,57,.72);
  box-shadow: 0 18px 45px rgba(0,0,0,.22);
  backdrop-filter: blur(9px);
}
.experience-slider-v16 .experience-caption-compact h2 {
  margin: 9px 0 7px;
  font-size: clamp(1.55rem, 3.4vw, 2.55rem);
}
.experience-slider-v16 .experience-caption-compact p {
  font-size: .96rem;
}
.slider-controls {
  position: absolute;
  z-index: 5;
  right: 18px;
  top: 18px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(3,25,57,.62);
  box-shadow: 0 8px 25px rgba(0,0,0,.18);
  backdrop-filter: blur(10px);
}
.slider-controls .slider-arrow {
  position: static;
  width: 34px;
  height: 34px;
  margin: 0;
  border-color: rgba(255,255,255,.32);
  background: rgba(255,255,255,.08);
  font-size: 1.45rem;
  cursor: pointer;
}
.slider-controls .slider-dots {
  position: static;
  display: flex;
  align-items: center;
  gap: 6px;
  transform: none;
}
.slider-controls .slider-dots button {
  width: 8px;
  height: 8px;
  min-width: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.46);
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}
.slider-controls .slider-dots button.is-active {
  width: 23px;
  border-radius: 999px;
  background: #fff;
}
.use-cases-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.use-case-card {
  min-height: 230px;
}
@media (max-width: 920px) {
  .use-cases-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .experience-slider-v16,
  .experience-slider-v16 .experience-slide picture img {
    min-height: 500px;
  }
  .experience-slider-v16 .experience-slide picture img {
    object-fit: cover;
    object-position: center;
  }
  .experience-slider-v16 .experience-slide::after {
    background: linear-gradient(0deg, rgba(3,25,57,.86) 0%, rgba(3,25,57,.14) 48%, rgba(3,25,57,.02) 100%);
  }
  .experience-slider-v16 .experience-slide:not(.has-caption)::after {
    background: linear-gradient(0deg, rgba(3,25,57,.18), rgba(3,25,57,.02) 45%);
  }
  .experience-slider-v16 .experience-caption-compact {
    left: 14px;
    right: 14px;
    bottom: 16px;
    width: auto;
    padding: 14px 15px;
    border-radius: 17px;
  }
  .experience-slider-v16 .experience-caption-compact h2 {
    font-size: 1.35rem;
  }
  .experience-slider-v16 .experience-caption-compact p {
    font-size: .86rem;
    line-height: 1.45;
  }
  .slider-controls {
    top: 12px;
    right: 12px;
    gap: 6px;
    padding: 5px 7px;
  }
  .slider-controls .slider-arrow {
    width: 31px;
    height: 31px;
    font-size: 1.25rem;
  }
  .use-cases-grid { grid-template-columns: 1fr; }
}


/* V18 · Perrito perdido */
.pet-help-shell{
  display:flex;
  justify-content:center;
  padding:8px 0 4px;
}
.pet-help-card{
  display:grid;
  grid-template-columns:minmax(260px, 390px) minmax(280px, 1fr);
  gap:24px;
  align-items:center;
  background:linear-gradient(180deg,#ffffff 0%, #f7fbff 100%);
  border:1px solid rgba(9,30,66,.08);
  border-radius:28px;
  box-shadow:0 24px 60px rgba(6,56,117,.12);
  overflow:hidden;
}
.pet-help-visual{
  min-height:100%;
  background:linear-gradient(135deg,#eef6ff,#f9fbfd);
}
.pet-help-visual img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.pet-help-copy{
  padding:24px 24px 24px 0;
}
.pet-help-subtitle{
  color:#506070;
  margin:0 0 18px;
  max-width:52ch;
}
.pet-help-data{
  display:grid;
  gap:12px;
  margin:16px 0 18px;
}
.pet-help-item{
  background:#fff;
  border:1px solid rgba(9,30,66,.09);
  border-radius:18px;
  padding:14px 16px;
  box-shadow:0 10px 24px rgba(6,56,117,.05);
}
.pet-help-item span{
  display:block;
  font-size:.85rem;
  color:#6b7a90;
  margin-bottom:4px;
}
.pet-help-item strong{
  display:block;
  color:#13233a;
  font-size:1rem;
  line-height:1.35;
  word-break:break-word;
}
.pet-help-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}
.pet-help-actions a{
  text-decoration:none;
}
@media (max-width: 820px){
  .pet-help-card{
    grid-template-columns:1fr;
  }
  .pet-help-copy{
    padding:0 18px 22px;
  }
}


/* V20 · Galería exclusiva de canarytap.com/google */
.google-business-gallery{
  display:grid;
  grid-template-columns:minmax(0, 1.7fr) minmax(180px, .7fr);
  gap:16px;
  align-items:stretch;
  margin:0 0 18px;
}
.google-business-gallery[hidden]{
  display:none !important;
}
.google-business-gallery figure{
  margin:0;
  overflow:hidden;
  border:1px solid rgba(9,30,66,.10);
  border-radius:24px;
  background:#fff;
  box-shadow:0 18px 45px rgba(6,56,117,.10);
}
.google-business-gallery img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
.google-business-main{
  min-height:320px;
}
.google-keyring-reference{
  min-height:320px;
}
.google-keyring-reference img{
  object-fit:contain;
  padding:18px;
  background:linear-gradient(180deg,#f7fbff,#ffffff);
}
@media (max-width:720px){
  .google-business-gallery{
    grid-template-columns:1fr;
  }
  .google-business-main,
  .google-keyring-reference{
    min-height:0;
  }
  .google-keyring-reference img{
    max-height:420px;
  }
}


/* V22 · Indicador para el botón Programar NFC */
.program-guide{
  flex:0 0 100%;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  width:max-content;
  max-width:100%;
  margin:0 0 1px;
  padding:10px 14px;
  border:1px solid #f0c84b;
  border-radius:14px;
  color:#624600;
  background:linear-gradient(180deg,#fff9dd,#fff1ad);
  box-shadow:0 9px 20px rgba(177,127,0,.13);
  font-size:.88rem;
  font-weight:900;
  line-height:1.35;
}

.program-guide-text{
  display:block;
}

.program-guide-arrow{
  display:inline-grid;
  place-items:center;
  flex:0 0 auto;
  width:31px;
  height:31px;
  border-radius:50%;
  color:#fff;
  background:#e8a500;
  font-size:1.35rem;
  line-height:1;
  animation:canarytapProgramArrow 1.05s ease-in-out infinite;
}

.program-target{
  position:relative;
  outline:3px solid rgba(255,193,7,.34);
  outline-offset:2px;
}

@keyframes canarytapProgramArrow{
  0%,100%{transform:translateY(-2px)}
  50%{transform:translateY(4px)}
}

@media (prefers-reduced-motion:reduce){
  .program-guide-arrow{animation:none}
}

@media (max-width:580px){
  .program-guide{
    width:100%;
    justify-content:space-between;
  }
}
