/* Sol y Tierra · mini escenas de la reserva, solo en como-funciona.html */

.syt-scroll-scene--reserva .v4-pasos-bento {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 22px;
}

.syt-scroll-scene--reserva .v4-paso-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "visual" "text";
  grid-template-rows: auto auto;
  align-content: start;
  justify-items: start;
  gap: 10px;
  min-width: 0;
  overflow: visible;
  padding: 22px;
}

.syt-scroll-scene--reserva .v4-paso-card__num {
  position: static;
  grid-area: auto;
  width: 40px;
  height: 40px;
  flex: none;
}

.syt-scroll-scene--reserva .v4-paso-card__text {
  display: flex;
  grid-area: text;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
}

.syt-scroll-scene--reserva .v4-paso-card__copy {
  min-width: 0;
  width: 100%;
}

.syt-scroll-scene--reserva .v4-paso-card h3 {
  margin-bottom: 8px;
}

.syt-scroll-scene--reserva .syt-paso-visual {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-area: visual;
  place-items: center;
  justify-self: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-width: 0;
  border: 1px solid var(--borde, #e2e8f0);
  border-radius: var(--r-m, 16px);
  background:
    radial-gradient(circle at 88% 12%, var(--marca-suave, rgba(200, 16, 62, .06)), transparent 28%),
    var(--superficie, #f8fafc);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}

.syt-scroll-scene--reserva .syt-paso-visual::before {
  position: absolute;
  z-index: -1;
  right: 7%;
  bottom: 7%;
  width: clamp(44px, 8vw, 92px);
  aspect-ratio: 1;
  border: 1px solid rgba(200, 16, 62, .08);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

/* 01 · Una ficha de coordinación, sin identidad personal */
.syt-contact-card {
  display: grid;
  gap: 12px;
  width: min(82%, 520px);
  padding: clamp(16px, 2.5vw, 28px);
  border: 1px solid var(--borde, #e2e8f0);
  border-radius: var(--r-l, 24px);
  background: #fff;
  box-shadow: var(--sombra-alta, 0 20px 32px -10px rgba(15, 23, 42, .12));
}

.syt-contact-card__top {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--borde, #e2e8f0);
}

.syt-contact-card__avatar {
  display: grid;
  width: 52px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--marca-borde, rgba(200, 16, 62, .2));
  border-radius: 15px;
  background: var(--marca-suave, rgba(200, 16, 62, .06));
  color: var(--marca, #c8103e);
}

.syt-contact-card__avatar svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.syt-contact-card__name {
  color: var(--tinta, #0f172a);
  font: 700 clamp(17px, 1.5vw, 21px)/1.2 var(--f-display, sans-serif);
}

.syt-contact-card__name::before,
.syt-contact-card__label::before,
.syt-form-field__label::before,
.syt-form-card__button span::before,
.syt-photo-tile figcaption::before,
.syt-document-card__heading span::before,
.syt-document-card__seals span::before {
  content: attr(data-label);
}

.syt-contact-card__verified,
.syt-contact-card__check {
  display: grid;
  place-items: center;
  color: #087443;
  background: #e8f5ed;
}

.syt-contact-card__verified {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.syt-contact-card__verified svg,
.syt-contact-card__check svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.syt-contact-card__duties {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.syt-contact-card__duties li {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 2px;
}

.syt-contact-card__label {
  color: var(--tinta-2, #475569);
  font: 600 14px/1.35 var(--f-texto, sans-serif);
}

.syt-contact-card__check {
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
}

/* 02 · Campos vacíos para una consulta, sin datos inventados */
.syt-form-card {
  display: grid;
  gap: 12px;
  width: min(86%, 640px);
  padding: clamp(12px, 2.2vw, 24px);
  border: 1px solid var(--borde, #e2e8f0);
  border-radius: var(--r-l, 24px);
  background: #fff;
  box-shadow: var(--sombra-alta, 0 20px 32px -10px rgba(15, 23, 42, .12));
}

.syt-form-card__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 1.2vw, 14px);
}

.syt-form-field {
  display: grid;
  min-width: 0;
  min-height: clamp(52px, 7svh, 72px);
  align-content: center;
  gap: 5px;
  padding: 9px 11px;
  border: 1px solid var(--borde, #e2e8f0);
  border-radius: var(--r-s, 8px);
  background: #fff;
}

.syt-form-field__label {
  color: var(--tinta-2, #475569);
  font: 700 12px/1.2 var(--f-texto, sans-serif);
}

.syt-form-field__input {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  color: var(--marca, #c8103e);
}

.syt-form-field__input svg {
  width: 17px;
  height: 17px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.syt-form-field__input i {
  display: block;
  width: min(58%, 70px);
  height: 4px;
  border-radius: 99px;
  background: var(--superficie-2, #f1f5f9);
}

.syt-form-card__button {
  display: inline-flex;
  min-height: 44px;
  justify-self: start;
  align-items: center;
  gap: 9px;
  padding: 0 15px;
  border-radius: 8px;
  font-size: 14px;
  white-space: nowrap;
}

.syt-form-card__button svg {
  width: 17px;
  height: 17px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

/* 03 · Prendas reales conservadas completas en cada foto */
.syt-photo-row {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: clamp(7px, 1.4vw, 16px);
  padding: clamp(10px, 2vw, 22px);
}

.syt-photo-tile {
  display: grid;
  width: min(100%, 210px);
  height: min(74%, 330px);
  grid-template-rows: minmax(0, 1fr) auto;
  justify-self: center;
  gap: 7px;
  min-width: 0;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--borde, #e2e8f0);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .09);
}

.syt-photo-tile:nth-child(2) {
  transform: translateY(-8px);
}

.syt-photo-tile img {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  border-radius: 7px;
  background: var(--superficie, #f8fafc);
}

.syt-photo-tile figcaption {
  min-height: 20px;
  color: var(--tinta-2, #475569);
  font: 700 12px/1.25 var(--f-texto, sans-serif);
  text-align: center;
}

/* 04 · Compromiso, firma dibujada y chips sin montos */
.syt-document-card {
  display: grid;
  width: min(84%, 620px);
  gap: clamp(12px, 2vw, 20px);
  padding: clamp(16px, 2.6vw, 29px);
  border: 1px solid var(--borde-fino, #cbd5e1);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--sombra-alta, 0 20px 32px -10px rgba(15, 23, 42, .12));
}

.syt-document-card__heading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--tinta, #0f172a);
  font: 700 clamp(14px, 1.35vw, 18px)/1.25 var(--f-display, sans-serif);
}

.syt-document-card__heading svg {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: var(--marca, #c8103e);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.syt-document-card__lines {
  display: grid;
  gap: 9px;
  padding: 2px 0;
}

.syt-document-card__lines i {
  display: block;
  width: 100%;
  height: 5px;
  border-radius: 99px;
  background: var(--superficie-2, #f1f5f9);
}

.syt-document-card__lines i:nth-child(2) {
  width: 82%;
}

.syt-document-card__lines i:nth-child(3) {
  width: 63%;
}

.syt-document-card__signature {
  width: 42%;
  min-width: 112px;
  padding: 0 5px 3px;
  border-bottom: 1px solid var(--borde-fino, #cbd5e1);
}

.syt-document-card__signature svg {
  display: block;
  width: 100%;
  height: 35px;
  fill: none;
  stroke: var(--marca-tinta, #a50a30);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.syt-document-card__seals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.syt-document-card__seals span {
  display: grid;
  min-height: 32px;
  place-items: center;
  padding: 5px 7px;
  border: 1px solid var(--marca-borde, rgba(200, 16, 62, .2));
  border-radius: 999px;
  background: var(--marca-suave, rgba(200, 16, 62, .06));
  color: var(--marca-tinta, #a50a30);
  font: 700 11px/1.2 var(--f-texto, sans-serif);
  text-align: center;
}

/* Escena activa: composición horizontal y espacio medido para 4:3 */
@media (min-width: 1024px) {
  .syt-scroll-scene--reserva.is-enhanced .syt-scroll-scene__pin {
    height: min(84svh, 640px);
    min-height: 480px;
  }

  .syt-scroll-scene--reserva.is-enhanced [data-syt-scene-step] {
    display: grid;
    grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
    grid-template-rows: minmax(0, 1fr);
    grid-template-areas: "text visual";
    align-content: stretch;
    align-items: center;
    justify-content: stretch;
    gap: 12px clamp(22px, 3vw, 40px);
    min-width: 0;
    width: 100%;
    height: 100%;
    padding: clamp(26px, 3.6vw, 46px);
    overflow: visible;
  }

  .syt-scroll-scene--reserva.is-enhanced .v4-paso-card__num {
    width: 42px;
    height: 42px;
  }

  .syt-scroll-scene--reserva.is-enhanced .v4-paso-card__text {
    justify-content: center;
    gap: 18px;
  }

  .syt-scroll-scene--reserva.is-enhanced .syt-paso-visual {
    width: min(100%, 90.67svh);
    align-self: center;
  }

  .syt-scroll-scene--reserva.is-enhanced .syt-photo-tile {
    width: min(100%, 210px);
  }
}

/* Tablet y móvil: escena arriba, texto debajo y proporción completa */
@media (max-width: 1023px) {
  .syt-scroll-scene--reserva.is-enhanced .syt-scroll-scene__pin {
    top: 76px;
    height: min(72svh, 540px);
    min-height: 420px;
  }

  .syt-scroll-scene--reserva.is-enhanced [data-syt-scene-step] {
    display: grid;
    grid-template-areas: "visual" "text";
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: start;
    align-items: start;
    justify-content: stretch;
    gap: 10px;
    padding: 22px;
    overflow: visible;
  }

  .syt-scroll-scene--reserva .syt-paso-visual {
    width: min(100%, 45.33svh);
  }

  .syt-scroll-scene--reserva .syt-photo-tile {
    height: min(74%, 300px);
  }
}

@media (max-width: 640px) {
  .syt-scroll-scene--reserva .v4-pasos-bento {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .syt-scroll-scene--reserva.is-enhanced .syt-scroll-scene__pin {
    min-height: 420px;
  }

  .syt-scroll-scene--reserva.is-enhanced [data-syt-scene-step] {
    gap: 8px;
    padding: 16px;
  }

  .syt-scroll-scene--reserva.is-enhanced .v4-paso-card__text {
    gap: 8px;
  }

  .syt-scroll-scene--reserva .v4-paso-card__num {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    font-size: 14px;
  }

  .syt-scroll-scene--reserva .v4-paso-card h3 {
    margin-bottom: 6px;
    font-size: clamp(18px, 4.8vw, 20px);
    line-height: 1.2;
  }

  .syt-scroll-scene--reserva .v4-paso-card p {
    font-size: 15.5px;
    line-height: 1.42;
  }

  .syt-scroll-scene--reserva .syt-photo-tile {
    gap: 5px;
    padding: 5px;
  }

  .syt-scroll-scene--reserva .syt-photo-tile figcaption {
    min-height: 16px;
    font-size: 10px;
  }

  .syt-scroll-scene--reserva .syt-contact-card {
    width: 88%;
    gap: 8px;
    padding: 12px;
    border-radius: 14px;
  }

  .syt-scroll-scene--reserva .syt-contact-card__top {
    grid-template-columns: 38px minmax(0, 1fr) 28px;
    gap: 9px;
    padding-bottom: 8px;
  }

  .syt-scroll-scene--reserva .syt-contact-card__avatar {
    width: 38px;
    border-radius: 11px;
  }

  .syt-scroll-scene--reserva .syt-contact-card__avatar svg {
    width: 23px;
    height: 23px;
  }

  .syt-scroll-scene--reserva .syt-contact-card__verified {
    width: 28px;
    height: 28px;
  }

  .syt-scroll-scene--reserva .syt-contact-card__name {
    font-size: 16px;
  }

  .syt-scroll-scene--reserva .syt-contact-card__duties li {
    min-height: 29px;
  }

  .syt-scroll-scene--reserva .syt-contact-card__label {
    font-size: 12px;
  }

  .syt-scroll-scene--reserva .syt-contact-card__check {
    width: 20px;
    height: 20px;
  }

  .syt-scroll-scene--reserva .syt-form-card {
    width: 90%;
    gap: 8px;
    padding: 9px;
    border-radius: 14px;
  }

  .syt-scroll-scene--reserva .syt-form-card__fields {
    gap: 6px;
  }

  .syt-scroll-scene--reserva .syt-form-field {
    min-height: 48px;
    gap: 3px;
    padding: 6px 7px;
  }

  .syt-scroll-scene--reserva .syt-form-field__label {
    font-size: 10px;
  }

  .syt-scroll-scene--reserva .syt-form-field__input {
    gap: 5px;
  }

  .syt-scroll-scene--reserva .syt-form-field__input svg {
    width: 14px;
    height: 14px;
  }

  .syt-scroll-scene--reserva .syt-form-card__button {
    min-height: 38px;
    gap: 7px;
    padding-inline: 11px;
    font-size: 12px;
  }

  .syt-scroll-scene--reserva .syt-form-card__button svg {
    width: 14px;
    height: 14px;
  }

  .syt-scroll-scene--reserva .syt-document-card {
    width: 90%;
    gap: 10px;
    padding: 12px;
  }

  .syt-scroll-scene--reserva .syt-document-card__heading {
    gap: 7px;
    font-size: 13px;
  }

  .syt-scroll-scene--reserva .syt-document-card__heading svg {
    width: 18px;
    height: 18px;
  }

  .syt-scroll-scene--reserva .syt-document-card__lines {
    gap: 7px;
  }

  .syt-scroll-scene--reserva .syt-document-card__signature {
    min-width: 92px;
  }

  .syt-scroll-scene--reserva .syt-document-card__signature svg {
    height: 27px;
  }

  .syt-scroll-scene--reserva .syt-document-card__seals {
    gap: 5px;
  }

  .syt-scroll-scene--reserva .syt-document-card__seals span {
    min-height: 27px;
    padding: 4px 5px;
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .syt-scroll-scene--reserva .v4-paso-card,
  .syt-scroll-scene--reserva .syt-paso-visual,
  .syt-scroll-scene--reserva .syt-photo-tile {
    transition: none;
    animation: none;
  }
}
