/* ==========================================================================
   Polish layer — loaded after styles.css and theme.css.
   Animated section backgrounds, scroll reveals and visual fixes for the
   social widgets, footer and small screens.
   ========================================================================== */

/* ---------- Animated background (ambient.js) ---------- */
.ambient-canvas{position:fixed;inset:0;width:100vw;height:100vh;pointer-events:none;z-index:-1;opacity:0;transition:opacity 1.2s ease}
html[data-ambient-scene] .ambient-canvas{opacity:1}
html[data-ambient=disabled] .ambient-canvas{display:none}
/* The pig pattern breathes a little per section so the change is felt even on still frames. */
body::before{transition:opacity .9s ease,background-position 1.6s ease}
html[data-ambient-scene=about] body::before{opacity:.09;background-position:60px 110px}
html[data-ambient-scene=universe] body::before{opacity:.16;background-position:20px 40px}
html[data-ambient-scene=social] body::before{opacity:.08;background-position:90px 140px}
html[data-ambient-scene=wishlist] body::before,html[data-ambient-scene=festivals] body::before{opacity:.1;background-position:0 90px}
html[data-ambient-scene=contact] body::before{opacity:.13;background-position:70px 20px}
@media (prefers-reduced-motion:reduce){.ambient-canvas{display:none}body::before{transition:none}}

/* ---------- Scroll reveal (added by site.js only when motion is allowed) ---------- */
.reveal-ready .reveal{opacity:0;transform:translateY(26px);transition:opacity .7s ease,transform .7s cubic-bezier(.2,.7,.2,1)}
.reveal-ready .reveal.is-visible{opacity:1;transform:none}
.reveal-ready .cards>article.reveal:nth-child(2),.reveal-ready .social-feed>.reveal:nth-child(2){transition-delay:.08s}
.reveal-ready .cards>article.reveal:nth-child(3),.reveal-ready .social-feed>.reveal:nth-child(3){transition-delay:.16s}
@media (prefers-reduced-motion:reduce){.reveal-ready .reveal{opacity:1;transform:none;transition:none}}

/* Gentle life for the hero decorations. */
@media (prefers-reduced-motion:no-preference){
  .portrait-bow{animation:polish-float 6s ease-in-out infinite}
  .portrait-heart{animation:polish-beat 2.8s ease-in-out infinite;display:inline-block}
  .pig-sticker img{animation:polish-float 7s ease-in-out -2s infinite}
  .card-mascot img{transition:transform .35s cubic-bezier(.2,.7,.2,1)}
  .cards article:hover .card-mascot img{transform:translateY(-6px) rotate(-4deg)}
}
@keyframes polish-float{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-8px) rotate(3deg)}}
@keyframes polish-beat{0%,100%{transform:scale(1)}12%{transform:scale(1.12)}24%{transform:scale(1)}}

/* ---------- Cards: consistent lift on hover ---------- */
.cards article,.social-widget,.stream-widget,.community-widget{transition:transform .3s ease,box-shadow .3s ease,border-color .3s ease}
@media (hover:hover){
  .cards article:hover,.community-widget:hover{transform:translateY(-4px);box-shadow:0 18px 40px -22px color-mix(in srgb,var(--accent) 55%,transparent);border-color:color-mix(in srgb,var(--accent) 45%,var(--line))}
  .social-widget:hover,.stream-widget:hover{border-color:color-mix(in srgb,var(--accent) 45%,var(--line))}
}

/* ---------- Social widgets ---------- */
/* While an embed is still loading or blocked, the local preview fills the whole card. */
.widget-frame:not(.embed-ready)>.social-preview{position:absolute;inset:0;z-index:2;aspect-ratio:auto;height:100%;border-radius:14px}
.widget-frame:not(.embed-ready)>.social-preview img{height:100%}
.widget-frame[data-content-mode]:has(>.social-preview)::after{content:none!important}
.always-native:not(.embed-ready)[data-embed-state]::after{z-index:3}
/* A loading pill instead of a sentence hidden behind the preview. */
.widget-frame.always-native[data-embed-state=loading]:not(.qr-open)::before{content:'';position:absolute;top:14px;right:14px;z-index:4;width:18px;height:18px;border-radius:50%;border:2px solid #fff8;border-top-color:#fff;animation:polish-spin 1s linear infinite}
@keyframes polish-spin{to{transform:rotate(360deg)}}

/* Actions under each widget sit side by side. */
.widget-actions{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:10px;margin:14px 12px 4px}
.widget-actions>.qr-toggle,.widget-actions>.widget-retry{margin:0;min-height:40px;padding:8px 18px;border:1px solid var(--line);border-radius:30px;background:color-mix(in srgb,var(--accent) 7%,var(--background));color:var(--accent);font-size:11px;cursor:pointer;display:inline-flex;align-items:center;gap:6px}
.widget-actions>.widget-retry[hidden],.widget-actions>.qr-toggle[hidden]{display:none}
.widget-actions>.widget-retry:hover,.widget-actions>.qr-toggle:hover{background:color-mix(in srgb,var(--accent) 14%,var(--background))}
/* Once the feed is live, refreshing it is not something visitors need. */
.embed-ready+.widget-actions>.widget-retry{display:none}
.connection-note{margin-top:4px}
.social-widget>.widget-link,.stream-widget>.widget-link{display:block;text-align:center;padding:6px 12px 18px;font-weight:700;color:var(--accent)}

/* "Status unavailable" is noise: show the badge only when we really know. */
.live-status[data-state=unknown]{display:none!important}
.stream-status:has(.live-status[data-state=unknown]):has(.live-link[hidden]){display:none}
.live-status[data-state=live]{display:inline-flex!important;align-items:center;padding:3px 10px;border-radius:20px;background:color-mix(in srgb,var(--accent) 14%,transparent);animation:polish-live 1.8s ease-in-out infinite}
@keyframes polish-live{50%{box-shadow:0 0 0 6px color-mix(in srgb,var(--accent) 0%,transparent),0 0 0 2px color-mix(in srgb,var(--accent) 25%,transparent)}}

/* The stream player never pushes the page sideways. */
.stream-widget{min-width:0}
.stream-frame{max-width:calc(100% - 20px);min-width:0}
.stream-frame.hybrid-container{width:auto}
.hybrid-stage{max-width:100%}

/* Two-column range: an odd last card is centered instead of leaving a hole. */
@media (min-width:701px) and (max-width:1100px){
  .social-feed[data-count="3"]>.social-widget:not([hidden]):last-child{grid-column:1/-1;width:100%;max-width:520px;justify-self:center}
}

/* Phones: the social section uses the same gutters as the rest of the page. */
@media (max-width:700px){
  #redes{width:100%;margin-inline:0;padding-inline:14px}
  .widget-actions{margin-inline:8px}
}

/* ---------- Wishlist: one store needs no tab bar ---------- */
#wishlist [role=tablist]:not(:has([role=tab]+[role=tab])){display:none}

/* ---------- Footer ---------- */
footer{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:18px 28px}
footer>.brand,footer>.footer-signature{grid-column:1}
footer>p{margin:0;color:var(--muted)}
footer>div:not(.footer-signature){justify-content:flex-end;flex-wrap:wrap}
footer small{grid-column:1/-1;display:block;padding-top:16px;border-top:1px dashed var(--line)}
.footer-social{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.footer-social a{display:inline-grid;place-items:center;width:42px;height:42px;border-radius:50%;border:1px solid var(--line);background:var(--surface);color:var(--accent);transition:transform .25s ease,background .25s ease,color .25s ease}
.footer-social a:hover{transform:translateY(-3px);background:var(--accent);color:var(--background)}
.footer-social svg,.footer-social .ui-icon{width:19px;height:19px;stroke-width:1.8}
.footer-social .sr-only,.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media (max-width:700px){
  footer{grid-template-columns:1fr;justify-items:center;text-align:center}
  footer>div:not(.footer-signature){justify-content:center}
  footer small{text-align:center}
}
.hero{overflow-x:clip}

/* ---------- Visual fixes (round 2) ---------- */
/* Hero actions: main button, then the two secondary links on one tidy row. */
.hero .actions .text-link{white-space:nowrap}
@media (max-width:700px){
  .hero .actions{display:flex;flex-wrap:wrap;gap:14px 22px}
  .hero .actions .button{flex:1 1 100%;justify-content:space-between;max-width:340px}
}
/* The mascot on the about polaroid never covers the dedication. */
@media (max-width:700px){
  .about-picture{padding-bottom:72px}
  .about-pig{width:76px;height:76px;left:-26px;bottom:-30px}
  .handwritten{left:48px;right:12px;font-size:20px;line-height:1.2}
}
/* Smooth theme switch for the main surfaces. */
body,.cards article,.social-widget,.stream-widget,.community-widget,.collab,footer{transition:background-color .45s ease,color .45s ease,border-color .45s ease}
/* Section-tinted wash behind the content that follows the animated scene. */
body::after{content:'';position:fixed;inset:-20%;pointer-events:none;z-index:-2;opacity:0;transition:opacity 1.2s ease,background 1.2s ease;background:radial-gradient(40% 35% at 20% 25%,color-mix(in srgb,var(--accent) 10%,transparent),transparent 70%),radial-gradient(35% 30% at 80% 70%,color-mix(in srgb,var(--neon,#c583ff) 10%,transparent),transparent 70%)}
html[data-ambient-scene] body::after{opacity:1}
html[data-ambient=disabled] body::after{display:none}
@media (prefers-reduced-motion:no-preference){
  html[data-ambient-scene] body::after{animation:polish-drift 26s ease-in-out infinite alternate}
}
@keyframes polish-drift{0%{transform:translate3d(0,0,0) rotate(0)}50%{transform:translate3d(3%,-2%,0) rotate(4deg)}100%{transform:translate3d(-2%,3%,0) rotate(-3deg)}}
@media print{.ambient-canvas,body::before,body::after{display:none!important}.reveal{opacity:1!important;transform:none!important}}


/* ---------- Social cards line up their buttons ---------- */
@media (min-width:701px){
  .social-feed{align-items:stretch}
  .social-feed>.social-widget{display:flex;flex-direction:column}
  .social-feed>.social-widget>.widget-actions{margin-top:auto;padding-top:14px}
  .social-bottom{align-items:stretch}
}

/* ---------- Apóyame: tips and donations ---------- */
.tips-section{border-top:1px dashed var(--line)}
.tips-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));gap:16px;margin-top:34px}
.tip-card{position:relative;display:flex;align-items:flex-start;gap:14px;padding:20px;border:1px solid var(--line);border-radius:var(--component-radius,24px);background:color-mix(in srgb,var(--surface) 85%,transparent);color:var(--text);min-width:0;transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease}
a.tip-card:hover{transform:translateY(-3px);border-color:var(--accent);color:var(--text);box-shadow:0 14px 34px -20px color-mix(in srgb,var(--accent) 70%,transparent)}
.tip-icon{flex:none;display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:color-mix(in srgb,var(--accent) 13%,var(--background));color:var(--accent)}
.tip-icon svg{width:22px;height:22px}
.tip-body{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
.tip-body>strong{font:21px/1.2 var(--heading-font,Georgia,serif);overflow-wrap:anywhere}
.tip-body>span{font-size:13px;color:var(--muted)}
.tip-arrow{flex:none;align-self:center;color:var(--accent);opacity:.7}
.tip-arrow svg{width:18px;height:18px}
.tip-bank{margin-top:16px}.tips-grid+.tip-bank,.section-heading+.tip-bank{margin-top:16px}.section-heading+.tip-bank{margin-top:34px}
.tip-details{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr));gap:10px 22px;margin:12px 0 6px}
.tip-details div{min-width:0}
.tip-details dt{font-size:9px;letter-spacing:1.4px;font-weight:700;text-transform:uppercase;color:var(--accent)}
.tip-details dd{margin:2px 0 0;font-size:15px;font-weight:700;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.tip-copy{align-self:flex-start;min-height:42px;margin-top:8px;padding:8px 20px;border:1px solid var(--accent);border-radius:30px;background:var(--accent);color:var(--background);font-size:12px;font-weight:700;cursor:pointer}
.tip-copy:hover{filter:brightness(1.08)}
.tip-copy-status{font-size:12px;color:var(--accent);min-height:18px}
.tips-note{text-align:center;font-size:12px;margin-top:24px}
@media (max-width:700px){.tip-card{padding:18px}.tip-body>strong{font-size:19px}.tip-copy{width:100%}}

/* ---------- App: install window and guiños invitation ---------- */
.app-sheet{position:fixed;z-index:80;left:50%;bottom:max(16px,env(safe-area-inset-bottom));width:min(460px,calc(100% - 24px));display:flex;gap:14px;align-items:flex-start;padding:20px 20px 18px;border:1px solid var(--line);border-radius:26px;background:color-mix(in srgb,var(--background) 94%,transparent);backdrop-filter:blur(16px);box-shadow:0 24px 60px -24px color-mix(in srgb,var(--accent) 55%,#0006),0 0 0 6px color-mix(in srgb,var(--surface) 60%,transparent);transform:translate(-50%,130%);opacity:0;transition:transform .45s cubic-bezier(.2,.8,.2,1),opacity .3s ease}
.app-sheet.is-open{transform:translate(-50%,0);opacity:1}
.app-sheet-pig{flex:none;width:64px;height:64px;border-radius:18px;animation:polish-float 5s ease-in-out infinite}
.app-sheet-copy{min-width:0;flex:1}
.app-sheet h2{font-size:22px;line-height:1.2;letter-spacing:-.4px;margin:2px 26px 6px 0}
.app-sheet p{font-size:13px;margin:0 0 4px;line-height:1.55}
.app-sheet-status{color:var(--accent);font-weight:700;min-height:0}
.app-sheet-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.app-sheet-actions .button{padding:11px 20px;gap:10px}
.app-sheet-actions .quiet-button{min-height:44px}
.app-sheet-close{position:absolute;top:10px;right:12px;width:36px;height:36px;border:0;border-radius:50%;background:transparent;color:var(--muted);font-size:24px;line-height:1;cursor:pointer}
.app-sheet-close:hover{background:var(--surface);color:var(--accent)}
@media (prefers-reduced-motion:reduce){.app-sheet{transition:none}.app-sheet-pig{animation:none}}
.push-toggle{background:none;border:0;padding:0;font:inherit;font-size:11px;color:var(--accent);cursor:pointer;border-bottom:1px dashed var(--accent)}
.push-toggle[aria-pressed=true]{color:var(--muted);border-bottom-color:transparent}

/* The social heading scrolls with the page (it is never pinned). */
.social-section>.section-heading{position:static!important;background:none!important;backdrop-filter:none!important}
.social-section .community-widget{position:static!important}

/* En vivo ahora: aviso destacado en el área de redes cuando Gala transmite. */
.live-now{margin:0 0 28px;padding:20px;border:1px solid color-mix(in srgb,var(--accent) 45%,var(--line));border-radius:calc(var(--component-radius,24px) + 4px);background:radial-gradient(ellipse at 0 0,color-mix(in srgb,var(--accent) 16%,transparent),transparent 60%),var(--surface);box-shadow:0 18px 50px color-mix(in srgb,var(--accent) 14%,transparent)}
.live-now[hidden]{display:none}
.live-now-title{margin:0 0 16px;font:700 clamp(18px,2.4vw,24px)/1.2 var(--heading-font);color:var(--text);display:flex;align-items:center;gap:10px}
.live-now-title::before{content:'';width:10px;height:10px;border-radius:50%;background:#ff2d55;box-shadow:0 0 0 0 #ff2d5599;animation:live-dot 1.6s ease-out infinite;flex-shrink:0}
.live-now-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}
.live-card{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:16px;align-items:center;padding:10px;border-radius:var(--component-radius,24px);background:color-mix(in srgb,var(--background) 55%,transparent);border:1px solid var(--line);color:var(--text);text-decoration:none;transition:transform .2s,border-color .2s}
.live-card:hover,.live-card:focus-visible{transform:translateY(-2px);border-color:var(--accent)}
.live-card-media{position:relative;aspect-ratio:16/9;border-radius:calc(var(--component-radius,24px) - 8px);overflow:hidden;background:var(--line)}
.live-card-media img{width:100%;height:100%;object-fit:cover;display:block}
.live-pill{position:absolute;top:8px;left:8px;padding:4px 9px;border-radius:6px;background:#ff2d55;color:#fff;font:800 10px/1 system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase}
.live-viewers{position:absolute;bottom:8px;left:8px;padding:4px 8px;border-radius:6px;background:#000a;color:#fff;font:600 11px/1 system-ui,sans-serif}
.live-card-body{display:grid;gap:6px;min-width:0}.live-card-body strong{font-size:15px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.live-card-meta{font-size:12px;color:var(--muted)}.live-card-cta{justify-self:start;margin-top:4px;padding:8px 14px;border-radius:99px;background:var(--accent);color:var(--background);font-size:12px;font-weight:700}
@keyframes live-dot{to{box-shadow:0 0 0 10px #ff2d5500}}
@media(max-width:560px){.live-now{padding:16px}.live-card{grid-template-columns:1fr}.live-card-cta{justify-self:stretch;text-align:center}}
@media(prefers-reduced-motion:reduce){.live-now-title::before{animation:none}}

/* Estado de directo: píldoras claras en lugar de texto suelto. */
.live-status[data-state=offline],.live-status[data-state=live]{display:inline-flex!important;align-items:center;gap:6px;width:max-content;max-width:100%;padding:4px 11px;border-radius:99px;font-size:10px;line-height:1.2;font-weight:700;letter-spacing:.02em}
.live-status[data-state=offline]{background:color-mix(in srgb,var(--muted) 12%,transparent);color:var(--muted)}
.live-status[data-state=offline]::before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.6}
.live-status[data-state=live]{background:#ff2d55;color:#fff}.live-status[data-state=live]::before{content:'';width:6px;height:6px;margin:0;border-radius:50%;background:#fff}
.stream-status{padding:0 18px 10px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.live-link{display:inline-flex;align-items:center;gap:6px}
/* Canal en pausa: se ve la tarjeta con su foto en vez del reproductor «offline». */
#widget-stream[data-live=offline]>.hybrid-stage{display:none!important}
#widget-stream[data-live=offline]>.social-preview{display:block!important;opacity:1}
/* Detalles generales */
.social-widget,.stream-widget,.community-widget,.cards article{transition:transform .25s ease,box-shadow .25s ease}
@media(hover:hover){.social-widget:hover,.cards article:hover{transform:translateY(-3px);box-shadow:0 18px 44px color-mix(in srgb,var(--accent) 16%,transparent)}}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
img{image-rendering:auto}
@media(prefers-reduced-motion:reduce){.social-widget,.stream-widget,.community-widget,.cards article{transition:none}.social-widget:hover,.cards article:hover{transform:none}}
.stream-widget:has(#widget-stream[data-live=offline]) .connection-note{display:none!important}

/* ---- Secciones y QR (contraer / expandir) ---- */
/* Tarjetas de redes: los botones quedan alineados abajo aunque cada vista previa mida distinto. */
.social-widget>.widget-actions{margin-top:auto;padding-top:14px}
.social-widget>.widget-link{padding-bottom:16px}
.social-widget>.widget-frame,.stream-frame{border-radius:calc(var(--component-radius,24px) - 6px);overflow:hidden}
/* El QR se superpone con las mismas esquinas que la vista previa y con un leve desenfoque. */
.qr-panel{border-radius:inherit;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);background:radial-gradient(ellipse at 50% 20%,color-mix(in srgb,var(--accent) 12%,transparent),transparent 65%),color-mix(in srgb,var(--surface) 94%,transparent)}
.qr-panel img{filter:drop-shadow(0 10px 24px color-mix(in srgb,var(--accent) 20%,transparent))}
/* Botón Mostrar / Ocultar QR con ícono y estado claro. */
.qr-toggle{display:inline-flex!important;align-items:center;justify-content:center;gap:8px;font-weight:700;letter-spacing:.02em}
.qr-toggle::before{content:'';width:14px;height:14px;flex-shrink:0;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M0 0h6v6H0zm2 2v2h2V2zM8 0h6v6H8zm2 2v2h2V2zM0 8h6v6H0zm2 2v2h2v-2zM8 8h2v2H8zm2 2h2v2h-2zm2-2h2v2h-2zm0 4h2v2h-2zm-4 0h2v2H8z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M0 0h6v6H0zm2 2v2h2V2zM8 0h6v6H8zm2 2v2h2V2zM0 8h6v6H0zm2 2v2h2v-2zM8 8h2v2H8zm2 2h2v2h-2zm2-2h2v2h-2zm0 4h2v2h-2zm-4 0h2v2H8z'/%3E%3C/svg%3E") center/contain no-repeat}
.qr-toggle[aria-checked=true]{background:var(--accent)!important;color:var(--background)!important;border-color:var(--accent)!important}
.qr-toggle[aria-checked=true]::before{transform:rotate(90deg)}
.qr-toggle::before{transition:transform .3s ease}
/* Comunidad: al ocultar el QR de Discord la tarjeta se pliega, sin dejar un hueco. */
.community-widget{justify-content:flex-start!important;gap:4px}

.community-widget>.discord-qr:not(.qr-open){min-height:0!important;margin-top:4px}
.community-widget>.discord-qr.qr-open{min-height:330px}
.community-widget>.qr-toggle{margin-top:14px}
.social-bottom{align-items:start}
/* Encabezados de sección con ritmo parejo. */
.section-heading{align-items:end;gap:24px 48px}
.section-heading>p{max-width:420px;line-height:1.7}
/* Tarjetas del universo: el ícono acompaña el hover. */
.cards article>img,.cards article .card-mascot img{transition:transform .35s cubic-bezier(.2,.8,.2,1)}
@media(hover:hover){.cards article:hover>img,.cards article:hover .card-mascot img{transform:rotate(-6deg) scale(1.06)}}
@media(prefers-reduced-motion:reduce){.qr-toggle::before,.cards article>img,.cards article .card-mascot img{transition:none}}

/* ===================== Realce 3D de tarjetas (todo el sitio) ===================== */
.social-widget,.stream-widget,.community-widget,.cards article,.wishlist-product,.wishlist-panel,.festival-card,.santa-card,.collab{
 box-shadow:
  inset 0 1px 0 color-mix(in srgb,#fff 60%,transparent),
  inset 0 -2px 6px color-mix(in srgb,var(--accent) 7%,transparent),
  0 2px 4px rgba(20,10,25,.06),
  0 14px 30px -12px color-mix(in srgb,var(--accent) 28%,transparent);
 transition:transform .3s cubic-bezier(.2,.8,.2,1),box-shadow .3s ease;
}
@media(hover:hover){
 .social-widget:hover,.stream-widget:hover,.community-widget:hover,.cards article:hover,.wishlist-product:hover,.festival-card:hover,.santa-card:hover{
  transform:translateY(-6px) scale(1.012);
  box-shadow:
   inset 0 1px 0 color-mix(in srgb,#fff 72%,transparent),
   0 3px 6px rgba(20,10,25,.08),
   0 28px 54px -14px color-mix(in srgb,var(--accent) 42%,transparent);
 }
}
/* En modo noche y en Ashia: brillo de acento (la sombra negra no se ve sobre fondo oscuro). */
[data-theme=dark] :is(.social-widget,.stream-widget,.community-widget,.cards article,.wishlist-product,.wishlist-panel,.festival-card,.santa-card,.collab),
[data-ashia=active] :is(.social-widget,.stream-widget,.community-widget,.cards article,.wishlist-product,.wishlist-panel,.festival-card,.santa-card,.collab){
 box-shadow:
  inset 0 1px 0 color-mix(in srgb,#fff 12%,transparent),
  inset 0 0 0 1px color-mix(in srgb,var(--accent) 16%,transparent),
  0 18px 38px -14px rgba(0,0,0,.55),
  0 0 44px -10px color-mix(in srgb,var(--accent) 24%,transparent);
}
[data-theme=dark] :is(.cards article,.festival-card,.santa-card,.wishlist-product):hover,
[data-ashia=active] :is(.cards article,.festival-card,.santa-card,.wishlist-product):hover{
 box-shadow:
  inset 0 1px 0 color-mix(in srgb,#fff 16%,transparent),
  0 26px 54px -14px rgba(0,0,0,.6),
  0 0 60px -8px color-mix(in srgb,var(--accent) 40%,transparent);
}
@media(prefers-reduced-motion:reduce){.social-widget,.cards article,.festival-card,.santa-card,.wishlist-product,.community-widget,.stream-widget{transition:none}}

/* ── Móvil: todo centrado en el dispositivo y sin textos encimados (Gala, Ashia y Navidad) ── */
@media (max-width: 700px) {
  h1, h2, h3, h4, p, a, span, figcaption, label, dd { overflow-wrap: break-word; }
  h1, h2, h3 { hyphens: auto; }

  /* Títulos de sección y portada, centrados */
  .section-heading, .section-heading > div, .section-heading > p { text-align: center; margin-inline: auto; }
  .hero-copy { text-align: center; }
  .hero .actions, .hero-copy .actions { justify-content: center; flex-wrap: wrap; }
  .about > div:not(.about-picture) { text-align: center; }
  .about .tags { justify-content: center; flex-wrap: wrap; }

  /* Tarjetas: mismo ancho, centradas en la pantalla y con su contenido centrado */
  .cards > article, .social-widget, .stream-widget, .community-widget, .tip-card, .tip-bank,
  .santa-card, .santa-pay, .collab, .about-picture, .wishlist-store, .wishlist-product, .ashia-card, .ashia-offer {
    margin-inline: auto; width: 100%; max-width: 100%; box-sizing: border-box;
  }
  .cards > article, .community-widget, .santa-pay, .wishlist-product-info, .wishlist-list-preview, .tips-note { text-align: center; }
  .cards > article .card-mascot, .community-widget img, .community-widget .button { margin-inline: auto; }
  .social-widget > header, .stream-heading, .stream-status { justify-content: center; flex-wrap: wrap; text-align: center; gap: 10px; }
  .widget-actions { justify-content: center; flex-wrap: wrap; }

  /* Cabeceras de tarjeta en columna: icono arriba y texto centrado debajo */
  .wishlist-store-heading, .social-widget > header { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
  .wishlist-store-heading > div, .social-widget > header > div { width: 100%; }
  .wishlist-store-heading .wishlist-list-link { align-self: center; }

  /* Taller de Santa: la lista de deseos ocupa su columna completa, sin desplazarse */
  .santa-wish .wishlist-section, .santa-wish .wishlist-panel { width: 100%; margin-inline: auto; padding-inline: 0; }
  .santa-grid { justify-items: center; }
  .santa-grid > * { width: 100%; }

  /* El sticker de bienvenida ya no se sale de la pantalla */
  .portrait .pig-sticker { right: 6px; left: auto; max-width: calc(100% - 12px); }

  /* Ashia: la galería centrada y espacio al final para que la barra flotante no tape el contenido */
  .ashia-gallery > .eyebrow, .ashia-gallery > h2, .ashia-gallery > p { text-align: center; margin-inline: auto; }
  [data-ashia="active"] body { padding-bottom: 76px; }

  /* Las luces navideñas, más finas para no tapar textos al desplazarse */
  .xmas-lights { transform: scale(.72); transform-origin: top center; opacity: .9; }
}
