/* =============================================
   AGUAMARINA AI — capa visual inmersiva
   Se carga después de asesora.css. Mantiene los componentes base
   y eleva la experiencia a un estudio digital premium.
   ============================================= */

.ai-page {
  --ai-deep: #061A17;
  --ai-deep-2: #0A2823;
  --ai-glass: rgba(255, 255, 255, 0.07);
  --ai-glass-2: rgba(255, 255, 255, 0.11);
  --ai-line: rgba(255, 255, 255, 0.13);
  --ai-ivory: #F8F3E9;
  --ai-ivory-2: #FCF8F1;
  --ai-ink: #1A312C;
  --ai-ink-soft: #59716B;
  --ai-gold: #D8B56A;
  --ai-gold-light: #E8C97A;
  background:
    radial-gradient(1000px 560px at 8% -12%, rgba(95, 202, 187, 0.38), transparent 62%),
    radial-gradient(820px 460px at 98% 2%, rgba(216, 181, 106, 0.14), transparent 60%),
    radial-gradient(760px 520px at 50% 118%, rgba(43, 181, 160, 0.34), transparent 66%),
    linear-gradient(162deg, #0C4F49 0%, #116B5E 48%, #0A4039 100%);
  color: var(--ai-ivory);
  padding-bottom: 0;
}

.ai-hero {
  padding: 52px 0 34px;
}

.ai-hero__eyebrow {
  color: var(--ai-gold-light);
}

.ai-hero__title {
  color: var(--ai-ivory);
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
}

.ai-hero__title em {
  color: var(--ai-gold-light);
}

.ai-hero__lead {
  color: rgba(248, 243, 233, 0.80);
}

.ai-wizard {
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.035));
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 26px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(22px);
}

.ai-wizard__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  color: rgba(248, 243, 233, 0.72);
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.ai-wizard__brand {
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--ai-ivory);
}

.ai-wizard__brand em {
  color: var(--ai-gold-light);
}

.ai-wizard__private {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(248, 243, 233, 0.48);
}

.ai-stepper {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-step {
  color: rgba(248, 243, 233, 0.52);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.ai-step:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.06);
}

.ai-step__num {
  color: rgba(248, 243, 233, 0.80);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.ai-step.is-active {
  color: var(--ai-ivory);
  background: rgba(43, 181, 160, 0.13);
}

.ai-step.is-active .ai-step__num {
  color: #06201C;
  background: var(--teal-light);
  border-color: var(--teal-light);
  box-shadow: 0 0 0 4px rgba(95, 202, 187, 0.15);
}

.ai-step.is-done .ai-step__num {
  color: var(--ai-ivory);
  background: rgba(95, 202, 187, 0.17);
  border-color: rgba(95, 202, 187, 0.32);
}

.ai-stepper__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal-light), var(--ai-gold-light));
  box-shadow: 0 0 14px rgba(95, 202, 187, 0.5);
  transition: width 0.45s var(--ease);
}

.ai-stage {
  margin: 10px;
  color: var(--ai-ink);
  background: linear-gradient(180deg, var(--ai-ivory-2) 0%, var(--ai-ivory) 100%);
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.ai-stage__title {
  color: var(--ai-ink);
}

.ai-stage__lead {
  color: var(--ai-ink-soft);
}

.ai-stage__eyebrow {
  color: var(--teal-dark);
}

.ai-coach {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(214, 242, 238, 0.88), rgba(255, 255, 255, 0.92));
  border: 1px solid var(--teal-pale);
  border-radius: 14px;
  box-shadow: var(--shadow-xs);
}

.ai-coach__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: #fff;
  background: var(--teal-darker);
  border-radius: 50%;
}

.ai-coach__body {
  flex: 1;
  min-width: 0;
}

.ai-coach__name {
  display: block;
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

.ai-coach__text {
  margin-top: 2px;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--mid);
}

.ai-coach__pulse {
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 7px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(43, 181, 160, 0.12);
  animation: aiPulse 2.4s infinite;
}

.ai-coach.is-updating .ai-coach__text {
  animation: aiCoachIn 0.28s var(--ease);
}

.ai-config {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ai-config__block .ai-legend {
  margin-bottom: 10px;
}

.ai-choice-grid {
  display: grid;
  gap: 9px;
}

.ai-choice-grid--occasions { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ai-choice-grid--styles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ai-choice-grid--pieces { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ai-choice-grid--metals { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.ai-choice {
  position: relative;
  min-height: 140px;
  padding: 0;
  overflow: hidden;
  text-align: left;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}

.ai-choice:hover {
  transform: translateY(-2px);
  border-color: var(--teal-pale);
  box-shadow: var(--shadow-sm);
}

.ai-choice.is-selected {
  border-color: var(--teal-dark);
  box-shadow: 0 0 0 2px var(--teal-dark), 0 14px 30px rgba(17, 107, 94, 0.16);
}

.ai-choice__media {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
}

.ai-choice__img,
.ai-choice__split img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) brightness(0.82);
  transition: transform 0.6s var(--ease);
}

.ai-choice:hover .ai-choice__img,
.ai-choice:hover .ai-choice__split img {
  transform: scale(1.04);
}

.ai-choice__split {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--teal-pale);
}

.ai-choice__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 26, 23, 0.04) 18%, rgba(6, 26, 23, 0.8) 100%);
}

.ai-choice__bg { position: absolute; inset: 0; background: linear-gradient(135deg, #123F38, #2BB5A0); }
.ai-choice__bg--diario { background: linear-gradient(135deg, #1A8A78, #5FCABB); }
.ai-choice__bg--especial { background: linear-gradient(135deg, #4A3B1E, #C9A55A); }
.ai-choice__bg--trabajo { background: linear-gradient(135deg, #263C45, #6C8A8F); }
.ai-choice__bg--playa { background: linear-gradient(135deg, #0B5C6B, #6ED1C4); }
.ai-choice__bg--regalo { background: linear-gradient(135deg, #6B3E44, #D9A7A0); }
.ai-choice__bg--elegante { background: linear-gradient(135deg, #142C29, #C9A55A); }
.ai-choice__bg--casual { background: linear-gradient(135deg, #1A8A78, #9ADBD0); }
.ai-choice__bg--llamativo { background: linear-gradient(135deg, #7A3B47, #E8C97A); }
.ai-choice__bg--minimalista { background: linear-gradient(135deg, #3E5350, #C8DEDD); }
.ai-choice__bg--bohemio { background: linear-gradient(135deg, #4D5C3A, #C9B68A); }
.ai-choice__bg--romantico { background: linear-gradient(135deg, #7B4A52, #E3B7B0); }

.ai-choice__icon {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #fff;
  background: rgba(6, 26, 23, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  backdrop-filter: blur(6px);
}

.ai-choice__body {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px;
}

.ai-choice__label {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.08;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.ai-choice__hint {
  font-size: 0.62rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.74);
}

.ai-choice__check {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: none;
  place-items: center;
  width: 22px;
  height: 22px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #06201C;
  background: var(--ai-gold-light);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.ai-choice.is-selected .ai-choice__check {
  display: grid;
}

.ai-choice--metal {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 12px;
  overflow: visible;
  background: #fff;
}

.ai-choice--metal .ai-choice__body {
  position: static;
  padding: 0;
}

.ai-choice--metal .ai-choice__label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--dark);
  text-shadow: none;
}

.ai-choice--metal .ai-choice__hint {
  font-size: 0.6rem;
  color: var(--mid);
}

.ai-choice--metal .ai-choice__check {
  top: 8px;
  right: 8px;
}

.ai-choice--metal.is-selected {
  background: var(--teal-ultra);
  border-color: var(--teal-dark);
  box-shadow: 0 0 0 1px var(--teal-dark);
}

.ai-choice__swatch {
  flex: none;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(28, 46, 43, 0.14);
  border-radius: 50%;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.6), 0 2px 6px rgba(28, 46, 43, 0.12);
}

.ai-choice__swatch--dorado { background: linear-gradient(135deg, #F3D98C, #C9A55A 55%, #8C6D2E); }
.ai-choice__swatch--plateado { background: linear-gradient(135deg, #FFFFFF, #B8C6D9 55%, #7E8C9A); }
.ai-choice__swatch--combinado { background: linear-gradient(90deg, #E8C97A 0 50%, #B8C6D9 50% 100%); }
.ai-choice__swatch--no-importa { background: conic-gradient(#E8C97A, #B8C6D9, #D9A7A0, #E8C97A); }

.ai-budget {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 16px 8px 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.ai-budget__track {
  position: absolute;
  top: 22px;
  right: 10%;
  left: 10%;
  height: 2px;
  background: var(--border);
}

.ai-budget__item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: center;
  padding: 0 2px;
  font-family: var(--font-body);
  background: none;
  border: 0;
  cursor: pointer;
}

.ai-budget__dot {
  width: 12px;
  height: 12px;
  background: #fff;
  border: 2px solid var(--border-mid);
  border-radius: 50%;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.ai-budget__item.is-selected .ai-budget__dot {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  box-shadow: 0 0 0 4px rgba(43, 181, 160, 0.16);
}

.ai-budget__label {
  font-size: 0.62rem;
  line-height: 1.25;
  color: var(--mid);
  text-align: center;
}

.ai-budget__item.is-selected .ai-budget__label {
  font-weight: 600;
  color: var(--dark);
}

.ai-budget--loading {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 16px;
  font-size: 0.74rem;
  color: var(--mid);
}

.ai-photo-tips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0 14px;
}

.ai-photo-tip {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
  padding: 10px 6px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.ai-photo-tip__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--teal-dark);
  background: var(--teal-ultra);
  border-radius: 50%;
}

.ai-photo-tip strong {
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--dark);
}

.ai-photo-tip span {
  font-size: 0.57rem;
  line-height: 1.3;
  color: var(--mid);
}

.ai-selfie-frame {
  position: relative;
  display: block;
  min-height: 300px;
  margin-top: 4px;
  overflow: hidden;
  cursor: pointer;
  background:
    radial-gradient(320px 180px at 50% 0%, rgba(95, 202, 187, 0.18), transparent 70%),
    linear-gradient(180deg, #F4FBF9, #EEF9F7);
  border: 1px solid var(--teal-pale);
  border-radius: 20px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.ai-selfie-frame::before {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 1;
  border: 1px dashed rgba(26, 138, 120, 0.28);
  border-radius: 16px;
  pointer-events: none;
}

.ai-selfie-frame:hover {
  border-color: var(--teal);
  box-shadow: 0 14px 34px rgba(43, 181, 160, 0.14);
}

.ai-selfie-frame input { display: none; }

.ai-selfie-frame__empty {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 26px;
  text-align: center;
}

.ai-face-outline {
  position: relative;
  width: 84px;
  height: 104px;
  margin-bottom: 4px;
  background: rgba(255, 255, 255, 0.45);
  border: 1.5px dashed rgba(26, 138, 120, 0.5);
  border-radius: 48% 48% 44% 44%;
}

.ai-face-outline__eyes {
  position: absolute;
  top: 42%;
  left: 50%;
  width: 30px;
  height: 5px;
  transform: translateX(-50%);
}

.ai-face-outline__eyes::before,
.ai-face-outline__eyes::after {
  content: "";
  position: absolute;
  top: 0;
  width: 4px;
  height: 4px;
  background: rgba(26, 138, 120, 0.68);
  border-radius: 50%;
}

.ai-face-outline__eyes::before { left: 0; }
.ai-face-outline__eyes::after { right: 0; }

.ai-face-outline__smile {
  position: absolute;
  bottom: 24%;
  left: 50%;
  width: 22px;
  height: 10px;
  transform: translateX(-50%);
  border-bottom: 2px solid rgba(26, 138, 120, 0.55);
  border-radius: 0 0 50% 50%;
}

.ai-selfie-frame__cta {
  margin-top: 4px;
  padding: 8px 16px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border-radius: var(--r-full);
  box-shadow: var(--shadow-teal);
}

.ai-selfie-frame.has-preview .ai-selfie-frame__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-selfie-frame.has-preview::before {
  border-color: rgba(255, 255, 255, 0.4);
}

.ai-selfie-frame__overlay {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(6, 26, 23, 0.82));
}

.ai-selfie-frame__overlay strong {
  font-size: 0.78rem;
  font-weight: 600;
}

.ai-selfie-frame__overlay span {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.68);
}

.ai-preview.is-scanning .ai-scan-line,
.ai-selfie-frame.is-scanning .ai-scan-line {
  display: block;
}

.ai-scan-line {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 4;
  display: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal-light), var(--ai-gold-light), transparent);
  box-shadow: 0 0 16px rgba(95, 202, 187, 0.8);
  animation: aiScan 2.2s ease-in-out infinite;
}

.ai-analysis-steps {
  display: flex;
  gap: 6px;
  margin: 12px 0;
}

.ai-analysis-steps span {
  display: inline-flex;
  flex: 1;
  gap: 5px;
  align-items: center;
  justify-content: center;
  padding: 7px 8px;
  font-size: 0.6rem;
  color: var(--mid);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
}

.ai-analysis-steps b {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  font-size: 0.52rem;
  color: var(--mid);
  background: var(--cream-warm);
  border-radius: 50%;
}

.ai-analysis-steps .is-done {
  color: var(--teal-dark);
  border-color: var(--teal-pale);
}

.ai-analysis-steps .is-done b {
  color: var(--teal-dark);
  background: var(--teal-pale);
}

.ai-analysis-steps .is-active {
  color: var(--teal-dark);
  background: var(--teal-ultra);
  border-color: var(--teal);
}

.ai-analysis-steps .is-active b {
  color: #fff;
  background: var(--teal-dark);
}

.ai-palette-bar {
  height: 10px;
  margin: 12px 0 14px;
  border: 1px solid rgba(28, 46, 43, 0.08);
  border-radius: var(--r-full);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.ai-tone__sub {
  margin-top: 14px;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
}

.ai-metal i {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 5px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(28, 46, 43, 0.12);
}

.ai-reco__role {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 5px 9px;
  font-size: 0.53rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ai-gold-light);
  background: rgba(6, 26, 23, 0.8);
  border: 1px solid rgba(216, 181, 106, 0.35);
  border-radius: var(--r-full);
  backdrop-filter: blur(6px);
}

.ai-reco--best { border-color: rgba(201, 165, 90, 0.5); box-shadow: 0 12px 32px rgba(201, 165, 90, 0.14); }
.ai-reco--best .ai-reco__role { color: #382A0F; background: var(--ai-gold-light); border-color: var(--ai-gold-light); }
.ai-reco--alternative .ai-reco__role { color: #fff; background: rgba(26, 138, 120, 0.92); border-color: rgba(95, 202, 187, 0.5); }
.ai-reco--wildcard .ai-reco__role { color: var(--teal-darker); background: rgba(255, 255, 255, 0.92); border-color: rgba(255, 255, 255, 0.5); }

.ai-reco__cat {
  top: auto;
  bottom: 8px;
  left: 8px;
}

.ai-reco {
  animation: aiRecoIn 0.45s var(--ease) both;
}

.ai-reco:nth-child(2) { animation-delay: 0.08s; }
.ai-reco:nth-child(3) { animation-delay: 0.16s; }

.ai-choice.is-selected {
  animation: aiPick 0.28s var(--ease);
}

.ai-reco__label {
  margin-top: 4px;
  font-size: 0.54rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light-text);
}

.ai-reco__desc {
  font-size: 0.66rem;
  line-height: 1.4;
  color: var(--mid);
}

.ai-reco__note {
  margin-top: 2px;
  font-size: 0.64rem;
  font-style: italic;
  line-height: 1.35;
  color: var(--teal-dark);
}

.ai-vto__photo-note {
  margin-top: 8px;
}

.ai-mobile-bar { display: none; }

.ai-aside-toggle { display: none; }

/* Asesora en panel oscuro */
.ai-adviser {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(20px);
}

.ai-adviser__head {
  background: linear-gradient(135deg, rgba(43, 181, 160, 0.20), rgba(216, 181, 106, 0.08));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-adviser__id strong { color: var(--ai-ivory); }

.ai-messages { max-height: 360px; }

.ai-msg__bubble {
  color: rgba(248, 243, 233, 0.84);
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.1);
}

.ai-msg--you .ai-msg__bubble {
  color: #fff;
  background: var(--teal-dark);
  border-color: transparent;
}

.ai-msg__time { color: rgba(248, 243, 233, 0.38); }

.ai-profile__title { color: var(--ai-gold-light); }

.ai-profile__chip {
  color: rgba(248, 243, 233, 0.86);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
}

.ai-profile__chip--empty {
  color: rgba(248, 243, 233, 0.42);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.16);
}

.ai-profile__note,
.ai-profile__chip i { color: rgba(248, 243, 233, 0.44); }

.ai-reset {
  color: rgba(248, 243, 233, 0.5);
}

.ai-reset:hover { color: var(--ai-gold-light); }

.ai-privacy-note {
  color: rgba(248, 243, 233, 0.56);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.ai-privacy-note strong { color: var(--ai-ivory); }

.ai-aside-toggle {
  align-items: center;
  gap: 4px;
  padding: 6px 9px;
  font-family: var(--font-body);
  font-size: 0.6rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-full);
  cursor: pointer;
}

/* Cierre */
.ai-closing {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.1);
}

.ai-closing__eyebrow { color: var(--ai-gold-light); }
.ai-closing__title { color: var(--ai-ivory); }
.ai-closing__title em { color: var(--ai-gold-light); }
.ai-closing__text { color: rgba(248, 243, 233, 0.62); }

.ai-closing__grid div {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.ai-closing__grid span { color: var(--ai-gold-light); }
.ai-closing__grid strong { color: var(--ai-ivory); }
.ai-closing__grid p { color: rgba(248, 243, 233, 0.52); }
.ai-disclaimer { color: rgba(248, 243, 233, 0.4); }

@keyframes aiPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(43, 181, 160, 0.12); }
  50% { box-shadow: 0 0 0 7px rgba(43, 181, 160, 0.04); }
}

@keyframes aiCoachIn {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes aiScan {
  0% { top: 8%; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { top: 92%; opacity: 0; }
}

@keyframes aiRecoIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes aiPick {
  0% { transform: scale(0.985); }
  100% { transform: scale(1); }
}

@media (max-width: 1050px) {
  .ai-choice-grid--occasions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .ai-page { padding-bottom: 94px; }

  .ai-hero { padding-top: 34px; }

  .ai-wizard { border-radius: 22px; }

  .ai-stage {
    margin: 7px;
    padding: 20px 16px 22px;
    border-radius: 17px;
  }

  .ai-choice-grid--occasions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-choice-grid--styles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-choice-grid--pieces { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ai-choice-grid--metals { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .ai-choice { min-height: 132px; }

  .ai-photo-tips { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .ai-selfie-frame,
  .ai-selfie-frame__empty { min-height: 270px; }

  .ai-analysis-steps span { font-size: 0.56rem; }

  .ai-live-dot { display: none; }

  .ai-aside-toggle { display: inline-flex; margin-left: auto; }

  .ai-adviser__body { display: none; }

  .ai-aside.is-open .ai-adviser__body { display: block; }

  .ai-mobile-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 400;
    display: flex;
    gap: 8px;
    align-items: stretch;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(8, 54, 49, 0.88);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 -12px 34px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
  }

  .ai-mobile-bar__primary {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    text-decoration: none;
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    border: 0;
    border-radius: var(--r-full);
    box-shadow: var(--shadow-teal);
  }

  .ai-mobile-bar__primary:disabled {
    opacity: 0.42;
    box-shadow: none;
  }

  .ai-mobile-bar__aside {
    display: flex;
    flex: none;
    flex-direction: row;
    gap: 5px;
    align-items: center;
    justify-content: center;
    min-width: 86px;
    padding: 8px 10px;
    font-family: var(--font-body);
    font-size: 0.62rem;
    color: var(--ai-ivory);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--r-full);
  }

  .ai-mobile-bar__avatar {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    font-family: var(--font-display);
    font-size: 0.7rem;
    color: #06201C;
    background: var(--ai-gold-light);
    border-radius: 50%;
  }

  .ai-toast { bottom: 92px; }
}

@media (max-width: 560px) {
  .ai-hero__title { font-size: clamp(2.5rem, 14vw, 3.6rem); }

  .ai-choice-grid--pieces { grid-template-columns: 1fr; }
  .ai-choice-grid--pieces .ai-choice { min-height: 118px; }
  .ai-choice-grid--metals { grid-template-columns: 1fr 1fr; }

  .ai-choice__label { font-size: 0.94rem; }

  .ai-budget { padding: 14px 2px 4px; }
  .ai-budget__label { font-size: 0.54rem; }

  .ai-photo-tips { grid-template-columns: 1fr 1fr; }
  .ai-photo-tip { padding: 8px 5px; }
  .ai-photo-tip span { font-size: 0.54rem; }

  .ai-analysis-steps { flex-wrap: wrap; }
  .ai-analysis-steps span { flex: 1 1 30%; }

  .ai-reco__role { font-size: 0.49rem; padding: 4px 7px; }

  .ai-wizard__private { font-size: 0.5rem; }

  .ai-mobile-bar__aside span:last-child { display: none; }
  .ai-mobile-bar__aside { min-width: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  .ai-coach__pulse,
  .ai-scan-line,
  .ai-coach.is-updating .ai-coach__text,
  .ai-stepper__progress,
  .ai-reco,
  .ai-choice.is-selected {
    animation: none !important;
    transition: none !important;
  }
}

/* =============================================
   CHAT DE LA ASESORA · ETAPA 01
   Un solo panel, una pregunta a la vez.
   ============================================= */

.ai-layout {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1000px;
  margin: 0 auto;
}

.ai-profile-bar {
  padding: 11px 16px 12px;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.ai-profile-bar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}

.ai-profile-bar .ai-profile__title {
  margin-bottom: 0;
}

.ai-profile-bar .ai-reset {
  margin-top: 0;
  flex: none;
}

.ai-profile__empty {
  font-size: 0.68rem;
  line-height: 1.4;
  color: rgba(248, 243, 233, 0.45);
}

.ai-profile__chip--edit {
  cursor: pointer;
  font-family: var(--font-body);
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease);
}

.ai-profile__chip--edit:hover,
.ai-profile__chip--edit:focus-visible {
  color: var(--ai-ivory);
  background: rgba(216, 181, 106, 0.12);
  border-color: rgba(216, 181, 106, 0.42);
}

.ai-chat__thread {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 4px 0 6px;
}

.ai-chat-bubble {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  max-width: 88%;
  animation: aiChatIn 0.3s var(--ease) both;
}

.ai-chat-bubble--ai {
  align-self: flex-start;
}

.ai-chat-bubble--you {
  align-self: flex-end;
  justify-content: flex-end;
}

.ai-chat-bubble__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: #06201C;
  background: linear-gradient(135deg, var(--ai-gold-light), var(--teal-light));
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(216, 181, 106, 0.16);
}

.ai-chat-bubble__body {
  padding: 12px 15px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--ai-ink);
  background: #fff;
  border: 1px solid rgba(17, 107, 94, 0.14);
  border-radius: 16px 16px 16px 5px;
  box-shadow: 0 8px 20px rgba(6, 26, 23, 0.05);
}

.ai-chat-bubble--you .ai-chat-bubble__body {
  color: #fff;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal-darker));
  border-color: transparent;
  border-radius: 16px 16px 5px 16px;
  box-shadow: 0 8px 20px rgba(6, 26, 23, 0.14);
}

.ai-chat__options {
  margin-top: 14px;
}

.ai-chat__options--visual {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.ai-chat-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px;
  font-family: var(--font-body);
  text-align: left;
  background: #fff;
  border: 1px solid rgba(17, 107, 94, 0.14);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), transform 0.18s var(--ease);
}

.ai-chat-opt:hover,
.ai-chat-opt:focus-visible {
  border-color: rgba(43, 181, 160, 0.55);
  box-shadow: 0 8px 18px rgba(6, 26, 23, 0.08);
  transform: translateY(-1px);
}

.ai-chat-opt.is-selected {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(43, 181, 160, 0.14);
}

.ai-chat-opt__media {
  position: relative;
  flex: none;
  width: 52px;
  height: 52px;
  overflow: hidden;
  background: linear-gradient(135deg, #126157, #5FCABB);
  border-radius: 10px;
}

.ai-chat-opt__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-chat-opt__bg {
  position: absolute;
  inset: 0;
}

.ai-chat-opt__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.ai-chat-opt__copy strong {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ai-ink);
}

.ai-chat-opt__copy small {
  font-size: 0.6rem;
  line-height: 1.25;
  color: var(--ai-ink-soft);
}

.ai-chat__options--chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ai-chat-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 13px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--ai-ink);
  background: #fff;
  border: 1px solid rgba(17, 107, 94, 0.16);
  border-radius: var(--r-full);
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease);
}

.ai-chat-chip:hover,
.ai-chat-chip:focus-visible,
.ai-chat-chip.is-selected {
  color: var(--teal-dark);
  background: var(--teal-ultra);
  border-color: rgba(43, 181, 160, 0.55);
}

.ai-chat-chip .ai-choice__swatch {
  width: 16px;
  height: 16px;
}

.ai-chat-chip__dot {
  width: 7px;
  height: 7px;
  background: var(--teal);
  border-radius: 50%;
}

.ai-chat__loading {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.62rem;
  color: var(--ai-ink-soft);
}

.ai-chat__finish {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed rgba(17, 107, 94, 0.22);
}

.ai-chat__finish .ai-btn--primary {
  min-width: 220px;
}

.ai-chat__status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.ai-wizard__foot {
  padding: 0 14px 14px;
}

/* ── Guía contextual de etapas 2–4 ─────────── */

.ai-guide {
  display: flex;
  gap: 10px;
  margin: -2px 0 18px;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(214, 242, 238, 0.7), rgba(255, 255, 255, 0.7));
  border: 1px solid rgba(17, 107, 94, 0.14);
  border-left: 3px solid var(--gold);
  border-radius: 4px 14px 14px 4px;
}

.ai-guide__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  font-family: var(--font-display);
  font-size: 0.86rem;
  color: #06201C;
  background: linear-gradient(135deg, var(--gold-light), var(--teal-pale));
  border-radius: 50%;
}

.ai-guide__body {
  min-width: 0;
}

.ai-guide__body strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--dark);
}

.ai-guide__body p {
  margin-top: 3px;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--mid);
}

@keyframes aiChatIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 560px) {
  .ai-profile-bar {
    padding: 10px 12px 11px;
  }

  .ai-chat-bubble {
    max-width: 96%;
  }

  .ai-chat-bubble__body {
    padding: 11px 13px;
    font-size: 0.82rem;
  }

  .ai-chat__options--visual {
    grid-template-columns: 1fr;
  }

  .ai-chat__finish .ai-btn--primary {
    width: 100%;
  }

  .ai-guide {
    padding: 10px 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-chat-bubble {
    animation: none !important;
  }
}


/* =============================================
   Conversación en vivo (etapa 01)
   ============================================= */

/* Solo animamos las burbujas nuevas, no todo el hilo en cada respuesta. */
.ai-chat-bubble { animation: none; }
.ai-chat-bubble.is-fresh { animation: aiChatIn .32s var(--ease) both; }

/* Indicador de escritura */
.ai-chat-bubble--typing .ai-chat-bubble__body {
  display: inline-flex;
  align-items: center;
  min-width: 56px;
}
.ai-typing {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 18px;
}
.ai-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: .3;
  animation: aiTypingDot 1.15s ease-in-out infinite;
}
.ai-typing i:nth-child(2) { animation-delay: .16s; }
.ai-typing i:nth-child(3) { animation-delay: .32s; }

@keyframes aiTypingDot {
  0%, 65%, 100% { opacity: .25; transform: translateY(0); }
  30% { opacity: .9; transform: translateY(-3px); }
}

/* Opciones escalonadas */
.ai-chat__options.is-revealing > * { animation: aiChatIn .3s var(--ease) both; }
.ai-chat__options.is-revealing > *:nth-child(1) { animation-delay: .02s; }
.ai-chat__options.is-revealing > *:nth-child(2) { animation-delay: .06s; }
.ai-chat__options.is-revealing > *:nth-child(3) { animation-delay: .10s; }
.ai-chat__options.is-revealing > *:nth-child(4) { animation-delay: .14s; }
.ai-chat__options.is-revealing > *:nth-child(5) { animation-delay: .18s; }
.ai-chat__options.is-revealing > *:nth-child(6) { animation-delay: .22s; }

/* Entrada suave al cambiar de etapa */
.ai-stage.is-stage-enter { animation: aiStageEnter .4s var(--ease) both; }
@keyframes aiStageEnter {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ai-chat-bubble,
  .ai-chat-bubble.is-fresh,
  .ai-chat__options.is-revealing > *,
  .ai-stage.is-stage-enter {
    animation: none !important;
  }
  .ai-typing i { animation: none !important; opacity: .55; }
}


/* =============================================
   Etapa oscura + imagen de referencia
   ============================================= */

.ai-stage {
  background: linear-gradient(180deg, #0B4F48 0%, #093D37 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.ai-stage__title { color: var(--ai-ivory); }
.ai-stage__title em { color: var(--ai-gold-light); }
.ai-stage__lead { color: rgba(248, 243, 233, 0.74); }
.ai-stage__eyebrow { color: var(--ai-gold-light); }

.ai-stage .ai-hint { color: rgba(248, 243, 233, 0.72); }
.ai-stage .ai-hint strong { color: var(--ai-ivory); }
.ai-stage .ai-tone .ai-hint,
.ai-stage .ai-drop .ai-hint,
.ai-stage .ai-vto__product .ai-hint,
.ai-stage .ai-empty .ai-hint,
.ai-stage .ai-note .ai-hint,
.ai-stage .ai-guide .ai-hint,
.ai-stage .ai-reco .ai-hint { color: var(--ai-ink-soft); }

.ai-stage .ai-status { color: rgba(248, 243, 233, 0.80); }
.ai-stage .ai-status.is-error { color: #FFB4A8; }
.ai-stage .ai-status.is-success { color: #9FE3D6; }

.ai-stage .ai-consent { color: rgba(248, 243, 233, 0.78); }
.ai-stage .ai-consent strong { color: var(--ai-ivory); }

.ai-stage .ai-chat__loading { color: rgba(248, 243, 233, 0.72); }

/* Imagen de referencia */
.ai-ref {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed rgba(255, 255, 255, 0.18);
}
.ai-ref__title {
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 400;
  color: var(--ai-ivory);
}
.ai-ref__hint {
  margin-bottom: 12px;
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(248, 243, 233, 0.72);
}
.ai-ref__samples {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.ai-ref__sample {
  width: 64px;
  height: 64px;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease);
}
.ai-ref__sample:hover,
.ai-ref__sample:focus-visible {
  transform: translateY(-2px);
  border-color: var(--ai-gold-light);
}
.ai-ref__sample img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ai-ref__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ai-ivory);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}
.ai-ref__btn:hover,
.ai-ref__btn:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--ai-gold-light);
}
.ai-ref__preview {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 0.7rem;
  color: rgba(248, 243, 233, 0.7);
}
.ai-ref__preview img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}


/* Muestras de referencia con etiqueta */
.ai-ref__sample {
  display: flex;
  flex-direction: column;
  width: 86px;
  height: auto;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border-radius: 12px;
}
.ai-ref__sample img {
  width: 100%;
  height: 64px;
  object-fit: cover;
}
.ai-ref__sample span {
  display: block;
  padding: 4px 2px 5px;
  font-size: 0.56rem;
  line-height: 1.2;
  text-align: center;
  color: var(--ai-ink-soft);
}


/* Simulación integrada en la etapa de piezas */
.ai-sim {
  margin-top: 24px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
}
.ai-sim__head { margin-bottom: 12px; }
.ai-sim__title {
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 400;
  color: var(--ai-ivory);
}
.ai-sim__price {
  margin-top: 2px;
  font-size: 0.8rem;
  color: var(--ai-gold-light);
}
.ai-sim__pending {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.ai-sim .ai-vto__result { margin-top: 0; }


/* =============================================
   Sistema de capas, bordes y jerarquía tipográfica
   ============================================= */
.ai-page {
  --layer-base: #081C18;
  --layer-1: rgba(14, 56, 48, 0.88);
  --layer-2: rgba(22, 78, 68, 0.90);
  --layer-3: rgba(26, 90, 78, 0.95);
  --edge: rgba(255, 255, 255, 0.12);
  --edge-mint: rgba(110, 231, 183, 0.22);
  --text-strong: #FFFFFF;
  --text-body: rgba(236, 246, 243, 0.82);
  --text-muted: rgba(214, 232, 227, 0.60);
  --mint: #6EE7B7;
  background:
    radial-gradient(1000px 620px at 8% -10%, rgba(110, 231, 183, 0.22), transparent 62%),
    radial-gradient(820px 520px at 100% 0%, rgba(232, 201, 122, 0.14), transparent 60%),
    radial-gradient(1000px 720px at 50% 118%, rgba(159, 247, 228, 0.30), transparent 68%),
    linear-gradient(162deg, #0E5C52 0%, #167A6C 45%, #2AA692 100%);
  color: var(--text-body);
}

.ai-hero__title { color: var(--text-strong); }
.ai-hero__lead { color: var(--text-body); }
.ai-hero__eyebrow { color: var(--mint); }

.ai-wizard {
  background: var(--layer-1);
  border: 1px solid var(--edge);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.ai-wizard__top,
.ai-profile-bar {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--edge);
}
.ai-wizard__brand { color: var(--text-strong); }
.ai-wizard__private { color: var(--text-muted); }
.ai-profile__title { color: var(--text-muted); }
.ai-profile__empty { color: var(--text-muted); }

/* Estados de los pasos */
.ai-stepper { background: rgba(8, 34, 29, 0.55); border-bottom: 1px solid var(--edge); }
.ai-step {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.025);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.ai-step:hover:not(:disabled) { background: rgba(255, 255, 255, 0.06); color: var(--text-body); }
.ai-step.is-active {
  color: var(--text-strong);
  background: var(--layer-3);
  box-shadow: inset 0 -2px 0 var(--mint);
}
.ai-step.is-active .ai-step__num {
  color: #06201C;
  background: var(--mint);
  border-color: var(--mint);
  box-shadow: 0 0 0 4px rgba(110, 231, 183, 0.16);
}
.ai-step.is-done { color: rgba(110, 231, 183, 0.85); }
.ai-step.is-done .ai-step__num {
  color: var(--mint);
  background: rgba(110, 231, 183, 0.12);
  border-color: rgba(110, 231, 183, 0.35);
}
.ai-step__num {
  color: var(--text-body);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

/* Lienzo de la experiencia */
.ai-stage {
  background: linear-gradient(180deg, #0E3830 0%, #0B2F29 100%);
  border: 1px solid var(--edge);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.ai-stage__title { color: var(--text-strong); }
.ai-stage__title em { color: var(--ai-gold-light); }
.ai-stage__lead { color: var(--text-body); }
.ai-stage__eyebrow { color: var(--mint); }

/* Burbujas y opciones */
.ai-chat-bubble__body {
  color: var(--text-strong);
  background: var(--layer-2);
  border: 1px solid var(--edge);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}
.ai-chat-bubble--you .ai-chat-bubble__body {
  color: #FFFFFF;
  background: linear-gradient(135deg, #167F6F, #0F5A52);
  border-color: rgba(110, 231, 183, 0.28);
}
.ai-chat-opt {
  color: var(--text-strong);
  background: var(--layer-2);
  border: 1px solid var(--edge);
}
.ai-chat-opt:hover,
.ai-chat-opt:focus-visible {
  border-color: var(--edge-mint);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}
.ai-chat-opt.is-selected {
  border-color: var(--mint);
  box-shadow: 0 0 0 2px rgba(110, 231, 183, 0.16);
}
.ai-chat-opt__copy strong { color: var(--text-strong); }
.ai-chat-opt__copy small { color: var(--text-muted); }
.ai-chat-chip {
  color: var(--text-strong);
  background: var(--layer-2);
  border: 1px solid var(--edge);
}
.ai-chat-chip.is-selected { border-color: var(--mint); }
.ai-chat__loading { color: var(--text-muted); }

/* Tarjeta de tono y ajustes */
.ai-tone {
  color: var(--text-body);
  background: var(--layer-2);
  border: 1px solid var(--edge);
}
.ai-tone__title { color: var(--text-strong); }
.ai-tone__eyebrow { color: var(--mint); }
.ai-tone__text,
.ai-tone__sub,
.ai-tone__foot { color: var(--text-body); }
.ai-metal {
  color: var(--text-body);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--edge);
}
.ai-swatch__label { color: var(--text-muted); }

.ai-manual { border-top-color: rgba(255, 255, 255, 0.15); }
.ai-manual__title { color: var(--text-strong); }
.ai-manual__hint { color: var(--text-muted); }
.ai-tone-option {
  background: var(--layer-2);
  border: 1px solid var(--edge);
}
.ai-tone-option.is-selected { border-color: var(--mint); }
.ai-tone-option__name { color: var(--text-strong); }
.ai-tone-option__desc { color: var(--text-muted); }

/* Guía, tips y zonas de carga */
.ai-guide {
  background: var(--layer-2);
  border: 1px solid var(--edge);
}
.ai-guide__body strong { color: var(--text-strong); }
.ai-guide__body p { color: var(--text-body); }
.ai-photo-tip {
  background: rgba(22, 78, 68, 0.80);
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.ai-photo-tip strong { color: var(--text-strong); }
.ai-photo-tip span { color: var(--text-muted); }
.ai-photo-tip__icon { color: var(--mint); background: rgba(255, 255, 255, 0.06); }
.ai-drop,
.ai-selfie-frame {
  background: rgba(18, 66, 57, 0.70);
  border-color: rgba(255, 255, 255, 0.16);
}
.ai-drop__title,
.ai-selfie-frame__cta { color: var(--text-strong); }
.ai-drop__hint { color: var(--text-muted); }
.ai-empty {
  color: var(--text-body);
  background: rgba(18, 66, 57, 0.65);
  border-color: rgba(255, 255, 255, 0.14);
}
.ai-empty__title { color: var(--text-strong); }
.ai-note--warm {
  color: var(--text-body);
  background: rgba(42, 38, 20, 0.55);
  border-color: rgba(216, 181, 106, 0.35);
}

/* Recomendaciones */
.ai-reco {
  background: var(--layer-2);
  border: 1px solid var(--edge);
}
.ai-reco__name { color: var(--text-strong); }
.ai-reco__price { color: var(--mint); }
.ai-reco__desc,
.ai-reco__why,
.ai-reco__note { color: var(--text-body); }
.ai-reco__label { color: var(--mint); }
.ai-reco__cat {
  color: var(--text-body);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

/* Probador */
.ai-vto__product,
.ai-vto-pick,
.ai-vto__instructions {
  color: var(--text-body);
  background: var(--layer-2);
  border: 1px solid var(--edge);
}
.ai-vto__product-name { color: var(--text-strong); }
.ai-vto__product-price { color: var(--mint); }
.ai-vto-pick.is-selected { border-color: var(--mint); }
.ai-vto-pick span { color: var(--text-body); }

/* Modelos de prueba del probador */
.ai-vto__models {
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.ai-vto__models-title {
  margin: 0 0 9px;
  font-size: 0.74rem;
  line-height: 1.35;
  color: var(--text-muted);
}
.ai-vto__models-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ai-vto-model {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 8px;
  text-align: left;
  color: var(--text-body);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.ai-vto-model:hover,
.ai-vto-model:focus-visible {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(110, 231, 183, 0.55);
  transform: translateY(-1px);
}
.ai-vto-model.is-selected {
  border-color: var(--mint);
  background: rgba(110, 231, 183, 0.12);
  box-shadow: 0 0 0 1px var(--mint) inset;
}
.ai-vto-model img {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
}
.ai-vto-model__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ai-vto-model__copy strong {
  font-size: 0.76rem;
  line-height: 1.2;
  color: var(--text-strong);
}
.ai-vto-model__copy small {
  font-size: 0.64rem;
  line-height: 1.25;
  color: var(--text-muted);
}
@media (max-width: 460px) {
  .ai-vto__models-row { grid-template-columns: 1fr; }
}

/* Favoritos */
.ai-saved-card {
  background: var(--layer-2);
  border: 1px solid var(--edge);
}
.ai-saved-card__name { color: var(--text-strong); }
.ai-saved-card__meta { color: var(--text-muted); }

/* Botones */
.ai-btn--primary {
  color: #06201C;
  background: linear-gradient(135deg, #2BB5A0, #6EE7B7);
  border-color: transparent;
}
.ai-btn--primary:hover,
.ai-btn--primary:focus-visible {
  background: linear-gradient(135deg, #35C7B0, #8AF0C5);
  color: #06201C;
}
.ai-btn--ghost {
  color: var(--text-body);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.ai-btn--ghost:hover,
.ai-btn--ghost:focus-visible {
  color: var(--text-strong);
  border-color: var(--mint);
}

/* Simulación */
.ai-sim {
  background: rgba(22, 78, 68, 0.80);
  border-color: rgba(255, 255, 255, 0.14);
}
.ai-sim__title { color: var(--text-strong); }
.ai-sim__price { color: var(--mint); }


/* Contraste del bloque de consentimiento */
.ai-stage .ai-consent {
  color: var(--text-body);
  background: var(--layer-2);
  border: 1px solid var(--edge);
  border-radius: 12px;
}
.ai-stage .ai-consent strong { color: var(--text-strong); }
.ai-stage .ai-consent input { accent-color: var(--mint); }


/* Resultado de la simulación sobre superficie oscura */
.ai-vto__result,
.ai-sim .ai-vto__result {
  background: var(--layer-2);
  border: 1px solid var(--edge);
  box-shadow: none;
}
.ai-vto__result-img {
  background: #0B2F29;
}
.ai-vto__result-bar .ai-hint { color: var(--text-muted); }


/* Error de simulación: la acción principal es cambiar la foto */
#ai-sim-photo {
  color: var(--text-strong);
  border-color: rgba(255, 255, 255, 0.35);
}


/* ── Etapa 02 · selector de fotos ───────────── */
.ai-photo-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 10px;
}

.ai-photo-mode__card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: flex-start;
  padding: 16px;
  text-align: left;
  color: var(--text-body);
  background: var(--layer-2);
  border: 1px solid var(--edge);
  border-radius: 18px;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.ai-photo-mode__card:hover,
.ai-photo-mode__card:focus-visible {
  border-color: var(--edge-mint);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  transform: translateY(-2px);
}

.ai-photo-mode__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 2px;
  color: var(--mint);
  background: rgba(110, 231, 183, 0.10);
  border: 1px solid rgba(110, 231, 183, 0.22);
  border-radius: 14px;
}

.ai-photo-mode__card strong {
  font-size: 0.92rem;
  color: var(--text-strong);
}

.ai-photo-mode__card span {
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.ai-photo-mode__card small {
  margin-top: 4px;
  padding: 3px 8px;
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--mint);
  background: rgba(110, 231, 183, 0.08);
  border-radius: 999px;
}

.ai-photo-mode__hint { margin: 6px 0 0; }

.ai-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.ai-photo-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--layer-2);
  border: 1px solid var(--edge);
  border-radius: 18px;
}

.ai-photo-card__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background:
    radial-gradient(220px 130px at 50% 0%, rgba(95, 202, 187, 0.16), transparent 72%),
    rgba(8, 32, 28, 0.85);
  border-bottom: 1px solid var(--edge);
}

.ai-photo-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-photo-card__empty {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 18px;
  font-size: 0.66rem;
  color: var(--text-muted);
  text-align: center;
}

.ai-hand-outline {
  display: grid;
  place-items: center;
  width: 84px;
  height: 104px;
  color: rgba(110, 231, 183, 0.75);
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px dashed rgba(110, 231, 183, 0.42);
  border-radius: 28px;
}

.ai-photo-card__tag {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  font-size: 0.54rem;
  font-weight: 600;
  color: var(--text-strong);
  background: rgba(6, 32, 28, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.ai-photo-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
}

.ai-photo-card__body h3 {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-strong);
}

.ai-photo-card__body p {
  margin: 0 0 4px;
  font-size: 0.66rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.ai-photo-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.ai-photo-card__actions .ai-btn { padding: 7px 10px; font-size: 0.62rem; }

.ai-photo-card input[type="file"] { display: none; }

.ai-btn--sm {
  padding: 8px 12px;
  font-size: 0.68rem;
}

.ai-mode-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.ai-mode-switch span {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.ai-model-panel { margin-top: 4px; }

.ai-model-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 10px;
}

.ai-model-preview {
  margin: 0;
  overflow: hidden;
  background: var(--layer-2);
  border: 1px solid var(--edge);
  border-radius: 18px;
}

.ai-model-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.ai-model-preview figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
}

.ai-model-preview strong { font-size: 0.76rem; color: var(--text-strong); }
.ai-model-preview span { font-size: 0.62rem; color: var(--text-muted); }

/* ── Cámara guiada ─────────────────────────── */
.ai-camera {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(3, 18, 15, 0.82);
  backdrop-filter: blur(10px);
}

.ai-camera.is-open { display: flex; }
body.ai-camera-open { overflow: hidden; }

.ai-camera__panel {
  width: min(560px, 100%);
  max-height: calc(100dvh - 32px);
  padding: 14px;
  overflow: auto;
  background: linear-gradient(180deg, #12463d, #0a2b25);
  border: 1px solid rgba(110, 231, 183, 0.24);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.ai-camera__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 10px;
}

.ai-camera__head strong { font-size: 0.9rem; color: var(--text-strong); }

.ai-camera__close {
  width: 34px;
  height: 34px;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--text-body);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  cursor: pointer;
}

.ai-camera__video-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  max-height: 58vh;
  overflow: hidden;
  background: #031512;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
}

.ai-camera__video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-camera__guide {
  position: absolute;
  inset: 8% 18%;
  pointer-events: none;
  border: 2px dashed rgba(110, 231, 183, 0.82);
  border-radius: 50% 50% 44% 44%;
  box-shadow: 0 0 0 999px rgba(2, 18, 14, 0.18);
}

.ai-camera__guide--bracelet {
  inset: 18% 10%;
  border-radius: 30% 70% 62% 38% / 42% 58% 42% 58%;
}

.ai-camera__hint,
.ai-camera__status {
  margin: 10px 2px 0;
  font-size: 0.68rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.ai-camera__status { min-height: 18px; }

.ai-camera__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.ai-camera__actions .ai-btn { flex: 1 1 140px; }

@media (max-width: 620px) {
  .ai-photo-mode,
  .ai-photo-grid { grid-template-columns: 1fr; }
  .ai-photo-card__media { aspect-ratio: 5 / 4; }
  .ai-photo-mode__card { padding: 14px; }
  .ai-camera { padding: 8px; }
  .ai-camera__panel { max-height: calc(100dvh - 16px); }
  .ai-camera__video-wrap { max-height: 52vh; }
}


.ai-face-outline {
  position: relative;
  display: block;
  width: 78px;
  height: 98px;
  border: 1.5px dashed rgba(110, 231, 183, 0.48);
  border-radius: 50% 50% 44% 44%;
  background: rgba(255, 255, 255, 0.04);
}

.ai-face-outline__eyes {
  position: absolute;
  top: 39%;
  left: 28%;
  width: 6px;
  height: 6px;
  background: rgba(110, 231, 183, 0.8);
  border-radius: 50%;
  box-shadow: 26px 0 0 rgba(110, 231, 183, 0.8);
}

.ai-face-outline__smile {
  position: absolute;
  bottom: 24%;
  left: 50%;
  width: 22px;
  height: 11px;
  margin-left: -11px;
  border-bottom: 1.5px solid rgba(110, 231, 183, 0.8);
  border-radius: 0 0 50% 50%;
}
