#appView {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
}

#appView::before,
#appView::after {
  content: "";
  position: absolute;
  inset: -30px calc(50% - 50vw) -70px;
  pointer-events: none;
}

#appView::before {
  z-index: -2;
  background-image: url("mosaic-background-house-v2.jpg");
  background-position: center 68%;
  background-size: auto 140%;
  background-repeat: no-repeat;
  opacity: .88;
}

#appView::after {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(238, 247, 245, .48) 0%, rgba(244, 249, 247, .34) 30%, rgba(242, 248, 246, .26) 62%, rgba(239, 247, 244, .52) 100%),
    linear-gradient(90deg, rgba(255, 255, 255, .14), transparent 20%, transparent 80%, rgba(255, 255, 255, .14));
}

#appView > * {
  position: relative;
  z-index: 1;
}

.grid.mosaic-grid {
  position: relative;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(26px, 3.6vw, 54px);
  align-items: stretch;
  margin: 0 0 clamp(34px, 5vw, 66px);
  padding: clamp(24px, 3vw, 40px) clamp(4px, 1vw, 14px) 0;
  isolation: isolate;
}

.mosaic-tile {
  --mosaic-accent: #0b9ba5;
  --mosaic-ink: #153f49;
  min-width: 0;
  min-height: 0;
  padding: 0;
  display: grid;
  grid-template-rows: 330px minmax(150px, auto);
  align-content: start;
  color: var(--mosaic-ink);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.mosaic-tile::before {
  content: none !important;
}

.mosaic-tile:hover,
.mosaic-tile:focus-visible {
  box-shadow: none !important;
}

.mosaic-tile:focus-visible {
  outline: 3px solid rgba(11, 155, 165, .42);
  outline-offset: 8px;
}

.mosaic-visual {
  position: relative;
  width: min(100%, 310px);
  min-height: 310px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  overflow: visible;
  background: transparent;
}

.mosaic-visual::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 19%;
  right: 19%;
  bottom: 7px;
  height: 18px;
  border-radius: 50%;
  background: rgba(11, 49, 54, .24);
  filter: blur(12px);
  transition: opacity .4s ease, transform .4s ease;
}

.memory-frame {
  position: relative;
  display: block;
  width: 100%;
  max-width: 286px;
  aspect-ratio: 1;
  transition: transform .58s cubic-bezier(.2, .8, .2, 1), filter .58s ease;
  filter: drop-shadow(0 20px 22px rgba(18, 61, 67, .22));
}

.memory-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.mosaic-tile:hover .memory-frame,
.mosaic-tile:focus-visible .memory-frame {
  transform: translateY(-9px) scale(1.025);
  filter: drop-shadow(0 28px 28px rgba(18, 61, 67, .28));
}

.mosaic-tile:hover .mosaic-visual::after,
.mosaic-tile:focus-visible .mosaic-visual::after {
  opacity: .55;
  transform: scale(.88);
}

.memory-path {
  max-width: 276px;
  aspect-ratio: .92;
  padding: 10px;
  border-radius: 48% 48% 42% 42% / 42% 42% 55% 55%;
  background: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(235, 248, 247, .72));
  box-shadow: inset 0 0 0 2px rgba(10, 143, 151, .4), inset 0 0 0 8px rgba(255, 255, 255, .62);
}

.memory-path .memory-photo {
  border-radius: 45% 45% 39% 39% / 40% 40% 52% 52%;
  object-position: 48% center;
}

.memory-path::before {
  content: "";
  position: absolute;
  inset: -12px;
  border: 2px dashed rgba(220, 124, 40, .72);
  border-radius: inherit;
  transform: rotate(4deg);
}

.memory-route-pin {
  position: absolute;
  right: 8px;
  bottom: 23px;
  width: 27px;
  height: 27px;
  border: 5px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: #e4812e;
  transform: rotate(-45deg);
  box-shadow: 0 5px 12px rgba(81, 48, 22, .3);
}

.memory-route-pin::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: #fff;
}

.memory-orb {
  max-width: 276px;
  padding: 9px 9px 48px;
  border-radius: 50% 50% 46% 46%;
  background: linear-gradient(150deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .26) 55%, rgba(117, 75, 44, .22));
}

.memory-orb .memory-photo {
  border-radius: 50%;
  object-position: center 48%;
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, .38);
}

.memory-glass {
  position: absolute;
  inset: 9px 9px 48px;
  border-radius: 50%;
  box-shadow: inset -18px -20px 30px rgba(60, 30, 12, .18), inset 13px 12px 18px rgba(255, 255, 255, .46), 0 0 0 2px rgba(255, 255, 255, .78);
  background: linear-gradient(125deg, rgba(255, 255, 255, .34), transparent 34%, transparent 72%, rgba(255, 255, 255, .16));
}

.memory-orb-base {
  position: absolute;
  z-index: -1;
  left: 17%;
  right: 17%;
  bottom: 2px;
  height: 57px;
  border-radius: 50% 50% 16px 16px / 30% 30% 16px 16px;
  background: linear-gradient(180deg, #8b5c38, #51321d 56%, #2e1b10);
  box-shadow: inset 0 5px 0 rgba(255, 255, 255, .16), 0 8px 14px rgba(53, 31, 15, .28);
}

.memory-portal {
  max-width: 292px;
  padding: 12px;
  border-radius: 46% 54% 49% 51% / 54% 44% 56% 46%;
  background: conic-gradient(from 30deg, #ffb957, #1a9ca4, #5e7899, #db7a45, #ffb957);
  animation: memoryFloat 5.8s ease-in-out infinite;
}

.memory-portal::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 2px solid rgba(255, 255, 255, .78);
  border-radius: inherit;
}

.memory-portal .memory-photo {
  border-radius: 44% 56% 47% 53% / 52% 46% 54% 48%;
  object-position: center 48%;
}

.memory-spark {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff4be;
  box-shadow: 0 0 0 5px rgba(255, 207, 97, .16), 0 0 22px 8px rgba(255, 207, 97, .72);
}

.memory-spark-one {
  top: 14%;
  right: 5%;
}

.memory-spark-two {
  left: 4%;
  bottom: 22%;
  transform: scale(.72);
}

.memory-paper {
  max-width: 270px;
  aspect-ratio: .91;
  padding: 18px 17px 47px;
  background: #fffdf7;
  clip-path: polygon(4% 0, 96% 2%, 100% 96%, 51% 100%, 0 96%, 2% 4%);
  transform: rotate(-2.5deg);
  box-shadow: inset 0 0 0 1px rgba(91, 62, 38, .16);
}

.mosaic-newsletter:hover .memory-paper,
.mosaic-newsletter:focus-visible .memory-paper {
  transform: translateY(-9px) rotate(-1deg) scale(1.025);
}

.memory-paper .memory-photo {
  height: 73%;
  object-position: center 56%;
  filter: saturate(.92) contrast(1.02);
}

.memory-paper::before {
  content: "LA CARAVANA";
  position: absolute;
  left: 19px;
  right: 19px;
  top: 8px;
  z-index: 2;
  padding: 5px 0;
  color: #6a3d2d;
  border-bottom: 1px solid rgba(106, 61, 45, .35);
  font-family: Georgia, "Times New Roman", serif;
  font-size: .72rem;
  font-weight: 800;
  text-align: center;
}

.memory-paper-lines {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 15px;
  height: 22px;
  background: repeating-linear-gradient(180deg, rgba(99, 58, 43, .44) 0 1px, transparent 1px 7px);
}

.memory-alliance {
  max-width: 282px;
  padding: 11px;
  border-radius: 50%;
  background: linear-gradient(145deg, #fcf7ea, #cdece6 56%, #148b7c);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .9), inset 0 0 0 9px rgba(16, 133, 119, .16);
}

.memory-alliance .memory-photo {
  border-radius: 50%;
  object-position: center 54%;
}

.memory-alliance-ring {
  position: absolute;
  inset: -5px;
  border: 2px solid rgba(7, 143, 123, .58);
  border-radius: 50%;
}

.memory-alliance-ring::before,
.memory-alliance-ring::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 17px;
  height: 17px;
  margin-top: -8px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #e8a143;
  box-shadow: 0 3px 10px rgba(65, 71, 45, .2);
}

.memory-alliance-ring::before {
  left: -7px;
}

.memory-alliance-ring::after {
  right: -7px;
}

.memory-book {
  max-width: 298px;
  overflow: visible;
}

.memory-book-garden {
  position: absolute;
  inset: 8% 0 0;
  height: 78%;
  border-radius: 50%;
  object-position: center 62%;
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, .68), 0 18px 34px rgba(30, 68, 75, .24);
  filter: saturate(.9);
}

.memory-book-cover {
  position: absolute;
  z-index: 2;
  left: 29%;
  top: 4%;
  width: 45%;
  height: 80%;
  object-fit: cover;
  object-position: center;
  border-radius: 2px 7px 7px 2px;
  box-shadow: -9px 10px 0 #315363, -14px 16px 26px rgba(11, 35, 45, .38);
  transform: perspective(650px) rotateY(-10deg) rotateZ(2deg);
  transition: transform .55s ease;
}

.mosaic-book:hover .memory-book-cover,
.mosaic-book:focus-within .memory-book-cover {
  transform: perspective(650px) rotateY(-5deg) rotateZ(0) translateY(-5px);
}

.mosaic-copy {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: start;
  gap: 8px;
  margin-top: 7px;
  padding: 17px 19px 18px;
  text-align: left;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(255, 255, 255, .86);
  border-left: 4px solid var(--mosaic-accent);
  border-radius: 0 8px 8px 0;
  box-shadow: 0 12px 30px rgba(18, 61, 67, .11);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  transition: background .35s ease, transform .35s ease, box-shadow .35s ease;
}

.mosaic-tile:hover .mosaic-copy,
.mosaic-tile:focus-visible .mosaic-copy,
.mosaic-book:focus-within .mosaic-copy {
  background: rgba(255, 255, 255, .94);
  transform: translateY(-2px);
  box-shadow: 0 17px 34px rgba(18, 61, 67, .16);
}

.mosaic-copy h3,
.mosaic-tile.photo .mosaic-copy h3 {
  margin: 0;
  color: var(--mosaic-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.42rem, 2vw, 1.92rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.mosaic-copy p,
.mosaic-tile.photo .mosaic-copy p {
  margin: 0;
  color: #506b71;
  font-size: .92rem;
  line-height: 1.5;
}

.mosaic-tag {
  width: max-content;
  max-width: 100%;
  color: var(--mosaic-accent);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.mosaic-pre {
  --mosaic-accent: #df812e;
  --mosaic-ink: #174d57;
}

.mosaic-hola {
  --mosaic-accent: #986239;
  --mosaic-ink: #513520;
  margin-top: 0;
}

.mosaic-kit {
  --mosaic-accent: #d49331;
  --mosaic-ink: #263137;
  margin-top: 0;
}

.mosaic-newsletter {
  --mosaic-accent: #c35f46;
  --mosaic-ink: #633a2b;
  margin-top: 0;
}

.mosaic-empresas {
  --mosaic-accent: #078f7b;
  --mosaic-ink: #15554f;
}

.mosaic-book {
  --mosaic-accent: #4e8199;
  --mosaic-ink: #214a5d;
  margin-top: 0;
}

.mosaic-book strong {
  color: var(--mosaic-ink);
}

.mosaic-tile .tile-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 7px;
  margin-top: 8px;
}

.mosaic-tile .tile-actions .btn,
.mosaic-tile .tile-actions input {
  min-height: 38px;
  font-size: .76rem;
}

.mosaic-tile .tile-actions .btn {
  padding-inline: 10px;
}

.mosaic-tile.locked-tile {
  filter: grayscale(1);
  opacity: .56;
}

.mosaic-tile.locked-tile::after {
  top: 12px;
  bottom: auto;
  right: 12px;
}

#empresaTile.mosaic-tile.locked-tile::after {
  display: none;
}

@keyframes memoryFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-6px) rotate(1deg); }
}

@media (max-width: 1020px) {
  .grid.mosaic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px clamp(28px, 5vw, 58px);
  }

  .mosaic-hola,
  .mosaic-kit,
  .mosaic-newsletter,
  .mosaic-book {
    margin-top: 0;
  }

  .mosaic-tile:nth-child(3) {
    grid-column: 1 / -1;
    width: min(100%, 470px);
    justify-self: center;
  }
}

@media (max-width: 650px) {
  #appView::before,
  #appView::after {
    inset-inline: calc(50% - 50vw);
  }

  #appView::before {
    background-position: 55% top;
  }

  #appView::after {
    background: linear-gradient(180deg, rgba(247, 251, 250, .78), rgba(247, 251, 250, .46) 30%, rgba(247, 251, 250, .66));
  }

  .grid.mosaic-grid {
    grid-template-columns: 1fr;
    gap: 38px;
    margin-bottom: 48px;
    padding-inline: 0;
  }

  .mosaic-tile,
  .mosaic-tile:nth-child(3) {
    width: 100%;
    max-width: 480px;
    justify-self: center;
    grid-column: auto;
    grid-template-columns: minmax(138px, 43%) minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: center;
    gap: clamp(16px, 5vw, 28px);
  }

  .mosaic-visual {
    width: 100%;
    min-height: 0;
  }

  .memory-frame {
    width: 100%;
  }

  .mosaic-copy {
    margin: 0;
    padding: 15px 16px;
  }

  .mosaic-copy h3,
  .mosaic-tile.photo .mosaic-copy h3 {
    font-size: clamp(1.3rem, 5.8vw, 1.68rem);
  }

  .mosaic-copy p,
  .mosaic-tile.photo .mosaic-copy p {
    font-size: .84rem;
    line-height: 1.46;
  }

  .mosaic-book {
    grid-template-columns: 1fr;
  }

  .mosaic-book .mosaic-visual {
    width: min(100%, 270px);
  }
}

@media (max-width: 430px) {
  .grid.mosaic-grid {
    gap: 44px;
  }

  .mosaic-tile,
  .mosaic-tile:nth-child(3) {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .mosaic-visual {
    width: min(100%, 260px);
  }

  .mosaic-copy {
    width: 100%;
    margin: 0 auto;
  }

  .mosaic-tile .tile-actions {
    grid-template-columns: 1fr 1fr;
  }

  .mosaic-tile .tile-actions input {
    grid-column: 1 / -1;
    grid-row: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .memory-frame,
  .memory-book-cover,
  .mosaic-visual::after,
  .mosaic-copy {
    animation: none;
    transition: none;
  }
}

.certificate-portal-action {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin-top: 24px;
  padding: 24px clamp(22px, 4vw, 42px);
  border: 1px solid rgba(9, 126, 135, .3);
  border-radius: 7px;
  color: #123e44;
  background: linear-gradient(110deg, rgba(255,255,255,.96), rgba(225,246,243,.94) 58%, rgba(255,238,216,.92));
  box-shadow: 0 18px 40px rgba(7, 51, 57, .12);
}

.certificate-seal {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  position: relative;
  border: 3px double #07929b;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 22px rgba(7, 79, 84, .15);
}

.certificate-seal::before { content: '✓'; color: #078d96; font: 700 2rem/1 Georgia, serif; }
.certificate-seal::after { content: ''; position: absolute; bottom: -13px; width: 35px; height: 28px; background: linear-gradient(145deg, #e36e47 50%, transparent 51%), linear-gradient(215deg, #e36e47 50%, transparent 51%); }
.certificate-portal-action small { color: #df6c48; font-size: .72rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.certificate-portal-action h3 { margin: 4px 0 6px; color: #103e44; font: 700 clamp(1.4rem, 2.2vw, 2rem)/1.1 Georgia, serif; letter-spacing: 0; }
.certificate-portal-action p { margin: 0; color: #5c7478; line-height: 1.45; }
.certificate-portal-action > button { min-height: 48px; padding: 12px 20px; border: 0; border-radius: 5px; color: #fff; background: #078e97; font-weight: 900; cursor: pointer; }
.certificate-portal-action > button:disabled { opacity: .65; cursor: wait; }
#certificateRequestStatus { grid-column: 2 / -1; display: none; padding: 11px 13px; }
#certificateRequestStatus:not(:empty) { display: block; }
#certificateRequestStatus.success { color: #1c684c; border-left: 4px solid #2e986e; background: #eaf8f0; }
#certificateRequestStatus.error { color: #8c3026; border-left: 4px solid #c85a48; background: #fff0ed; }

@media (max-width: 720px) {
  .certificate-portal-action { grid-template-columns: 70px 1fr; padding: 20px 17px; }
  .certificate-seal { width: 64px; height: 64px; }
  .certificate-portal-action > button { grid-column: 1 / -1; width: 100%; }
  #certificateRequestStatus { grid-column: 1 / -1; }
}

/* Marco fotográfico común: conserva la personalidad de cada sección sin deformar las fotos. */
.mosaic-visual {
  width: min(100%, 330px);
  min-height: 270px;
}

.memory-frame,
.memory-path,
.memory-orb,
.memory-portal,
.memory-paper,
.memory-alliance,
.memory-book {
  --frame-radius: 34px 76px 38px 68px / 62px 38px 72px 42px;
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4 / 3;
  padding: 9px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .92);
  border-radius: var(--frame-radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(225, 244, 242, .82)),
    var(--mosaic-accent);
  box-shadow:
    inset 0 0 0 3px rgba(11, 155, 165, .2),
    0 22px 42px rgba(18, 61, 67, .22);
  clip-path: none;
  transform: none;
  animation: memoryDrift 7s ease-in-out infinite;
}

.mosaic-tile:nth-child(2n) .memory-frame {
  --frame-radius: 72px 36px 66px 40px / 40px 68px 38px 70px;
  animation-delay: -2.1s;
}

.mosaic-tile:nth-child(3n) .memory-frame {
  --frame-radius: 42px 70px 34px 78px / 70px 38px 66px 42px;
  animation-delay: -4.2s;
}

.memory-frame::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 9px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, .66);
  border-radius: calc(var(--frame-radius));
  box-shadow: inset 0 0 28px rgba(4, 43, 48, .14);
}

.memory-frame::after {
  content: "";
  position: absolute;
  z-index: 4;
  top: 13px;
  left: 15%;
  width: 45%;
  height: 19%;
  pointer-events: none;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,.32), transparent);
  transform: rotate(-7deg);
}

.memory-frame .memory-photo,
.memory-path .memory-photo,
.memory-orb .memory-photo,
.memory-portal .memory-photo,
.memory-paper .memory-photo,
.memory-alliance .memory-photo,
.memory-book .memory-photo {
  position: relative;
  inset: auto;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
  object-fit: cover;
  object-position: center;
  box-shadow: none;
  filter: saturate(.98) contrast(1.02);
  transform: scale(1.012);
  transition: transform 1.1s cubic-bezier(.2,.8,.2,1), filter .45s ease;
}

.mosaic-tile:hover .memory-photo,
.mosaic-tile:focus-visible .memory-photo,
.mosaic-book:focus-within .memory-photo {
  transform: scale(1.055);
}

.memory-glass,
.memory-orb-base,
.memory-route-pin,
.memory-spark,
.memory-paper-lines,
.memory-alliance-ring,
.memory-book-cover {
  display: none !important;
}

.mosaic-tile:hover .memory-frame,
.mosaic-tile:focus-visible .memory-frame,
.mosaic-book:focus-within .memory-frame {
  transform: translateY(-7px) rotate(.35deg);
  filter: drop-shadow(0 26px 24px rgba(18, 61, 67, .24));
}

.mosaic-book .memory-frame {
  max-width: 320px;
}

.mosaic-book .memory-photo {
  object-position: center center;
}

.mosaic-tile .tile-actions {
  grid-template-columns: 1fr;
}

.mosaic-tile .tile-actions .btn {
  width: 100%;
  min-height: 42px;
}

.book-purchase-modal {
  position: fixed;
  z-index: 1300;
  inset: 0;
  display: grid;
  justify-items: center;
  align-items: start;
  padding: clamp(14px, 4vw, 42px);
  overflow: auto;
  overscroll-behavior: contain;
  background: rgba(7, 35, 39, .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.book-purchase-modal.hidden {
  display: none;
}

.book-receipt-modal {
  background: rgba(8, 45, 52, .88);
}
.book-receipt-shell {
  width: min(1180px, calc(100% - 24px));
  max-height: calc(100vh - 32px);
  margin: auto 0;
  display: grid;
  grid-template-columns: minmax(300px, .8fr) minmax(430px, 1.2fr);
  overflow: auto;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 8px;
  background: #fff;
  color: #173e45;
  box-shadow: 0 28px 80px rgba(0,0,0,.35);
  text-align: center;
}
.book-receipt-photo { min-height: 100%; overflow: hidden; background: #d8ebe7; }
.book-receipt-photo img { width: 100%; height: 100%; min-height: 680px; display: block; object-fit: cover; object-position: center; }
.book-receipt-content { align-self: center; padding: clamp(28px, 4vw, 54px); }
.book-receipt-mark {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #079ba3;
  color: #fff;
  font-size: 2.4rem;
  font-weight: 900;
}
.book-receipt-shell h2 {
  margin: 8px auto 14px;
  max-width: 640px;
  color: #0d4e58;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.02;
}
.book-receipt-lead { margin: 0 auto 24px; color: #587176; font-size: 1.05rem; }
.book-receipt-data {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 24px 0;
  border: 1px solid #cbe3e1;
  background: #f5fbfa;
}
.book-receipt-data span { min-width: 0; padding: 16px; border-right: 1px solid #cbe3e1; }
.book-receipt-data span:last-child { border-right: 0; }
.book-receipt-data small, .book-receipt-data strong { display: block; overflow-wrap: anywhere; }
.book-receipt-data small { margin-bottom: 5px; color: #6a7f82; font-size: .68rem; font-weight: 900; text-transform: uppercase; }
.book-receipt-instructions { padding: 22px; border-left: 5px solid #079ba3; background: #eaf7f5; text-align: left; }
.book-receipt-instructions h3 { margin: 0 0 8px; color: #0d4e58; font-family: Georgia, "Times New Roman", serif; }
.book-receipt-instructions p { margin: 8px 0; line-height: 1.65; }
.book-receipt-email { color: #587176; font-size: .9rem; }
.book-receipt-resend { margin: 14px 0 20px; padding: 16px; border: 1px solid #cbe3e1; background: #f5fbfa; text-align: left; }
.book-receipt-resend.hidden { display: none; }
.book-receipt-resend label { display: block; margin-bottom: 8px; color: #0d4e58; font-weight: 800; }
.book-receipt-resend > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.book-receipt-resend input { min-width: 0; min-height: 46px; padding: 0 12px; border: 1px solid #9fc9c8; border-radius: 6px; }
.book-receipt-resend p { min-height: 18px; margin: 8px 0 0; color: #9f3f32; font-size: .78rem; font-weight: 700; }

@media (max-width: 620px) {
  .book-receipt-shell { width: min(100%, calc(100% - 12px)); grid-template-columns: 1fr; }
  .book-receipt-photo { min-height: 220px; max-height: 30vh; }
  .book-receipt-photo img { min-height: 220px; }
  .book-receipt-content { padding: 24px 18px 30px; }
  .book-receipt-data { grid-template-columns: 1fr; }
  .book-receipt-data span { border-right: 0; border-bottom: 1px solid #cbe3e1; }
  .book-receipt-data span:last-child { border-bottom: 0; }
  .book-receipt-resend > div { grid-template-columns: 1fr; }
}

.book-purchase-shell {
  position: relative;
  width: min(1060px, 100%);
  min-height: min(680px, calc(100vh - 36px));
  margin: auto 0;
  display: grid;
  grid-template-columns: minmax(280px, .88fr) minmax(320px, 1.12fr);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 8px;
  background: #f7fbfa;
  box-shadow: 0 35px 100px rgba(0,0,0,.42);
}

.book-purchase-media {
  min-height: 520px;
  background: #d7efec;
}

.book-purchase-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.book-purchase-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(34px, 6vw, 76px);
  color: #153f49;
}

.book-purchase-copy .mosaic-tag {
  color: #0a9ca5;
}

.book-purchase-copy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  line-height: .98;
  letter-spacing: 0;
}

.book-purchase-quote {
  margin: 0;
  padding: 18px 0 18px 20px;
  border-left: 4px solid #e28a36;
  color: #315d64;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.45;
}

.book-purchase-copy p {
  margin: 0;
  color: #557178;
  line-height: 1.65;
}

.book-purchase-benefits {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.book-purchase-benefits li::before {
  content: "✓";
  margin-right: 9px;
  color: #079ba3;
  font-weight: 900;
}

.book-purchase-email { display: grid; gap: 8px; color: #153f49; font-size: .78rem; font-weight: 900; }
.book-purchase-email input { width: 100%; min-height: 48px; padding: 0 13px; border: 1px solid #9fc9c8; border-radius: 6px; color: #153f49; background: #fff; outline: 0; }
.book-purchase-email input:focus { border-color: #079ba3; box-shadow: 0 0 0 4px rgba(7,155,163,.1); }

.book-purchase-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.book-purchase-actions .btn.primary {
  flex: 1 1 220px;
  min-height: 50px;
}

.book-purchase-status {
  min-height: 24px;
  margin: 0;
  color: #0a767d;
  font-weight: 800;
}

.book-purchase-close {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(19,63,73,.2);
  border-radius: 50%;
  color: #153f49;
  background: rgba(255,255,255,.92);
  font-size: 1.65rem;
  cursor: pointer;
}

@keyframes memoryDrift {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -5px; }
}

@media (max-width: 720px) {
  .book-purchase-shell {
    grid-template-columns: 1fr;
  }

  .book-purchase-media {
    min-height: 290px;
    max-height: 42vh;
  }

  .book-purchase-copy {
    padding: 28px 22px 34px;
  }
}

@media (max-width: 650px) {
  .mosaic-visual {
    min-height: 0;
  }

  .memory-frame,
  .memory-path,
  .memory-orb,
  .memory-portal,
  .memory-paper,
  .memory-alliance,
  .memory-book {
    max-width: 100%;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 430px) {
  .mosaic-visual {
    width: min(100%, 310px);
  }
}

/* Alineación final del mosaico: las piezas conservan su forma y comparten una misma línea de base. */
@media (min-width: 1021px) {
  #appView .mosaic-grid-top {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 0;
    padding-inline: 0;
  }

  #appView .mosaic-grid-top > .mosaic-pre {
    grid-column: 1 / span 2;
  }

  #appView .mosaic-grid-top > .mosaic-hola {
    grid-column: 2 / span 2;
  }

  #appView .mosaic-grid-top > .mosaic-kit {
    grid-column: 3 / span 2;
  }

  #appView .mosaic-grid-top > .mosaic-tile {
    grid-row: 1;
    width: calc(50% - clamp(10px, 1.2vw, 22px));
    justify-self: center;
  }

  #appView .mosaic-grid-bottom {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 0;
    padding-inline: 0;
  }

  #appView .mosaic-grid-bottom > .mosaic-newsletter {
    grid-column: 1 / span 2;
  }

  #appView .mosaic-grid-bottom > .mosaic-empresas {
    grid-column: 2 / span 2;
  }

  #appView .mosaic-grid-bottom > .mosaic-book {
    grid-column: 3 / span 2;
  }

  #appView .mosaic-grid-bottom > .mosaic-tile {
    grid-row: 1;
    width: calc(50% - clamp(10px, 1.2vw, 22px));
    justify-self: center;
  }

  #appView .mosaic-grid-bottom > .mosaic-empresas,
  #appView .mosaic-grid-bottom > .mosaic-empresas .mosaic-visual,
  #appView .mosaic-grid-bottom > .mosaic-empresas .mosaic-copy {
    justify-self: center;
    margin-inline: auto;
  }

  #appView .mosaic-grid > .mosaic-tile {
    height: 100%;
    margin-top: 0;
    align-self: stretch;
  }

  #appView .mosaic-grid > .mosaic-tile .mosaic-visual {
    width: min(100%, 330px);
    height: 330px;
    min-height: 330px;
    align-self: end;
  }

  #appView .mosaic-grid > .mosaic-tile .mosaic-copy {
    width: 100%;
    min-height: 154px;
    margin-top: 8px;
    box-sizing: border-box;
  }

  #appView .mosaic-grid-bottom > .mosaic-tile .mosaic-copy {
    min-height: 176px;
  }
}

@media (max-width: 650px) {
  #appView::before {
    background-position: center 64%;
    background-size: auto 118%;
  }
}
