@font-face {
  font-family: Poppins;
  src: url("assets/poppins-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Poppins;
  src: url("assets/poppins-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --ink: #241e49;
  --gallery-green: #e5f3eb;
  --cuida-green: #26985a;
  --gutter: clamp(16px, 6.25vw, 96px);
  --width: 1050px;
  color: var(--ink);
  background: white;
  font-family: Poppins, system-ui, sans-serif;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, p { margin: 0; }
img { display: block; max-width: 100%; }
button { color: inherit; font: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.cover {
  display: grid;
  align-items: center;
  position: relative;
  isolation: isolate;
  min-height: clamp(530px, 56vw, 850px);
  background: #30372a;
  color: white;
}

.cover-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  z-index: -2;
}

.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgb(0 0 0 / 74%), rgb(0 0 0 / 65%) 28%, transparent 57%);
  z-index: -1;
}

.cover-copy {
  width: min(44%, 650px);
  margin-left: max(var(--gutter), calc((100vw - 1280px) / 2));
  padding-block: 40px;
}

.cover :focus-visible { outline-color: white; }

.cover-logo img {
  width: clamp(235px, 29vw, 440px);
  height: auto;
}

.cover-copy p {
  max-width: 38ch;
  margin-top: clamp(20px, 2.8vw, 42px);
  font-size: clamp(1rem, 1.47vw, 1.28rem);
  line-height: 1.65;
  text-wrap: pretty;
}

.cover-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-top: clamp(24px, 2.8vw, 42px);
}

.cover-actions .price { font-size: 1.12rem; font-weight: 500; }

.purchase-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-height: 54px;
  border: 0;
  border-radius: 2px;
  padding: 13px clamp(21px, 2.45vw, 36px);
  background: white;
  color: var(--ink);
  font-size: clamp(.94rem, 1.15vw, 1.08rem);
  font-weight: 500;
  cursor: pointer;
}

.purchase-button:hover { background: #efedf6; }

dialog {
  width: min(420px, 100% - 32px);
  border: 0;
  border-radius: 3px;
  padding: clamp(24px, 5vw, 38px);
  color: var(--ink);
  background: white;
}

dialog::backdrop { background: rgb(23 18 43 / 72%); }
dialog h2 { font-size: 1.3rem; font-weight: 500; }
dialog p { margin-top: 8px; font-size: .88rem; }
dialog .price { font-size: 1.15rem; font-weight: 500; }
dialog button {
  margin-top: 22px;
  min-height: 44px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  padding: 8px 16px;
  background: var(--ink);
  color: white;
  cursor: pointer;
}

.gallery {
  --photo-height: clamp(220px, 32vw, 415px);
  padding-block: clamp(22px, 2.8vw, 40px);
  background: var(--gallery-green);
}

.gallery-track {
  display: flex;
  gap: clamp(10px, 1.45vw, 20px);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: var(--gutter);
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  list-style: none;
  margin: 0;
  padding: 0 var(--gutter);
}

.gallery-track:focus-visible { outline-offset: -2px; }
.gallery-track li { flex: 0 0 auto; scroll-snap-align: start; }
.gallery-track img { width: auto; height: var(--photo-height); max-width: none; }

@media (pointer: fine) {
  .gallery-track { cursor: grab; }
  .gallery-track.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
  }
}

.reflection {
  padding: clamp(44px, 5.5vw, 78px) var(--gutter) clamp(55px, 6.7vw, 100px);
  background: white;
  color: #211735;
  text-align: center;
}

.reflection-label,
.reflection-lead {
  margin-bottom: clamp(14px, 1.55vw, 22px);
  color: var(--ink);
  font-size: clamp(1.05rem, 1.65vw, 1.3rem);
  line-height: 1.55;
  font-weight: 500;
}

.reflection-question {
  max-width: 27ch;
  margin: 0 auto clamp(25px, 3vw, 42px);
  color: var(--cuida-green);
  font-family: "STIX Two Text", Georgia, "Times New Roman", serif;
  font-size: clamp(2.112rem, 4.224vw, 3.6rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.028em;
  text-wrap: balance;
}

.reflection-text {
  max-width: 66ch;
  margin-inline: auto;
  font-size: clamp(1.12rem, 1.75vw, 1.4rem);
  line-height: 1.65;
}

.video-band {
  padding: clamp(24px, 4.6vw, 68px) var(--gutter);
  background: #eeedf2;
}

.video-band video {
  display: block;
  width: min(100%, 900px);
  height: auto;
  aspect-ratio: 16 / 9;
  margin-inline: auto;
  border-radius: 4px;
  background: var(--ink);
}

.footer {
  display: grid;
  place-items: center;
  background: var(--ink);
  padding: clamp(32px, 5vw, 60px) var(--gutter);
}

.footer img { width: clamp(142px, 17vw, 192px); height: auto; }

@media (max-width: 760px) {
  :root { --gutter: clamp(16px, 4.1vw, 32px); }

  .cover {
    align-items: end;
    min-height: clamp(620px, 170vw, 800px);
  }

  .cover-photo { object-position: 52% center; }

  .cover::before {
    background: linear-gradient(to bottom, transparent 48%, rgb(0 0 0 / 69%) 62%, rgb(0 0 0 / 86%) 100%);
  }

  .cover-copy {
    width: auto;
    margin: 0;
    padding: 0 max(var(--gutter), calc((100vw - 520px) / 2)) clamp(25px, 7vw, 42px);
  }

  .cover-logo img { width: clamp(245px, 60vw, 365px); }
  .cover-copy p { margin-top: 17px; }
  .cover-actions { margin-top: 20px; }
  .gallery { --photo-height: clamp(170px, 56vw, 345px); }
}

@media (prefers-reduced-motion: no-preference) {
  .purchase-button { transition: background-color 160ms ease; }
}

.how-to {
  padding: clamp(32px, 4vw, 50px) var(--gutter) clamp(28px, 3vw, 40px);
  background: #F3EFF8;
}

.how-to-header {
  margin: 0 auto clamp(32px, 4.5vw, 66px);
  max-width: 720px;
  text-align: center;
}

.how-to-header h2 {
  margin-bottom: 14px;
  font: 700 clamp(2.352rem, 4.704vw, 3.984rem)/1.05 "STIX Two Text", Georgia, "Times New Roman", serif;
}

.how-to-header p {
  font-size: clamp(1rem, 1.5vw, 1.19rem);
  line-height: 1.6;
  text-wrap: balance;
}

.how-to-photo-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 44px);
  max-width: 1250px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.how-to-photo-steps img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin-bottom: 21px;
}
.how-to h3 { margin: 0 0 9px; font-size: 1.17rem; font-weight: 500; }
.how-to h3 span { color: #a91649; }
.how-to-photo-steps p { font-size: 1rem; line-height: 1.7; }
.categories {
  padding: clamp(54px, 6vw, 84px) var(--gutter) clamp(28px, 3vw, 44px);
  background: white;
}
.categories > h2 {
  text-align: center;
  margin: 0 0 clamp(18px, 2vw, 28px);
  font: 700 clamp(2.352rem, 4.704vw, 3.984rem)/1.05 "STIX Two Text", Georgia, "Times New Roman", serif;
}
.categories-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 1.65fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(25px, 3.4vw, 54px);
  max-width: 1280px;
  margin: 0 auto;
}
.categories-copy { display: grid; gap: 34px; }
.category-copy h3 { margin: 0 0 11px; }
.category-copy h3 img { height: 32px; width: auto; max-width: 100%; }
.category-copy p { margin: 0; font-size: 1rem; line-height: 1.7; }

.deck-cards { list-style: none; padding: 0; }
.deck { text-align: center; }
.deck-cards {
  display: flex;
  justify-content: center;
  width: min(100%, 352px);
  margin-inline: auto;
  padding-block: 10px 7px;
}

.deck-cards li {
  position: relative;
  flex: 0 0 34%;
  transform: rotate(var(--tilt));
  transform-origin: center 88%;
}

.deck-cards li + li { margin-inline-start: -14%; }
.deck-cards li:nth-child(1) { --tilt: -15deg; }
.deck-cards li:nth-child(2) { --tilt: -5deg; }
.deck-cards li:nth-child(3) { --tilt: 5deg; }
.deck-cards li:nth-child(4) { --tilt: 15deg; }
.deck-cards li:focus-within { z-index: 1; }

.deck-cards button {
  display: block;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.deck-cards img {
  width: 100%;
  height: auto;
  border-radius: inherit;
}

.deck-cards button:is(:hover, :focus-visible) img { transform: translateY(-5px); }

.deck-shuffle {
  margin-top: 0;
  padding: 10px 17px;
  min-height: 44px;
  border: 0;
  border-radius: 2px;
  background: var(--ink);
  color: white;
  cursor: pointer;
  font-size: .875rem;
  font-weight: 500;
}

.deck-shuffle:hover { background: #403367; }

@media (max-width: 1050px) {
  .categories-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .categories .deck { grid-column: 1 / -1; grid-row: 1; width: min(100%, 560px); margin-inline: auto; }
  .categories-copy { align-self: start; }
}
@media (max-width: 700px) {
  .how-to-photo-steps { grid-template-columns: 1fr; gap: 30px; max-width: 540px; }
  .how-to-photo-steps img { margin-bottom: 15px; }
  .categories-layout { gap: 28px 22px; }
  .categories-copy { gap: 26px; }
  .category-copy h3 img { height: 26px; }
  .category-copy p { font-size: .95rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .deck-cards img { transition: transform 170ms ease; }
}


.deck { position: relative; }
.deck-cards {
  min-height: 380px;
  margin-block: 0;
  align-items: center;
  width: min(100%, 400px);
  perspective: 1000px;
}
.deck-cards li { flex-basis: 35%; }
.deck-cards li + li { margin-inline-start: -15%; }
.deck.has-selection .deck-cards li { transform: translateY(20px) rotate(var(--tilt)); }
.deck.has-selection .deck-cards li.is-picked { opacity: 0; }

.deck-selected {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(70%, 250px);
  aspect-ratio: 584 / 862;
  transform: translateX(-50%);
  perspective: 1100px;
  z-index: 3;
}
.deck-selected[hidden] { display: none; }
.deck-selected button {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 15px;
  background: transparent;
  transform-style: preserve-3d;
  cursor: pointer;
}
.deck-selected img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.deck-selected .selected-proposal { transform: rotateY(180deg); }
.deck-selected.is-revealed button { transform: rotateY(180deg); }
.deck-shuffle:disabled { cursor: wait; }

@media (max-width: 570px) {
  .deck-cards { min-height: 350px; }
  .deck-selected { width: min(72%, 230px); }
}
@media (prefers-reduced-motion: no-preference) {
  .deck-selected button { transition: transform 650ms cubic-bezier(.2,.65,.25,1); }
  .deck-selected { animation: card-lift 450ms ease-out; }
  .deck-cards li { transition: transform 400ms ease; }
}
@keyframes card-lift {
  from { opacity: .6; transform: translateX(-50%) translateY(65px) scale(.55) rotate(-10deg); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1) rotate(0); }
}
.deck-cards li:nth-child(1) { --spread: -45px; }
.deck-cards li:nth-child(2) { --spread: -15px; }
.deck-cards li:nth-child(3) { --spread: 15px; }
.deck-cards li:nth-child(4) { --spread: 45px; }
.deck.has-selection .deck-cards li {
  transform: translate(var(--spread), 38px) rotate(var(--tilt));
}
@media (max-width: 570px) {
  .deck.has-selection .deck-cards li {
    transform: translate(calc(var(--spread) * .5), 38px) rotate(var(--tilt));
  }
}

.deck-selected.is-returning {
  transform: translateX(-50%) translateY(65px) scale(.55);
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .deck-selected {
    transition: transform 650ms ease-in, opacity 650ms ease-in;
  }
}

.includes {
  padding: clamp(30px, 4vw, 54px) var(--gutter);
  background: #F3EFF8;
  color: var(--ink);
}
.includes-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: 15px clamp(32px, 6vw, 88px);
  max-width: 1250px;
  margin-inline: auto;
}
.includes-photos { display: contents; }
.includes-copy { grid-column: 2; grid-row: 1; }
.includes-main-photo {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}
.includes-thumbnails {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(6px, 1vw, 13px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.includes-thumbnails button {
  display: block;
  width: 100%;
  padding: 3px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
}
.includes-thumbnails button[aria-pressed="true"] { border-color: var(--ink); }
.includes-thumbnails img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.includes-copy h2 {
  margin: 0 0 clamp(25px, 3vw, 42px);
  font: 700 clamp(2.496rem, 4.704vw, 3.984rem)/1.05 "STIX Two Text", Georgia, "Times New Roman", serif;
}
.includes-copy ul { margin: 0; padding: 0; list-style: none; }
.includes-copy li + li { margin-top: clamp(22px, 2.6vw, 36px); }
.includes-copy strong {
  display: block;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.3;
  font-weight: 500;
}
.includes-copy p {
  margin-top: 7px;
  max-width: 35ch;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.65;
}
@media (max-width: 760px) {
  .includes-layout { grid-template-columns: 1fr; gap: 28px; }
  .includes-copy { grid-column: 1; grid-row: 1; }
  .includes-main-photo { grid-row: 2; }
  .includes-thumbnails { grid-row: 3; margin-top: -13px; }
  .includes-copy p { max-width: none; }
}

/* Las voces de quienes caminan con ITINAYA. */
.testimonials {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(48px, 6vw, 80px) var(--gutter) clamp(30px, 4vw, 52px);
  background: #193c34;
  color: #fffdf7;
  text-align: center;
  touch-action: pan-y;
}
.testimonials-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
  z-index: -2;
}
.testimonials::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15,42,35,.66), rgba(22,48,40,.74) 50%, rgba(16,40,34,.66));
  z-index: -1;
}
.testimonials-content { max-width: 1040px; margin-inline: auto; }
.testimonials h2 {
  margin: 0 0 clamp(28px, 4vw, 48px);
  font: 500 clamp(1.008rem, 1.536vw, 1.248rem)/1.5 "Poppins", sans-serif;
}
.testimonials-slides { display: grid; }
.testimonial {
  grid-area: 1 / 1;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(280px, 27vw, 350px);
}
.testimonial[hidden] { display: none; }
.testimonial blockquote { margin: 0; }
.testimonial blockquote p {
  margin: 0;
  font: italic 400 clamp(1.55rem, 2.9vw, 2.6rem)/1.23 "STIX Two Text", Georgia, "Times New Roman", serif;
  text-wrap: pretty;
}
.testimonial figcaption { margin-top: 28px; font-size: .95rem; line-height: 1.6; }
.testimonial figcaption strong { display: block; font-weight: 500; }
.testimonial figcaption span { display: block; font-size: .84rem; }
.testimonials-controls { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 20px; }
.testimonials-controls button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; }
.testimonials-controls svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; }
@media (max-width: 600px) {
  .testimonial { min-height: 460px; }
  .testimonials-photo { object-position: 52% center; }
}
@media (prefers-reduced-motion: no-preference) {
  .testimonial:not([hidden]) { animation: testimonial-in 550ms ease-out; }
  @keyframes testimonial-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
}

.group-experiences { padding: clamp(44px, 6vw, 80px) var(--gutter); background: #fff; }
.group-layout { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 74px); align-items: center; max-width: 1250px; margin-inline: auto; }
.group-photos { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: var(--gallery-green); }
.group-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.group-slide.is-active { opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .group-slide { transition: opacity 800ms ease; } }
.group-copy .group-eyebrow { margin: 0 0 14px; color: #274181; font-size: .95rem; font-weight: 500; line-height: 1.5; }
.group-copy h2 { color: var(--cuida-green); margin: 0 0 24px; font: 700 clamp(2.496rem, 4.224vw, 3.648rem)/1.06 "STIX Two Text", Georgia, "Times New Roman", serif; }
.group-copy p { font-size: clamp(1rem, 1.35vw, 1.1rem); line-height: 1.75; }
.group-copy p + p { margin-top: 18px; }
.group-contact { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 26px; padding: 13px 24px; background: var(--ink); color: #fff; text-decoration: none; border-radius: 2px; font-size: 1rem; font-weight: 500; }
.group-contact:hover { background: #403367; }
@media (max-width: 760px) {
  .group-layout { grid-template-columns: 1fr; gap: 30px; }
  .group-copy { grid-row: 1; }
  .group-copy h2 { margin-bottom: 20px; }
  .group-photos { max-width: 580px; margin-inline: auto; }
}

.creator { padding: clamp(28px, 3vw, 40px) var(--gutter); background: var(--gallery-green); }
.creator-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 5vw, 72px); max-width: 1250px; margin-inline: auto; }
.creator-copy h2 { margin: 0 0 28px; color: var(--ink); font: 700 clamp(2.304rem, 3.936vw, 3.504rem)/1.08 "STIX Two Text", Georgia, "Times New Roman", serif; }
.creator-copy p { font-size: clamp(1rem, 1.3vw, 1.06rem); line-height: 1.8; }
.creator-copy p + p { margin-top: 20px; }
.creator-copy a { color: inherit; font-weight: 500; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.creator-copy a:hover { color: #237b4c; }
.creator-photo { position: relative; overflow: hidden; width: 100%; aspect-ratio: 7 / 8; background: #c8dfca; }
.creator-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transform: scale(1.65); transform-origin: 50% 62%; }
@media (max-width: 760px) {
  .creator-layout { grid-template-columns: 1fr; gap: 30px; }
  .creator-photo { width: min(100%, 440px); margin-inline: auto; aspect-ratio: 1 / 1; }
}

.closing { padding: clamp(48px, 6vw, 88px) var(--gutter); background: white; }
.closing-layout { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(32px, 5vw, 72px); max-width: 1250px; margin-inline: auto; }
.closing-image img { width: 100%; height: auto; }
.closing-copy h2 { max-width: 10em; margin: 0 0 24px; color: var(--cuida-green); font: 700 clamp(2.4rem, 4.32vw, 4.032rem)/1.06 "STIX Two Text", Georgia, serif; }
.closing-tagline { font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 500; line-height: 1.5; }
.closing-description { max-width: 31em; margin-top: 14px; font-size: 1rem; line-height: 1.8; }
.closing-price { margin: 24px 0 18px; font-size: 2.5rem; line-height: 1.1; font-weight: 500; }
.closing-button { background: var(--ink); color: white; padding: 16px 28px; border: 0; cursor: pointer; }
.closing-button:hover { background: #3b3268; }

.closing-copy { text-align: center; }
.closing-copy h2, .closing-description { margin-inline: auto; }
.footer { display: block; padding-block: clamp(36px, 4vw, 54px); color: white; text-align: center; }
.footer-main { display: flex; flex-direction: column; align-items: center; gap: 22px; max-width: 900px; margin-inline: auto; }
.footer a { color: inherit; }
.footer-brand { display: block; }
.footer-brand img { width: 180px; height: auto; }
.footer-links { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px 22px; }
.footer-email, .footer-instagram { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; text-decoration: none; }
.footer-email { gap: 10px; font-size: 1rem; text-underline-offset: 5px; }
.footer-email:hover span { text-decoration: underline; }
.footer-instagram { width: 44px; }
.footer-links svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.footer-instagram:hover { color: #c7e9d4; }
.footer-credits { max-width: 800px; margin: 24px auto 0; font-size: .8125rem; line-height: 1.85; color: #d2cfdf; text-wrap: balance; }
@media (max-width: 760px) {
  .closing-layout { grid-template-columns: 1fr; gap: 28px; }
  .closing-image { width: min(100%, 460px); margin-inline: auto; }
}
@media (max-width: 380px) {
  .footer-links { column-gap: 8px; }
  .footer-email { gap: 7px; font-size: .9375rem; }
}

.footer-instagram { width: auto; gap: 10px; font-size: 1rem; }
.footer-instagram:hover span { text-decoration: underline; text-underline-offset: 5px; }
.footer-author { margin-top: 18px; font-size: .875rem; line-height: 1.6; color: #d2cfdf; }
.footer-author a { text-decoration-thickness: 1px; text-underline-offset: 4px; }

.gallery-track.is-animated { scroll-snap-type: none; scroll-behavior: auto; }
.gallery-track.is-animated li { scroll-snap-align: none; }
.closing-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.closing-copy { text-align: left; }
.closing-copy h2, .closing-description { margin-inline: 0; }
@media (max-width: 760px) {
  .closing-layout { grid-template-columns: 1fr; }
  .closing-copy { text-align: center; }
  .closing-copy h2, .closing-description { margin-inline: auto; }
}

.how-to-header { margin-bottom: clamp(24px, 2.5vw, 34px); }
.how-to-experience {
  --how-media-height: clamp(320px, 33vw, 450px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) calc(var(--how-media-height) * 9 / 16) minmax(0, 1fr);
  align-items: start;
  gap: clamp(22px, 3vw, 42px);
  max-width: 1100px;
  margin-inline: auto;
}
.how-to-step, .how-to-film { min-width: 0; margin: 0; }
.how-to-media { display: block; width: 100%; height: var(--how-media-height); border: 0; border-radius: 2px; }
img.how-to-media { object-fit: cover; filter: brightness(1.08) contrast(.98) saturate(1.025); }
.how-to-prepare { object-position: 50% center; }
.how-to-play { object-position: 50% 65%; }
video.how-to-media { object-fit: contain; background: transparent; }
.how-to-instruction { margin-top: 22px; }
.how-to-number { display: block; margin-bottom: 6px; color: var(--cuida-green); font: 700 1.85rem/1 Georgia, serif; }
.how-to-instruction h3 { margin: 0 0 10px; font-size: 1.2rem; font-weight: 500; }
.how-to-instruction p { font-size: 1rem; line-height: 1.75; }
.how-to-film figcaption { margin-top: 22px; text-align: center; color: var(--ink); font-size: .875rem; }
@media (max-width: 760px) {
  .how-to-experience { --how-media-height: clamp(320px, 105vw, 450px); grid-template-columns: minmax(0, 1fr); gap: 36px; max-width: 440px; }
  .how-to-film { width: calc(var(--how-media-height) * 9 / 16); margin-inline: auto; }
  .how-to-instruction { margin-top: 18px; }
}

/* Adaptación responsive: mantiene intacta la composición de escritorio. */
main, section, .categories-layout > *, .includes-layout > *,
.group-layout > *, .creator-layout > *, .closing-layout > * { min-width: 0; }
.footer :focus-visible, .testimonials :focus-visible { outline-color: #fffdf7; }
.gallery-track { touch-action: pan-x pan-y; }
.includes-thumbnails button { min-height: 44px; }
.footer-credits { font-size: .875rem; }

@media (max-width: 1050px) {
  .deck { overflow: clip; padding: 10px 8px 6px; }
  .deck-cards { width: min(90%, 400px); min-height: 460px; }
  .deck-selected { top: 10px; width: min(calc(100% - 32px), 300px); }
  .deck-shuffle { font-size: .9375rem; }
}

@media (max-width: 900px) {
  :root { --gutter: clamp(16px, 4.1vw, 36px); }
  .cover { display: grid; align-items: end; min-height: clamp(760px, 150vw, 900px); }
  .cover-photo { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 63% center; z-index: -2; }
  .cover::before { display: block; background: linear-gradient(180deg, transparent 22%, rgb(0 0 0 / 24%) 43%, rgb(0 0 0 / 64%) 66%, rgb(0 0 0 / 78%) 100%); }
  .cover-copy { width: min(100%, 660px); margin-inline: auto; padding: clamp(340px, 50vw, 420px) var(--gutter) clamp(28px, 5vw, 42px); }
  .cover-logo img { width: clamp(240px, 58vw, 350px); max-width: 100%; }
  .cover-copy p { max-width: 56ch; margin-top: 20px; font-size: clamp(1rem, 2.2vw, 1.125rem); }
  .cover-actions { margin-top: 24px; }
  .purchase-button { font-size: 1rem; }
  .how-to-experience { --how-media-height: clamp(320px, 90vw, 440px); grid-template-columns: minmax(0, 1fr); gap: 32px; max-width: 480px; }
  .how-to-film { width: calc(var(--how-media-height) * 9 / 16); max-width: 100%; margin-inline: auto; }
  .how-to-instruction { margin-top: 18px; }
  .includes-layout { grid-template-columns: minmax(0, 1fr); gap: 26px; max-width: 680px; }
  .includes-copy { grid-column: 1; grid-row: 1; }
  .includes-copy p { max-width: 60ch; }
  .includes-main-photo { grid-row: 2; }
  .includes-thumbnails { grid-row: 3; margin-top: -12px; }
  .group-layout, .creator-layout { grid-template-columns: minmax(0, 1fr); gap: 30px; max-width: 680px; }
  .group-copy { grid-row: 1; }
  .group-copy p, .creator-copy p { max-width: 65ch; }
  .group-photos { max-width: 580px; margin-inline: auto; }
  .creator-photo { width: min(100%, 440px); margin-inline: auto; aspect-ratio: 1; }
  .closing-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; text-align: center; max-width: 680px; }
  .closing-copy { display: contents; }
  .closing-copy > * { margin: 0 auto; }
  .closing-copy h2 { grid-row: 1; }
  .closing-tagline { grid-row: 2; }
  .closing-description { grid-row: 3; }
  .closing-image { grid-row: 4; width: min(100%, 460px); margin: 0 auto; }
  .closing-price { grid-row: 5; }
  .closing-button { grid-row: 6; justify-self: center; }
}
@media (max-width: 600px) {
  .testimonial { min-height: 0; }
  .testimonial blockquote p { font-size: clamp(1.5rem, 5.8vw, 1.75rem); line-height: 1.35; }
  .testimonial figcaption span { font-size: .875rem; }
  .reflection-text { font-size: 1.0625rem; line-height: 1.7; }
  .reflection { padding-block: 40px 48px; }
  .categories { padding-top: 42px; }
  .categories-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .categories .deck { grid-column: 1; }
  .categories-copy { gap: 28px; }
  .category-copy p { font-size: 1rem; max-width: 42ch; }
  .includes-thumbnails { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .footer-email { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
@media (max-width: 1050px) {
  .deck-cards { min-height: 320px; }
  .deck.has-selection .deck-cards { min-height: 460px; }
}
@media (max-width: 600px) {
  .deck-cards { min-height: 280px; }
}

/* Cómo funciona: una fotografía y dos instrucciones, siempre visibles. */
.how-to-editorial { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 5vw, 80px); max-width: 1100px; margin-inline: auto; }
.how-to-editorial-visual { min-width: 0; margin: 0; }
.how-to-editorial-photo { width: 100%; height: auto; aspect-ratio: 6 / 5; object-fit: cover; object-position: 50% 58%; filter: brightness(1.08) contrast(.98) saturate(1.025); }
.how-to-editorial-steps { min-width: 0; display: grid; gap: clamp(28px, 3vw, 42px); }
.how-to-editorial-steps .how-to-instruction { margin-top: 0; }
.how-to-editorial-steps p { max-width: 46ch; }
@media (max-width: 900px) {
  .how-to-editorial { grid-template-columns: minmax(0, 1fr); gap: 28px; max-width: 680px; }
  .how-to-editorial-photo { height: clamp(210px, 65vw, 360px); aspect-ratio: auto; object-position: 50% 44%; }
  .how-to-editorial-steps { gap: 26px; }
  .how-to-editorial-steps p { max-width: 65ch; }
}

/* Ajuste fino: acercar el botón a la baraja sin reducir su área táctil. */
.deck-shuffle { position: relative; top: -8px; margin-bottom: -8px; min-height: 44px; }

/* Evitar que la carga diferida cambie el anclaje del carrusel. */
.gallery-track { overflow-anchor: none; }

/* Tabletas: ajustes acotados; móvil y escritorio conservan sus reglas. */
@media (min-width: 601px) and (max-width: 1100px) {
  :root { --gutter: clamp(28px, 4.2vw, 46px); }
  .reflection-text { max-width: 60ch; }
  .reflection-question { max-width: 24ch; }
  .how-to-editorial, .includes-layout, .group-layout, .creator-layout,
  .closing-layout { column-gap: 32px; }
  .categories-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 40px;
    max-width: 800px;
  }
  .categories .deck {
    grid-column: 1 / -1; grid-row: 1;
    width: min(100%, 480px); margin-inline: auto;
    overflow: clip; padding: 10px 8px 6px;
  }
  .deck-cards { width: min(90%, 400px); min-height: 320px; }
  .deck.has-selection .deck-cards { min-height: 460px; }
  .deck-selected { top: 10px; width: min(calc(100% - 32px), 300px); }
  .categories-copy { gap: 28px; text-align: center; grid-auto-rows: 1fr; align-self: stretch; }
  .category-copy h3 img { margin-inline: auto; }
  .category-copy p { max-width: 30ch; margin-inline: auto; }
  .testimonials-content { max-width: 850px; }
  .testimonial blockquote p { max-width: 48ch; margin-inline: auto; }
  .creator-copy h2, .group-copy h2, .includes-copy h2 { text-wrap: balance; }
}

@media (min-width: 601px) and (max-width: 960px) {
  .how-to-editorial, .includes-layout, .group-layout, .creator-layout,
  .closing-layout { grid-template-columns: minmax(0, 1fr); max-width: 680px; margin-inline: auto; }
  .how-to-editorial { gap: 28px; }
  .how-to-editorial-visual { width: min(100%, 600px); margin-inline: auto; }
  .how-to-editorial-photo { height: 340px; aspect-ratio: auto; object-position: 50% 44%; }
  .how-to-editorial-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
  .includes-copy { grid-column: 1; grid-row: 1; text-align: center; }
  .includes-copy p { max-width: 46ch; margin-inline: auto; }
  .includes-main-photo { grid-column: 1; grid-row: 2; max-width: 600px; justify-self: center; }
  .includes-thumbnails { grid-column: 1; grid-row: 3; width: min(100%, 600px); justify-self: center; margin-top: -12px; }
  .group-copy { grid-row: 1; text-align: center; }
  .group-copy p { max-width: 58ch; margin-inline: auto; }
  .group-photos { width: min(100%, 600px); max-width: none; margin-inline: auto; }
  .creator-layout { gap: 28px; }
  .creator-copy { max-width: 62ch; margin-inline: auto; }
  .creator-copy h2 { text-align: center; max-width: 20ch; margin-inline: auto; }
  .creator-photo { width: min(100%, 400px); aspect-ratio: 1; margin-inline: auto; }
  .closing-layout { gap: 18px; text-align: center; }
  .closing-copy { display: contents; }
  .closing-copy > * { text-align: center; margin-inline: auto; }
  .closing-copy h2 { grid-row: 1; }
  .closing-tagline { grid-row: 2; }
  .closing-description { grid-row: 3; }
  .closing-image { grid-row: 4; width: min(100%, 460px); margin-inline: auto; }
  .closing-price { grid-row: 5; }
  .closing-button { grid-row: 6; justify-self: center; }
}

@media (min-width: 601px) and (max-width: 900px) {
  .cover-copy { text-align: left; margin-left: 0; margin-right: auto; }
  .cover-logo img, .cover-copy p { margin-inline: 0; }
  .cover-actions { justify-content: start; }
}

/* Centrar también el título limitado en anchura en la composición apilada. */
@media (min-width: 601px) and (max-width: 960px) {
  .closing-copy h2 { margin-inline: auto; }
}

/* Centrado del contenido dentro de cada columna, sin cambiar la composición. */
.how-to-editorial-steps .how-to-instruction,
.closing-copy, .includes-copy, .group-copy, .category-copy { text-align: center; }
.how-to-editorial-steps p,
.closing-copy h2, .closing-description, .includes-copy p,
.group-copy p, .category-copy p { margin-inline: auto; }
.category-copy h3 img { margin-inline: auto; }
.creator-copy h2 { text-align: center; }

/* Repartir las líneas sin dejar una palabra breve aislada al final. */
h2, h3, .reflection-label, .reflection-lead, .closing-tagline,
.includes-copy strong { text-wrap: balance; }
p, .footer-credits { text-wrap: pretty; }
.keep-together { white-space: nowrap; }

/* Compensar el margen transparente desigual del mockup original. */
.closing-image img { transform: translateX(3.29%); }

/* Dos caminos desde la portada, con la compra primero. */
.cover-actions { display: grid; grid-template-columns: minmax(0, max-content) max-content; width: fit-content; max-width: 100%; }
.cover-actions > .purchase-button { grid-column: 1; grid-row: 1; }
.cover-actions .price { grid-column: 2; grid-row: 1; }
.cover-actions > .cover-group-button { grid-row: 2; color: white; background: rgb(255 255 255 / 12%); border: 1px solid rgb(255 255 255 / 80%); text-align: center; }
.cover-actions > .cover-group-button:hover { background: rgb(255 255 255 / 24%); }
@media (min-width: 601px) and (max-width: 900px) {
 .cover-actions { margin-inline: 0; }
}

/* Historia ampliable en pantallas estrechas; texto completo en escritorio. */
.creator-toggle[hidden], .creator-more[hidden] { display: none; }
.creator-toggle { display: flex; align-items: center; justify-content: center; width: 44px; min-height: 44px; margin: 4px auto 0; padding: 10px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.creator-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.creator-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.creator-more { margin-top: 18px; }

/* Lectura editorial: solo los párrafos solicitados, en todos los anchos. */
.group-copy > p:not(.group-eyebrow) { text-align: left; }
.group-copy > p:last-of-type { font-weight: 500; }

/* Alineación editorial general; se conservan la pregunta y los testimonios. */
.cover-copy, .how-to-header, .how-to-editorial-steps .how-to-instruction,
.categories > h2, .category-copy, .includes-copy, .group-copy,
.creator-copy, .creator-copy h2, .closing-copy, .closing-copy > * { text-align: left; }
.how-to-header { max-width: 1100px; }
.reflection > p { text-align: center; margin-inline: auto; }
.how-to-editorial-steps p, .category-copy p, .category-copy h3 img,
.includes-copy p, .group-copy p, .creator-copy h2,
.closing-copy > * { margin-inline: 0; }

/* El precio comparte el eje del botón en todas las composiciones. */
.closing-purchase { display: grid; justify-items: center; width: max-content; max-width: 100%; gap: 18px; margin-top: 24px; }
.closing-purchase > .closing-price, .closing-purchase > .closing-button { grid-row: auto; margin: 0; text-align: center; }
@media (max-width: 960px) {
  .closing-copy .closing-purchase { grid-row: 5; justify-self: center; margin: 0 auto; }
}
