/* ============================================================
   FLORES PARA TI — styles.css
   Módulo 8 meses · 21 de septiembre
   Paleta del proyecto + acento de flores amarillas
============================================================ */

:root {
  /* Sistema existente */
  --tf:   #5DC4A8;
  --tf-d: #3A9A80;
  --gd:   #D4AF6A;
  --wh:   #FFFDF9;
  --cr:   #FDF6EE;
  --tx:   #3A2520;
  --tx-m: #7A5048;
  --tx-l: #AA8070;
  --sd:   0 4px 20px rgba(60,30,20,.09), 0 1px 4px rgba(60,30,20,.06);
  --sd3:  0 16px 48px rgba(60,30,20,.17), 0 4px 12px rgba(60,30,20,.08);

  /* Flor amarilla */
  --sf:   #F2B705;
  --sf-d: #C98A06;
  --sf-l: #FFD95A;
  --sf-p: #FFF3D1;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Nunito', 'Helvetica Neue', sans-serif;
  --ease:  cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--sans);
  color: var(--tx);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100svh;
  background: linear-gradient(160deg, #FFF6DC 0%, #FDF8F2 48%, #E8F7F0 100%) fixed;
  background-color: var(--cr);
}

/* ══ MENÚ ═══════════════════════════════════════════════ */
.btn-back {
  position: fixed;
  top: 13px;
  left: 14px;
  z-index: 10;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  color: rgba(90,60,40,.6);
  text-decoration: none;
  background: rgba(255,253,249,.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(242,183,5,.25);
  border-radius: 20px;
  padding: 6px 14px;
  box-shadow: 0 2px 10px rgba(60,30,20,.08);
}
.btn-back:active { opacity: .6; }

/* ══ PANTALLAS ══════════════════════════════════════════ */
.stage {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0 auto;
}

.screen {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 100svh;
  padding: 64px 22px 48px;
  text-align: center;
}
.screen.active {
  display: flex;
  animation: fade-up .7s var(--ease) both;
}
.screen--quiet { gap: 26px; }
.screen--letter { justify-content: flex-start; padding-top: 72px; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Aparición escalonada (pantallas 6 y 7) */
.reveal { animation: fade-up .8s var(--ease) both; animation-delay: var(--d, 0s); }

/* ══ TIPOGRAFÍA ═════════════════════════════════════════ */
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--sf-d);
}

.title {
  font-family: var(--serif);
  font-size: clamp(40px, 11vw, 54px);
  font-weight: 600;
  line-height: 1.05;
}
.title em { font-style: italic; color: var(--sf-d); }
.title--md { font-size: clamp(34px, 9vw, 44px); font-weight: 500; }

.subtitle {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
  line-height: 1.2;
}

.lead {
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  line-height: 1.5;
  color: var(--tx-m);
  max-width: 330px;
}

.whisper {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--sf-d);
  max-width: 320px;
}

.hint {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--tx-l);
  margin-top: -8px;
}

/* ══ BOTONES ════════════════════════════════════════════ */
.btn {
  width: 100%;
  max-width: 290px;
  min-height: 52px;
  padding: 14px 28px;
  border: none;
  border-radius: 26px;
  background: linear-gradient(135deg, var(--sf-l) 0%, var(--sf) 60%, var(--sf-d) 100%);
  color: var(--tx);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .4px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(201,138,6,.3), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), opacity .6s var(--ease);
  -webkit-appearance: none;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: default; }
.btn:focus-visible, .chip:focus-visible, .envelope:focus-visible, .btn-quiet:focus-visible {
  outline: 2px solid var(--sf-d);
  outline-offset: 3px;
}

.btn-quiet {
  background: none;
  border: 1px solid rgba(201,138,6,.3);
  border-radius: 22px;
  padding: 11px 24px;
  min-height: 44px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--tx-m);
  cursor: pointer;
}
.btn-quiet:active { background: rgba(242,183,5,.08); }

/* ══ TARJETA ════════════════════════════════════════════ */
.card {
  width: 100%;
  max-width: 380px;
  background: rgba(255,253,249,.92);
  border: 1px solid rgba(242,183,5,.22);
  border-radius: 22px;
  padding: 24px 24px 22px;
  box-shadow: var(--sd);
}
.card-title {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
  margin-bottom: 10px;
}
.card-text {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
  color: var(--tx-m);
}

/* ══ POLAROID ═══════════════════════════════════════════ */
.polaroid {
  width: min(250px, 72vw);
  background: var(--wh);
  border-radius: 18px;
  padding: 12px 12px 16px;
  box-shadow: var(--sd3);
  transform: rotate(-1.5deg);
}
.polaroid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 10px;
  background: var(--sf-p);
}
.polaroid figcaption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--tx-m);
  margin-top: 10px;
}

/* ══ CHIPS ══════════════════════════════════════════════ */
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 380px;
}
.chip {
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 24px;
  border: 1px solid rgba(201,138,6,.28);
  background: rgba(255,253,249,.9);
  color: var(--tx-m);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--sd);
  transition: background .5s var(--ease), border-color .5s var(--ease), color .5s var(--ease);
}
.chip[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--sf-p), #FFE9A6);
  border-color: var(--sf);
  color: var(--tx);
  cursor: default;
}
.chip[aria-pressed="true"]::before { content: '✿ '; color: var(--sf-d); }

.collect-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: fade-up .8s var(--ease) both;
}
.collect-done[hidden] { display: none; }

/* ══ CAPÍTULO Y CONTADOR ════════════════════════════════ */
.chapter {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--sf-d);
  opacity: .8;
}

.petal-count {
  position: fixed;
  top: 13px;
  right: 14px;
  z-index: 10;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--sf-d);
  background: rgba(255,253,249,.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(242,183,5,.25);
  border-radius: 20px;
  padding: 6px 14px;
  box-shadow: 0 2px 10px rgba(60,30,20,.08);
}
.petal-count:empty { display: none; }

/* ══ LÍNEA DE TIEMPO — 8 MESES ══════════════════════════ */
.timeline {
  list-style: none;
  width: 100%;
  max-width: 360px;
  text-align: left;
  position: relative;
  padding-left: 8px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 16px;
  bottom: 16px;
  width: 1px;
  background: linear-gradient(var(--sf-l), var(--tf));
  opacity: .6;
}
.timeline li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 5px 0;
  position: relative;
}
.month {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(201,138,6,.35);
  background: var(--wh);
  color: var(--tx-m);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--sd);
  transition: background .5s var(--ease), border-color .5s var(--ease);
}
.month[aria-pressed="true"] {
  background: radial-gradient(circle at 35% 35%, var(--sf-l), var(--sf));
  border-color: var(--sf-d);
  color: var(--tx);
  cursor: default;
}
.month-text {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.4;
  color: var(--tx-m);
  padding-top: 2px;
}
.month-name {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--tx-l);
}
.month-line { display: block; }
.month[aria-pressed="false"] + .month-text .month-line { display: none; }
.month[aria-pressed="true"] + .month-text .month-line { animation: fade-up .6s var(--ease) both; }

/* ══ FOTOS ESCONDIDAS ═══════════════════════════════════ */
.snaps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 380px;
}
.snap {
  position: relative;
  background: var(--wh);
  border: none;
  border-radius: 14px;
  padding: 6px 6px 8px;
  box-shadow: var(--sd);
  cursor: pointer;
  overflow: hidden;
}
.snap:nth-child(1) { transform: rotate(-1.5deg); }
.snap:nth-child(3) { transform: rotate(1.5deg); }
.snap img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 9px;
  background: var(--sf-p);
}
.snap-caption {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--tx-m);
  margin-top: 5px;
}
.snap-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--sf);
  background: linear-gradient(160deg, var(--sf-p), #FDF8F2);
  border-radius: 14px;
  transition: opacity .8s var(--ease);
}
.snap[aria-pressed="true"] { cursor: default; }
.snap[aria-pressed="true"] .snap-cover { opacity: 0; }

/* ══ PREGUNTAS ══════════════════════════════════════════ */
.quiz {
  width: 100%;
  max-width: 380px;
  background: rgba(255,253,249,.92);
  border: 1px solid rgba(242,183,5,.22);
  border-radius: 22px;
  padding: 22px 20px 16px;
  box-shadow: var(--sd);
}
.quiz-q { display: flex; flex-direction: column; gap: 10px; animation: fade-up .6s var(--ease) both; }
.quiz-q[hidden] { display: none; }
.quiz .card-title { font-size: 22px; margin-bottom: 4px; }
.option {
  min-height: 48px;
  padding: 11px 16px;
  border-radius: 16px;
  border: 1px solid rgba(201,138,6,.25);
  background: var(--wh);
  color: var(--tx-m);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .5s var(--ease), border-color .5s var(--ease), opacity .5s var(--ease);
}
.option:disabled { cursor: default; }
.option.wrong { opacity: .4; text-decoration: line-through; }
.option.right {
  background: linear-gradient(135deg, var(--sf-p), #FFE9A6);
  border-color: var(--sf);
  color: var(--tx);
}
.option.right::before { content: '✿ '; color: var(--sf-d); }
.quiz-feedback {
  min-height: 24px;
  margin-top: 10px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--sf-d);
}

/* ══ PROMESAS ═══════════════════════════════════════════ */
.promises {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 360px;
}
.promise {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px dashed rgba(201,138,6,.4);
  background: rgba(255,253,249,.9);
  box-shadow: var(--sd);
  cursor: pointer;
  font-family: var(--serif);
  transition: background .6s var(--ease), border-color .6s var(--ease);
}
.promise-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--sf-d);
}
.promise-label::before { content: '✉ '; }
.promise-text { display: none; font-size: 19px; line-height: 1.5; color: var(--tx); }
.promise[aria-pressed="true"] {
  border-style: solid;
  border-color: var(--sf);
  background: linear-gradient(160deg, #FFFDF9, var(--sf-p));
  cursor: default;
}
.promise[aria-pressed="true"] .promise-text { display: block; animation: fade-up .7s var(--ease) both; }

/* ══ MANTENER PRESIONADO ════════════════════════════════ */
.btn-hold {
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
}
.btn-hold::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,253,249,.45);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.btn-hold.holding::before { transform: scaleX(1); transition: transform 2.4s linear; }
.btn-hold.holding { box-shadow: 0 0 0 6px rgba(242,183,5,.18), 0 4px 18px rgba(201,138,6,.3); }
.letter-ps { font-style: italic; font-size: 16px; color: var(--tx-l); }

/* ══ LA FLOR ════════════════════════════════════════════ */
.flower-slot { display: flex; justify-content: center; }

.flower {
  display: block;
  width: 220px;
  height: auto;
  overflow: visible;
  transform-origin: 50% 100%;
  animation: deco-sway 7s ease-in-out infinite;
}
.flower-slot--small .flower  { width: 150px; }
.flower-slot--bouquet .flower { width: min(290px, 78vw); }
/* Hasta que JS la coloque en su lugar */
body > .flower { display: none; }

@keyframes deco-sway {
  0%, 100% { transform: rotate(-1.2deg); }
  50%      { transform: rotate(1.2deg); }
}

.stop-sf   { stop-color: var(--sf); }
.stop-sf-l { stop-color: var(--sf-l); }
.stop-sf-d { stop-color: var(--sf-d); }
.stop-sf-p { stop-color: var(--sf-p); }
.stop-core { stop-color: #8A5A08; }
.seed      { fill: #6E4506; opacity: .55; }

.stem {
  fill: none;
  stroke: var(--tf-d);
  stroke-width: 3.5;
  stroke-linecap: round;
}
.leaf { fill: var(--tf); }
#petal { stroke: var(--sf-d); stroke-width: .8; stroke-opacity: .35; }

/* Brillo detrás de la flor: crece con el progreso (--p lo pone JS) */
.halo {
  opacity: calc(var(--p, 0) * .9);
  transition: opacity 1s var(--ease);
  transform-box: fill-box;
  transform-origin: center;
}
.flower.glow .halo { animation: glow-pulse 1.2s var(--ease); }

@keyframes glow-pulse {
  0%, 100% { opacity: calc(var(--p, 0) * .9); }
  40%      { opacity: 1; transform: scale(1.08); }
}

/* Pétalos: ocultos hasta .visible */
.petal {
  opacity: 0;
  transform: scale(.2);
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transition: opacity .8s var(--ease), transform .8s cubic-bezier(.34, 1.2, .64, 1);
}
.petal.visible { opacity: 1; transform: scale(1); }

/* Flores laterales: solo en el ramo */
.side { opacity: 0; }
.bouquet .side { opacity: 1; }
.side .stem { stroke-dasharray: 1; stroke-dashoffset: 1; }
.side .leaf, .bloom-head { opacity: 0; }
.bloom-head { transform-box: fill-box; transform-origin: center; }

.bouquet .side .stem { animation: stem-grow 1.6s var(--ease) forwards; }
.bouquet .side .leaf { animation: fade-in .8s var(--ease) forwards; }
.bouquet .bloom-head { animation: flower-bloom 1.4s var(--ease) forwards; }

.bouquet .side-l .stem       { animation-delay: .9s; }
.bouquet .side-l .leaf       { animation-delay: 1.8s; }
.bouquet .side-l .bloom-head { animation-delay: 2.1s; }
.bouquet .side-r .stem       { animation-delay: 2s; }
.bouquet .side-r .leaf       { animation-delay: 2.9s; }
.bouquet .side-r .bloom-head { animation-delay: 3.2s; }

@keyframes stem-grow    { to { stroke-dashoffset: 0; } }
@keyframes fade-in      { to { opacity: 1; } }
@keyframes flower-bloom {
  from { opacity: 0; transform: scale(.2) rotate(-25deg); }
  to   { opacity: 1; transform: scale(1)  rotate(0); }
}

/* ══ SOBRE Y CARTA ══════════════════════════════════════ */
.envelope {
  margin: auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--serif);
}
.env-body {
  position: relative;
  width: 200px;
  height: 130px;
  border-radius: 12px;
  background: linear-gradient(165deg, var(--wh), #FBF1DC);
  border: 1px solid rgba(201,138,6,.22);
  box-shadow: var(--sd3);
  animation: seal-float 5s ease-in-out infinite;
}
.env-flap {
  position: absolute;
  inset: 0 0 38% 0;
  background: linear-gradient(180deg, #FDF4E0, #F8E8C4);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  border-radius: 12px 12px 0 0;
}
.env-seal {
  position: absolute;
  left: 50%;
  top: 62%;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 35% 35%, var(--sf-l), var(--sf-d));
  color: var(--wh);
  font-size: 22px;
  box-shadow: 0 3px 10px rgba(201,138,6,.4);
}
.env-hint {
  font-size: 19px;
  font-style: italic;
  color: var(--tx-m);
}

@keyframes seal-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.letter {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
}
.screen--letter.open .envelope { display: none; }
.screen--letter.open .letter   { display: flex; }

.letter-card {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(165deg, #FFFDF9 0%, #FDF8F0 50%, #FBF4E8 100%);
  border: 1px solid rgba(212,175,106,.28);
  border-radius: 20px;
  padding: 32px 26px 28px;
  box-shadow: var(--sd3);
  transform-origin: 50% 0;
  animation: letter-unfold .8s var(--ease) both;
}
@keyframes letter-unfold {
  from { opacity: 0; transform: scaleY(.6) translateY(-12px); }
  to   { opacity: 1; transform: scaleY(1)  translateY(0); }
}

.letter-deco {
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--sf);
  margin-bottom: 8px;
}
.letter-title {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(212,175,106,.25);
}
.letter-body {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.8;
  color: var(--tx-m);
}
.letter-body p + p { margin-top: 14px; }
.letter-sign {
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  color: var(--tx-m);
  margin-top: 24px;
}
.letter-sign span { font-size: 24px; font-weight: 600; font-style: normal; color: var(--tx); }

.date {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--tx-l);
}

/* ══ PÉTALOS FLOTANTES ══════════════════════════════════ */
.particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.particles span {
  position: absolute;
  top: -20px;
  width: 9px;
  height: 13px;
  border-radius: 50% 50% 50% 50% / 65% 65% 35% 35%;
  background: linear-gradient(var(--sf-l), var(--sf));
  opacity: 0;
  animation: petal-fall var(--t) linear var(--delay) infinite;
}
@keyframes petal-fall {
  0%   { opacity: 0;   transform: translate(0, 0) rotate(0); }
  15%  { opacity: .4; }
  85%  { opacity: .35; }
  100% { opacity: 0;   transform: translate(40px, 105vh) rotate(220deg); }
}

/* ══ DESKTOP ════════════════════════════════════════════ */
@media (min-width: 700px) {
  .flower { width: 240px; }
  .flower-slot--small .flower { width: 160px; }
}

/* ══ ACCESIBILIDAD ══════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .particles { display: none; }
  .flower, .env-body, .flower.glow .halo, .btn-song[aria-pressed="true"] { animation: none; }
  .reveal, .bouquet .side .stem, .bouquet .side .leaf, .bouquet .bloom-head {
    animation-duration: .01ms;
    animation-delay: 0s;
  }
  .screen.active, .letter-card, .collect-done { animation-duration: .3s; }
}

/* ══ NUESTRA CANCIÓN ════════════════════════════════════ */
.btn-song {
  position: fixed;
  top: 13px;
  left: 92px;
  z-index: 10;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  color: rgba(90,60,40,.6);
  background: rgba(255,253,249,.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(242,183,5,.25);
  border-radius: 20px;
  padding: 6px 14px;
  box-shadow: 0 2px 10px rgba(60,30,20,.08);
  cursor: pointer;
}
.btn-song[aria-pressed="true"] {
  color: var(--sf-d);
  border-color: var(--sf);
  animation: song-pulse 2.8s ease-in-out infinite;
}
@keyframes song-pulse {
  0%, 100% { box-shadow: 0 2px 10px rgba(60,30,20,.08); }
  50%      { box-shadow: 0 0 0 5px rgba(242,183,5,.16); }
}

/* ══ FRASE DE LAS PEQUEÑAS COSAS ════════════════════════ */
.collect-line {
  min-height: 54px;
  max-width: 340px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.45;
  color: var(--tx-m);
}

/* ══ CLIN — los deditos que abren la carta ══════════════ */
.clin-hands {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 140px;
  height: 56px;
}
.finger {
  position: absolute;
  bottom: 0;
  width: 14px;
  height: 46px;
  border-radius: 8px 8px 5px 5px;
  background: linear-gradient(180deg, #FCE7CF, #F3CFA8);
  border: 1px solid rgba(201,138,6,.25);
  transform-origin: 50% 100%;
  transition: transform .9s var(--ease);
}
.finger-l { left: 50%; margin-left: -7px; transform: translateX(-46px) rotate(25deg); }
.finger-r { left: 50%; margin-left: -7px; transform: translateX(46px) rotate(-25deg); }
.clin-spark {
  position: absolute;
  top: -4px;
  left: 50%;
  margin-left: -8px;
  font-size: 16px;
  color: var(--sf);
  opacity: 0;
  transform: scale(.4);
  transition: opacity .5s var(--ease) .75s, transform .5s var(--ease) .75s;
}
.screen--letter.clin .finger-l { transform: translateX(-26px) rotate(25deg); }
.screen--letter.clin .finger-r { transform: translateX(26px) rotate(-25deg); }
.screen--letter.clin .clin-spark { opacity: 1; transform: scale(1.5); }

/* ══ MODO SUBIR FOTOS (8meses/?subir) ═══════════════════ */
.upload-panel {
  position: fixed;
  inset: 0;
  z-index: 20;
  overflow-y: auto;
  padding: 24px 16px;
  background: rgba(253,248,242,.97);
}
.upload-box {
  max-width: 460px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.upload-note { font-size: 14px; line-height: 1.5; color: var(--tx-m); }
.upload-key {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--tx-l);
}
.upload-key input {
  font: 16px var(--sans);
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(201,138,6,.3);
  background: var(--wh);
  color: var(--tx);
}
.upload-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.upload-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: var(--wh);
  box-shadow: var(--sd);
}
.upload-item img {
  width: 76px;
  height: 95px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--sf-p);
  flex-shrink: 0;
}
.upload-item .btn-quiet { display: inline-flex; align-items: center; margin: 6px 0 4px; }
.upload-name { font-size: 13px; font-weight: 700; color: var(--tx); }
.upload-status { font-size: 13px; color: var(--sf-d); min-height: 18px; }
