@import url("https://fonts.googleapis.com/css2?family=Baloo+2:wght@400..800&display=swap");

:root {
  color-scheme: light;
  --papel: #fbf3e5;
  --marfil: #fffbf4;
  --tinta: #40302a;
  --verde: #40583e;
  --terracota: #ad382c;
  --azul: #235b8a;
  --amarillo: #a05b06;
  --linea: #d9b98b;
  --tigritos: url("tigritos-originales.jpg");
  --redonda: "Baloo 2", "Comic Sans MS", ui-rounded, system-ui, sans-serif;
  font-family: system-ui, sans-serif;
  background: var(--papel);
  color: var(--tinta);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
.portada {
  position: relative;
  isolation: isolate;
  background: radial-gradient(ellipse at 78% 60%, #fff6d8 0, transparent 62%), var(--papel);
  padding: clamp(3.3rem, 7vw, 6.3rem) clamp(1.45rem, 5.4vw, 6.5rem);
}
.portada::before {
  position: absolute;
  inset: clamp(.65rem, 1.5vw, 1.35rem);
  border: 2px dashed #d5a061;
  border-radius: 1.45rem;
  content: "";
  pointer-events: none;
}
.portada-interior {
  max-width: 76rem;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  grid-template-areas: "texto arte" "accion arte";
  grid-template-rows: 1fr auto;
  column-gap: clamp(1rem, 3vw, 3rem);
  align-items: center;
}
.presentacion { grid-area: texto; text-align: center; align-self: end; }
.ceja {
  color: var(--verde);
  font-family: var(--redonda);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
}
.ceja span { display: inline-block; width: .9rem; height: 1px; background: var(--linea); }
h1 {
  font: 800 clamp(3.25rem, 7.45vw, 7rem)/.99 var(--redonda);
  letter-spacing: -.055em;
  margin: .88rem 0 1.1rem;
  color: var(--terracota);
}
h1 span { white-space: nowrap; }
h1 b {
  display: inline-block;
  font-weight: inherit;
  paint-order: stroke fill;
  -webkit-text-stroke: .065em #fff9e8;
  text-shadow: 0 2px 0 #aa71384d;
}
h1 b:nth-child(odd) { transform: rotate(-4deg); }
h1 b:nth-child(even) { transform: rotate(3deg); }
h1 b:nth-child(4n + 1) { color: var(--terracota); }
h1 b:nth-child(4n + 2) { color: var(--azul); }
h1 b:nth-child(4n + 3) { color: var(--verde); }
h1 b:nth-child(4n + 4) { color: var(--amarillo); }
h1 span + span b:first-child { color: var(--azul); }
h1 span + span b:nth-child(2) { color: var(--terracota); }
.letrero {
  position: relative;
  isolation: isolate;
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(.35rem, 1.45vw, .85rem);
  padding: .7em .72em;
  background: radial-gradient(ellipse at 50% 12%, #fff9e7 48%, #f8dbad);
  border: 1px solid #d5a469;
  border-radius: 32% 30% 27% 31% / 34% 31% 32% 30%;
  box-shadow: 0 3px 0 #c6884933, inset 0 1px 4px #c68c4226;
}
.letrero::before {
  content: "";
  position: absolute;
  inset: .23em;
  z-index: -1;
  border: 1px dashed #c38a4da8;
  border-radius: inherit;
}
.corazon {
  display: inline-block;
  color: #c6524b;
  font-family: system-ui, sans-serif;
  font-size: .69em;
  line-height: 1;
  text-shadow: 0 1px 0 #9d3d36;
  transform: rotate(-16deg);
}
.corazon:last-child { transform: rotate(15deg); }
.texto-azul { color: var(--azul); }
.texto-rojo { color: var(--terracota); }
.introduccion {
  max-width: 28rem;
  color: var(--verde);
  font: 800 clamp(1.17rem, 2.7vw, 1.95rem)/1.14 var(--redonda);
}
.introduccion strong { color: var(--terracota); }
.fecha {
  display: inline-block;
  margin: 1.3rem 0 .15rem;
  padding: .48rem .9rem;
  border: 1px dashed #c77830;
  border-radius: 1rem;
  background: #ffe9a9;
  color: #704112;
  font-size: clamp(.94rem, 1.5vw, 1.04rem);
  font-weight: 700;
}
.accion { grid-area: accion; text-align: center; align-self: start; margin-top: 1.65rem; }
.boton {
  background: var(--terracota);
  color: #fffdf6;
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 2rem;
  text-decoration: none;
  font-size: .94rem;
  font-weight: 650;
  padding: .75rem 1.4rem;
  transition: background-color .2s ease;
}
.boton:hover { background: #8f2c23; }
a:focus-visible { outline: 2px solid var(--azul); outline-offset: 4px; }
.ilustracion {
  grid-area: arte;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-width: 0;
  aspect-ratio: 1.6;
  isolation: isolate;
  overflow: clip;
  overflow-clip-margin: 12px;
}
.arco {
  position: absolute;
  inset: 0 9% 3%;
  background: radial-gradient(ellipse at 50% 94%, #fff7d7 20%, transparent 65%), linear-gradient(155deg, #ffdfa0, #f7e5ba 55%, #dce7cc);
  border: 1px solid #dfb575;
  border-radius: 48% 48% 20% 20% / 55% 55% 17% 17%;
  z-index: -1;
}
.arco::after {
  content: "";
  position: absolute;
  inset: .7rem;
  border: 1px dashed #d9b98bb3;
  border-radius: inherit;
}
.detalle-ilustrado {
  position: absolute;
  background-image: var(--tigritos);
  background-repeat: no-repeat;
}
.vitral {
  inset: 5% auto auto 10%;
  width: 19%;
  opacity: .84;
  mask-image: linear-gradient(#000 76%, transparent);
  aspect-ratio: 108 / 228;
  background-size: 1083.333% 292.544%;
  background-position: 1.977% 4.784%;
  clip-path: polygon(2.8% 98.2%, 2.8% 36.8%, 6.5% 26.8%, 16.7% 17.1%, 28.7% 9.2%, 48.1% 1.3%, 63.9% 6.6%, 80.6% 14.9%, 90.7% 25.0%, 96.3% 35.5%, 97.2% 56.1%, 84.3% 57.0%, 75.0% 60.5%, 67.6% 64.9%, 63.9% 73.2%, 63.9% 80.7%, 66.7% 86.8%, 70.4% 93.0%, 63.0% 98.7%);
}
.edad-coronada {
  inset: 1% auto auto 55%;
  width: 21%;
  aspect-ratio: 155 / 198;
  background-size: 754.839% 336.869%;
  background-position: 82.562% 4.691%;
  clip-path: polygon(3.2% 81.8%, 8.4% 73.7%, 20.6% 65.2%, 34.8% 56.1%, 45.8% 47.5%, 50.3% 41.4%, 50.3% 36.4%, 47.1% 33.8%, 41.9% 34.8%, 38.1% 40.4%, 31.6% 43.9%, 20.6% 42.4%, 14.2% 39.4%, 11.6% 34.8%, 13.5% 28.8%, 19.4% 22.2%, 27.7% 16.7%, 38.7% 13.1%, 51.0% 12.6%, 58.7% 14.1%, 61.9% 4.5%, 67.7% 1.5%, 72.9% 3.5%, 73.5% 10.1%, 78.1% 11.6%, 83.2% 6.1%, 89.0% 6.1%, 92.9% 10.1%, 88.4% 13.6%, 88.4% 17.2%, 95.5% 16.2%, 98.7% 19.2%, 95.5% 22.2%, 85.8% 28.8%, 87.1% 34.3%, 86.5% 42.9%, 83.2% 52.0%, 74.8% 62.1%, 63.2% 70.2%, 55.5% 74.2%, 69.0% 75.8%, 74.2% 79.3%, 75.5% 85.4%, 73.5% 92.9%, 70.3% 98.0%, 63.2% 99.0%, 9.7% 90.9%, 3.2% 88.4%);
}
.tigrito {
  width: 50%;
  position: absolute;
  bottom: 1%;
  filter: drop-shadow(0 10px 9px #6641291c);
}
/* Las máscaras muestran solo las ilustraciones de la referencia original. */
.tigrito-bautizo { left: -1%; aspect-ratio: 423 / 405; }
.tigrito-cumple { right: -1%; aspect-ratio: 449 / 390; transform-origin: 52% 92%; }
.recorte {
  position: absolute;
  aspect-ratio: 1170 / 667;
  background: var(--tigritos) center / 100% 100% no-repeat;
}
.tigrito-bautizo .recorte {
  width: 276.60%;
  left: -3.55%;
  top: -5.93%;
  clip-path: polygon(1.37% 55.47%, 1.88% 51.57%, 2.65% 48.13%, 1.88% 44.08%, 2.14% 40.03%, 3.76% 41.83%, 3.25% 37.18%, 4.36% 36.13%, 5.56% 40.33%, 5.81% 43.48%, 7.26% 43.63%, 7.52% 40.03%, 7.26% 37.63%, 8.55% 34.63%, 8.55% 32.23%, 7.86% 31.33%, 7.44% 28.64%, 7.61% 25.64%, 8.55% 23.69%, 9.83% 22.49%, 11.71% 21.74%, 12.99% 19.79%, 15.30% 18.14%, 17.09% 17.54%, 17.52% 16.19%, 18.03% 15.44%, 18.38% 14.69%, 17.61% 12.59%, 17.44% 10.34%, 17.86% 9.45%, 17.61% 7.50%, 18.12% 6.60%, 20.09% 9.00%, 21.28% 10.34%, 22.05% 7.95%, 22.91% 6.75%, 24.44% 6.00%, 25.47% 4.50%, 26.84% 4.35%, 27.01% 6.45%, 25.81% 9.00%, 25.47% 11.24%, 25.38% 13.64%, 24.36% 16.04%, 23.16% 16.94%, 21.62% 17.99%, 22.74% 19.79%, 23.42% 20.99%, 24.79% 20.69%, 25.98% 21.59%, 26.67% 23.69%, 26.84% 26.39%, 26.24% 28.64%, 25.04% 30.13%, 25.21% 33.88%, 24.87% 37.78%, 23.76% 40.78%, 22.82% 42.28%, 24.19% 44.98%, 24.62% 47.68%, 25.47% 47.53%, 25.73% 44.53%, 26.67% 41.23%, 27.61% 44.38%, 28.21% 41.83%, 29.49% 42.58%, 29.49% 44.98%, 30.77% 43.33%, 31.79% 46.03%, 34.10% 44.83%, 34.70% 46.48%, 34.10% 49.03%, 36.41% 48.13%, 36.07% 51.12%, 35.47% 53.52%, 36.84% 55.02%, 36.24% 56.82%, 37.26% 58.92%, 35.56% 60.27%, 33.42% 60.12%, 31.37% 59.52%, 28.21% 59.07%, 24.19% 58.77%, 19.49% 58.77%, 15.56% 59.37%, 12.22% 59.97%, 10.26% 61.17%, 8.63% 61.47%, 6.50% 63.12%, 4.19% 62.97%, 2.31% 64.32%, 2.22% 61.47%, 2.82% 59.37%, 1.71% 58.32%);
}
.tigrito-cumple .recorte {
  width: 260.58%;
  left: -157.46%;
  top: -11.03%;
  clip-path: polygon(60.77% 60.27%, 61.28% 56.37%, 62.22% 54.42%, 63.50% 52.62%, 64.44% 50.52%, 65.73% 49.63%, 66.07% 47.08%, 67.18% 45.28%, 68.38% 45.58%, 69.91% 46.93%, 71.71% 44.53%, 72.65% 44.83%, 73.50% 46.48%, 73.68% 49.18%, 74.62% 48.58%, 75.04% 44.83%, 76.24% 43.03%, 76.75% 41.08%, 76.67% 39.28%, 75.81% 37.93%, 75.47% 36.73%, 75.64% 35.08%, 76.32% 34.48%, 76.92% 34.78%, 77.35% 33.13%, 77.95% 33.28%, 78.89% 34.93%, 79.49% 36.13%, 80.77% 37.48%, 81.45% 38.08%, 81.37% 34.93%, 81.62% 31.48%, 81.54% 28.79%, 81.45% 25.49%, 82.14% 22.94%, 83.16% 22.04%, 83.68% 21.59%, 83.76% 18.29%, 84.27% 15.59%, 85.13% 13.64%, 86.84% 12.44%, 88.63% 12.14%, 89.15% 10.04%, 90.17% 8.10%, 91.54% 6.90%, 93.16% 6.60%, 94.70% 7.65%, 95.64% 9.60%, 96.15% 12.14%, 96.15% 16.49%, 97.52% 17.99%, 98.29% 20.39%, 98.72% 23.54%, 98.55% 26.24%, 97.69% 28.94%, 96.58% 31.78%, 96.84% 34.33%, 96.41% 37.63%, 95.47% 40.18%, 94.62% 41.98%, 95.04% 42.73%, 96.15% 42.43%, 96.67% 43.48%, 97.78% 44.23%, 97.61% 46.03%, 98.03% 47.38%, 97.18% 49.03%, 95.38% 49.63%, 94.44% 48.88%, 93.08% 50.52%, 92.48% 53.07%, 92.65% 54.42%, 93.33% 52.62%, 94.44% 51.72%, 95.13% 52.77%, 94.44% 56.52%, 95.64% 57.12%, 97.18% 55.92%, 97.52% 58.62%, 96.24% 60.72%, 97.69% 60.27%, 97.95% 62.82%, 95.47% 64.32%, 93.50% 63.72%, 91.97% 62.97%, 89.74% 63.12%, 87.95% 61.77%, 86.07% 60.42%, 83.68% 59.97%, 80.51% 59.37%, 77.09% 59.22%, 73.93% 59.07%, 70.85% 59.52%, 67.35% 60.27%, 64.27% 61.02%, 61.88% 61.62%);
}
.destello { position: absolute; color: #a15e2e; line-height: 1; }
.destello-uno { left: 34%; top: 17%; font-size: clamp(.8rem, 2vw, 1.4rem); color: var(--amarillo); }
.destello-dos { left: 48%; top: 23%; font-size: clamp(1rem, 2.7vw, 2rem); color: var(--azul); }
.destello-tres { right: 17%; top: 18%; color: var(--terracota); font-size: .95rem; }
.destello-cuatro { left: 42%; top: 48%; font-size: clamp(1rem, 2.5vw, 1.45rem); color: #b84c3c; }
.celebracion {
  background: var(--marfil);
  padding: clamp(2.75rem, 6vw, 5rem) max(1.35rem, calc((100% - 59rem) / 2));
  text-align: center;
  scroll-margin-top: .25rem;
}
h2 { font: 800 clamp(2.15rem, 5vw, 3.5rem)/1.08 var(--redonda); color: var(--verde); letter-spacing: -.035em; }
.encabezado-celebracion {
  position: relative;
  max-width: 40rem;
  margin-inline: auto;
  isolation: isolate;
}
.ramo {
  bottom: -.7rem;
  width: clamp(4.25rem, 21%, 7.75rem);
  z-index: -1;
  pointer-events: none;
}
.ramo-izquierdo {
  left: 0;
  aspect-ratio: 175 / 160;
  background-size: 668.571% 416.875%;
  background-position: 0.000% 99.211%;
  clip-path: polygon(0.0% 90.6%, 4.6% 78.8%, 2.9% 66.9%, 8.0% 57.5%, 14.3% 64.4%, 17.7% 56.9%, 12.0% 48.8%, 4.0% 50.6%, 2.9% 43.8%, 6.3% 29.4%, 13.1% 26.9%, 11.4% 17.5%, 20.0% 13.1%, 26.3% 19.4%, 28.6% 28.1%, 30.9% 37.5%, 33.7% 29.4%, 38.3% 33.1%, 42.3% 44.4%, 47.4% 37.5%, 55.4% 36.9%, 55.4% 46.3%, 60.0% 50.0%, 64.0% 61.9%, 67.4% 56.3%, 78.3% 55.6%, 78.3% 63.7%, 86.9% 65.0%, 91.4% 71.3%, 82.3% 78.1%, 72.6% 83.8%, 81.1% 85.6%, 93.1% 88.1%, 96.6% 91.9%, 88.6% 96.9%, 74.3% 99.4%, 0.0% 99.4%);
}
.ramo-derecho {
  right: 0;
  aspect-ratio: 179 / 183;
  background-size: 653.631% 364.481%;
  background-position: 100.000% 99.174%;
  clip-path: polygon(0.0% 94.5%, 4.5% 87.4%, 12.3% 85.8%, 16.2% 89.6%, 24.0% 83.1%, 33.5% 82.5%, 33.5% 77.0%, 25.7% 74.9%, 24.0% 69.4%, 31.8% 63.9%, 43.0% 63.9%, 48.6% 58.5%, 55.9% 56.8%, 56.4% 48.6%, 62.0% 48.1%, 68.2% 51.9%, 70.4% 43.2%, 66.5% 36.1%, 68.2% 28.4%, 74.3% 28.4%, 78.8% 38.8%, 83.2% 36.6%, 82.7% 26.2%, 80.4% 19.7%, 85.5% 12.0%, 90.5% 19.1%, 94.4% 12.0%, 98.3% 0.0%, 99.4% 2.7%, 99.4% 99.5%, 2.8% 99.5%);
}
.letrero-celebracion {
  max-width: 100%;
  padding: .49em .55em;
  border-radius: 22% 24% 23% 22% / 44% 42% 39% 40%;
  font-size: clamp(1.65rem, 5.2vw, 3.35rem);
}
.eventos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 1.65rem); margin-top: 1.5rem; }
.evento {
  background: #e9f1dd;
  border: 1px dashed #9eaf83;
  border-radius: 1.25rem;
  color: var(--verde);
  padding: clamp(1.55rem, 4vw, 2.75rem) 1.05rem;
  position: relative;
}
.evento-cumple { background: #e9f2fc; border-color: #92b6d2; color: var(--azul); }
.sello {
  margin: 0 auto .7rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  width: 3.1rem;
  height: 3.1rem;
  display: grid;
  place-items: center;
}
.sello svg { width: 70%; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
h3 { font: 800 clamp(1.75rem, 3.4vw, 2.4rem)/1.1 var(--redonda); letter-spacing: -.02em; }
.letrero-evento {
  max-width: 100%;
  padding: .4em .62em;
  border-radius: 20% 22% 20% 22% / 37% 39% 35% 38%;
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
}
.hora { margin-top: .85rem; font-size: 1.1rem; font-weight: 750; }
.lugar { color: var(--tinta); font-size: 1rem; margin-top: .28rem; }
.ubicacion {
  color: inherit;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 2.75rem;
  margin-top: .9rem;
  padding: .45rem 1.05rem;
  border-radius: 2rem;
  border: 1px solid currentColor;
  font-weight: 650;
  font-size: .938rem;
  text-decoration: none;
}
.ubicacion:hover { background: #ffffffa8; }
.confirmacion {
  text-align: center;
  padding: 2.65rem 1rem;
  background: #ffe9ba;
  border-block: 1px solid #edcf91;
}
.confirmacion h2 { color: var(--terracota); }
.boton-whatsapp { background: var(--verde); margin-top: 1.1rem; }
.boton-whatsapp:hover { background: #30462e; }
.despedida {
  padding: 2.8rem 1.35rem 3rem;
  text-align: center;
  background: #f9e5ce;
  border-top: 1px dashed #d8ab78;
}
.despedida > span { display: block; color: #9d5436; font-size: 1.1rem; margin-bottom: .65rem; }
.despedida p { font: 700 clamp(1.55rem, 3.5vw, 2.25rem)/1.15 var(--redonda); color: var(--verde); }
.firma { margin-top: .9rem; color: var(--terracota); font-size: .88rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 720px) {
  .portada { padding: 2.7rem 1.45rem 2.25rem; }
  .portada-interior {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "texto" "arte" "accion";
    grid-template-rows: auto;
  }
  h1 { font-size: clamp(3rem, 12vw, 5.7rem); margin: .75rem 0 .65rem; }
  .fecha { margin-top: .9rem; }
  .ilustracion { width: min(100%, 30rem); margin: .95rem auto 0; aspect-ratio: 1.55; }
  .accion { margin-top: .7rem; }
}
@media (max-width: 540px) {
  .eventos { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 350px) {
  .ceja { letter-spacing: .07em; gap: .4rem; }
  .ceja span { width: .45rem; }
  .corte { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  h1 { animation: entrada .85s ease-out both; }
  .tigrito-cumple { animation: mecer 5s 1s ease-in-out 2; }
  .edad-coronada {
    animation: mecer-corona 5.5s .45s ease-in-out 2;
    transform-origin: 54% 72%;
  }
  .destello { animation: flotar 4.6s ease-in-out 2; }
  .destello-dos, .destello-cuatro { animation-delay: .6s; }
  .destello-tres { animation-delay: 1.2s; }
  .evento-visible { animation: entrada .65s ease-out both; }
  .evento-cumple.evento-visible { animation-delay: .11s; }
}
@keyframes entrada {
  from { opacity: .3; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes mecer {
  0%, 100% { transform: rotate(0); }
  50% { transform: rotate(1.25deg); }
}
@keyframes mecer-corona {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-3px) rotate(2deg); }
}
@keyframes flotar {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
