/* Formaciones de Confetti Craft Co. (formaciones.confetticraftco.com). Usa las fuentes, colores y botones de la tienda
   (app.css) y le da su propia cara: noche de taller en ciruela con los pasteles del logo, videos reales del taller
   y un pase de entrada para el precio. Mobile first. */

.fm-body { background: var(--cream); }
.fm-wrap { width: min(100% - 40px, 1120px); margin-inline: auto; }

/* ---------- barra de arriba ---------- */
.fm-top { position: fixed; inset: 0 0 auto; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(8px + env(safe-area-inset-top)) 16px 8px; transition: background-color .3s var(--ease), box-shadow .3s var(--ease); }
.fm-brand img { width: 84px; height: auto; display: block; }
.fm-top-actions { display: flex; align-items: center; gap: 8px; }
.fm-store-btn { --bg: var(--ink); --fg: var(--cream); --bd: var(--ink); min-height: 36px; padding: 0 16px; font-size: 14px; }
.fm-top.solid { background: rgba(251, 243, 226, .92); backdrop-filter: blur(12px) saturate(1.4); -webkit-backdrop-filter: blur(12px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }

/* ---------- botones propios ---------- */
.btn.pink { --bg: var(--pink); --fg: var(--ink); --bd: var(--pink); }
.btn.glass { --bg: rgba(251, 243, 226, .1); --fg: var(--cream); --bd: rgba(251, 243, 226, .4); box-shadow: none; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn.glass:hover { --bg: rgba(251, 243, 226, .18); }

/* ---------- hero (13 nov, v2): claro y ordenado, con el letrero NFC de protagonista ---------- */
.fm-hero { position: relative; isolation: isolate; overflow: hidden; color: var(--ink);
  min-height: calc(var(--vh, 1vh) * 100); min-height: 100svh; display: flex; flex-direction: column;
  background: radial-gradient(70% 45% at 100% 0%, rgba(242, 163, 181, .32), transparent 70%),
    radial-gradient(60% 40% at 0% 100%, rgba(195, 184, 226, .3), transparent 70%), var(--cream); }
.fm-hero-in { width: min(100% - 40px, 1120px); margin: 0 auto; padding: calc(68px + env(safe-area-inset-top)) 0 56px; display: flex; flex-direction: column; flex: 1; gap: 16px; }
.fm-kicker { display: inline-flex; align-items: center; gap: 8px; font: 700 11px/1.2 var(--f-body); letter-spacing: .17em; text-transform: uppercase; color: var(--pink-ink); }
.fm-kicker svg { width: 13px; height: 13px; }
.fm-h1 { margin-top: 8px; font-family: var(--f-display); font-weight: 800; font-size: clamp(36px, 10vw, 68px); line-height: 1; letter-spacing: -.03em; text-wrap: balance; }
.fm-h1 em { font-family: var(--f-italic); font-style: italic; font-weight: 700; color: var(--pink-ink); }
.fm-h1 .w { display: inline-block; }
html.fm-js .fm-h1 .w { opacity: 0; transform: translateY(.4em); animation: fm-word .75s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms + 100ms); }
@keyframes fm-word { to { opacity: 1; transform: none; } }
.fm-lede { margin-top: 10px; max-width: 34em; font-size: 15px; line-height: 1.5; color: var(--ink-2); }

/* Tres fotos: la grande (letrero NFC) y dos al lado */
.fm-bento { display: grid; grid-template-columns: 1.45fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: clamp(230px, 33vh, 300px); }
.fm-tile { position: relative; margin: 0; overflow: hidden; border-radius: 20px; background: var(--cream-2); box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 14px 30px -20px rgba(43, 34, 48, .55); }
.fm-tile.t1 { grid-row: 1 / span 2; }
.fm-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.fm-tile figcaption { position: absolute; left: 8px; bottom: 8px; right: 8px; width: fit-content; max-width: calc(100% - 16px); padding: 4px 10px; border-radius: 99px;
  background: rgba(255, 253, 248, .92); color: var(--ink); font: 700 11.5px/1.3 var(--f-body); box-shadow: 0 4px 12px -6px rgba(43, 34, 48, .4); }
.fm-tile.t1 figcaption { font-size: 12.5px; padding: 5px 12px; }
html.fm-js .fm-tile { opacity: 0; transform: translateY(14px); animation: fm-tile .9s var(--ease) forwards; animation-delay: calc(var(--i) * 120ms + 250ms); }
@keyframes fm-tile { to { opacity: 1; transform: none; } }
@media (hover: hover) { .fm-tile:hover img { transform: scale(1.04); } }

.fm-hero-buy { margin-top: auto; display: grid; gap: 12px; }
.fm-price { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 14.5px; color: var(--ink-2); }
.fm-price b { font: 800 22px/1 var(--f-display); color: var(--ink); letter-spacing: -.01em; }
.fm-price s.was { font-size: 15px; }
.fm-price small { flex-basis: 100%; font-size: 13.5px; color: var(--ink-3); }
.fm-ctas { display: grid; gap: 10px; }
.fm-ctas .btn { width: 100%; }
.fm-down { position: absolute; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); translate: -50% 0; width: 30px; height: 40px; display: grid; place-items: center; }
.fm-down span { width: 13px; height: 13px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); rotate: 45deg; opacity: .7; animation: fm-down 1.8s ease-in-out infinite; }
@keyframes fm-down { 0%, 100% { transform: translate(-2px, -6px); opacity: .3; } 50% { transform: translate(2px, 2px); opacity: .85; } }
@media (max-height: 700px) { .fm-lede { display: none; } }

/* ---------- secciones ---------- */
.fm-sec { padding: 64px 0; position: relative; }
.fm-head { margin-bottom: 22px; }
.fm-label { display: inline-flex; align-items: center; gap: 8px; font: 700 12px/1.2 var(--f-body); letter-spacing: .17em; text-transform: uppercase; color: var(--pink-ink); }
.fm-label svg { width: 14px; height: 14px; flex: none; }
.fm-head h2 { margin-top: 8px; font-family: var(--f-display); font-weight: 800; font-size: clamp(30px, 8.4vw, 50px); line-height: 1.04; letter-spacing: -.025em; text-wrap: balance; }
.fm-head h2 em, .fm-end-card h2 em { font-family: var(--f-italic); font-style: italic; font-weight: 700; color: var(--pink-ink); }
.fm-sub { margin-top: 10px; color: var(--ink-2); max-width: 38em; }

html.fm-js .fm-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.fm-js .fm-reveal.in { opacity: 1; transform: none; }

/* Técnicas: pestañas y panel */
.fm-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px 16px; padding: 4px 20px 6px; scroll-snap-type: x proximity; }
.fm-tabs::-webkit-scrollbar { display: none; }
.fm-tab { flex: none; scroll-snap-align: start; padding: 10px 16px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink);
  font-weight: 700; font-size: 14.5px; cursor: pointer; transition: background-color .25s, border-color .25s, transform .25s var(--ease); }
.fm-tab:hover { border-color: var(--ink); }
.fm-tab[aria-selected="true"] { background: var(--c); border-color: var(--ink); transform: translateY(-1px); box-shadow: 0 3px 0 var(--ink); }
.fm-panel { background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--r-lg); box-shadow: 0 6px 0 var(--ink); overflow: hidden; }
.fm-panel-in { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 16px; align-items: start; }
.fm-art { aspect-ratio: 1; border-radius: 18px; background: color-mix(in srgb, var(--c) 34%, var(--paper)); display: grid; place-items: center; padding: 10px; }
.fm-art svg { width: 100%; height: auto; max-height: 100%; }
.fm-panel-ph { margin: 0; aspect-ratio: 1; border-radius: 18px; overflow: hidden; rotate: 2deg; border: 1.5px solid var(--ink); }
.fm-panel-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fm-panel-in:not(:has(.fm-panel-ph)) .fm-art { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
.fm-panel-tx { grid-column: 1 / -1; grid-row: 2; }
.fm-panel-tx h3 { font-family: var(--f-display); font-weight: 800; font-size: 24px; letter-spacing: -.015em; }
.fm-panel-tx p { margin-top: 6px; color: var(--ink-2); }
.fm-panel.swap .fm-panel-in > * { animation: fm-swap .5s var(--ease) both; }
.fm-panel.swap .fm-panel-in > :nth-child(2) { animation-delay: .06s; }
.fm-panel.swap .fm-panel-in > :nth-child(3) { animation-delay: .12s; }
@keyframes fm-swap { from { opacity: 0; transform: translateY(10px); } }

/* Los 6 meses: una noche de taller con los puntos que se llenan */
.fm-plan { background: var(--ink); color: var(--cream); }
.fm-plan .fm-label { color: var(--butter); }
.fm-plan .fm-head h2 em { color: var(--pink); }
.fm-dots { display: grid; grid-template-columns: repeat(9, 1fr); gap: 10px; padding: 18px; border-radius: var(--r-lg); background: rgba(251, 243, 226, .06); border: 1px solid rgba(251, 243, 226, .14); }
.fm-dots i, .fm-dot-start { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; }
.fm-dots i { border: 1.5px solid rgba(251, 243, 226, .3); background: transparent;
  transition: background-color .5s var(--ease), border-color .5s var(--ease), transform .5s var(--spring); transition-delay: calc(var(--i) * 55ms); }
.fm-dots.go i { border-color: transparent; background: var(--butter); transform: scale(1.04); }
.fm-dots.go i:nth-child(3n) { background: var(--pink); }
.fm-dots.go i:nth-child(4n+1) { background: var(--sky); }
.fm-dots.go i:nth-child(5n) { background: var(--mint); }
.fm-dot-start { background: var(--cream); }
.fm-dot-start svg { width: 60%; height: 60%; }
.fm-dots-cap { margin-top: 10px; font-size: 13.5px; color: rgba(251, 243, 226, .7); }
.fm-plan-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.fm-plan-list li { padding: 14px 16px 14px 18px; border-radius: 18px; background: rgba(251, 243, 226, .06); border-left: 4px solid var(--c); }
.fm-plan-list b { display: block; font-family: var(--f-head); font-size: 18px; }
.fm-plan-list span { display: block; margin-top: 3px; color: rgba(251, 243, 226, .75); font-size: 14.5px; }

/* Lo que vas a poder hacer */
.fm-rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 20px 8px; scroll-padding-inline: 20px; scrollbar-width: none; outline: none; }
.fm-rail::-webkit-scrollbar { display: none; }
.fm-made-c { flex: none; width: min(64vw, 270px); margin: 0; scroll-snap-align: start; position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--cream-2); }
.fm-made-c:nth-child(odd) { rotate: -1.2deg; }
.fm-made-c:nth-child(even) { rotate: 1.2deg; margin-top: 10px; }
.fm-made-c img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fm-made-c figcaption { position: absolute; left: 10px; bottom: 10px; padding: 5px 11px; border-radius: 99px; background: var(--c); border: 1.5px solid var(--ink); font-weight: 700; font-size: 12.5px; }
.fm-rail-foot { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.fm-bar { position: relative; flex: 1; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.fm-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: var(--ink); transition: transform .15s linear; }
.fm-swipe { font-size: 13px; color: var(--ink-3); white-space: nowrap; }

/* Inscripción: pasos y el pase con el precio */
.fm-join { background: var(--paper); }
.fm-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: s; }
.fm-steps li { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; }
.fm-steps li > span { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); border: 1.5px solid var(--ink); font-weight: 800; }
.fm-steps b { font-family: var(--f-head); font-size: 18px; }
.fm-steps p { margin-top: 2px; color: var(--ink-2); font-size: 15px; }
.fm-ticket { margin-top: 34px; background: var(--white); border: 1.5px solid var(--ink); border-radius: var(--r-lg); box-shadow: 0 8px 0 var(--ink); position: relative; }
.fm-t-top { padding: 20px 20px 18px; background: var(--pink-mist); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.fm-t-top h3 { margin-top: 6px; font-family: var(--f-display); font-weight: 800; font-size: 26px; line-height: 1.05; letter-spacing: -.02em; }
.fm-t-with { margin-top: 4px; color: var(--ink-2); font-size: 14px; }
.fm-t-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 0; }
.fm-t-meta div { padding: 8px 10px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); }
.fm-t-meta dt { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.fm-t-meta dd { margin: 2px 0 0; font-weight: 700; font-size: 14px; }
.fm-t-cut { position: relative; height: 0; border-top: 2px dashed var(--line); margin: 0 18px; }
.fm-t-cut::before, .fm-t-cut::after { content: ''; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink); }
.fm-t-cut::before { left: -32px; clip-path: inset(0 0 0 50%); }
.fm-t-cut::after { right: -32px; clip-path: inset(0 50% 0 0); }
.fm-t-body { padding: 20px; }
.fm-t-sale { display: flex; align-items: center; gap: 10px; }
.fm-t-sale s.was { font: 700 24px/1 var(--f-display); }
.fm-t-price { display: flex; align-items: flex-end; gap: 8px; margin-top: 6px; }
.fm-t-price b { font: 800 64px/.9 var(--f-display); letter-spacing: -.04em; }
.fm-t-price span { display: grid; font-weight: 800; font-size: 15px; padding-bottom: 6px; }
.fm-t-price small { font-weight: 500; font-size: 12.5px; color: var(--ink-3); }
.fm-t-split { margin-top: 8px; color: var(--ink-2); font-size: 14.5px; }
.fm-t-inc { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 9px; }
.fm-t-inc li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-size: 15px; }
.fm-t-inc svg { width: 20px; height: 20px; color: var(--ok); margin-top: 2px; }
.fm-t-pay { display: grid; gap: 3px; padding: 12px 14px; border-radius: 14px; background: var(--cream); font-size: 13.5px; color: var(--ink-2); margin-bottom: 16px; }
.fm-t-pay b { color: var(--ink); font-size: 14px; }
.fm-t-note { margin-top: 10px; font-size: 12.5px; color: var(--ink-3); }
.fm-t-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }

/* Testimonios */
.fm-tests { display: grid; gap: 14px; }
.fm-test { margin: 0; padding: 20px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); position: relative; }
.fm-test .q { font: 800 54px/1 var(--f-display); color: var(--pink); position: absolute; top: 6px; right: 16px; }
.fm-test blockquote { margin: 0; font-family: var(--f-head); font-size: 17px; line-height: 1.45; }
.fm-test figcaption { margin-top: 10px; display: grid; font-size: 14px; }
.fm-test figcaption span { color: var(--ink-3); }

/* Final */
.fm-end { padding-top: 24px; }
.fm-end-card { position: relative; overflow: hidden; isolation: isolate; border-radius: 30px; background: var(--ink); color: var(--cream); padding: 34px 22px; text-align: center; }
.fm-end-card .confetti-layer { position: absolute; inset: 0; z-index: -1; }
.fm-end-card .fm-label { color: var(--butter); }
.fm-end-card h2 { margin-top: 8px; font-family: var(--f-display); font-weight: 800; font-size: clamp(36px, 10vw, 58px); letter-spacing: -.03em; }
.fm-end-card h2 em { color: var(--pink); }
.fm-end-card p { margin: 10px auto 22px; max-width: 30em; color: rgba(251, 243, 226, .82); }

/* Barra para inscribirse */
.fm-bar-sticky { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 25; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 10px 10px 16px; border-radius: 20px; background: rgba(255, 253, 248, .96); border: 1.5px solid var(--ink); box-shadow: 0 16px 30px -18px rgba(43, 34, 48, .6);
  transform: translateY(140%); transition: transform .45s var(--ease); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.fm-bar-sticky.on { transform: none; }
.fm-bar-sticky .tx { display: grid; line-height: 1.2; }
.fm-bar-sticky b { font-size: 16px; }
.fm-bar-sticky s.was { font-size: 13px; margin-right: 2px; }
.fm-bar-sticky small { color: var(--ink-3); font-size: 12px; }
.has-cookiebar .fm-bar-sticky { display: none; }

/* Pie */
.fm-foot { background: var(--ink); color: var(--cream); padding: 44px 0 calc(28px + env(safe-area-inset-bottom)); }
.fm-foot-grid { display: grid; gap: 26px; }
.fm-foot-brand img { width: 150px; height: auto; background: var(--cream); border-radius: 16px; padding: 8px 12px; }
.fm-foot-brand p, .fm-foot-shop p { margin-top: 10px; color: rgba(251, 243, 226, .75); font-size: 14.5px; max-width: 30em; }
.fm-foot-shop .btn { margin-top: 12px; }
.fm-foot-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.fm-foot-links a, .fm-foot-links span { display: inline-flex; align-items: center; gap: 8px; padding: 5px 0; color: var(--cream); text-decoration: none; font-size: 14.5px; opacity: .9; }
.fm-foot-links svg { width: 18px; height: 18px; }
.fm-foot-bottom { margin-top: 30px; padding-top: 16px; border-top: 1px solid rgba(251, 243, 226, .16); display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; font-size: 13px; color: rgba(251, 243, 226, .6); }
.fm-foot-bottom nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.fm-foot-bottom a, .fm-foot-bottom button { color: inherit; font: inherit; background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: none; }
.fm-foot-bottom a:hover, .fm-foot-bottom button:hover { color: var(--cream); text-decoration: underline; }

.fm-body .noscript { padding: 20px; text-align: center; }

/* ---------- computadora ---------- */
@media (min-width: 760px) {
  .fm-top { padding-inline: 28px; }
  .fm-brand img { width: 104px; }
  .fm-panel-in { grid-template-columns: 200px 1fr 220px; gap: 24px; padding: 24px; align-items: center; }
  .fm-panel-tx { grid-column: auto; grid-row: auto; }
  .fm-panel-in:not(:has(.fm-panel-ph)) .fm-art { grid-column: auto; aspect-ratio: 1; }
  .fm-panel-in:not(:has(.fm-panel-ph)) { grid-template-columns: 200px 1fr; }
  .fm-dots { grid-template-columns: repeat(14, 1fr); }
  .fm-tests { grid-template-columns: repeat(2, 1fr); }
  .fm-foot-grid { grid-template-columns: 1.2fr 1fr .8fr; align-items: start; }
  .fm-end-card { padding: 54px 40px; }
  .fm-end .fm-ctas { justify-content: center; }
  .fm-bar-sticky { left: 50%; right: auto; width: min(560px, calc(100% - 40px)); translate: -50% 0; }
}
@media (min-width: 960px) {
  .fm-hero-in { display: grid; grid-template-columns: 1fr 1.05fr; grid-template-rows: auto auto 1fr; column-gap: 56px; row-gap: 26px; align-content: center; padding-top: 118px; padding-bottom: 84px; }
  .fm-hero-copy { grid-column: 1; grid-row: 1; align-self: end; }
  .fm-hero-buy { grid-column: 1; grid-row: 2; margin-top: 0; }
  .fm-bento { grid-column: 2; grid-row: 1 / span 3; height: min(64vh, 560px); align-self: center; gap: 12px; }
  .fm-lede { font-size: 17.5px; display: block; }
  .fm-ctas { grid-auto-flow: column; justify-content: start; }
  .fm-ctas .btn { width: auto; }
  .fm-tile { border-radius: 26px; }
  .fm-sec { padding: 96px 0; }
  .fm-plan-grid { display: grid; grid-template-columns: 1.1fr .9fr; grid-template-rows: auto 1fr; gap: 0 56px; align-items: start; }
  .fm-plan-grid .fm-dots-cap { grid-column: 1; }
  .fm-plan-list { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
  .fm-rail { padding-inline: max(20px, calc((100% - 1120px) / 2)); scroll-padding-inline: max(20px, calc((100% - 1120px) / 2)); }
  .fm-join-grid { display: grid; grid-template-columns: 1fr 440px; gap: 64px; align-items: start; }
  .fm-ticket { margin-top: 0; position: sticky; top: 90px; }
  .fm-faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  html.fm-js .fm-h1 .w, html.fm-js .fm-tile, .fm-down span { animation: none; opacity: 1; transform: none; }
  html.fm-js .fm-reveal { opacity: 1; transform: none; transition: none; }
  .fm-dots i { transition: none; }
}
