/* Paleta y escala tomadas de tokens.css del sitio de Lumoo */
:root {
  --color-coral: #fe756f;
  --color-coral-soft: #fec0c0;
  --color-sun: #fed463;
  --color-sky: #7fd7eb;
  --color-cream: #fff5eb;
  --color-cream-alt: #fbeddd;
  --color-coral-strong: #b9483f;
  --color-sky-deep: #1d5e6d;
  --color-ink: #3a3a38;
  --color-ink-soft: #6e6a64;
  --color-line: #e7daca;

  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --text-sm: 0.9375rem;
  --text-base: 1rem;
  --text-2xl: clamp(1.75rem, 1.45rem + 1.3vw, 2.125rem);
  --leading-tight: 1.15;
  --leading-normal: 1.6;

  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;

  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --radius-pill: 999px;
}
@media (min-width: 768px) { :root { --text-base: 1.0625rem; } }

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(var(--space-6), env(safe-area-inset-top)) var(--space-4) max(var(--space-8), env(safe-area-inset-bottom));
  background:
    radial-gradient(60rem 40rem at 10% -10%, #fff 0%, transparent 60%),
    radial-gradient(40rem 30rem at 110% 110%, var(--color-cream-alt) 0%, transparent 70%),
    var(--color-cream);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  overflow-x: hidden;
}

/* ---------- Tarjeta central ---------- */
.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 34rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6) var(--space-6);
  box-shadow: 0 10px 40px -18px rgba(185, 72, 63, 0.35);
}

.logo {
  display: block;
  width: min(72%, 300px);
  height: auto;
  margin: 0 auto var(--space-4);
}

h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-2xl);
  line-height: var(--leading-tight);
  letter-spacing: -0.01em;
  color: var(--color-coral-strong);
  margin: var(--space-6) auto var(--space-4);
  max-width: 20ch;
  text-wrap: balance;
}

p { margin: 0 auto var(--space-4); max-width: 60ch; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
  padding: var(--space-3) var(--space-6);
  min-height: 48px;
  border-radius: var(--radius-pill);
  background: var(--color-coral-strong);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 16px -8px rgba(185, 72, 63, 0.8);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn svg { width: 1.25em; height: 1.25em; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -8px rgba(185, 72, 63, 0.8); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn:focus-visible { outline: 3px solid var(--color-sky-deep); outline-offset: 3px; }

.handle {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
}

.sign {
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
}
.sign span {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-coral-strong);
}

.tagline {
  margin: var(--space-6) auto 0;
  padding-top: var(--space-4);
  border-top: 1px dashed var(--color-line);
  font-style: italic;
  color: var(--color-sky-deep);
}

/* ---------- Torre de bloques ---------- */
.blocks {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
  height: 64px;
}
.block {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.12);
}
.block svg { width: 70%; height: 70%; }
.b1 { background: var(--color-coral); }
.b2 { background: var(--color-sun); transform: translateY(-14px) rotate(-4deg); }
.b3 { background: var(--color-sky); }
.b4 { background: var(--color-coral-soft); transform: translateY(-8px) rotate(5deg); }

/* ---------- Decoración flotante ---------- */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.float { position: absolute; display: block; height: auto; opacity: 0.85; }
.f1 { width: 60px; top: 14px; left: 18px; }
.f2 { width: 48px; top: 34px; right: 22px; }
.f3 { width: 40px; bottom: 18%; left: 10%; }
.f4 { width: 46px; bottom: 8%;  right: 12%; }
.f5 { width: 34px; top: 46%; left: 3%; }
.f6 { width: 38px; top: 52%; right: 4%; }
.f7 { width: 72px; bottom: 3%; left: 42%; opacity: 0.35; }

/* En celular la tarjeta ocupa todo el ancho: se baja un poco para que las
   caritas de arriba se vean completas y no queden tapadas. */
@media (max-width: 767px) {
  body { padding-top: max(5.5rem, env(safe-area-inset-top)); place-items: start center; }
}
@media (min-width: 768px) {
  .f1 { width: 96px; top: 6%; left: 10%; }
  .f2 { top: 14%; }
  .f2 { width: 80px; right: 12%; }
  .f7 { width: 110px; left: 6%; bottom: 6%; }
}

/* ---------- Movimiento suave (solo si la persona no pidió reducirlo) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .float { animation: drift 14s ease-in-out infinite alternate; }
  .f2 { animation-duration: 17s; animation-delay: -4s; }
  .f3 { animation-duration: 19s; animation-delay: -8s; }
  .f4 { animation-duration: 16s; animation-delay: -2s; }
  .f5 { animation-duration: 21s; animation-delay: -6s; }
  .f6 { animation-duration: 18s; animation-delay: -10s; }
  .f7 { animation-duration: 24s; }

  .card { animation: rise 0.9s cubic-bezier(.2,.7,.2,1) both; }

  /* Los bloques se apilan uno por uno al cargar y luego se mecen apenas */
  .block { animation: drop 0.7s cubic-bezier(.3,1.4,.5,1) both, sway 6s ease-in-out 1.8s infinite alternate; }
  .b1 { animation-delay: 0.3s, 1.8s; }
  .b2 { animation-delay: 0.5s, 2.4s; --r: -4deg; --y: -14px; }
  .b3 { animation-delay: 0.7s, 3s; }
  .b4 { animation-delay: 0.9s, 3.6s; --r: 5deg; --y: -8px; }
}

@keyframes drift {
  from { transform: translate(0, 0) rotate(0deg); }
  to   { transform: translate(10px, -18px) rotate(8deg); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes drop {
  from { opacity: 0; transform: translateY(-60px) rotate(var(--r, 0deg)); }
  to   { opacity: 1; transform: translateY(var(--y, 0)) rotate(var(--r, 0deg)); }
}
@keyframes sway {
  from { transform: translateY(var(--y, 0)) rotate(var(--r, 0deg)); }
  to   { transform: translateY(calc(var(--y, 0px) - 3px)) rotate(calc(var(--r, 0deg) + 2deg)); }
}
