/* Variables globales de color, sombras, radios y safe areas */
:root {
  --white: #ffffff;
  --gray-50: #f5f7f7;
  --gray-100: #e9eeef;
  --gray-200: #d8e0e3;
  --gray-300: #c5d0d4;
  --gray-500: #6d7b83;
  --gray-700: #45525a;
  --gray-900: #1e262b;

  --mint-100: #def7ef;
  --mint-300: #bceedd;
  --mint-500: #8de2cc;
  --mint-700: #58c8a9;
  --mint-900: #1f6d59;

  --glass: rgba(255, 255, 255, 0.78);
  --glass-strong: rgba(255, 255, 255, 0.92);
  --glass-border: rgba(255, 255, 255, 0.4);

  --shadow-soft: 0 18px 50px rgba(30, 38, 43, 0.12);
  --shadow-strong: 0 24px 70px rgba(30, 38, 43, 0.18);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

/* Reset basico y estilos generales del documento */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--gray-900);
  background: var(--gray-50);
}

button,
input {
  font: inherit;
}

button {
  font-family: inherit;
}

[hidden] {
  display: none !important;
}

/* Selector de idioma reutilizable en landing y vista AR */
.language-switcher {
  position: relative;
  display: inline-block;
  isolation: isolate;
}

.language-current,
.lang-btn {
  border: 0;
  font-weight: 800;
  cursor: pointer;
}

.language-current {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 76px;
  justify-content: center;
  padding: 0.6rem 0.82rem;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 999px;
  color: var(--gray-900);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(245, 252, 249, 0.88)),
    rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 46px rgba(30, 38, 43, 0.14);
  backdrop-filter: blur(18px);
  letter-spacing: 0.1em;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.language-current:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 54px rgba(30, 38, 43, 0.18);
}

.language-current-chevron {
  color: var(--mint-700);
  font-size: 0.95rem;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform 0.22s ease;
}

.language-switcher.is-open .language-current-chevron {
  transform: rotate(180deg) translateY(1px);
}

.language-menu {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  min-width: 168px;
  padding: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(243, 252, 248, 0.9)),
    rgba(255, 255, 255, 0.92);
  box-shadow: 0 26px 70px rgba(30, 38, 43, 0.2);
  backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.96);
  transform-origin: top right;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.language-switcher.is-open .language-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.lang-btn {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.68rem 0.78rem;
  border-radius: 18px;
  color: var(--gray-700);
  background: transparent;
  text-align: left;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.lang-btn span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(31, 109, 89, 0.08);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.lang-btn small {
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.lang-btn:hover {
  color: var(--gray-900);
  background: rgba(96, 214, 181, 0.14);
  transform: translateX(2px);
}

.lang-btn.is-active {
  color: var(--gray-900);
  background: rgba(96, 214, 181, 0.2);
}

.lang-btn.is-active span {
  background: linear-gradient(135deg, var(--mint-300), var(--mint-500));
}

/* LANDING: estructura general de la pagina principal */

body.landing-page {
  overflow: hidden;
}

.landing-language {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 20;
}

.snap-shell {
  height: 100vh;
  height: 100svh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
}

.snap-section {
  min-height: 100vh;
  min-height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
}

/* Landing hero: portada, fondo, titulo y CTA inicial */
.hero-section {
  display: flex;
  align-items: center;
  padding: 7vw;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 25%, rgba(141, 226, 204, 0.35), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(188, 238, 221, 0.55), transparent 22%),
    linear-gradient(135deg, var(--white) 0%, var(--gray-100) 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.35;
  pointer-events: none;
}

.hero-welcome {
  position: absolute;
  top: 3rem;
  right: 4rem;
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.8rem);
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--gray-700);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.landing-logo-badge {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 20;
  line-height: 0;
}

.landing-logo-image {
  width: 78px;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(31, 109, 89, 0.14));
}

.hero-tag {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.hero-title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(4.2rem, 11vw, 8.5rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--gray-900);
}

.hero-description {
  max-width: 560px;
  margin: 1.4rem 0 0;
  font-size: clamp(1.2rem, 1.5vw, 1.3rem);
  line-height: 1.75;
  color: var(--gray-700);
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  padding: 1rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  background: linear-gradient(135deg, var(--mint-300), var(--mint-500));
  color: var(--gray-900);
  font-weight: 800;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease;
}

.hero-button:hover {
  transform: translateY(-2px);
}

.hero-deco {
  position: absolute;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(188, 238, 221, 0.3));
}

.hero-deco-one {
  width: 300px;
  height: 300px;
  right: -50px;
  bottom: -60px;
}

.hero-deco-two {
  width: 180px;
  height: 180px;
  right: 23%;
  top: 16%;
}

/* Landing demo: galeria del producto, texto, tarjetas y boton AR */
.demo-section {
  display: grid;
  grid-template-rows: 1fr auto;
  background: linear-gradient(180deg, #eef4f2 0%, #ffffff 100%);
}

.demo-wrapper {
  min-height: calc(100vh - 80px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 6vw;
}

.demo-image-block {
  position: relative;
  min-height: 480px;
  display: grid;
  place-items: center;
}

.demo-slider {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
}

.demo-slider-track {
  position: relative;
  width: 100%;
  min-height: clamp(320px, 34vw, 430px);
  overflow: hidden;
  border-radius: 32px;
}

.demo-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(12px) scale(0.985);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.demo-slide.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.demo-glow {
  position: absolute;
  width: min(70vw, 480px);
  height: min(70vw, 480px);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(141, 226, 204, 0.38),
    rgba(141, 226, 204, 0.08) 58%,
    transparent 72%
  );
  filter: blur(8px);
}

.demo-image {
  width: min(100%, 420px);
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 24px 40px rgba(30, 38, 43, 0.16));
}

.demo-slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1rem;
}

.demo-slider-arrow {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(69, 82, 90, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-soft);
  color: var(--gray-900);
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}

.demo-slider-arrow:hover {
  transform: translateY(-1px);
  background: rgba(223, 247, 239, 0.9);
}

.demo-slider-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  flex: 1;
}

.demo-slider-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: rgba(69, 82, 90, 0.24);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}

.demo-slider-dot.is-active {
  background: var(--mint-700);
  transform: scale(1.12);
}

.demo-content {
  max-width: 580px;
}

.section-label {
  margin: 0 0 0.7rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint-700);
}

.demo-content h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.demo-text {
  margin: 1rem 0 1.3rem;
  line-height: 1.7;
  color: var(--gray-700);
}

.demo-list {
  margin: 0 0 1.75rem;
  padding-left: 1.15rem;
  color: var(--gray-700);
  line-height: 1.8;
}

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

.feature-card {
  padding: 1rem;
  border: 1px solid rgba(69, 82, 90, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-soft);
}

.feature-card-label {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint-900);
}

.feature-card p {
  margin: 0;
  line-height: 1.6;
  color: var(--gray-700);
}

.cta-ar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  padding: 1rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  color: var(--gray-900);
  background: linear-gradient(135deg, var(--mint-300), var(--mint-500));
  box-shadow: var(--shadow-soft);
}

.demo-footer {
  height: 80px;
  display: grid;
  place-items: center;
  border-top: 1px solid rgba(69, 82, 90, 0.08);
}

.demo-footer span {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.26em;
  color: var(--gray-500);
}

/* AR: escena principal con modelo 3D y controles flotantes */

body.ar-page {
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08)),
    url("assets/cocina.jpg") center center / cover no-repeat;
}

.ar-scene {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 14%, rgba(111, 231, 198, 0.16), transparent 24%),
    radial-gradient(circle at 20% 44%, rgba(255, 255, 255, 0.5), transparent 32%),
    radial-gradient(circle at 79% 74%, rgba(223, 247, 239, 0.22), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(247, 250, 249, 0.14));
  /* backdrop-filter: blur(1.5px); */
  /* filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.18)); */
}

.ar-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.72), transparent 22%, transparent 78%, rgba(255, 255, 255, 0.42)),
    radial-gradient(ellipse at 50% 92%, rgba(30, 38, 43, 0.09), transparent 33%);
}

#arModel {
  position: relative;
  z-index: 1;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  --poster-color: transparent;
  background: transparent;
}

/* Chips flotantes: marca, nombre del producto e indicacion de hotspots */
.brand-chip,
.scene-chip,
.hint-chip {
  position: absolute;
  z-index: 5;
  padding: 0.85rem 1rem;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
  color: var(--gray-900);
  text-decoration: none;
}

.brand-chip {
  top: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
}

.brand-chip::after {
  content: "Manual AR";
  display: none;
  color: var(--mint-900);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.brand-chip-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(31, 109, 89, 0.14));
}

.scene-chip {
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 700;
}

.hint-chip {
  top: 4.7rem;
  left: 1rem;
  color: var(--gray-700);
  font-size: 0.92rem;
  line-height: 1.22;
}

.hint-chip.is-muted {
  max-width: min(360px, calc(100vw - 2rem));
  border-style: dashed;
}

.scene-language {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 7;
}

/* Hotspots interactivos sobre el modelo 3D */
.hotspot {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.95), transparent 25%),
    linear-gradient(180deg, var(--mint-500), var(--mint-700));
  color: var(--white);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow:
    0 0 0 7px rgba(88, 200, 169, 0.18),
    0 10px 24px rgba(31, 109, 89, 0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.hotspot:hover,
.hotspot.is-active {
  transform: scale(1.06);
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.95), transparent 25%),
    linear-gradient(180deg, #6fe7c6, var(--mint-900));
  box-shadow:
    0 0 0 10px rgba(88, 200, 169, 0.22),
    0 14px 30px rgba(31, 109, 89, 0.22);
}

.ar-scene.is-explaining .hotspot:not(.is-active) {
  opacity: 0.46;
}

.ar-scene.is-explaining .hotspot.is-active {
  box-shadow:
    0 0 0 12px rgba(88, 200, 169, 0.24),
    0 0 32px rgba(88, 200, 169, 0.42);
}

/* Tarjeta flotante de informacion del hotspot seleccionado */
.annotation-card {
  position: absolute;
  z-index: 8;
  width: min(300px, calc(100vw - 2rem));
  padding: 1rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-strong);
}

.annotation-card.has-details {
  width: min(390px, calc(100vw - 2rem));
}

.annotation-card::after {
  content: "";
  position: absolute;
  top: 1.2rem;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.9);
  transform: rotate(45deg);
}

.annotation-card[data-align="left"]::after {
  left: -6px;
}

.annotation-card[data-align="right"]::after {
  right: -6px;
}

.annotation-card[data-align="center"]::after {
  display: none;
}

.annotation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.annotation-chip {
  display: inline-block;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--mint-100);
  color: var(--mint-700);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.annotation-close {
  border: 0;
  background: transparent;
  color: var(--gray-700);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
}

.annotation-card h3 {
  margin: 0.75rem 0 0.45rem;
  font-size: 1.05rem;
}

.annotation-card p {
  margin: 0;
  line-height: 1.55;
  color: var(--gray-700);
}

.annotation-button-guide {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.annotation-button-row {
  display: grid;
  grid-template-columns: 5.6rem 1fr;
  gap: 0.65rem;
  align-items: center;
  padding: 0.52rem 0.65rem;
  border: 1px solid rgba(88, 200, 169, 0.18);
  border-radius: 0.95rem;
  background: linear-gradient(135deg, rgba(198, 247, 231, 0.48), rgba(255, 255, 255, 0.86));
}

.annotation-button-row span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.2rem 0.42rem;
  border-radius: 999px;
  background: rgba(28, 139, 112, 0.12);
  color: var(--mint-900);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.annotation-button-row p {
  font-size: 0.86rem;
  line-height: 1.28;
  color: var(--gray-700);
}

.annotation-button-note {
  padding: 0.58rem 0.72rem;
  border-radius: 0.95rem;
  background: rgba(19, 27, 31, 0.05);
  font-size: 0.84rem;
  line-height: 1.35;
}

/* Panel lateral del manual interactivo */
.product-panel {
  position: absolute;
  left: 1rem;
  bottom: 5.85rem;
  z-index: 6;
  width: min(380px, calc(100vw - 2rem));
  padding: 1rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  background: var(--glass);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-strong);
}

.product-panel.is-hidden {
  display: none;
}

.product-panel.is-minimized {
  padding-bottom: 0.85rem;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.panel-eyebrow {
  margin: 0 0 0.3rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint-900);
}

.panel-header h2 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.15;
}

.panel-header-actions {
  display: flex;
  gap: 0.5rem;
}

.panel-icon-button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--gray-700);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
}

.panel-tabs {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.95rem;
  overflow-x: auto;
  padding-bottom: 0.1rem;
}

.panel-tab {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 0.95rem;
  background: rgba(255, 255, 255, 0.66);
  color: var(--gray-700);
  font-weight: 700;
  cursor: pointer;
}

.panel-tab.is-active {
  background: linear-gradient(135deg, var(--mint-300), var(--mint-500));
  color: var(--gray-900);
}

.panel-content {
  margin-top: 1rem;
}

.panel-block,
.overview-card,
.issue-card,
.recipe-card {
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.panel-block,
.overview-card,
.issue-card {
  padding: 1rem;
}

.panel-summary {
  margin: 0;
  line-height: 1.65;
  color: var(--gray-700);
}

.overview-grid {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.panel-section-eyebrow {
  margin: 0 0 0.7rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint-900);
}

.panel-section-title {
  margin: 0.6rem 0 0.55rem;
  font-size: 1.1rem;
}

.panel-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--gray-700);
  line-height: 1.7;
}

.step-shell {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.step-counter {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--mint-900);
}

.guide-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.guide-btn {
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-weight: 700;
  background: var(--mint-500);
  color: var(--gray-900);
  cursor: pointer;
}

.guide-btn.secondary {
  background: var(--gray-100);
  color: var(--gray-900);
}

.guide-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.guide-link-button {
  margin-top: 0.95rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--mint-900);
  font-weight: 700;
  cursor: pointer;
}

.guide-helper {
  margin: 0.7rem 0 0;
  color: var(--gray-700);
  line-height: 1.55;
}

.support-block {
  display: grid;
  gap: 1rem;
}

.recipe-grid,
.issues-list {
  display: grid;
  gap: 0.8rem;
}

.recipe-card {
  padding: 0.95rem;
}

.recipe-card h3,
.issue-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}

.recipe-card p,
.issue-card p {
  margin: 0;
  line-height: 1.6;
  color: var(--gray-700);
}

.panel-restore {
  position: absolute;
  left: 1rem;
  bottom: 5.85rem;
  z-index: 6;
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.15rem;
  background: linear-gradient(135deg, var(--mint-300), var(--mint-500));
  color: var(--gray-900);
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

/* CHAT: boton flotante de Innfi y panel de conversacion */

.chat-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 10;
  width: 88px;
  height: 88px;
  padding: 0;
  border: 0;
  background: transparent; 
  cursor: pointer;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: visible;
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    filter 180ms ease;
}


.chat-fab-avatar {
  position: relative;
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  display: grid;
  place-items: end center; /* CRÍTICO: alinea la mascota abajo */
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(111, 231, 198, 0.98), rgba(93, 211, 179, 0.94));
  box-shadow:
    0 24px 58px rgba(30, 38, 43, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
  transition: transform 180ms ease, box-shadow 180ms ease;
}


.chat-fab:hover {
  transform: translateY(-2px);
}

.chat-fab:hover .chat-fab-avatar {
  transform: translateY(-1px) scale(1.02);
}

.chat-fab:focus-visible .chat-fab-avatar {
  box-shadow:
    0 0 0 4px rgba(88, 200, 169, 0.24),
    0 24px 58px rgba(30, 38, 43, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.44);
}



.chat-fab-avatar::before {
  content: "";
  position: absolute;
  inset: 7px;
  z-index: 0; /* Cambió de -1 a 0 */
  border-radius: 24px;
  background:
    radial-gradient(circle at 32% 18%, rgba(255, 255, 255, 0.98), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(226, 248, 240, 0.46));
}

/* Agrega esto también para resetear el after */
.chat-fab-avatar::after {
  display: none;
}


.chat-fab-mascot {
  position: relative;
  z-index: 1;
  width: 76px;
  height: 92px;
  object-fit: contain;
  object-position: center bottom;
  transform: translateY(9px) scale(1.15);
  filter: drop-shadow(0 10px 14px rgba(30, 38, 43, 0.2));
}

.chat-fab-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 20px;
  padding: 0 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: rgba(30, 38, 43, 0.82);
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.08em;
  box-shadow: 0 8px 18px rgba(30, 38, 43, 0.12);
  backdrop-filter: blur(10px);
}


.chat-fab:focus-visible {
  outline: none;
}


.chat-open .chat-fab,
.chat-open .panel-restore {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.92);
}

.chat-panel {
  position: fixed;
  right: 1rem;
  bottom: 5.7rem;
  z-index: 10;
  width: min(380px, calc(100vw - 1.5rem));
  display: none;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-strong);
}

.chat-panel.is-open {
  display: block;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  min-height: 88px;
  padding: 0.9rem 1rem 0.9rem 0.9rem;
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 255, 255, 0.98), transparent 38%),
    radial-gradient(circle at 86% 22%, rgba(111, 231, 198, 0.28), transparent 34%),
    linear-gradient(135deg, rgba(230, 250, 244, 0.98), rgba(189, 241, 226, 0.94));
}

.chat-identity {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 0.78rem;
}

.chat-mascot {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex: 0 0 64px;
  width: 64px;
  height: 58px;
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.chat-mascot img {
  width: 88px;
  height: 72px;
  object-fit: contain;
  object-position: center bottom;
  transform: translateY(3px);
  filter: drop-shadow(0 8px 10px rgba(30, 38, 43, 0.14));
}

.chat-header-copy {
  min-width: 0;
}

.chat-header strong {
  display: block;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.chat-header p {
  margin: 0.18rem 0 0;
  font-size: 0.88rem;
  color: var(--gray-700);
}

.chat-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.42rem;
  border-radius: 999px;
  padding: 0.22rem 0.58rem;
  background: rgba(255, 255, 255, 0.76);
  color: var(--gray-700);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.chat-status::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--mint-700);
  box-shadow: 0 0 0 4px rgba(111, 231, 198, 0.22);
}


.chat-close {
  border: 0;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 900;
  cursor: pointer;
  color: var(--gray-700);
}

.chat-messages {
  display: grid;
  gap: 0.8rem;
  min-height: 220px;
  max-height: 340px;
  overflow-y: auto;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.84);
}

.message {
  max-width: 88%;
  padding: 0.8rem 0.95rem;
  border-radius: 16px;
  line-height: 1.5;
  font-size: 0.94rem;
}

.message.assistant {
  position: relative;
  background: var(--gray-100);
}

.message.assistant[data-system-greeting="true"] {
  max-width: 100%;
  border: 1px solid rgba(111, 231, 198, 0.16);
  background:
    linear-gradient(135deg, rgba(244, 251, 249, 0.96), rgba(230, 238, 240, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.message.user {
  margin-left: auto;
  background: var(--mint-100);
}

.chat-suggestions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  overflow: visible;
  padding: 0.75rem 1rem 0;
  background: rgba(255, 255, 255, 0.84);
}

.chat-suggestions button {
  width: 100%;
  border: 1px solid rgba(88, 200, 169, 0.28);
  border-radius: 16px;
  padding: 0.58rem 0.78rem;
  background: rgba(223, 247, 239, 0.72);
  color: var(--gray-900);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
  white-space: normal;
}

.chat-suggestions button:hover {
  background: rgba(111, 231, 198, 0.82);
}

.chat-form {
  display: flex;
  gap: 0.65rem;
  padding: 1rem;
  border-top: 1px solid rgba(69, 82, 90, 0.08);
  background: var(--white);
}

.chat-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--gray-300);
  border-radius: 14px;
  padding: 0.9rem 1rem;
}

.chat-form button {
  border: 0;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  background: var(--mint-500);
  color: var(--gray-900);
  font-weight: 800;
  cursor: pointer;
}

/* Ajustes de escritorio amplio */
@media (min-width: 1024px) {
  .ar-scene {
    background:
      radial-gradient(circle at 48% 14%, rgba(111, 231, 198, 0.14), transparent 22%),
      radial-gradient(circle at 18% 48%, rgba(255, 255, 255, 0.42), transparent 30%),
      radial-gradient(circle at 80% 76%, rgba(223, 247, 239, 0.24), transparent 31%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.1));
      backdrop-filter: none;
      filter: none;
  }

  #arModel {
    transition: transform 0.38s ease, filter 0.38s ease;
    transform: translateY(-10px) scale(0.985);
  }

  .ar-scene.panel-open #arModel {
    transform: translate(clamp(52px, 6vw, 112px), -2px) scale(0.965);
  }

  .ar-scene.panel-minimized #arModel {
    transform: translate(clamp(32px, 3.8vw, 72px), 0) scale(0.975);
  }

  .ar-scene.panel-closed #arModel {
    transform: translateY(-10px) scale(0.985);
  }

  .brand-chip,
  .hint-chip,
  .panel-restore {
    left: 1.25rem;
  }

  .brand-chip {
    top: 1.2rem;
    display: grid;
    grid-template-columns: 62px 1fr;
    grid-template-rows: auto auto;
    column-gap: 0.74rem;
    row-gap: 0.18rem;
    align-items: center;
    width: 262px;
    min-height: 72px;
    padding: 0.78rem 1.05rem;
    border-radius: 24px;
    background:
      radial-gradient(circle at 16% 18%, rgba(111, 231, 198, 0.2), transparent 34%),
      rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
    box-shadow:
      0 22px 52px rgba(30, 38, 43, 0.13),
      inset 0 1px 0 rgba(255, 255, 255, 0.62);
    letter-spacing: -0.02em;
  }

  .brand-chip-logo {
    grid-row: 1 / span 2;
    width: 62px;
    height: 62px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    filter: drop-shadow(0 10px 18px rgba(31, 109, 89, 0.18));
  }

  .brand-chip span {
    align-self: end;
    font-size: 1.06rem;
    line-height: 1;
  }

  .brand-chip::after {
    display: block;
    align-self: start;
  }

  .hint-chip {
    top: 5.15rem;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: min(420px, calc(100vw - 24rem));
    padding: 0.72rem 1.1rem;
    border-radius: 999px;
    background: rgba(31, 109, 89, 0.82);
    color: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 34px rgba(31, 109, 89, 0.18);
  }

  .scene-chip {
    top: 1.2rem;
    min-width: 0;
    width: max-content;
    max-width: min(460px, calc(100vw - 14rem));
    padding: 1rem 1.55rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 20px 46px rgba(30, 38, 43, 0.1);
    white-space: nowrap;
  }

  .scene-language {
    top: 1.2rem;
    right: 1.25rem;
  }

  .hotspot {
    width: 28px;
    height: 28px;
    border: 2px solid rgba(255, 255, 255, 0.95);
    background: var(--mint-700);
    font-size: 1rem;
    box-shadow:
      0 0 0 6px rgba(88, 200, 169, 0.18),
      0 8px 18px rgba(31, 109, 89, 0.18);
  }

  .hotspot:hover,
  .hotspot.is-active {
    background: var(--mint-900);
    box-shadow:
      0 0 0 8px rgba(88, 200, 169, 0.24),
      0 10px 22px rgba(31, 109, 89, 0.22);
  }

  .annotation-card {
    max-width: 320px;
    border: 1px solid rgba(255, 255, 255, 0.46);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 58px rgba(30, 38, 43, 0.14);
  }

  .product-panel {
    top: 9.45rem;
    bottom: auto;
    width: 382px;
    height: min(690px, calc(100vh - 10.6rem));
    max-height: calc(100vh - 10.6rem);
    min-height: 472px;
    padding: 1.1rem 1.05rem 1.05rem;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    overflow: hidden;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 56px rgba(30, 38, 43, 0.11);
    transition: transform 0.32s ease, box-shadow 0.32s ease;
  }

  .product-panel.is-minimized {
    height: auto;
    min-height: 0;
    max-height: none;
    padding-bottom: 1.05rem;
  }

  .product-panel.is-minimized .panel-header {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .product-panel.is-minimized .panel-content {
    display: none;
  }

  .panel-header {
    gap: 0.85rem;
    align-items: flex-start;
    padding-bottom: 0.95rem;
    border-bottom: 1px solid rgba(69, 82, 90, 0.08);
  }

  .panel-eyebrow {
    margin-bottom: 0.35rem;
  }

  .panel-header h2 {
    max-width: 250px;
    font-size: 1.32rem;
    line-height: 1.15;
  }

  .panel-header-actions {
    gap: 0.45rem;
  }

  .panel-icon-button {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: inset 0 0 0 1px rgba(69, 82, 90, 0.08);
  }

  .panel-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
    margin-top: 0.95rem;
    overflow: visible;
    padding-bottom: 0;
  }

  .panel-tab {
    min-width: 0;
    min-height: 46px;
    padding: 0.8rem 0.7rem;
    border-radius: 16px;
    text-align: center;
    white-space: nowrap;
  }

  .panel-content {
    margin-top: 1rem;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.35rem;
    scrollbar-gutter: stable;
  }

  .panel-content::-webkit-scrollbar {
    width: 8px;
  }

  .panel-content::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(69, 82, 90, 0.16);
  }

  .panel-block,
  .overview-card,
  .issue-card,
  .recipe-card,
  .step-shell {
    border: 1px solid rgba(69, 82, 90, 0.06);
    background: rgba(255, 255, 255, 0.6);
    box-shadow: none;
  }

  .panel-summary,
  .recipe-card p,
  .issue-card p,
  .guide-helper {
    font-size: 1rem;
    line-height: 1.68;
  }

  .overview-grid,
  .support-block,
  .recipe-grid,
  .issues-list {
    gap: 0.85rem;
  }

  .panel-list {
    margin: 0;
    padding-left: 1.2rem;
    line-height: 1.66;
  }

  .guide-actions {
    gap: 0.65rem;
  }

  .guide-btn {
    min-height: 48px;
  }

  .panel-restore {
    top: 10.65rem;
    bottom: auto;
    right: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 262px;
    min-height: 54px;
    padding: 0.85rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.46);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 20px 50px rgba(30, 38, 43, 0.12);
  }

    .chat-fab {
    right: 1.25rem;
    bottom: 1.35rem;
    width: 96px;
    height: 96px;
  }

  .chat-fab-avatar {
    width: 96px;
    height: 96px;
    flex-basis: 96px;
    border-radius: 32px;
  }

  .chat-fab-avatar::before {
    inset: 7px;
    border-radius: 26px;
  }

  .chat-fab-mascot {
    width: 82px;
    height: 98px;
  }

  .chat-fab-badge {
    top: 9px;
    right: 9px;
    min-width: 26px;
    height: 21px;
    font-size: 0.6rem;
  }


  .chat-panel {
    right: 1.25rem;
    bottom: 6rem;
    width: 360px;
    border-radius: 28px;
  }
}

/* RESPONSIVE: ajustes para tablet y movil */

@media (max-width: 980px) {
  .demo-wrapper {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .demo-image-block {
    min-height: 320px;
  }

  .hero-section {
    padding: 1.5rem;
  }

  .hero-welcome {
    top: 1.4rem;
    right: 1.5rem;
  }

  .landing-logo-badge {
    top: 0.8rem;
    left: 0.8rem;
  }

  .landing-logo-image {
    width: 62px;
  }

  .feature-strip {
    grid-template-columns: 1fr;
  }
}

/* Ajustes especificos para celulares y experiencia AR movil */
@media (max-width: 768px) {

  .ar-scene {
    backdrop-filter: none;
    filter: none;
  }

  .snap-shell {
    scroll-snap-type: y proximity;
  }

  .landing-logo-badge {
    top: calc(var(--safe-top) + 0.85rem);
    left: calc(var(--safe-left) + 0.95rem);
    z-index: 24;
  }

  .landing-logo-image {
    width: 58px;
  }

  .landing-language {
    top: calc(var(--safe-top) + 0.85rem);
    right: calc(var(--safe-right) + 0.95rem);
    z-index: 24;
  }

  .language-current {
    min-width: 70px;
    min-height: 44px;
    padding: 0.55rem 0.72rem;
    font-size: 0.78rem;
  }

  .language-menu {
    min-width: 158px;
    border-radius: 22px;
  }

  .lang-btn {
    min-height: 44px;
    padding: 0.58rem 0.68rem;
  }

  .hero-section {
    min-height: 100vh;
    min-height: 100svh;
    align-items: stretch;
    padding:
      calc(var(--safe-top) + 4.9rem)
      calc(var(--safe-right) + 1rem)
      calc(var(--safe-bottom) + 1rem)
      calc(var(--safe-left) + 1rem);
    background:
      radial-gradient(circle at 18% 20%, rgba(141, 226, 204, 0.34), transparent 34%),
      radial-gradient(circle at 90% 14%, rgba(188, 238, 221, 0.45), transparent 25%),
      linear-gradient(160deg, #fdfefe 0%, #eef4f2 52%, #f7fbfa 100%);
  }

  .hero-grid {
    opacity: 0.12;
    background-size: 20px 20px;
  }

  .hero-welcome {
    top: calc(var(--safe-top) + 4.15rem);
    left: calc(var(--safe-left) + 1rem);
    right: auto;
    padding: 0;
    border-radius: 0;
    font-size: 1.02rem;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    min-height: calc(100svh - var(--safe-top) - var(--safe-bottom) - 5.9rem);
    padding: clamp(9rem, 26vh, 11.25rem) 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
  }

  .hero-tag {
    max-width: 22ch;
    margin-bottom: 0.95rem;
    font-size: 0.69rem;
    letter-spacing: 0.1em;
    line-height: 1.45;
    text-wrap: balance;
  }

  .hero-title {
    font-size: clamp(3.35rem, 18vw, 4.9rem);
    line-height: 0.9;
  }

  .hero-description {
    max-width: 18ch;
    margin-top: 0.95rem;
    font-size: 1rem;
    line-height: 1.65;
    text-wrap: pretty;
  }

  .hero-button {
    width: 100%;
    margin-top: auto;
    min-height: 52px;
    padding: 0.95rem 1.1rem;
  }

  .hero-deco-one {
    width: 180px;
    height: 180px;
    right: -56px;
    bottom: 21%;
    opacity: 0.7;
  }

  .hero-deco-two {
    width: 110px;
    height: 110px;
    top: calc(var(--safe-top) + 7.8rem);
    right: 0.5rem;
    opacity: 0.7;
  }

  .demo-section {
    grid-template-rows: 1fr auto;
  }

  .demo-wrapper {
    min-height: 100vh;
    min-height: 100svh;
    gap: 1rem;
    align-content: start;
    padding:
      calc(var(--safe-top) + 1rem)
      calc(var(--safe-right) + 1rem)
      calc(var(--safe-bottom) + 1.2rem)
      calc(var(--safe-left) + 1rem);
  }

  .demo-image-block {
    min-height: auto;
    padding: 1rem;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(223, 247, 239, 0.5));
    box-shadow: 0 20px 50px rgba(30, 38, 43, 0.1);
    overflow: hidden;
  }

  .demo-glow {
    width: min(78vw, 340px);
    height: min(78vw, 340px);
  }

  .demo-image {
    width: min(78vw, 310px);
  }

  .demo-slider-track {
    min-height: min(78vw, 340px);
  }

  .demo-content {
    max-width: none;
    padding: 1.2rem 1.05rem 1.15rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 20px 50px rgba(30, 38, 43, 0.08);
  }

  .demo-content h2 {
    font-size: clamp(1.85rem, 10vw, 2.7rem);
  }

  .demo-text {
    margin-top: 0.9rem;
    margin-bottom: 1rem;
    font-size: 0.98rem;
    line-height: 1.68;
  }

  .demo-list {
    margin-bottom: 1.15rem;
    padding-left: 1rem;
  }

  .feature-strip {
    gap: 0.75rem;
    margin-bottom: 1.3rem;
  }

  .feature-card {
    border-radius: 18px;
    padding: 0.95rem;
  }

  .cta-ar-button {
    width: 100%;
    min-width: 0;
    min-height: 52px;
  }

  .demo-footer {
    height: calc(62px + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
  }

  .brand-chip,
  .scene-chip,
  .hint-chip {
    font-size: 0.82rem;
  }

  .brand-chip {
    top: calc(var(--safe-top) + 0.85rem);
    left: calc(var(--safe-left) + 0.75rem);
    display: grid;
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto auto;
    column-gap: 0.68rem;
    row-gap: 0.12rem;
    align-items: center;
    width: min(196px, calc(100vw - var(--safe-left) - var(--safe-right) - 7.25rem));
    min-height: 50px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    font-size: 0.94rem;
    letter-spacing: -0.02em;
  }

  .brand-chip-logo {
    grid-row: 1 / span 2;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    filter: drop-shadow(0 8px 14px rgba(31, 109, 89, 0.18));
  }

  .brand-chip span {
    align-self: end;
    line-height: 1;
  }

  .brand-chip::after {
    display: block;
    align-self: start;
    font-size: 0.56rem;
    letter-spacing: 0.16em;
  }

  .scene-chip {
    top: calc(var(--safe-top) + 3.8rem);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: max-content;
    padding: 0.5rem 0.9rem;
    border-radius: 18px;
    text-align: center;
    font-weight: 800;
  }

  .hint-chip {
    top: calc(var(--safe-top) + 6.2rem);
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100vw - 1.8rem - var(--safe-left) - var(--safe-right));
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(31, 109, 89, 0.84);
    color: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 32px rgba(31, 109, 89, 0.22);
  }

  .scene-language {
    top: calc(var(--safe-top) + 0.85rem);
    right: calc(var(--safe-right) + 0.75rem);
    bottom: auto;
    z-index: 11;
  }

  #arModel {
    height: 100vh;
    height: 100svh;
  }

  .hotspot {
    width: 30px;
    height: 30px;
    border: 2px solid rgba(255, 255, 255, 0.95);
    background: var(--mint-700);
    box-shadow:
      0 0 0 6px rgba(88, 200, 169, 0.18),
      0 8px 18px rgba(31, 109, 89, 0.16);
  }

  .annotation-card {
    left: calc(var(--safe-left) + 0.75rem) !important;
    right: calc(var(--safe-right) + 0.75rem);
    top: calc(var(--safe-top) + 11rem) !important;
    bottom: auto !important;
    width: auto !important;
    max-height: 18svh;
    overflow-y: auto;
    padding: 0.95rem 1rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 42px rgba(30, 38, 43, 0.18);
  }

  .annotation-card::after {
    display: none;
  }

  .annotation-card h3 {
    font-size: 1rem;
  }

  .annotation-card p {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .annotation-card.has-details {
    max-height: 40svh;
  }

  .annotation-button-row {
    grid-template-columns: 5rem 1fr;
    gap: 0.5rem;
    padding: 0.48rem 0.55rem;
  }

  .annotation-button-row p {
    font-size: 0.82rem;
    line-height: 1.25;
  }

  .annotation-button-note {
    font-size: 0.8rem;
  }

  .product-panel,
  .panel-restore {
    left: calc(var(--safe-left) + 0.6rem);
    right: calc(var(--safe-right) + 0.6rem);
    width: auto;
  }

  .product-panel {
    bottom: calc(var(--safe-bottom) + 5.1rem);
    max-height: 42svh;
    padding: 0.85rem 0.85rem 0.9rem;
    border-radius: 28px;
    background: rgba(250, 253, 253, 0.92);
    box-shadow: 0 26px 60px rgba(30, 38, 43, 0.2);
  }

  .product-panel::before {
    content: "";
    display: block;
    width: 48px;
    height: 5px;
    margin: 0 auto 0.8rem;
    border-radius: 999px;
    background: rgba(69, 82, 90, 0.18);
  }

  .product-panel.is-minimized::before {
    margin-bottom: 0.55rem;
  }

  .panel-header {
    gap: 0.7rem;
  }

  .panel-header h2 {
    font-size: 1rem;
  }

  .panel-header-actions {
    gap: 0.4rem;
  }

  .panel-icon-button {
    width: 38px;
    height: 38px;
  }

  .panel-tabs {
    margin-top: 0.7rem;
    gap: 0.38rem;
    scrollbar-width: none;
  }

  .panel-tabs::-webkit-scrollbar {
    display: none;
  }

  .panel-tab {
    min-height: 42px;
    padding: 0.7rem 0.9rem;
    font-size: 0.87rem;
  }

  .panel-content {
    margin-top: 0.8rem;
    max-height: calc(42svh - 8.8rem);
    overflow-y: auto;
    padding-right: 0.1rem;
    overscroll-behavior: contain;
  }

  .panel-content::-webkit-scrollbar {
    width: 6px;
  }

  .panel-content::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(69, 82, 90, 0.18);
  }

  .panel-block,
  .overview-card,
  .issue-card,
  .recipe-card,
  .step-shell {
    border-radius: 18px;
  }

  .panel-summary,
  .recipe-card p,
  .issue-card p,
  .guide-helper {
    font-size: 0.93rem;
  }

  .panel-list {
    line-height: 1.62;
  }

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

  .guide-btn {
    min-height: 48px;
    padding: 0.8rem 0.85rem;
  }

  .guide-link-button {
    margin-top: 0.85rem;
  }

  .panel-restore {
    left: calc(var(--safe-left) + 0.75rem);
    right: calc(var(--safe-right) + 5.85rem);
    bottom: calc(var(--safe-bottom) + 0.75rem);
    min-height: 56px;
    padding: 0.85rem 1.05rem;
    border-radius: 999px;
    text-align: center;
    box-shadow: 0 20px 36px rgba(30, 38, 43, 0.16);
  }

  .chat-panel {
    left: calc(var(--safe-left) + 0.6rem);
    right: calc(var(--safe-right) + 0.6rem);
    bottom: calc(var(--safe-bottom) + 5.1rem);
    width: auto;
    max-height: 62svh;
    border-radius: 28px;
  }

    .chat-fab {
    right: calc(var(--safe-right) + 0.75rem);
    bottom: calc(var(--safe-bottom) + 0.75rem);
    width: 72px;
    height: 72px;
  }

  .chat-fab-avatar {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
    border-radius: 26px;
  }

  .chat-fab-avatar::before {
    inset: 5px;
    border-radius: 20px;
  }

  .chat-fab-mascot {
    width: 60px;
    height: 74px;
    transform: translateY(7px) scale(1.16);
  }

  .chat-fab-badge {
    top: 6px;
    right: 6px;
    min-width: 21px;
    height: 18px;
    padding: 0 0.3rem;
    font-size: 0.5rem;
  }


  .chat-fab-label {
    top: 6px;
    right: 6px;
    bottom: auto;
    padding: 0.17rem 0.34rem;
    font-size: 0.54rem;
  }

  .chat-header {
    min-height: 76px;
    padding: 0.72rem 0.85rem;
  }

  .chat-mascot {
    flex-basis: 48px;
    width: 48px;
    height: 42px;
  }

  .chat-mascot img {
    width: 68px;
    height: 56px;
    transform: translateY(2px);
  }

  .chat-header strong {
    font-size: 0.86rem;
  }

  .chat-header p {
    margin-top: 0.1rem;
    font-size: 0.68rem;
    line-height: 1.25;
  }

  .chat-messages {
    min-height: 180px;
    max-height: calc(62svh - 154px);
    padding: 0.9rem 1rem;
  }

  .chat-form {
    gap: 0.45rem;
    padding: 0.72rem;
  }

  .chat-form input,
  .chat-form button {
    min-height: 48px;
  }

  .chat-form input {
    padding: 0.78rem 0.8rem;
    font-size: 0.88rem;
  }

  .chat-form button {
    flex: 0 0 auto;
    min-width: 64px;
    padding: 0.78rem 0.72rem;
    font-size: 0.82rem;
  }
}

/* Ajustes finos para pantallas moviles muy pequenas */
@media (max-width: 430px) {
  .ar-scene {
    backdrop-filter: none;
    filter: none;
  }

  .hero-title {
    font-size: clamp(3rem, 17vw, 4.2rem);
  }

  .hero-content {
    padding-top: clamp(8.2rem, 24vh, 10.25rem);
  }

  .demo-content {
    padding-left: 0.95rem;
    padding-right: 0.95rem;
  }

  .brand-chip {
    width: min(178px, calc(100vw - var(--safe-left) - var(--safe-right) - 6.6rem));
    min-height: 46px;
    grid-template-columns: 40px 1fr;
    column-gap: 0.58rem;
    padding: 0;
  }

  .brand-chip-logo {
    width: 40px;
    height: 40px;
  }

  .brand-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .scene-chip {
    font-size: 0.75rem;
  }

  .hint-chip {
    font-size: 0.72rem;
  }

  .product-panel {
    max-height: 44svh;
  }

  .panel-content {
    max-height: calc(44svh - 8.8rem);
  }

  .panel-restore {
    right: calc(var(--safe-right) + 5.6rem);
    min-height: 54px;
    font-size: 0.98rem;
  }
}
