:root{
    --bg: #fff7f1;
    --paper: rgba(255,255,255,.78);
    --ink: #3a2f2b;
    --muted: #7a6b63;
  
    --accent: #caa189;
    --accent2:#9db7a6;
    --accent3:#d9b8c6;
    --line: rgba(58,47,43,.12);
  
    --r1: 26px;
    --r2: 18px;
    --shadow: 0 18px 55px rgba(0,0,0,.10);
  
    --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", sans-serif;
    --serif: ui-serif, Georgia, "Times New Roman", Times, serif;

    /* Altura del cover: ajustable y responsive */
  --cover-h: clamp(130px, 26vh, 170px);
  /* Qué parte del cover priorizar (sube/baja) */
  --cover-focus-y: 45%;

  }
  
  *{ box-sizing:border-box; }
  html,body{ height:100%; }
  
  body{
    margin:0;
    font-family: var(--sans);
    color: var(--ink);
    background:
      radial-gradient(900px 520px at 20% 10%, rgba(202,161,137,.22), transparent 55%),
      radial-gradient(820px 520px at 85% 15%, rgba(157,183,166,.24), transparent 55%),
      radial-gradient(820px 520px at 50% 90%, rgba(217,184,198,.18), transparent 55%),
      var(--bg);
    overflow-x:hidden;
  }
  
  canvas#dust{
    position: fixed;
    inset: 0;
    pointer-events:none;
    opacity:.85;
  }
  
  .wrap{
    width: min(520px, 92vw);
    margin: 16px auto 70px;
    position: relative;
  }
  
  .sheet{
    background: var(--paper);
    border: 1px solid rgba(255,255,255,.6);
    box-shadow: var(--shadow);
    border-radius: var(--r1);
    overflow:hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  
  .cover{
    position: relative;
    padding: 18px 18px 14px;
    background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,0));
    border-bottom: 1px solid rgba(58,47,43,.08);
  }
  
  .coverTop{ padding-bottom: 10px; }
  
  .kicker{
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: 11px;
    color: var(--muted);
    font-weight: 800;
  }
  .kicker.subtle{ letter-spacing:.12em; opacity:.95; }
  
  h1{
    margin: 10px 0 0;
    font-family: var(--serif);
    font-size: 46px;
    line-height: 1.02;
    color: #4a3b35;
  }
  
  .honoring{
    margin-top: 10px;
    display:flex;
    align-items:center;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--muted);
  }
  
  .pill{
    display:inline-flex;
    align-items:center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(202,161,137,.18);
    border: 1px solid rgba(202,161,137,.28);
    color:#4a3b35;
    font-weight: 900;
    letter-spacing: .06em;
  }
  
  .dot{
    width:10px;
    height:10px;
    border-radius:50%;
    background: var(--accent2);
    box-shadow: 0 0 0 4px rgba(157,183,166,.20);
  }
  
  .coverImage{
    margin-top: 12px;
    border-radius: 18px;
    border: 1px solid rgba(58,47,43,.10);
    background: rgba(255,255,255,.55);
    overflow:hidden;
    height: var(--cover-h);
    position: relative;
  }
  
  .coverImage img{
    width: 100%;
    height: 100%;
    display:block;
    object-fit: cover;                 /* recorte inteligente */
    object-position: 50% var(--cover-focus-y); /* ajusta el “encuadre” */
    transform: scale(1.02);            /* micro zoom para evitar bordes */
    filter: saturate(1.02) contrast(1.02);
  }
  
  /* Opcional: velo suave para que combine con tu UI */
  .coverImage::after{
    content:"";
    position:absolute;
    inset:0;
    background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,0));
    pointer-events:none;
  }
  
  .corner{
    position:absolute;
    right:-14px;
    top:-10px;
    width: 160px;
    opacity:.9;
    pointer-events:none;
  }
  
  .sec{
    padding: 16px 18px;
    border-bottom: 1px dashed rgba(58,47,43,.14);
  }
  .sec:last-child{ border-bottom:none; }
  
  .secTitle{
    font-size: 12px;
    letter-spacing:.18em;
    text-transform:uppercase;
    color: var(--muted);
    font-weight: 900;
    margin:0 0 10px;
  }
  
  .row{
    display:flex;
    gap: 12px;
    align-items:flex-start;
  }
  
  .icon{
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: rgba(157,183,166,.22);
    border: 1px solid rgba(157,183,166,.35);
    display:grid;
    place-items:center;
    flex: 0 0 auto;
  }
  
  .iconAlt{
    background: rgba(202,161,137,.20);
    border-color: rgba(202,161,137,.32);
  }
  .iconPink{
    background: rgba(217,184,198,.25);
    border-color: rgba(217,184,198,.35);
  }
  
  .row b{ display:block; font-size: 16px; color:#4a3b35; }
  .row small{ display:block; color: var(--muted); margin-top: 2px; line-height:1.4; }
  
  .count{
    display:flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
  }
  .chip{
    flex: 1 1 95px;
    min-width: 95px;
    text-align:center;
    padding: 10px 8px;
    border-radius: 16px;
    border: 1px dashed rgba(58,47,43,.20);
    background: rgba(255,255,255,.62);
  }
  .chip b{
    display:block;
    font-family: var(--serif);
    font-size: 22px;
    color:#4a3b35;
  }
  .chip span{
    display:block;
    margin-top: 2px;
    font-size: 11px;
    letter-spacing:.14em;
    text-transform:uppercase;
    color: var(--muted);
    font-weight: 800;
  }
  
  .media{
    border-radius: var(--r2);
    overflow:hidden;
    border: 1px solid rgba(58,47,43,.10);
    background: rgba(255,255,255,.65);
  }
  .media img{
    width: 100%;
    height: 260px;
    object-fit: cover;
    display:none;
  }
  .media .ph{
    padding: 18px;
    text-align:center;
    color: var(--muted);
  }
  .media .ph b{
    display:block;
    font-family: var(--serif);
    color:#4a3b35;
    font-size: 20px;
    margin-bottom: 6px;
  }
  
  .btns{ display:flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
  
  .btn{
    appearance:none;
    border:0;
    cursor:pointer;
    border-radius: 16px;
    padding: 12px 14px;
    font-family: inherit;
    font-weight: 900;
    font-size: 14px;
    letter-spacing:.02em;
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    gap: 10px;
    user-select:none;
    transition: transform .08s ease, filter .12s ease, background .12s ease;
  }
  .btn:active{ transform: translateY(1px); }
  
  .primary{
    background: var(--accent);
    color: white;
    box-shadow: 0 12px 30px rgba(202,161,137,.35);
  }
  .primary:hover{ filter: brightness(1.03); }
  
  .ghost{
    background: rgba(255,255,255,.62);
    border: 1px solid rgba(58,47,43,.14);
    color: var(--ink);
  }
  .ghost:hover{ background: rgba(255,255,255,.74); }
  
  .tiny{
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
    line-height:1.45;
  }
  
  .thanks{
    text-align:center;
    padding: 18px 18px 22px;
  }
  .thanks h2{
    margin: 0;
    font-family: var(--serif);
    font-size: 28px;
    color:#4a3b35;
  }
  .thanks p{
    margin: 8px 0 0;
    color: var(--muted);
    line-height:1.55;
    font-size: 14px;
  }
  
  .bunnyWrap{
    position: relative;
    margin-top: 14px;
    display:flex;
    justify-content:center;
  }
  .bunnySvg{
    width: 210px;
    opacity:.95;
    filter: drop-shadow(0 12px 18px rgba(0,0,0,.08));
  }
  
  .toast{
    margin-top: 10px;
    text-align:center;
    color: var(--muted);
    font-size: 12px;
    min-height: 16px;
  }
  
  .sp10{ height:10px; }
  
  /* Accesibilidad */
  @media (prefers-reduced-motion: reduce){
    canvas#dust{ display:none; }
    .btn{ transition:none; }
  }
  
  [hidden] { display: none !important; }

  /* =========================
   Roaming Bunny (curioso)
   ========================= */
.roamingBunny{
    position: fixed;
    left: 0;
    top: 0;
    width: 64px;
    height: 64px;
    z-index: 30;
    pointer-events: none; /* no estorba clicks */
    opacity: .95;
    filter: drop-shadow(0 12px 16px rgba(0,0,0,.10));
    transform: translate3d(-100px, -100px, 0) scale(1);
    will-change: transform;
  }
  
  .roamingBunnySvg{
    width: 100%;
    height: 100%;
    display:block;
  }
  
  /* hop: se aplica por JS alternando class */
  .roamingBunny.hop{
    animation: bunnyHop 520ms ease-in-out;
  }
  
  @keyframes bunnyHop{
    0%   { transform: translate3d(var(--bx), var(--by), 0) scale(1) rotate(var(--br)); }
    35%  { transform: translate3d(var(--bx), calc(var(--by) - 10px), 0) scale(1.03) rotate(var(--br)); }
    70%  { transform: translate3d(var(--bx), var(--by), 0) scale(.98) rotate(var(--br)); }
    100% { transform: translate3d(var(--bx), var(--by), 0) scale(1) rotate(var(--br)); }
  }
  
  /* si el usuario prefiere menos movimiento */
  @media (prefers-reduced-motion: reduce){
    .roamingBunny{ display:none; }
  }
  

  /* =========================
   Ultrasound Story Card
   ========================= */
.ultraCard{
    position: relative;
    border-radius: 22px;
    padding: 14px;
    border: 1px solid rgba(58,47,43,.10);
    background: rgba(255,255,255,.62);
    overflow: hidden;
    box-shadow: 0 16px 44px rgba(0,0,0,.08);
    margin-top: 12px; 
  }
  
  /* Brillo suave animado */
  .ultraCard::before{
    content:"";
    position:absolute;
    inset:-60px;
    background:
      radial-gradient(120px 120px at 20% 25%, rgba(217,184,198,.22), transparent 60%),
      radial-gradient(160px 160px at 85% 20%, rgba(157,183,166,.22), transparent 60%),
      radial-gradient(140px 140px at 65% 85%, rgba(202,161,137,.18), transparent 60%);
    animation: ultraGlow 7s ease-in-out infinite;
    pointer-events:none;
  }
  
  @keyframes ultraGlow{
    0%,100%{ transform: translate3d(0,0,0) scale(1); opacity: .95; }
    50%{ transform: translate3d(10px,-6px,0) scale(1.02); opacity: .85; }
  }
  
  .ultraFrame{
    position: relative;
    border-radius: 18px;
    overflow:hidden;
    border: 1px solid rgba(58,47,43,.10);
    background: rgba(255,255,255,.65);
  }
  
  /* Marco estilo “foto polaroid suave” */
  .ultraFrame::after{
    content:"";
    position:absolute;
    inset:0;
    border-radius: 18px;
    box-shadow:
      inset 0 0 0 2px rgba(255,255,255,.55),
      inset 0 -18px 28px rgba(0,0,0,.06);
    pointer-events:none;
  }
  
  .ultraFrame img{
    width: 100%;
    height: clamp(190px, 28vh, 240px); /* ✅ más pequeño en móvil */
    display:block;
    object-fit: cover;
    object-position: 50% 45%;
    transform: scale(1.01);
    filter: contrast(1.02) saturate(1.01);
  }
  
  /* texto */
  .ultraCaption{
    position: relative;
    margin-top: 10px;
    text-align:center;
  }
  .ultraCaption b{
    display:block;
    font-family: var(--serif);
    font-size: 20px;
    color:#4a3b35;
  }
  .ultraCaption small{
    display:block;
    margin-top: 4px;
    color: var(--muted);
    line-height:1.4;
  }
  
  /* Stickers */
  .ultraSticker{
    position:absolute;
    font-size: 22px;
    opacity: .9;
    filter: drop-shadow(0 10px 14px rgba(0,0,0,.12));
    transform-origin: center;
    animation: stickerFloat 2.8s ease-in-out infinite;
    pointer-events:none;
  }
  
  .ultraStickerA{ left: 12px; top: 10px; transform: rotate(-10deg); }
  .ultraStickerB{ right: 14px; top: 14px; transform: rotate(12deg); animation-delay: .4s; }
  .ultraStickerC{ right: 18px; bottom: 14px; transform: rotate(-8deg); animation-delay: .9s; }
  
  @keyframes stickerFloat{
    0%,100%{ transform: translateY(0) rotate(var(--r,0deg)); }
    50%{ transform: translateY(-6px) rotate(var(--r,0deg)); }
  }
  
  /* Si prefieren menos movimiento */
  @media (prefers-reduced-motion: reduce){
    .ultraCard::before,
    .ultraSticker{ animation:none; }
  }

  
  /* =========================
   Story Phrase Section
   ========================= */

.storyCard{
  position: relative;
  margin-top: 14px;
  padding: 18px 16px 20px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,255,255,.55));
  border: 1px solid rgba(58,47,43,.10);
  box-shadow: 0 14px 36px rgba(0,0,0,.08);
  overflow: hidden;
}

/* marco suave */
.storyCard::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:22px;
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.5),
    inset 0 -20px 30px rgba(0,0,0,.05);
  pointer-events:none;
}

/* texto */
.storyText{
  position: relative;
  z-index:2;
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: 1.65;
  text-align: center;
  color: #4a3b35;
  animation: storyFadeIn .9s ease forwards;
}

/* palabras mágicas */
.storyText .highlight{
  color: var(--accent);
  font-weight: 700;
  position: relative;
}

.storyText .highlight::after{
  content:"";
  position:absolute;
  left:-4px;
  right:-4px;
  bottom:2px;
  height:6px;
  background: rgba(202,161,137,.28);
  border-radius: 6px;
  z-index:-1;
}

/* decor bosque arriba */
.storyDecor.top{
  position:absolute;
  top:-12px;
  left:0;
  right:0;
  height:40px;
  background:
    radial-gradient(30px 30px at 10% 70%, rgba(157,183,166,.35), transparent 60%),
    radial-gradient(40px 40px at 80% 80%, rgba(217,184,198,.35), transparent 60%);
}

/* decor bosque abajo */
.storyDecor.bottom{
  position:absolute;
  bottom:-12px;
  left:0;
  right:0;
  height:40px;
  background:
    radial-gradient(30px 30px at 20% 10%, rgba(202,161,137,.35), transparent 60%),
    radial-gradient(40px 40px at 70% 20%, rgba(157,183,166,.35), transparent 60%);
}

/* animación entrada */
@keyframes storyFadeIn{
  from{
    opacity:0;
    transform: translateY(14px);
  }
  to{
    opacity:1;
    transform: translateY(0);
  }
}

/* accesibilidad */
@media (prefers-reduced-motion: reduce){
  .storyText{ animation:none; }
}


/* =========================
   HERO V2 (storybook + interactive)
   ========================= */
   .coverV2{
    padding: 16px 16px 18px;
    position: relative;
    overflow:hidden;
  }
  
  .heroBg{
    position:absolute;
    inset:-40px;
    background:
      radial-gradient(220px 180px at 20% 20%, rgba(157,183,166,.35), transparent 60%),
      radial-gradient(260px 220px at 85% 25%, rgba(217,184,198,.32), transparent 60%),
      radial-gradient(260px 220px at 50% 95%, rgba(202,161,137,.28), transparent 60%);
    filter: blur(2px);
    animation: heroDrift 10s ease-in-out infinite;
    pointer-events:none;
  }
  
  @keyframes heroDrift{
    0%,100%{ transform: translate3d(0,0,0) scale(1); }
    50%{ transform: translate3d(14px,-10px,0) scale(1.02); }
  }
  
  .heroContent{
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 10px 8px 12px;
  }
  
  .heroTop{
    display:flex;
    justify-content: space-between;
    align-items:center;
    gap: 10px;
    margin-bottom: 8px;
  }
  
  .heroBadge{
    display:inline-flex;
    align-items:center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.70);
    border: 1px solid rgba(58,47,43,.12);
    font-weight: 900;
    font-size: 12px;
    letter-spacing: .10em;
    color: #4a3b35;
    text-transform: uppercase;
  }
  
  .heroHint{
    font-size: 12px;
    color: var(--muted);
    opacity: .92;
  }
  
  .heroTitle{
    margin: 6px 0 0;
    line-height: 1.02;
  }
  
  .heroTitleSmall{
    display:block;
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: .22em;
    font-weight: 900;
    font-size: 12px;
    color: var(--muted);
  }
  
  .heroTitleName{
    display:block;
    margin-top: 8px;
    font-family: var(--serif);
    font-size: 48px;
    color:#4a3b35;
    text-shadow: 0 10px 28px rgba(0,0,0,.10);
    position: relative;
  }
  .heroTitleName:has(.nameRevealBtn)::after{
    content: none !important;
  }
  /* contorno sutil tipo “cuento” */
  .heroTitleName::after{
    content: attr(data-outline);
    position:absolute;
    left:0;
    right:0;
    top:0;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255,255,255,.55);
    text-stroke: 1.5px rgba(255,255,255,.55);
    z-index:-1;
    transform: translateY(2px);
    opacity: .85;
  }
  
  /* subtitle */
  .heroSubtitle{
    margin: 10px auto 0;
    max-width: 42ch;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
  }
  
  /* media */
  .heroMedia{
    position: relative;
    z-index: 2;
    margin-top: 12px;
    border-radius: 18px;
    overflow:hidden;
    border: 1px solid rgba(58,47,43,.10);
    background: rgba(255,255,255,.55);
    height: clamp(150px, 28vh, 190px);
  }
  
  .heroMedia img{
    width: 100%;
    height: 100%;
    display:block;
    object-fit: cover;
    object-position: 50% 45%;
    transform: scale(1.02);
    filter: contrast(1.02) saturate(1.03);
  }
  
  /* buttons */
  .heroActions{
    display:flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content:center;
    margin-top: 12px;
  }
  
  .heroBtn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding: 12px 14px;
    border-radius: 16px;
    font-weight: 900;
    font-size: 14px;
    text-decoration:none;
    border: 1px solid rgba(58,47,43,.12);
    background: rgba(255,255,255,.62);
    color: var(--ink);
    cursor:pointer;
    transition: transform .08s ease, filter .12s ease, background .12s ease;
    user-select:none;
  }
  .heroBtn:active{ transform: translateY(1px); }
  
  .heroBtnPrimary{
    background: var(--accent);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 12px 30px rgba(202,161,137,.35);
  }
  .heroBtnPrimary:hover{ filter: brightness(1.03); }
  
  .heroBtnGhost:hover{ background: rgba(255,255,255,.76); }
  
  /* deco */
  .heroDeco{
    position:absolute;
    inset:0;
    pointer-events:none;
    z-index: 4;
  }
  
  .leaf, .spark, .heart{
    position:absolute;
    opacity: .9;
    filter: drop-shadow(0 12px 16px rgba(0,0,0,.10));
    animation: floaty 3.6s ease-in-out infinite;
  }
  
  .leaf.l1{ left: 10px; top: 74px; transform: rotate(-12deg); }
  .leaf.l2{ right: 12px; top: 88px; transform: rotate(18deg); animation-delay: .4s; }
  .spark.s1{ left: 18px; bottom: 26px; animation-delay: .8s; }
  .spark.s2{ right: 18px; bottom: 26px; animation-delay: 1.1s; }
  .heart.h1{ left: 50%; top: 44px; transform: translateX(-50%); animation-delay: .6s; }
  
  @keyframes floaty{
    0%,100%{ transform: translateY(0) rotate(var(--rot,0deg)); }
    50%{ transform: translateY(-8px) rotate(var(--rot,0deg)); }
  }
  
  @media (prefers-reduced-motion: reduce){
    .heroBg, .leaf, .spark, .heart{ animation:none; }
  }
  
  /* =========================
   INTRO OVERLAY - Envelope V3
   ========================= */
.introOverlay{
    position: fixed;
    inset: 0;
    z-index: 999;
    display: grid;
    place-items: center;
    background:
      radial-gradient(900px 520px at 20% 10%, rgba(202,161,137,.26), transparent 55%),
      radial-gradient(820px 520px at 85% 15%, rgba(157,183,166,.26), transparent 55%),
      radial-gradient(820px 520px at 50% 90%, rgba(217,184,198,.22), transparent 55%),
      rgba(255,247,241,.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  
  .introWrap{
    width: min(520px, 92vw);
    text-align:center;
    padding: 14px 10px 18px;
  }
  
  .introTitle{
    margin-bottom: 14px;
  }
  .introMini{
    display:block;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .introBig{
    display:block;
    margin-top: 6px;
    font-family: var(--serif);
    font-size: 34px;
    color:#4a3b35;
    text-shadow: 0 10px 26px rgba(0,0,0,.10);
  }
  .introTap{
    display:block;
    margin-top: 10px;
    color: var(--muted);
    font-weight: 800;
    font-size: 13px;
  }
  
  /* Botón sobre */
  .envV3{
    position: relative;
    width: min(420px, 90vw);
    height: min(380px, 52vh);
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    outline: none;
    border-radius: 26px;
    overflow: visible;       /* 👈 OJO: ya NO recortamos aquí */
    isolation: isolate;
  }
  
  .envV3:active{ transform: translateY(1px); }
  /* Boca del sobre: aquí se recorta TODO lo que sale (incluye blur/shadow) */
.envMouth{
    position:absolute;
    left: 6%;
    right: 6%;
    top: 22%;
    height: 62%;
    border-radius: 26px;
    overflow: hidden;         /* ✅ EL RECORTE REAL */
    z-index: 2;               /* ✅ debajo del frente/flap */
    pointer-events:none;
  }
  
  /* “papel” del sobre */
  .envBack{
    position:absolute;
    inset: 18% 6% 16% 6%;
    border-radius: 26px;
    background: rgba(255,255,255,.64);
    border: 1px solid rgba(58,47,43,.10);
    box-shadow: 0 26px 70px rgba(0,0,0,.12);
    z-index: 0;
  }
  
  /* triangulos laterales */
  .envSide{
    position:absolute;
    bottom: 16%;
    width: 46%;
    height: 38%;
    background: rgba(202,161,137,.18);
    border: 1px solid rgba(58,47,43,.10);
    box-shadow: inset 0 12px 20px rgba(0,0,0,.05);
    z-index: 1;
  }
  .envSide.left{
    left: 6%;
    border-right: none;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    border-radius: 0 0 0 26px;
  }
  .envSide.right{
    right: 6%;
    border-left: none;
    clip-path: polygon(100% 0, 0 50%, 100% 100%);
    border-radius: 0 0 26px 0;
  }
  
  .envBottom{
    position:absolute;
    left: 6%;
    right: 6%;
    bottom: 16%;
    height: 38%;
    background: rgba(255,255,255,.62);
    border: 1px solid rgba(58,47,43,.10);
    border-top: none;
    border-radius: 0 0 26px 26px;
  
    z-index: 4;                   /* ✅ frente encima de carta */
  }
  
  
  /* flap superior */
  .envFlap{
    position:absolute;
    left: 6%;
    right: 6%;
    top: 18%;
    height: 36%;
    transform-origin: top center;
    background: rgba(157,183,166,.22);
    border: 1px solid rgba(58,47,43,.10);
    border-bottom: none;
    border-radius: 26px 26px 10px 10px;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    transition: transform 680ms cubic-bezier(.2,.9,.2,1);
  
    z-index: 5;                   /* ✅ flap encima */
  }
  
  
  /* sello */
  .waxSeal{
    position:absolute;
    left: 50%;
    bottom: 24%;
    transform: translateX(-50%);
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: rgba(217,184,198,.40);
    border: 1px solid rgba(58,47,43,.10);
    box-shadow: 0 16px 28px rgba(0,0,0,.10);
    display:grid;
    place-items:center;
    z-index: 6;
  }
  .waxInner{
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(255,255,255,.62);
    border: 1px solid rgba(58,47,43,.10);
    display:grid;
    place-items:center;
    font-size: 18px;
  }
  
  /* la carta que sale */
  .letterV3{
    position:absolute;
    left: 5%;
    right: 5%;
    top: 18%;
    height: 76%;
    border-radius: 20px;
    background: rgba(255,255,255,.84);
    border: 1px solid rgba(58,47,43,.10);
    box-shadow: 0 18px 40px rgba(0,0,0,.10);
  
    transform: translateY(95px);  /* ✅ “dentro” */
    transition: transform 680ms cubic-bezier(.2,.9,.2,1);
    overflow:hidden;
  }
  
  
  
  /* borde “papel” */
  .letterV3::before{
    content:"";
    position:absolute;
    inset: 10px;
    border-radius: 16px;
    border: 1px dashed rgba(58,47,43,.18);
    pointer-events:none;
  }
  
  .letterHead{
    display:flex;
    justify-content: space-between;
    padding: 14px 14px 0;
    color: var(--muted);
    font-weight: 900;
  }
  .sealV3, .leafV3{
    display:inline-grid;
    place-items:center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: rgba(202,161,137,.14);
    border: 1px solid rgba(202,161,137,.22);
  }
  
  .letterText{
    display:block;
    padding: 8px 16px 0;
  }
  .lt1{
    display:block;
    font-family: var(--serif);
    font-size: 34px;
    color:#4a3b35;
    text-shadow: 0 10px 24px rgba(0,0,0,.10);
  }
  .lt2{
    display:block;
    margin-top: 6px;
    color: var(--muted);
    font-weight: 800;
    font-size: 13px;
  }
  .lt3{
    display:inline-flex;
    margin-top: 12px;
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(157,183,166,.16);
    border: 1px solid rgba(157,183,166,.24);
    color:#4a3b35;
    font-weight: 900;
    letter-spacing:.06em;
    font-size: 12px;
  }
  
  .letterName{
    position:absolute;
    left:0; right:0;
    bottom: 16px;
    color: var(--muted);
    font-weight: 900;
    font-size: 13px;
  }
  
  /* estado abierto */
  .envV3.open .envFlap{ transform: rotateX(160deg); }
  .envV3.open .letterV3{
    transform: translateY(18px);  /* ✅ sale visible pero controlada */
  }
  .envV3.open .waxSeal{ opacity:.0; transform: translateX(-50%) scale(.9); transition: 420ms ease; }
  
  /* overlay closing */
  .introOverlay.closing{
    animation: overlayOut 520ms ease forwards;
  }
  @keyframes overlayOut{
    to{ opacity: 0; transform: scale(1.02); }
  }
  
  /* foot */
  .introFoot{
    margin-top: 14px;
    display:flex;
    justify-content:center;
  }
  .chipV3{
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.62);
    border: 1px solid rgba(58,47,43,.12);
    color: var(--muted);
    font-weight: 800;
    font-size: 12px;
  }
  
  /* Accesibilidad */
  @media (prefers-reduced-motion: reduce){
    .envFlap, .letterV3, .introOverlay.closing{ transition:none; animation:none; }
  }
  
  
  /* =========================
     Name Reveal (Aurora)
     ========================= */
  .nameRevealBtn{
    appearance:none;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
    display:inline-grid;
    gap: 8px;
    place-items: center;
    margin: 0 auto;
  }
  
  .nameRevealLabel{
    display:block;
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: .22em;
    font-weight: 900;
    font-size: 11px;
    color: var(--muted);
  }
  .nameRevealBtn.revealed .nameRevealLabel{
    display: none;
  }
  .nameRevealMystery{
    display:block;
    font-family: var(--serif);
    font-size: 44px;
    color:#4a3b35;
    text-shadow: 0 10px 28px rgba(0,0,0,.10);
  }
  
  .nameRevealReal{
    display:none; /* se muestra al revelar */
    font-family: var(--serif);
    font-size: 52px;
    color:#4a3b35;
    text-shadow: 0 12px 32px rgba(0,0,0,.12);
    position: relative;
    padding-right: 46px; 
  }
  
  /* revelado */
  .nameRevealBtn.revealed .nameRevealMystery{ display:none; }
  .nameRevealBtn.revealed .nameRevealReal{ display:block; }
  
  /* animación del nombre */
  .nameRevealBtn.revealed .nameRevealReal{
    animation: namePop 820ms cubic-bezier(.2,.9,.2,1) forwards;
  }
  @keyframes namePop{
    0%{ opacity:0; transform: translateY(14px) scale(.96); letter-spacing:.22em; filter: blur(2px); }
    45%{ opacity:1; transform: translateY(-6px) scale(1.03); letter-spacing:.08em; filter: blur(0); }
    100%{ opacity:1; transform: translateY(0) scale(1); letter-spacing:.02em; }
  }
  
  /* brillitos alrededor del nombre */
  .nameRevealBtn.revealed .nameRevealReal::after{
    content:"✨";
    position:absolute;
    right: -42px;   /* más separado */
    top: 6px;
    font-size: 22px;
    opacity: .85;
    animation: sparkle 1.2s ease-in-out infinite;
  }  
  @keyframes sparkle{
    0%,100%{ transform: translateY(0) scale(1); opacity:.75; }
    50%{ transform: translateY(-6px) scale(1.06); opacity:1; }
  }
  
  /* =========================
   Cover lock (blur until name reveal)
   ========================= */
.heroMedia{
    position: relative; /* ya lo tienes, pero lo reforzamos */
  }
  
  .coverImg{
    transition: filter 700ms ease, transform 700ms ease, opacity 700ms ease;
  }
  
  /* Estado bloqueado (default) */
  .heroMedia.locked .coverImg{
    filter: blur(10px) saturate(.85) contrast(.95);
    transform: scale(1.06);
    opacity: .95;
  }
  
  /* velo encima */
  .coverVeil{
    position:absolute;
    inset:0;
    display:grid;
    place-items:center;
    background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,.10));
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 1;
    transition: opacity 700ms ease, transform 700ms ease;
  
    pointer-events: auto;   /* ✅ ahora sí se puede hacer click */
    cursor: pointer;
  }
  
  .coverVeilText{
    text-align:center;
    padding: 10px 12px;
    border-radius: 18px;
    background: rgba(255,255,255,.62);
    border: 1px solid rgba(58,47,43,.10);
    box-shadow: 0 14px 30px rgba(0,0,0,.08);
    color: #4a3b35;
  }
  
  .coverVeilText span{
    display:block;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
  }
  
  .coverVeilText b{
    display:block;
    margin-top: 4px;
    font-family: var(--serif);
    font-size: 18px;
  }
  
  /* Estado desbloqueado */
  .heroMedia.unlocked .coverImg{
    filter: blur(0) saturate(1.03) contrast(1.02);
    transform: scale(1.02);
    opacity: 1;
  }
  .heroMedia.unlocked .coverVeil{
    opacity: 0;
    transform: translateY(8px);
  }
  
  /* accesibilidad */
  @media (prefers-reduced-motion: reduce){
    .coverImg, .coverVeil{ transition:none; }
  }
  

  #ultraNameReal{
    animation: ultraReveal .7s ease forwards;
  }
  
  @keyframes ultraReveal{
    from{
      opacity:0;
      transform: translateY(6px) scale(.98);
    }
    to{
      opacity:1;
      transform: translateY(0) scale(1);
    }
  }
  .hiddenName{
    display: none;
    }


    /* ---------- Name Reveal button states ---------- */
.nameRevealBtn{
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
  }
  
  .nameRevealBtn .nameRevealReal{ display: none; }
  .nameRevealBtn .nameRevealLabel,
  .nameRevealBtn .nameRevealMystery{ display: inline-block; }
  
  /* Cuando ya se reveló */
  .nameRevealBtn.revealed .nameRevealLabel,
  .nameRevealBtn.revealed .nameRevealMystery{
    display: none;
  }
  
  .nameRevealBtn.revealed .nameRevealReal{
    display: inline-block;
    animation: namePop .7s ease both;
  }
  
  @keyframes namePop{
    from{ opacity:0; transform: translateY(6px) scale(.98); filter: blur(4px); }
    to{ opacity:1; transform: translateY(0) scale(1); filter: blur(0); }
  }
.heroContent{ position: relative; z-index: 4; } /* antes tenías 3 */
.heroDeco{ z-index: 2; } /* antes 4 */
.heroBg{ z-index: 1; }
.ultraCard{ position: relative; }
.ultraCard::before{ z-index: 0; }
.ultraFrame, .ultraCaption, .ultraSticker{ position: relative; z-index: 1; }

/* Más compacto para que no “se coma” el fondo en móviles */
.ultraFrame img{
  height: clamp(160px, 24vh, 210px);
}

/* Ultrasound lock (blur until reveal) */
.ultraCard.locked .ultraFrame img{
    filter: blur(10px) saturate(.85) contrast(.95);
    transform: scale(1.06);
    opacity: .92;
    transition: filter 700ms ease, transform 700ms ease, opacity 700ms ease;
  }
  
  .ultraCard.unlocked .ultraFrame img{
    filter: blur(0) saturate(1.02) contrast(1.01);
    transform: scale(1.01);
    opacity: 1;
  }
  