/* Radio Alguien · «Carta de la bandada»: el sobre llega con Alita, se rompe el sello y se despliega la carta. */
html.al-cb-abierta { overflow: hidden; }
.al-cb { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; padding: clamp(14px, 3vw, 40px);
  background: radial-gradient(60% 50% at 50% 42%, rgba(126,23,190,.34), transparent 70%), rgba(11,7,16,.9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .45s ease; color: #0b0710; }
.al-cb[hidden] { display: none !important; }
.al-cb.al-on { opacity: 1; }
.al-cb-chispas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.al-cb-x { position: absolute; top: 18px; right: 18px; z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(244,239,233,.25); background: rgba(11,7,16,.5); color: #f4efe9; display: grid; place-items: center; cursor: pointer; transition: background .25s, transform .25s; }
.al-cb-x svg { width: 18px; height: 18px; }
.al-cb-x:hover { background: #7E17BE; transform: rotate(90deg); }
.al-cb-x:focus-visible, .al-cb-abrir:focus-visible, .al-cb-cta:focus-visible, .al-cb-cta2:focus-visible { outline: 2px solid #cfa8ef; outline-offset: 4px; }

/* ——— escena del sobre ——— */
.al-cb-escena { grid-area: 1 / 1; position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; width: min(100%, 460px); transition: opacity .6s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.al-cb-sobre-k { margin: 0; font: 500 .64rem/1.4 var(--texto-f, sans-serif); letter-spacing: .26em; text-transform: uppercase; color: #cfa8ef; opacity: 0; animation: al-cb-sube .7s ease .9s forwards; }
.al-cb-sobre-t { margin: 8px 0 26px; font: italic 400 clamp(1.9rem, 1.3rem + 2.4vw, 2.7rem)/1.05 var(--serif, Georgia, serif); color: #f4efe9; opacity: 0; animation: al-cb-sube .8s ease 1.05s forwards; }
.al-cb-vuelo { position: absolute; top: 40px; left: 50%; width: 76px; height: 76px; pointer-events: none; opacity: 0; animation: al-cb-vuela 1.5s cubic-bezier(.3,.6,.3,1) .05s forwards; }
.al-cb-vuelo svg { width: 100%; height: 100%; fill: #cfa8ef; filter: drop-shadow(0 6px 14px rgba(207,168,239,.45)); }
.al-cb-sobre { position: relative; width: min(84vw, 360px); aspect-ratio: 1.55; perspective: 900px; opacity: 0; transform: translateY(-60px) rotate(-6deg); animation: al-cb-llega 1.1s cubic-bezier(.25,.9,.3,1.15) .55s forwards; }
.al-cb-sobre-fondo { position: absolute; inset: 0; border-radius: 10px; background: linear-gradient(160deg, #3a1350, #1d0b28); box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); }
.al-cb-sobre-hoja { position: absolute; left: 7%; right: 7%; top: 8%; height: 84%; border-radius: 6px; background: #fbf8f4; padding: 18% 12% 0; display: grid; align-content: start; gap: 9px; transition: transform .9s cubic-bezier(.2,.8,.2,1) .45s; z-index: 1; }
.al-cb-sobre-hoja span { height: 5px; border-radius: 3px; background: rgba(126,23,190,.18); }
.al-cb-sobre-hoja span:nth-child(2) { width: 80%; } .al-cb-sobre-hoja span:nth-child(3) { width: 60%; }
.al-cb-sobre-frente { position: absolute; inset: 0; border-radius: 10px; z-index: 2;
  background: linear-gradient(200deg, #fbf8f4 0%, #efe6f4 100%);
  clip-path: polygon(0 0, 50% 56%, 100% 0, 100% 100%, 0 100%);
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 9%; }
.al-cb-sobre-frente b { font: 600 .56rem/1 var(--texto-f, sans-serif); letter-spacing: .24em; text-transform: uppercase; color: rgba(126,23,190,.7); }
.al-cb-sobre-solapa { position: absolute; left: 0; right: 0; top: 0; height: 58%; z-index: 3; transform-origin: top center; transition: transform .7s cubic-bezier(.4,.1,.3,1) .15s, z-index 0s .5s;
  background: linear-gradient(180deg, #f8f3fb, #e7dcef); clip-path: polygon(0 0, 100% 0, 50% 100%); border-radius: 10px 10px 0 0; filter: drop-shadow(0 4px 6px rgba(0,0,0,.18)); }
.al-cb-sello { position: absolute; left: 50%; top: 58%; z-index: 4; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #c447e0, #7E17BE 45%, #c41a5c 100%); box-shadow: 0 6px 16px rgba(126,23,190,.55), inset 0 -3px 6px rgba(0,0,0,.25), inset 0 2px 4px rgba(255,255,255,.25);
  animation: al-cb-late 1.8s ease-in-out 1.8s infinite; transition: transform .35s ease, opacity .35s ease; }
.al-cb-sello::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 1px dashed rgba(255,255,255,.35); }
.al-cb-sello svg { width: 30px; height: 24px; }
.al-cb-abrir { margin-top: 30px; display: inline-flex; align-items: center; gap: 14px; padding: 8px 8px 8px 24px; border: 0; border-radius: 99px; background: #f4efe9; color: #0b0710; cursor: pointer;
  font: 600 .68rem/1 var(--texto-f, sans-serif); letter-spacing: .16em; text-transform: uppercase; opacity: 0; animation: al-cb-sube .7s ease 1.5s forwards; transition: transform .25s ease, box-shadow .25s ease; }
.al-cb-abrir svg { width: 34px; height: 34px; padding: 9px; border-radius: 50%; background: #7E17BE; color: #fff; box-sizing: border-box; transition: transform .3s ease; }
.al-cb-abrir:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(207,168,239,.6); }
.al-cb-abrir:hover svg { transform: translateX(3px); }

/* abrir: se rompe el sello, se levanta la solapa y asoma la carta */
.al-cb--abriendo .al-cb-sello { animation: none; transform: scale(1.35); opacity: 0; }
.al-cb--abriendo .al-cb-sobre-solapa { transform: rotateX(180deg); z-index: 0; }
.al-cb--abriendo .al-cb-sobre-hoja { transform: translateY(-46%); z-index: 2; }
.al-cb--abriendo .al-cb-abrir, .al-cb--abriendo .al-cb-sobre-k, .al-cb--abriendo .al-cb-sobre-t { opacity: 0 !important; transition: opacity .3s; animation: none; }
.al-cb--leyendo .al-cb-escena { opacity: 0; transform: translateY(40px) scale(.92); pointer-events: none; }

/* ——— la carta ——— */
.al-cb-hoja { grid-area: 1 / 1; position: relative; z-index: 2; text-align: left; width: min(100%, 640px); max-height: min(88vh, 900px); overflow-y: auto; overscroll-behavior: contain;
  padding: clamp(28px, 5vw, 56px) clamp(22px, 5vw, 60px) clamp(26px, 4vw, 44px); border-radius: 18px; outline: none;
  background: linear-gradient(180deg, rgba(126,23,190,.05), transparent 160px), repeating-linear-gradient(0deg, rgba(11,7,16,.018) 0 1px, transparent 1px 3px), #fbf8f4;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(126,23,190,.18);
  opacity: 0; visibility: hidden; transform: translateY(70px) scale(.94); transition: opacity .7s ease .1s, transform 1s cubic-bezier(.2,.8,.2,1), visibility 0s .8s;
  scrollbar-width: thin; scrollbar-color: rgba(126,23,190,.35) transparent; }
.al-cb-hoja::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; border-radius: 18px 18px 0 0; background: linear-gradient(90deg, #7E17BE, #c41a8c 55%, #E93B24); }
.al-cb--leyendo .al-cb-hoja { opacity: 1; visibility: visible; transform: none; transition: opacity .7s ease .1s, transform 1s cubic-bezier(.2,.8,.2,1), visibility 0s; }
.al-cb-cab { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 18px; padding-bottom: 16px; border-bottom: 1px solid rgba(126,23,190,.18); }
.al-cb-k { display: inline-flex; align-items: center; gap: 9px; font: 600 .6rem/1.4 var(--texto-f, sans-serif); letter-spacing: .24em; text-transform: uppercase; color: #7E17BE; }
.al-cb-k i { width: 6px; height: 6px; border-radius: 50%; background: #E93B24; box-shadow: 0 0 0 4px rgba(233,59,36,.15); }
.al-cb-fecha { font: italic 400 1.02rem/1 var(--serif, Georgia, serif); color: #6b6470; }
.al-cb-titulo { margin: 26px 0 18px; font: 500 clamp(2rem, 1.3rem + 2.6vw, 3rem)/1.02 var(--display, sans-serif); letter-spacing: -.045em; color: #0b0710; }
.al-cb-titulo em { font-family: var(--serif, Georgia, serif); font-weight: 400; letter-spacing: -.02em; background: linear-gradient(100deg, #7E17BE 10%, #b02a9a 60%, #E93B24 110%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .05em; }
.al-cb-saludo { margin: 0 0 18px; font: italic 400 1.28rem/1.4 var(--serif, Georgia, serif); color: #7E17BE; }
.al-cb-p { margin: 0 0 16px; font: 400 1.01rem/1.78 var(--texto-f, sans-serif); color: #2b2525; }
.al-cb-cierre { margin: 22px 0 0; font: 500 1.12rem/1.6 var(--texto-f, sans-serif); color: #0b0710; }
.al-cb-firma { position: relative; margin: 28px 0 6px; }
.al-cb-firma span { display: block; font: 400 .98rem/1.5 var(--texto-f, sans-serif); color: #4b4450; }
.al-cb-firma b { display: block; margin-top: 4px; font: italic 400 clamp(1.7rem, 1.3rem + 1.4vw, 2.2rem)/1.1 var(--serif, Georgia, serif); color: #0b0710; }
.al-cb-firma-golo { position: absolute; right: 0; bottom: -4px; width: 58px; height: 58px; fill: #7E17BE; opacity: .9; transform: rotate(-8deg); }
.al-cb-pd { margin-top: 26px; padding-top: 20px; border-top: 1px dashed rgba(126,23,190,.3); }
.al-cb-pd-t { margin: 0; font: 400 1.04rem/1.6 var(--texto-f, sans-serif); color: #2b2525; }
.al-cb-pd-t em { font: italic 400 1.35rem/1 var(--serif, Georgia, serif); color: #7E17BE; }
.al-cb-pd-s { margin: 12px 0 10px; font: 600 .58rem/1.4 var(--texto-f, sans-serif); letter-spacing: .2em; text-transform: uppercase; color: #8a8290; }
.al-cb-huellas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px 8px; }
.al-cb-huellas li { aspect-ratio: 1; display: grid; place-items: center; border-radius: 12px; background: rgba(126,23,190,.06); opacity: 0; transform: scale(.6); }
.al-cb-huellas svg { width: 74%; height: 74%; fill: #7E17BE; }
.al-cb--leyendo .al-cb-huellas li { animation: al-cb-firma .5s cubic-bezier(.3,1.5,.5,1) forwards; animation-delay: calc(2.6s + var(--i) * 90ms); }
.al-cb--directo .al-cb-huellas li { animation-delay: calc(.4s + var(--i) * 40ms); }
.al-cb-paso { margin-top: 26px; padding: 20px 22px; border-radius: 14px; background: #f1e8f8; }
.al-cb-paso-k { margin: 0 0 6px; font: 600 .58rem/1.4 var(--texto-f, sans-serif); letter-spacing: .22em; text-transform: uppercase; color: #7E17BE; }
.al-cb-paso-t { margin: 0 0 16px; font: 400 .96rem/1.6 var(--texto-f, sans-serif); color: #2b2525; }
.al-cb-acc { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.al-cb-cta { display: inline-flex; align-items: center; gap: 14px; padding: 7px 7px 7px 22px; border-radius: 99px; background: #0b0710; color: #fff; text-decoration: none;
  font: 600 .66rem/1 var(--texto-f, sans-serif); letter-spacing: .15em; text-transform: uppercase; transition: transform .25s ease, background .25s ease; }
.al-cb-cta svg { width: 32px; height: 32px; padding: 8px; border-radius: 50%; background: #7E17BE; color: #fff; box-sizing: border-box; transition: transform .3s ease; }
.al-cb-cta:hover { transform: translateY(-2px); background: #2a1238; } .al-cb-cta:hover svg { transform: translateX(3px); }
.al-cb-cta2 { border: 0; background: none; padding: 6px 2px; cursor: pointer; font: 600 .66rem/1 var(--texto-f, sans-serif); letter-spacing: .15em; text-transform: uppercase; color: #4b4450; border-bottom: 1px solid rgba(75,68,80,.35); }
.al-cb-cta2:hover { color: #7E17BE; border-color: #7E17BE; }
.al-cb-nota { margin: 14px 0 0; font: 400 .78rem/1.55 var(--texto-f, sans-serif); color: #6b6470; }

/* el texto aparece párrafo por párrafo, como si se escribiera */
.al-cb-hoja .al-cb-titulo, .al-cb-hoja [style*="--i"]:not(li) { opacity: 0; transform: translateY(12px); }
.al-cb--leyendo .al-cb-titulo { animation: al-cb-sube .8s ease .55s forwards; }
.al-cb--leyendo .al-cb-hoja [style*="--i"]:not(li) { animation: al-cb-sube .8s ease forwards; animation-delay: calc(.75s + var(--i) * 260ms); }
.al-cb--directo .al-cb-titulo { animation-delay: .15s; }
.al-cb--directo .al-cb-hoja [style*="--i"]:not(li) { animation-delay: calc(.2s + var(--i) * 70ms); }

/* botón para releer la carta en Mi camino vegano */
.al-ra-cal-releer { display: inline-flex; align-items: center; gap: 8px; margin: 4px auto 12px; padding: 6px 4px; border: 0; background: none; cursor: pointer; color: #cfa8ef;
  font: italic 400 1rem/1 var(--serif, Georgia, serif); border-bottom: 1px solid rgba(207,168,239,.35); }
.al-ra-cal-releer svg { width: 16px; height: 12px; }
.al-ra-cal-releer:hover { color: #fff; border-color: #fff; }

@keyframes al-cb-sube { to { opacity: 1; transform: none; } }
@keyframes al-cb-llega { 0% { opacity: 0; transform: translateY(-60px) rotate(-6deg); } 60% { opacity: 1; transform: translateY(8px) rotate(2deg); } 100% { opacity: 1; transform: none; } }
@keyframes al-cb-vuela { 0% { opacity: 0; transform: translate(-60vw, 60px) rotate(18deg) scale(.7); } 25% { opacity: 1; } 70% { opacity: 1; transform: translate(-50%, -10px) rotate(-6deg) scale(1); } 100% { opacity: 0; transform: translate(45vw, -120px) rotate(-18deg) scale(.6); } }
@keyframes al-cb-late { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.1); } 24% { transform: scale(1); } 36% { transform: scale(1.06); } }
@keyframes al-cb-firma { to { opacity: 1; transform: none; } }
@media (max-width: 560px) {
  .al-cb-huellas { grid-template-columns: repeat(8, 1fr); gap: 6px; }
  .al-cb-huellas li { border-radius: 8px; }
  .al-cb-x { top: 10px; right: 10px; width: 40px; height: 40px; }
  .al-cb-firma { padding-right: 56px; } .al-cb-firma-golo { width: 46px; height: 46px; }
}
/* con «reducir movimiento» la carta igual se despliega, con desplazamientos más cortos */
@media (prefers-reduced-motion: reduce) {
  .al-cb-sobre { animation-duration: .8s; }
  .al-cb-vuelo { animation-duration: 1.2s; }
  .al-cb-sello { animation: none; }
}
