/* Hallmark · shape: Feature Stack · genre: editorial · theme: Loom (deal 1/3) · job: buy · draw: 4c51b3 · hero: Counter · nav: edge-aligned · footer: letter close · imagery: workshop photographs · signature: taped workshop photographs · loom: cream paper and navy ink · axes: light/roman-serif/cool · posture: committed · v2.0.0 */
/* Hallmark · pre-emit critique: keep the memorial portrait whole; reduce the second print on narrow screens. */
@import url("./tokens.css");
@import url("./base.css");
@font-face {
  font-family: Fraunces;
  src: url("assets/fonts/fraunces-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
:root {
  --font-body: "DM Sans",Arial,sans-serif;
  --font-display: Fraunces,Georgia,serif;
  --navy: #101432;
  --cream: #fcf8ee;
  --white: #fffdf7;
  --coral: #ff7769;
  --pink: #f0447a;
  --turq: #3fd6c6;
  --mint: #b6ede1;
  --rose: #f9d4d2;
  --red: #9c3546;
  --line: #ccc3b4;
  --grid: #ddd4c657;
  --tape: #f5bb92e8;
  --shadow: #352d3a38;
  --darkshadow: #090b19ec;
  --shade: #f1ecdf;
  --color-ink: var(--navy);
  --color-paper: var(--cream);
  --color-focus: var(--navy);
  --display-weight: 550;
  --tracking-display: -.045em;
}
html {
  scroll-padding-top: 20px;
  scroll-padding-bottom: 84px;
}
body {
  font-size: 17px;
  line-height: 1.5;
}
.wrap {
  width: min(1200px,90%);
  margin-inline: auto;
}
a,button {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  box-shadow: 0 0 0 7px var(--white);
}
.saltar,.skip-link {
  position: absolute;
  z-index: 20;
  background: var(--white);
  padding: var(--space-sm);
  transform: translateY(-160%);
}
.saltar:focus,.skip-link:focus {
  transform: none;
}
.barra {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.cabecera,.pie-top,.creditos,.acciones,.categorias,.controles {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}
.cabecera,.pie-top,.creditos {
  justify-content: space-between;
}
.cabecera {
  min-height: 83px;
  padding-block: var(--space-sm);
}
.marca {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: inherit;
  text-decoration: none;
  font: 600 29px/1 var(--font-display);
  letter-spacing: -.05em;
  min-height: 44px;
}
.marca img {
  width: 49px;
  height: 49px;
  border-radius: 50%;
  object-fit: cover;
}
#navegacion {
  display: flex;
  align-items: center;
  gap: clamp(var(--space-md),2.4vw,var(--space-xl));
}
#navegacion a,.ver,.cotizar,.pie a:not(.marca),.categorias a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
#navegacion a {
  font-weight: 550;
  text-decoration: none;
  font-size: 15px;
}
#navegacion a:hover,.ver:hover,.cotizar:hover,.pie a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}
.contactolink,#menu,.controles button,#cerrar {
  border: 1px solid var(--navy);
  border-radius: 30px;
  padding: var(--space-xs) 20px;
  min-height: 44px;
  background: var(--white);
}
.portada {
  background-color: var(--cream);
  background-image: linear-gradient(var(--grid) 1px,transparent 1px),linear-gradient(90deg,var(--grid) 1px,transparent 1px);
  background-size: 22px 22px;
  border-bottom: 1px solid var(--line);
}
.interior {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: var(--space-lg);
  align-items: center;
  min-height: 570px;
  padding-block: 48px;
}
h1 {
  font-size: clamp(55px,5.65vw,85px);
  line-height: 1.005;
  letter-spacing: -.046em;
}
h1 span {
  position: relative;
  isolation: isolate;
  white-space: nowrap;
}
.mensaje h1::after {
  content: "";
  display: block;
  margin-top: -.06em;
  width: 5.4em;
  height: .09em;
  background: var(--coral);
  border-radius: 45% 20% 42% 23%;
  transform: rotate(-1.7deg);
}
.mensaje>p {
  margin: var(--space-lg) 0;
  font-size: clamp(19px,1.6vw,23px);
}
.acciones {
  gap: 20px;
}
.boton,.flotante a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  min-height: 48px;
  border: 1px solid var(--navy);
  border-radius: 30px;
  padding: var(--space-sm) var(--space-lg);
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  font-size: 16px;
  font-weight: 650;
  transition: transform .18s ease;
}
.boton:hover,.flotante a:hover {
  transform: translateY(-2px);
}
.chat {
  width: 20px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 7px;
  display: inline-block;
  position: relative;
}
.chat::after {
  content: "";
  position: absolute;
  left: 2px;
  bottom: -4px;
  height: 5px;
  width: 5px;
  border-left: 2px solid currentColor;
  transform: skew(-22deg);
}
.chat::before {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 5px;
  border-top: 2px dotted currentColor;
}
.ver,.cotizar {
  font-weight: 650;
  text-underline-offset: 5px;
}
.collage {
  position: relative;
  width: 100%;
  aspect-ratio: 1.23;
  max-width: 560px;
  justify-self: center;
}
.instantanea {
  position: absolute;
  box-shadow: 2px 6px 13px var(--shadow);
  background: var(--white);
  padding: 2.1% 2.1% 0;
  margin: 0;
  text-align: center;
}
.instantanea img {
  width: 100%;
  object-fit: cover;
}
.instantanea figcaption {
  font: 500 clamp(14px,1.35vw,20px)/1.15 var(--font-display);
  padding: var(--space-xs) 0 var(--space-sm);
  letter-spacing: -.035em;
}
.principal {
  top: 4%;
  left: 9%;
  width: 56%;
  transform: rotate(-8deg);
}
.principal img {
  aspect-ratio: 0.85;
}
.pequena {
  right: 2%;
  bottom: 3%;
  width: 41%;
  transform: rotate(9deg);
}
.pequena img {
  aspect-ratio: .98;
  object-position: 50% 56%;
}
.memorial {
  display: none;
}
@media (min-width: 1024px) {
  .interior {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    min-height: clamp(580px, calc(100svh - 83px), 770px);
    padding-block: var(--space-xl);
  }
  .collage {
    max-width: none;
    aspect-ratio: 1.12;
  }
  .principal {
    width: 55%;
    left: 2%;
    top: 15%;
    transform: rotate(-6deg);
  }
  .memorial {
    display: block;
    width: 35%;
    right: 2%;
    top: 1%;
    transform: rotate(5deg);
  }
  .memorial img {
    aspect-ratio: .81;
    object-fit: contain;
    background: var(--shade);
  }
  .memorial.instantanea::before {
    background: var(--rose);
  }
  .pequena {
    width: 38%;
    right: 6%;
    bottom: 0;
    transform: rotate(-3deg);
  }
  .pequena img {
    aspect-ratio: 1.14;
  }
  .collage .uno {
    right: 40%;
    top: 0;
  }
  .collage .dos {
    left: 44%;
    bottom: 0;
  }
}
.instantanea::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -9px;
  left: 29%;
  width: 41%;
  height: 24px;
  transform: rotate(-5deg);
  background: var(--tape);
  clip-path: polygon(2% 0,100% 4%,98% 19%,100% 36%,98% 53%,100% 72%,98% 100%,0 96%,2% 78%,0 56%,2% 35%,0 15%);
}
.pequena::before {
  background: var(--mint);
  transform: rotate(-10deg);
}
.chispa {
  position: absolute;
  line-height: 1;
  color: var(--coral);
}
.uno {
  right: 8%;
  top: 3%;
  font-size: clamp(55px,6.5vw,90px);
  transform: rotate(10deg);
}
.dos {
  left: 2%;
  bottom: 0;
  font-size: clamp(35px,4.5vw,65px);
  color: var(--navy);
}
.seccion {
  padding-block: clamp(48px,6vw,84px);
}
h2 {
  font-size: clamp(38px,4vw,62px);
  line-height: 1.08;
}
.titulo {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.categorias {
  margin: var(--space-lg) 0 var(--space-xl);
  gap: var(--space-sm);
}
.categorias a {
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: var(--space-xs) var(--space-md);
  font-size: 15px;
  text-decoration: none;
}
.categorias a:hover {
  background: var(--mint);
  border-color: var(--navy);
}
.grupo {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: var(--space-xl);
}
.grupo h3 {
  font-size: clamp(27px,2.6vw,38px);
}
.grupo>p {
  margin-top: var(--space-xs);
}
.piezas {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}
/* Una impresión de papel por pieza. Los cuatro renglones se comparten por fila. */
.piezas article {
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  row-gap: 0;
  min-width: 0;
}
.foto-pieza, .mosaico a, .eventos img, .muestra {
  --marco: clamp(6px, .75vw, 10px);
  border: var(--marco) solid var(--white);
  border-radius: 4px;
  box-shadow: 0 0 0 1px var(--line), 1px 4px 9px var(--shadow);
  background: var(--white);
  overflow: hidden;
}
.foto-pieza, .mosaico a { aspect-ratio: 3 / 4; }
.foto-pieza img, .mosaico img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
img[src$="calabaza-3d.jpg"]:not(#ampliada) {
  object-view-box: inset(16% 7% 10%);
  object-position: 50% 66%;
}
img[src$="tacita-taller.jpg"]:not(#ampliada) {
  object-view-box: inset(40% 26% 7% 18%);
  object-position: center;
}
.piezas .cotizar { justify-self: start; }
h4 {
  font: 550 clamp(23px,2vw,30px)/1.1 var(--font-display);
  letter-spacing: -.035em;
  margin: var(--space-md) 0 var(--space-xs);
}
.piezas p {
  font-size: 16px;
}
.cotizar {
  color: var(--red);
}
.porque,.contacto {
  background: var(--navy);
  color: var(--cream);
  padding-block: clamp(48px,6vw,84px);
}
.duo {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: clamp(var(--space-lg),6vw,84px);
  align-items: center;
}
.eventos p,.contacto p {
  font-size: clamp(18px,1.6vw,22px);
  margin: var(--space-md) 0;
}
.porque h2::after {
  content: " ✦";
  color: var(--turq);
}
.motivos {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-lg);
  list-style: none;
  padding: 0;
  margin: var(--space-xl) 0 0;
}
.motivos li {
  border-top: 1px solid var(--mint);
  padding-top: var(--space-md);
}
.motivos svg {
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-md);
  fill: none;
  stroke: var(--coral);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.motivos li:nth-child(even) svg {
  stroke: var(--turq);
}
.motivos h3 {
  font-size: clamp(24px, 2.2vw, 31px);
}
.motivos p {
  margin-top: var(--space-xs);
}
@media (min-width: 681px) {
  .motivos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .motivos {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.pasos {
  counter-reset: paso;
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: var(--space-lg);
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
}
.pasos li {
  counter-increment: paso;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 19px;
}
.pasos li::before {
  content: counter(paso);
  display: grid;
  place-items: center;
  background: var(--mint);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-bottom: var(--space-sm);
  font: 550 24px var(--font-display);
}
.eventos {
  padding-block: 52px;
  background: var(--rose);
}
.eventos img {
  width: min(100%, 370px);
  margin-inline: auto;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
}
.mosaico {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: var(--space-md);
}
.mosaico a { display: block; }
.mosaico img { transition: transform .2s; }
.ideas {
  border-block: 1px solid var(--line);
  background-color: var(--cream);
  background-image: linear-gradient(var(--grid) 1px,transparent 1px),linear-gradient(90deg,var(--grid) 1px,transparent 1px);
  background-size: 22px 22px;
}
.ideas p { margin-block: var(--space-md); }
.opciones-idea {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-lg);
}
.opciones-idea li {
  padding: var(--space-2xs) var(--space-sm);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  font-size: 15px;
}
.idea-arte {
  position: relative;
  width: min(100%, 490px);
  margin-inline: auto;
  aspect-ratio: 1.6;
}
.boceto, .muestra {
  position: absolute;
  width: 48%;
  background-color: var(--white);
  box-shadow: 1px 4px 10px var(--shadow);
}
.boceto {
  left: 3%;
  top: 2%;
  transform: rotate(-8deg);
  color: var(--navy);
  background-image: repeating-linear-gradient(transparent 0 19px,var(--grid) 19px 20px);
}
.lapiz, .flecha-boceto {
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.muestra { right: 2%; bottom: 3%; transform: rotate(6deg); }
.muestra img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.flecha-boceto {
  position: absolute;
  left: 27%;
  bottom: 1%;
  width: 27%;
  color: var(--red);
  stroke-width: 3;
}
@media (min-width:681px) and (max-width:920px) {
  #navegacion .nav-idea { display: none; }
}
.mosaico a:hover {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}
.contacto .boton {
  background: var(--mint);
  color: var(--navy);
}
.pie {
  padding: 32px 0 76px;
}
.pie p,.pie small,.creditos {
  font-size: 14px;
}
.pie p {
  margin-top: var(--space-xs);
}
.creditos {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: var(--space-xs);
}
.flotante {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 4;
}
.flotante a {
  background: var(--mint);
  color: var(--navy);
  padding: var(--space-xs) var(--space-md);
  box-shadow: 0 3px 10px var(--shadow);
}
#visor {
  border: 0;
  background: var(--cream);
  color: var(--navy);
  padding: var(--space-md);
  border-radius: 7px;
  width: min(720px,94%);
  max-height: 94dvh;
  text-align: center;
}
#visor::backdrop {
  background: var(--darkshadow);
}
#visor figure {
  margin: var(--space-xs) 0;
}
#ampliada {
  width: 100%;
  height: min(62dvh,690px);
  object-fit: contain;
}
#pie-foto {
  padding: var(--space-xs);
}
.controles {
  justify-content: center;
}
.lectura {
  max-width: 780px;
  padding-block: 56px;
}
.lectura h1 {
  font-size: clamp(40px,6vw,70px);
}
.lectura h2 {
  font-size: clamp(25px,3vw,36px);
  margin: 32px 0 var(--space-sm);
}
.lectura p {
  margin: var(--space-md) 0;
}
.lectura a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.secundaria .cabecera a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
@media(prefers-reduced-motion:no-preference) {
  .entra {
    animation: aparecer .42s ease-out both;
  }
  @keyframes aparecer {
    from {
      opacity: .25;
      transform: translateY(7px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
@media(max-width:900px) {
  .cabecera {
    min-height: 68px;
  }
  .interior {
    min-height: 445px;
    gap: var(--space-sm);
  }
  .mensaje h1 {
    font-size: clamp(44px,6vw,56px);
  }
  .acciones {
    gap: var(--space-sm);
  }
  .acciones .boton {
    padding-inline: var(--space-md);
  }
  .piezas {
    gap: var(--space-md);
  }
  .titulo {
    display: block;
  }
  .titulo p {
    margin-top: var(--space-sm);
  }
  .mosaico {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
}
@media(min-width:681px) {
  #menu {
    display: none;
  }
}
@media(max-width:680px) {
  .cabecera {
    gap: var(--space-xs);
  }
  .marca {
    font-size: 25px;
  }
  .marca img {
    width: 40px;
    height: 40px;
  }
  #navegacion {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 0;
  }
  .con-js #navegacion:not(.abierto) {
    display: none;
  }
  .contactolink {
    border: 0;
    padding: 0;
    background: none;
  }
  .interior {
    grid-template-columns: minmax(0,1fr);
    min-height: 0;
    padding: 36px 0 var(--space-lg);
    gap: var(--space-lg);
  }
  .mensaje h1 {
    font-size: clamp(49px,10.5vw,65px);
  }
  .mensaje>p {
    margin: var(--space-md) 0 var(--space-md);
  }
  .collage {
    width: min(96%,390px);
    aspect-ratio: 1.36;
  }
  .principal {
    width: 51%;
    top: 3%;
    left: 12%;
  }
  .pequena {
    width: 35%;
    right: 8%;
    bottom: 2%;
  }
  .instantanea figcaption {
    font-size: 14px;
    padding: var(--space-2xs) 0 var(--space-xs);
  }
  .instantanea::before {
    height: 17px;
  }
  .dos {
    left: 4%;
  }
  .acciones {
    gap: 20px;
  }
  .acciones .boton {
    font-size: 15px;
  }
  .ver {
    font-size: 15px;
  }
  .categorias {
    gap: var(--space-xs);
    margin: 20px 0;
  }
  .duo {
    grid-template-columns: minmax(0,1fr);
  }
  .porque br {
    display: none;
  }
  .pasos {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: var(--space-md);
  }
  .mosaico {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: var(--space-xs);
  }

  .pie-top,.creditos {
    gap: var(--space-xs);
  }
  .pie {
    padding-bottom: var(--space-lg);
  }
}
@media(max-width:480px) {
  .grupo {
    margin-top: 32px;
  }
  .pie-top {
    align-items: flex-start;
  }
  .pasos li {
    font-size: 17px;
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation: none!important;
    transition: none!important;
    scroll-behavior: auto!important;
  }
}

a:active,button:active {
  opacity: .8;
}
button:disabled {
  opacity: .55;
  cursor: not-allowed;
  background: var(--shade);
  color: var(--navy);
}

/* Movimiento Loom */
.definiciones, .chispa, .particula {
  pointer-events: none;
  position: absolute;
}
.mensaje { position: relative; }
.chispa, .particula {
  width: 1em;
  height: 1em;
  fill: currentColor;
}
.chispa.dos, .chispa.tres, .tono-1 { color: var(--turq); }
.chispa.tres { top: -1.35rem; left: .15rem; font-size: 20px; }
.chispa.cuatro { top: -.3rem; left: 1.65rem; font-size: 11px; }
.chispa.cuatro, .tono-2 { color: var(--pink); }
.particula {
  position: fixed;
  top: -6px;
  left: -6px;
  z-index: 70;
  font-size: 12px;
}
.tono-0, .tono-3 { color: var(--coral); }
main h2::after {
  content: "";
  display: inline-block;
  width: .42em;
  height: .42em;
  margin-inline-start: .18em;
  vertical-align: .35em;
  background: var(--turq);
  clip-path: polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%);
}
.porque h2::after { content: ""; }
@media (prefers-reduced-motion: no-preference) {
  .instantanea {
    animation: pegar-foto .65s cubic-bezier(.21,.68,.27,1) var(--espera,0s) backwards;
  }
  .memorial { --espera: .13s; }
  .pequena { --espera: .25s; }
  .instantanea::before {
    animation: pegar-cinta .32s ease-out calc(var(--espera,0s) + .54s) backwards;
  }
  .mensaje h1::after {
    transform-origin: left;
    animation: subrayar .64s ease-out .18s backwards;
  }
  .chispa { animation: titilar 1.65s ease-in-out 3; }
  .chispa.dos { animation-duration: 1.6s; animation-delay: .15s; }
  .chispa.tres { animation-duration: 1.42s; animation-delay: .34s; }
  .chispa.cuatro { animation-duration: 1.5s; animation-delay: .45s; }
  .entra { animation-fill-mode: backwards; animation-delay: var(--escalon,0s); }
  :is(.piezas,.pasos,.motivos,.mosaico) > :nth-child(4n+2) { --escalon: 65ms; }
  :is(.piezas,.pasos,.motivos,.mosaico) > :nth-child(4n+3) { --escalon: 130ms; }
  :is(.piezas,.pasos,.motivos,.mosaico) > :nth-child(4n+4) { --escalon: 195ms; }
  h2.entra::after, .pasos .entra::before {
    animation: sello .48s ease-out var(--escalon,0s) backwards;
  }
  .motivos .entra svg > * {
    stroke-dasharray: 180;
    animation: trazar .85s ease-out var(--escalon,0s) backwards;
  }
  @keyframes pegar-foto {
    from { opacity: .2; translate: 0 -25px; rotate: -4deg; }
    72% { translate: 0 3px; rotate: 1deg; }
    to { opacity: 1; translate: 0; rotate: 0deg; }
  }
  @keyframes pegar-cinta { from { opacity: 0; translate: 0 -6px; } }
  @keyframes subrayar { from { scale: 0 1; } }
  @keyframes titilar { 45% { scale: .72; opacity: .4; } }
  @keyframes sello { from { scale: .65; opacity: .35; } 65% { scale: 1.09; } }
  @keyframes trazar { from { stroke-dashoffset: 180; } to { stroke-dashoffset: 0; } }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .piezas article { transition: translate .2s; }
  .piezas article:hover { translate: 0 -3px; box-shadow: 0 7px 15px -7px var(--shadow); }
  .mosaico a:hover img { transform: scale(1.035); }
  .mosaico a[href$="cruz-memorial.jpg"]:hover img { transform: none; }
  :is(.boton,.cotizar,.flotante a) { position: relative; overflow: hidden; }
  :is(.boton,.cotizar,.flotante a)::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(105deg,transparent 38%,color-mix(in srgb,var(--coral) 32%,transparent) 49%,transparent 62%);
    transform: translateX(-110%);
  }
  :is(.boton,.cotizar,.flotante a):hover::before { animation: recorrer .52s ease-out; }
  @keyframes recorrer { to { transform: translateX(110%); } }
}
@media (prefers-reduced-motion: reduce) {
  .boton:hover,.flotante a:hover { transform: none; }
}

@media (max-width: 360px) {
  .flotante a span:last-child { display: none; }
}

main:focus { outline: none; box-shadow: none; }

/* ===== Pulido tras la crítica de diseño (2026-11-19) ===== */
:root { --tracking-display: -.02em; --red-claro: #c2414f; }
h1 { letter-spacing: -.02em; }
@media (min-width: 1024px) { .mensaje h1 { font-size: clamp(50px, 4.6vw, 70px); } }
@media (min-width: 681px) and (max-width: 1023px) { .mensaje h1 { font-size: clamp(38px, 5.2vw, 52px); } }
h2, h4, .motivos h3 { letter-spacing: -.015em; }
h2 { text-wrap: balance; }

/* Portada: menos aire muerto y botón principal con peso */
.interior { padding-block: 32px; }
@media (min-width: 1024px) { .interior { padding-block: 24px; min-height: clamp(560px, calc(100svh - 120px), 720px); } }
.acciones .boton { min-height: 56px; padding-inline: 32px; font-size: 17px; }

/* Menú: Cotizar relleno */
.contactolink { background: var(--navy); color: var(--white); text-decoration: none; font-weight: 650; }
#navegacion a.contactolink:hover { text-decoration: none; background: var(--red); border-color: var(--red); }

/* Categorías tipo eyebrow con conteo */
.grupo h3 {
  font: 650 .875rem/1.3 var(--font-body);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
}
.grupo h3 .conteo { color: var(--navy); letter-spacing: .06em; }
.grupo { padding-top: 16px; }
h4 { font-size: clamp(21px, 1.9vw, 26px); }
.nota-marcas { margin-top: var(--space-md); font-size: 13px; color: var(--navy); }

/* Tarjetas: foto ampliable y Cotizar como botón */
.foto-pieza { display: block; width: 100%; }
.foto-pieza img { transition: transform .25s ease; }
.foto-pieza:hover img { transform: scale(1.035); }
.piezas p { min-height: 3em; }
.piezas .cotizar { align-self: end; margin-top: var(--space-sm); }
.cotizar {
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 2px solid var(--navy);
  border-radius: 999px;
  color: var(--navy);
  background: var(--white);
  text-decoration: none;
}
.cotizar:hover { background: var(--mint); text-decoration: none; }
@media (max-width: 680px) {
  .piezas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md) var(--space-sm); }
  h4 { font-size: 19px; margin-top: var(--space-sm); }
  .piezas p {
    font-size: 14px;
    min-height: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .piezas .cotizar { padding: 0 12px; width: 100%; }
  .grupo { margin-top: var(--space-lg); }
  .categorias { margin-bottom: var(--space-sm); }
}

/* ¿Por qué?: franja clara con reglas finas (ya hay navy en el cierre) */
.porque { background: var(--white); color: var(--navy); border-block: 1px solid var(--line); }
.motivos li { border-top: 2px solid var(--navy); }
.motivos h3 { min-height: 2.3em; display: flex; align-items: flex-end; }
.motivos svg { stroke: var(--red-claro); }
.motivos li:nth-child(even) svg { stroke: var(--navy); }
@media (max-width: 680px) { .motivos h3 { min-height: 0; } }

/* ¿Tienes una idea? */
.ideas .duo { align-items: start; }
.etiqueta-idea { margin: var(--space-md) 0 var(--space-xs); font-weight: 650; font-size: 15px; }
.opciones-idea li { border: 0; background: var(--shade); border-radius: 6px; font-size: 14px; padding: 6px 12px; }
.idea-arte { width: min(100%, 560px); margin-top: var(--space-md); }
.lapiz { stroke: var(--navy); stroke-width: 2.6; }
.lapiz path:last-child { stroke: var(--coral); }

/* Eventos: dentro del sistema de papel, con el rosa como acento */
.eventos {
  background-color: var(--cream);
  background-image: linear-gradient(var(--grid) 1px,transparent 1px),linear-gradient(90deg,var(--grid) 1px,transparent 1px);
  background-size: 22px 22px;
  padding-block: clamp(48px, 6vw, 84px);
}
.eventos .duo > div:last-child {
  position: relative;
  background: var(--rose);
  padding: clamp(24px, 4vw, 44px);
  border-radius: 6px;
  box-shadow: 1px 4px 12px var(--shadow);
  rotate: -.6deg;
}
.eventos .duo > div:last-child::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 38%;
  width: 26%;
  height: 24px;
  background: var(--mint);
  rotate: 3deg;
  clip-path: polygon(2% 0,100% 4%,98% 19%,100% 36%,98% 53%,100% 72%,98% 100%,0 96%,2% 78%,0 56%,2% 35%,0 15%);
}

/* Pie: número visible y fila de accesibilidad */
.pie-wa a { font-weight: 650; font-size: 16px; }
.accesibilidad { display: flex; align-items: center; gap: var(--space-sm); margin-top: var(--space-md); font-size: 14px; }

/* Botones flotantes: WhatsApp con texto y más peso; música discreta */
.flotante { position: fixed; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 6; }
.flotante a { min-height: 52px; padding: 0 20px; gap: 8px; box-shadow: 0 4px 14px var(--shadow); }
@media (max-width: 680px) {
  .flotante { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); }
  .flotante a { min-height: 48px; padding: 0 16px; }
  .pie { padding-bottom: 96px; }
}

/* ===== Portada pulida (criterios Emil Kowalski) ===== */
:root { --ease-salida: cubic-bezier(.23, 1, .32, 1); }
.collage { --px: 0; --py: 0; isolation: isolate; }
.collage::after {
  content: "";
  position: absolute;
  inset: 6% 0 0 4%;
  z-index: -1;
  background:
    radial-gradient(closest-side at 32% 46%, color-mix(in srgb, var(--turq) 30%, transparent), transparent),
    radial-gradient(closest-side at 76% 22%, color-mix(in srgb, var(--pink) 22%, transparent), transparent),
    radial-gradient(closest-side at 70% 78%, color-mix(in srgb, var(--coral) 20%, transparent), transparent);
  filter: blur(18px);
  pointer-events: none;
}
.sellos {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  list-style: none;
  padding: 0;
  margin: var(--space-lg) 0 0;
  font-size: 15px;
  font-weight: 600;
}
.sellos li { display: inline-flex; align-items: center; gap: 8px; }
.sellos li::before {
  content: "";
  width: 11px;
  height: 11px;
  background: var(--red-claro);
  clip-path: polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%);
}
.sellos li:nth-child(2)::before { background: var(--navy); }
.estampa {
  position: absolute;
  z-index: 4;
  width: clamp(84px, 9vw, 128px);
  left: -2%;
  bottom: 4%;
  rotate: -12deg;
  pointer-events: none;
  filter: drop-shadow(1px 3px 6px var(--shadow));
}
.estampa-fondo { fill: var(--navy); }
.estampa-aro { fill: none; stroke: var(--mint); stroke-width: 1.5; stroke-dasharray: 3 4; }
.estampa-texto { transform-box: view-box; transform-origin: 60px 60px; }
.estampa text { fill: var(--cream); font: 700 10.5px var(--font-body); letter-spacing: .14em; }
.estampa-k { fill: var(--coral); }
@media (max-width: 680px) { .estampa { width: 74px; left: 0; bottom: 0; } .sellos { font-size: 14px; gap: 4px 14px; } }

/* Pantallas grandes: la portada usa más ancho */
@media (min-width: 1024px) {
  .portada .wrap { width: min(1340px, 92%); }
  .mensaje h1 { font-size: clamp(50px, 4.5vw, 80px); }
  .principal { transform: translate(calc(var(--px) * -16px), calc(var(--py) * -12px)) rotate(-6deg); }
  .memorial { transform: translate(calc(var(--px) * 10px), calc(var(--py) * 8px)) rotate(5deg); }
  .pequena { transform: translate(calc(var(--px) * 20px), calc(var(--py) * 15px)) rotate(-3deg); }
  .estampa { translate: calc(var(--px) * -26px) calc(var(--py) * -20px); }
}

/* Fotos que se levantan y botones que responden al presionar */
@media (hover: hover) and (pointer: fine) {
  .instantanea { transition: scale .3s var(--ease-salida), box-shadow .3s var(--ease-salida); }
  .instantanea:hover { scale: 1.035; box-shadow: 4px 14px 28px var(--shadow); z-index: 3; }
}
.boton, .cotizar, .flotante a, .contactolink { transition: transform .16s var(--ease-salida), background-color .2s ease; }
.boton:active, .cotizar:active, .flotante a:active, .contactolink:active { transform: scale(.97); opacity: 1; }
@media (min-width: 1024px) {
  /* Que el collage nunca sea más alto que la pantalla (pantallas anchas pero bajitas) */
  .collage { width: min(100%, calc((100svh - 150px) * 1.12)); justify-self: center; }
}

/* ===== Fondo decorado de la portada ===== */
.portada { position: relative; overflow: hidden; }
.portada > .wrap { position: relative; z-index: 1; }
.fondo-portada {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.cintas path { opacity: .6; }
.cinta-a { fill: var(--coral); }
.cinta-b { fill: var(--turq); }
.cinta-c { fill: var(--pink); opacity: .45; }
.trazos { fill: none; stroke: var(--navy); stroke-width: 2; stroke-dasharray: 9 9; stroke-linecap: round; opacity: .22; }
.dibujos { fill: none; stroke: var(--navy); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: .3; }
.confeti > * { fill: var(--coral); opacity: .7; transform-box: fill-box; transform-origin: center; }
.confeti > :nth-child(3n+2) { fill: var(--turq); }
.confeti > :nth-child(3n) { fill: var(--pink); }
@media (max-width: 680px) { .dibujos, .trazos { opacity: .16; } }
@media (prefers-reduced-motion: no-preference) {
  .confeti > * { animation: confeti-flota 7s ease-in-out infinite; }
  .confeti > :nth-child(2n) { animation-duration: 9s; animation-delay: -3s; }
  .confeti > :nth-child(3n) { animation-duration: 8s; animation-delay: -5s; }
  @keyframes confeti-flota {
    50% { translate: 0 -10px; rotate: 25deg; }
  }
}

/* ===== Botón de modo claro/oscuro ===== */
.tema {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--navy);
  font: 600 14px/1 var(--font-body);
  margin-inline-start: auto;
}
.tema svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tema .sol { display: none; }
[data-tema="oscuro"] .tema .luna { display: none; }
[data-tema="oscuro"] .tema .sol { display: inline; }
.tema:hover { background: var(--shade); }
@media (min-width: 1024px) {
  .cabecera { flex-wrap: nowrap; }
  .tema { order: 3; margin-inline-start: 0; }
  #navegacion { margin-inline-start: auto; }
}
/* Tableta: logo y botón de tema arriba, menú completo en un segundo renglón */
@media (min-width: 681px) and (max-width: 1023px) {
  .cabecera { flex-wrap: wrap; row-gap: 4px; }
  #navegacion { order: 4; width: 100%; justify-content: space-between; gap: 8px; }
  #navegacion .nav-idea { display: inline-flex; }
}
@media (max-width: 1100px) and (min-width: 681px) { .tema-texto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } .tema { padding: 0 12px; } }
@media (max-width: 680px) { .tema-texto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } .tema { padding: 0 12px; } }

/* La estampa conserva sus colores en ambos modos */
.estampa-fondo { fill: #101432; }
.estampa text { fill: #fcf8ee; }

/* ===== Modo oscuro ===== */
:root[data-tema="oscuro"] {
  color-scheme: dark;
  --navy: #f3ecdc;
  --cream: #11142a;
  --white: #1b1f3b;
  --shade: #232848;
  --line: #3b4166;
  --grid: #ffffff0f;
  --rose: #3a2238;
  --red: #ff9fa6;
  --red-claro: #ff8a7e;
  --shadow: #00000066;
  --darkshadow: #000000d9;
  --tape: #f5bb92b3;
}
/* Fondos de color fijo: el texto sobre menta va siempre en tinta oscura */
[data-tema="oscuro"] .flotante a,
[data-tema="oscuro"] .contacto .boton,
[data-tema="oscuro"] .pasos li::before,
[data-tema="oscuro"] #pausa-movimiento[aria-pressed="true"],
[data-tema="oscuro"] .categorias a:hover,
[data-tema="oscuro"] .cotizar:hover { color: #101432; }
[data-tema="oscuro"] .contacto { background: #0a0c1d; color: #f3ecdc; border-block: 1px solid var(--line); }
[data-tema="oscuro"] .boton { background: var(--mint); border-color: var(--mint); color: #101432; }
[data-tema="oscuro"] .contactolink { background: var(--mint); border-color: var(--mint); color: #101432; }
[data-tema="oscuro"] #navegacion a.contactolink:hover { background: #ff9fa6; border-color: #ff9fa6; }
[data-tema="oscuro"] .collage::after { opacity: .55; }
[data-tema="oscuro"] .cintas path { opacity: .45; }
[data-tema="oscuro"] .foto-pieza img,
[data-tema="oscuro"] .instantanea img,
[data-tema="oscuro"] .eventos img,
[data-tema="oscuro"] .muestra img { filter: brightness(.92); }
[data-tema="oscuro"] .marca img { box-shadow: 0 0 0 2px #f3ecdc33; }

/* ===== Tipografía pulida ===== */
h1, h2, h4, .instantanea figcaption, .marca {
  font-optical-sizing: none;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}
h1, h2 { font-variation-settings: "opsz" 144; font-weight: 600; }
h4, .instantanea figcaption, .marca { font-variation-settings: "opsz" 48; }
h1 { line-height: .98; letter-spacing: -.025em; }
h2 { letter-spacing: -.02em; line-height: 1.02; }
.acento { font-style: normal; color: var(--red); }
:root[data-tema="oscuro"] .acento { color: var(--coral); }
.mensaje > p {
  font: 400 clamp(21px, 1.9vw, 27px)/1.3 var(--font-display);
  font-variation-settings: "opsz" 36;
  letter-spacing: -.005em;
  margin: var(--space-md) 0 var(--space-lg);
}
/* Subtítulo de sección debajo del título, no flotando a la derecha */
.titulo { display: block; }
.titulo p { margin-top: var(--space-sm); font-size: clamp(17px, 1.4vw, 19px); max-width: 46ch; }
.grupo h3 { letter-spacing: .14em; }
h1 { letter-spacing: -.012em; }
h2 { letter-spacing: -.01em; }
@media (min-width: 1024px) { .mensaje h1 { font-size: clamp(58px, 5.6vw, 96px); } }
@media (min-width: 681px) and (max-width: 1023px) { .mensaje h1 { font-size: clamp(44px, 6vw, 60px); } }
@media (max-width: 680px) { .mensaje h1 { font-size: clamp(46px, 12vw, 64px); } }
@media (min-width: 1024px) { .mensaje h1 { font-size: clamp(58px, 5.2vw, 84px); white-space: nowrap; } }
@media (max-width: 1799px) { .dibujo-izq { display: none; } }
