/* ═══════════════════════════════════════════════
   NAVIDAD 2026 · capa de temporada de la web
   Se activa con html.xmas (navidad/decor.js). Sin esa clase no se ve nada.
   Lenguaje: el de la marca. Bolas en naranja, tinta y crema; un lazo
   naranja; luces cálidas solo donde hay noche.
   ═══════════════════════════════════════════════ */

.xm {
  --xm-night: #16130F;
  --xm-on: #F7F3ED;
  --xm-on-2: rgba(247,243,237,.72);
  --xm-on-3: rgba(247,243,237,.5);
  --xm-bulb: #FFD9A0;
  --xm-orange-lit: #EE7A4A;
  --xm-ok: #1E8E4E;
  --xm-hand: 'Caveat', cursive;
  background: var(--cream);
  padding: clamp(56px, 7vw, 96px) 0 clamp(64px, 8vw, 110px);
  overflow-x: clip;
}

/* ── La caja regalo ── */
.xm-gift {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 4vw, 64px); align-items: center;
  padding: clamp(92px, 9vw, 120px) clamp(24px, 4.5vw, 72px) clamp(40px, 5vw, 64px);
  border-radius: 32px; color: var(--xm-on);
  background:
    radial-gradient(70% 80% at 85% 10%, rgba(255,190,110,.13) 0%, transparent 60%),
    radial-gradient(60% 70% at 0% 100%, rgba(238,122,74,.08) 0%, transparent 70%),
    var(--xm-night);
  box-shadow: 0 40px 80px -50px rgba(28,21,18,.7);
}
.xm-ribbon {
  position: absolute; z-index: 0; top: 0; bottom: 0; left: 59%; width: 26px; transform: translateX(-50%);
  background: linear-gradient(90deg, #8C300D 0%, #C1481E 22%, #E8703F 48%, #C1481E 74%, #8C300D 100%);
  box-shadow: 0 0 0 1px rgba(0,0,0,.15);
  opacity: .95;
}
.xm-ribbon::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, transparent 0 3px, rgba(255,255,255,.05) 3px 4px); }
.xm-bow { position: absolute; z-index: 3; top: -46px; left: 59%; width: 160px; transform: translateX(-50%); filter: drop-shadow(0 8px 10px rgba(0,0,0,.25)); pointer-events: none; }

.xm-lights { position: absolute; inset: 0 0 auto; height: 110px; z-index: 1; pointer-events: none; border-radius: 32px 32px 0 0; overflow: hidden; }
.xm-wire { position: absolute; inset: 0; width: 100%; height: 100%; }
.xm-wire path { fill: none; stroke: rgba(247,243,237,.22); stroke-width: 1.2; }
.xm-bulbs { position: absolute; inset: 0; }
.xm-bulb {
  position: absolute; width: 8px; height: 11px; margin: -2px 0 0 -4px;
  border-radius: 50% 50% 50% 50% / 45% 45% 55% 55%;
  background: var(--xm-bulb);
  box-shadow: 0 0 6px 1px rgba(255,217,160,.9), 0 0 20px 6px rgba(255,190,110,.3);
  transform-origin: 50% 0; transform: rotate(var(--r, 0deg));
  animation: xm-twinkle var(--t, 3.4s) ease-in-out var(--d, 0s) infinite;
}
.xm-bulb::before { content: ''; position: absolute; left: 2px; right: 2px; top: -3px; height: 4px; border-radius: 1px; background: #4A4036; }
.xm-bulb.is-orange { background: var(--xm-orange-lit); box-shadow: 0 0 6px 1px rgba(238,122,74,.95), 0 0 22px 7px rgba(238,122,74,.35); }
@keyframes xm-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

.xm-copy { position: relative; z-index: 2; }
.xm-title { font-family: var(--sans); font-weight: 700; letter-spacing: -.035em; line-height: 1; font-size: clamp(36px, 4.6vw, 66px); text-wrap: balance; }
.xm-title-a, .xm-title-b { display: block; }
.xm-title-b { color: var(--xm-on-3); margin-top: .06em; }
.xm-period { display: inline-block; width: .17em; height: .17em; margin-left: .04em; border-radius: 50%; background: var(--xm-orange-lit); box-shadow: 0 0 .25em rgba(238,122,74,.55); }
.xm-lead { margin-top: 22px; font-family: var(--ui); font-size: clamp(15.5px, 1.25vw, 17.5px); line-height: 1.6; color: var(--xm-on-2); max-width: 34em; text-wrap: pretty; }
.xm-lead b { color: var(--xm-on); font-weight: 600; }

.xm-ticket {
  margin-top: 26px; max-width: 470px; display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 4px 16px;
  padding: 16px 20px; border-radius: 16px; border: 1px dashed rgba(247,243,237,.24); background: rgba(247,243,237,.04);
  font-family: var(--ui);
}
.xm-ticket-name { font-size: 14px; color: var(--xm-on-2); grid-column: 1 / -1; }
.xm-ticket-price { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 10px; }
.xm-ticket-price s { font-size: 18px; color: var(--xm-on-3); text-decoration-color: var(--xm-orange-lit); text-decoration-thickness: 2px; }
.xm-ticket-price strong { font-family: var(--sans); font-size: 46px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.xm-ticket-meta { grid-column: 1 / -1; font-size: 13.5px; color: var(--xm-on-2); }
.xm-ticket-date { grid-column: 1 / -1; margin-top: 6px; font-size: 14px; font-weight: 600; }
.xm-ticket-date em { font-style: normal; font-weight: 500; color: var(--xm-bulb); margin-left: 6px; }

.xm-actions { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.xm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px;
  background: var(--gold); color: #fff; font-family: var(--ui); font-size: 15.5px; font-weight: 650;
  box-shadow: 0 10px 30px -12px rgba(193,72,30,.8);
  transition: transform .2s var(--ease-out), background .2s;
}
.xm-btn svg { width: 19px; height: 19px; flex: none; }
.xm-btn:hover { background: #D2531F; transform: translateY(-1px); }
.xm-btn:active { transform: scale(.97); }
.xm-link { font-family: var(--ui); font-size: 14.5px; font-weight: 550; color: var(--xm-on); border-bottom: 1px solid rgba(247,243,237,.35); padding: 4px 0; transition: border-color .2s; }
.xm-link:hover { border-color: var(--xm-on); }

/* ── Móvil animado ── */
.xm-media { position: relative; z-index: 2; display: flex; justify-content: center; }
.xm-demo, .xm-video { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.xm-phone {
  position: relative; width: min(270px, 70vw); aspect-ratio: 9 / 19; border-radius: 42px; padding: 9px;
  background: linear-gradient(145deg, #5B544D, #2A2622 40%, #46403A 70%, #1E1B18);
  box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 36px 70px -30px rgba(0,0,0,.85), 0 0 60px -10px rgba(255,190,110,.18);
}
.xm-phone::before { content: ''; position: absolute; inset: 3px; border-radius: 39px; background: #0B0A09; }
.xm-island { position: absolute; z-index: 5; top: 18px; left: 50%; transform: translateX(-50%); width: 31%; height: 22px; border-radius: 20px; background: #000; }
.xm-screen { position: relative; z-index: 1; height: 100%; border-radius: 34px; overflow: hidden; background: #F4F2EF; color: #1F1F1F; font-family: var(--ui); }
.xm-screen--video { background: #000; }
.xm-screen--video video { width: 100%; height: 100%; object-fit: cover; }
.xm-status { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px 0 24px; height: 42px; font-size: 12px; font-weight: 600; }
.xm-status-r { display: flex; gap: 3px; align-items: flex-end; }
.xm-status-r i { width: 3px; border-radius: 1px; background: #1F1F1F; }
.xm-status-r i:nth-child(1) { height: 5px; } .xm-status-r i:nth-child(2) { height: 8px; } .xm-status-r i:nth-child(3) { height: 11px; }
.xm-search { margin: 10px 11px 0; display: flex; align-items: center; gap: 8px; padding: 10px 13px; background: #fff; border-radius: 999px; box-shadow: 0 1px 4px rgba(0,0,0,.08); font-size: 12.5px; color: #3C3C3C; }
.xm-search svg { width: 14px; height: 14px; color: #6B6B6B; flex: none; }
.xm-day { margin: 12px 15px 7px; font-size: 11.5px; font-weight: 600; color: #6B6B6B; }
.xm-card { margin: 0 11px; background: #fff; border-radius: 16px; padding: 9px 11px 11px; box-shadow: 0 1px 4px rgba(0,0,0,.07); }
.xm-card-img { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; height: 84px; border-radius: 11px; overflow: hidden; }
.xm-card-img span { background: linear-gradient(135deg, #D9C7B2, #B89A7C); }
.xm-card-img span:first-child { grid-row: 1 / 3; background: linear-gradient(160deg, #E8D9C6, #C4A584 70%, #9C7B5C); }
.xm-card-name { margin-top: 9px; font-family: var(--sans); font-size: 16px; font-weight: 700; }
.xm-card-stars { margin-top: 2px; font-size: 12px; color: #555; }
.xm-card-stars span { color: #F3A814; letter-spacing: 1px; }
.xm-card-stars em { font-style: normal; color: #777; }
.xm-card-hours { position: relative; margin-top: 5px; font-size: 12.5px; height: 17px; }
.xm-card-hours > span { position: absolute; left: 0; top: 0; white-space: nowrap; transition: opacity .45s var(--ease-out), transform .45s var(--ease-out); }
.xm-card-hours b { color: var(--xm-ok); font-weight: 650; }
.xm-h-right { opacity: 0; transform: translateY(6px); }
.xm-card-slot { position: relative; height: 27px; margin-top: 7px; }
.xm-card-usual, .xm-card-special { position: absolute; inset: 0; display: flex; align-items: center; gap: 6px; padding: 0 8px; border-radius: 8px; font-size: 11.5px; transition: opacity .45s var(--ease-out); }
.xm-card-usual { background: #F3F1EE; color: #555; }
.xm-card-special { background: rgba(30,142,78,.1); color: var(--xm-ok); font-weight: 600; opacity: 0; }
.xm-card-special svg { width: 13px; height: 13px; flex: none; }
.xm-card-btns { display: flex; gap: 6px; margin-top: 9px; }
.xm-card-btns span { flex: 1; text-align: center; padding: 6px 0; border-radius: 999px; border: 1px solid #D9D9D9; font-size: 11px; font-weight: 600; color: #1A5FD0; }
.xm-shutter {
  position: absolute; z-index: 3; inset: 0;
  background: repeating-linear-gradient(180deg, #8F8A84 0 2px, #A9A39C 2px 11px, #7D7872 11px 13px), #9A948D;
  transform: translateY(-101%); transition: transform .9s cubic-bezier(.65,0,.35,1);
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 32%;
}
.xm-shutter::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: #5E5953; }
.xm-shutter span { font-family: var(--xm-hand); font-size: 24px; font-weight: 600; color: #1F1C19; background: #FFFDF8; padding: 5px 14px 3px; border-radius: 4px; transform: rotate(-3deg); box-shadow: 0 3px 8px rgba(0,0,0,.25); }
.xm-demo[data-state="2"] .xm-shutter { transform: none; }
.xm-demo[data-state="2"] .xm-h-wrong b { color: #C2410C; }
.xm-demo[data-state="3"] .xm-h-wrong { opacity: 0; transform: translateY(-6px); }
.xm-demo[data-state="3"] .xm-h-right { opacity: 1; transform: none; }
.xm-demo[data-state="3"] .xm-card-usual { opacity: 0; }
.xm-demo[data-state="3"] .xm-card-special { opacity: 1; }
.xm-cap { position: relative; width: min(320px, 84vw); height: 2.9em; text-align: center; font-family: var(--ui); font-size: 14.5px; line-height: 1.45; color: var(--xm-on); }
.xm-cap span { position: absolute; inset: 0; opacity: 0; transform: translateY(6px); transition: opacity .4s var(--ease-out), transform .4s var(--ease-out); text-wrap: balance; }
.xm-demo[data-state="1"] [data-cap="1"], .xm-demo[data-state="2"] [data-cap="2"], .xm-demo[data-state="3"] [data-cap="3"] { opacity: 1; transform: none; }
.xm-media.has-video .xm-demo { display: none; }

/* ── El árbol: bolas con los vídeos de cada sector ── */
.xm-tree { margin-top: clamp(56px, 7vw, 88px); text-align: center; }
.xm-tree-title { font-family: var(--sans); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; font-size: clamp(26px, 3vw, 40px); text-wrap: balance; }
.xm-tree-title span { color: #8E8075; }
.xm-baubles {
  position: relative; margin: 26px auto 0; max-width: 980px; height: 270px;
  display: flex; justify-content: space-between; padding: 0 12px;
}
.xm-baubles::before { /* la rama */
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, #6B5A4C 8%, #6B5A4C 92%, transparent);
}
.xm-bauble {
  --len: 70px; --size: 96px; --c1: #E8703F; --c2: #C1481E; --c3: #7E2A0B; --ink: #fff;
  position: relative; flex: none; width: var(--size); padding-top: var(--len);
  display: flex; flex-direction: column; align-items: center;
  transform-origin: 50% 0; animation: xm-swing var(--sw, 4.2s) ease-in-out var(--sd, 0s) infinite alternate;
  cursor: pointer; background: none; border: 0; color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}
.xm-bauble::before { /* el hilo */
  content: ''; position: absolute; top: 0; left: 50%; width: 1px; height: calc(var(--len) + 2px); background: rgba(28,21,18,.35);
}
.xm-bauble-cap {
  position: relative; z-index: 1; width: 20px; height: 11px; margin-bottom: -3px; border-radius: 3px 3px 2px 2px;
  background: linear-gradient(90deg, #8A6A3A, #E6C98F 45%, #B08A4E 70%, #7A5C2E);
}
.xm-bauble-cap::before { content: ''; position: absolute; left: 50%; top: -6px; width: 8px; height: 8px; margin-left: -4px; border: 1.5px solid #A8844A; border-radius: 50%; }
.xm-bauble-ball {
  position: relative; width: var(--size); height: var(--size); border-radius: 50%;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.55) 0 7%, rgba(255,255,255,.18) 14%, transparent 30%),
    radial-gradient(circle at 50% 50%, var(--c1) 0%, var(--c2) 58%, var(--c3) 100%);
  box-shadow: inset -8px -10px 18px rgba(0,0,0,.25), inset 4px 6px 12px rgba(255,255,255,.12), 0 14px 24px -12px rgba(28,21,18,.5);
  transition: transform .35s var(--ease-out);
}
.xm-bauble-ball::after { /* reflejo de ventana */
  content: ''; position: absolute; left: 22%; top: 16%; width: 18%; height: 10%; border-radius: 50%; background: rgba(255,255,255,.5); filter: blur(1px); transform: rotate(-30deg);
}
.xm-bauble svg { width: 36%; height: 36%; position: relative; z-index: 1; }
.xm-bauble-play {
  position: absolute; z-index: 2; right: 2%; bottom: 4%; width: 28%; height: 28%; border-radius: 50%; background: #fff; color: #1C1512;
  display: grid; place-items: center; box-shadow: 0 4px 10px rgba(0,0,0,.25); transform: scale(.85); transition: transform .3s var(--ease-out);
}
.xm-bauble-play::before { content: ''; margin-left: 12%; border-left: 8px solid currentColor; border-top: 5.5px solid transparent; border-bottom: 5.5px solid transparent; }
.xm-bauble-name { margin-top: 12px; font-family: var(--ui); font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.xm-bauble:hover .xm-bauble-ball, .xm-bauble:focus-visible .xm-bauble-ball { transform: scale(1.06); }
.xm-bauble:hover .xm-bauble-play { transform: scale(1); }
.xm-bauble:focus-visible { outline: none; }
.xm-bauble:focus-visible .xm-bauble-ball { box-shadow: 0 0 0 3px var(--cream), 0 0 0 5px var(--gold); }
.xm-bauble.is-tapped { animation: xm-jingle .7s cubic-bezier(.3,.7,.4,1); }
@keyframes xm-swing { from { transform: rotate(-2.2deg); } to { transform: rotate(2.2deg); } }
@keyframes xm-jingle { 0% { transform: rotate(0); } 25% { transform: rotate(9deg); } 50% { transform: rotate(-6deg); } 75% { transform: rotate(3deg); } 100% { transform: rotate(0); } }

.xm-bauble--ink { --c1: #4A3F38; --c2: #2A221E; --c3: #0E0B09; }
.xm-bauble--cream { --c1: #FFFDF8; --c2: #EFE4D3; --c3: #C9B79E; }
.xm-bauble--cream svg { color: #93350F; }
.xm-bauble--deep { --c1: #B4471A; --c2: #93350F; --c3: #551C05; }
.xm-bauble--sand { --c1: #E2CBAE; --c2: #B89A7C; --c3: #7E6247; }
.xm-bauble .xm-bauble-name { color: var(--ink, #1C1512); }
.xm-bauble { --ink: #1C1512; }
.xm-bauble svg { color: #fff; }
.xm-bauble--cream svg { color: #93350F; }

/* ── Vídeo en grande ── */
.xm-modal {
  margin: auto; padding: 0; border: 0; background: transparent; max-width: min(760px, calc(100vw - 24px)); width: 100%; overflow: visible; color: var(--xm-on);
}
.xm-modal::backdrop { background: rgba(14,11,9,.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.xm-modal[open] { animation: xm-pop .35s var(--ease-out); }
@keyframes xm-pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.xm-modal-in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px; align-items: center; background: #16130F; border-radius: 28px; padding: 28px; box-shadow: 0 40px 90px -30px rgba(0,0,0,.8); }
.xm-phone--modal { width: min(260px, 60vw); }
.xm-modal-title { font-family: var(--sans); font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; letter-spacing: -.025em; line-height: 1.1; text-wrap: balance; }
.xm-modal-free { margin-top: 14px; font-family: var(--ui); font-size: 15px; line-height: 1.55; color: var(--xm-on-2); }
.xm-modal-free b { color: var(--xm-on); }
.xm-modal-copy .xm-btn { margin-top: 22px; }
.xm-modal-copy .xm-link { display: inline-block; margin-top: 16px; }
.xm-modal-close { position: absolute; top: -14px; right: -14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; background: var(--cream); color: var(--ink); display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0,0,0,.3); }
.xm-modal-close svg { width: 18px; height: 18px; }

/* ── Bolas en la portada (cuelgan de la foto) ── */
.xm-hero-baubles { position: absolute; z-index: 2; top: 0; right: 27%; display: flex; gap: 22px; align-items: flex-start; pointer-events: none; }
.xm-hero-baubles .xm-bauble { pointer-events: none; cursor: default; }
.xm-hero-baubles .xm-bauble::before { background: rgba(28,21,18,.4); }

/* ── Lazo y etiqueta en el plan Esencial ── */
.xm-tag-wrap { position: absolute; z-index: 3; top: 0; right: 22px; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.xm-tag-bow { width: 74px; margin-top: -8px; filter: drop-shadow(0 4px 5px rgba(0,0,0,.18)); }
.xm-tag {
  position: relative; margin-top: 4px; padding: 12px 14px 10px 14px; border-radius: 6px 6px 10px 10px;
  background: #FFFDF8; border: 1px solid rgba(28,21,18,.12); box-shadow: 0 8px 18px -8px rgba(28,21,18,.4);
  font-family: var(--ui); text-align: center; color: var(--ink); transform: rotate(4deg); transform-origin: 50% -20px;
  animation: xm-tag 5s ease-in-out infinite alternate;
}
.xm-tag::before { content: ''; position: absolute; top: -22px; left: 50%; width: 1px; height: 22px; background: #93350F; }
.xm-tag::after { content: ''; position: absolute; top: 5px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(28,21,18,.25); }
.xm-tag b { display: block; margin-top: 6px; font-family: var(--sans); font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.xm-tag s { font-size: 12px; color: #8E8075; }
.xm-tag small { display: block; margin-top: 3px; font-size: 11px; color: #6B5D52; }
@keyframes xm-tag { from { transform: rotate(5deg); } to { transform: rotate(1deg); } }

/* ── Responsive ── */
@media (max-width: 960px) {
  .xm-gift { grid-template-columns: minmax(0, 1fr); padding-top: 96px; }
  .xm-ribbon { left: 0; right: 0; top: 64px; bottom: auto; width: auto; height: 22px; transform: none; background: linear-gradient(180deg, #8C300D 0%, #C1481E 22%, #E8703F 48%, #C1481E 74%, #8C300D 100%); }
  .xm-bow { left: 50%; top: 22px; width: 130px; }
  .xm-lights { display: none; }
  .xm-baubles { height: auto; flex-wrap: wrap; justify-content: center; gap: 4px 6px; padding: 0; }
  .xm-baubles::before { display: none; }
  .xm-baubles .xm-bauble { --size: 76px; --len: 26px !important; width: 31%; max-width: 120px; margin-bottom: 18px; }
  .xm-baubles .xm-bauble::before { height: 28px; }
  .xm-hero-baubles { right: 8%; gap: 14px; }
  .xm-hero-baubles .xm-bauble { --size: 46px !important; width: auto; }
  .xm-modal-in { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding: 22px 18px 24px; gap: 18px; }
  .xm-phone--modal { width: min(220px, 58vw); }
  .xm-modal-copy .xm-btn { width: 100%; }
}
@media (max-width: 520px) {
  .xm-gift { border-radius: 26px; padding-left: 20px; padding-right: 20px; }
  .xm-ticket-price strong { font-size: 40px; }
  .xm-actions .xm-btn { width: 100%; }
  .xm-bauble-name { font-size: 12.5px; }
  .xm-tag-wrap { right: 14px; }
  .xm-tag-bow { width: 60px; }
  .xm-tag b { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .xm-bauble, .xm-bulb, .xm-tag { animation: none !important; }
  .xm-shutter, .xm-card-hours > span, .xm-cap span { transition: none !important; }
}

/* El vídeo de campaña solo se ve cuando existe */
.xm-video[hidden] { display: none !important; }

/* Escritorio: el lazo pasa por el hueco entre el texto y el móvil, nunca por encima del texto */
@media (min-width: 961px) {
  .xm-gift { --px: clamp(40px, 4.5vw, 72px); --gp: clamp(64px, 7vw, 110px); --mw: 300px;
    grid-template-columns: minmax(0, 1fr) var(--mw); gap: 0 var(--gp); padding-left: var(--px); padding-right: var(--px); }
  .xm-ribbon, .xm-bow { left: auto; right: calc(var(--px) + var(--mw) + var(--gp) / 2); transform: translateX(50%); }
}

@media (max-width: 960px) {
  .xm-hero-baubles { right: 6%; gap: 10px; }
  .xm-hero-baubles .xm-bauble:nth-child(1) { --len: 22px !important; --size: 36px !important; }
  .xm-hero-baubles .xm-bauble:nth-child(2) { --len: 8px !important; --size: 28px !important; }
  .xm-hero-baubles .xm-bauble:nth-child(3) { --len: 30px !important; --size: 32px !important; }
  .xm-hero-baubles .xm-bauble-cap { width: 12px; height: 7px; }
}

/* La ventana del vídeo siempre cabe en la pantalla del móvil */
.xm-modal { max-height: calc(100dvh - 24px); }
.xm-modal-in { max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 960px) {
  .xm-modal-close { top: 10px; right: 10px; }
  .xm-phone--modal { width: min(200px, 50vw, 23dvh); border-radius: 34px; padding: 7px; }
  .xm-phone--modal::before { border-radius: 31px; }
  .xm-phone--modal .xm-screen { border-radius: 28px; }
  .xm-phone--modal .xm-island { top: 14px; height: 18px; }
  .xm-modal-copy .xm-link { margin-top: 12px; }
}

/* Regalo de Navidad: ficha de Google */
.xm-ticket-gift { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 12px; margin-top: 4px; font-family: var(--sans); font-size: clamp(21px, 1.9vw, 26px); font-weight: 700; letter-spacing: -.02em; line-height: 1.12; color: var(--xm-on); text-wrap: balance; }
.xm-gift-ico { width: 28px; height: 28px; flex: none; color: var(--xm-bulb); margin-top: 1px; }
.xm-ticket-meta { line-height: 1.45; margin-top: 4px; }
.xm-tag { max-width: 118px; }
.xm-tag small { margin-top: 0; }
.xm-tag b { font-size: 15px; line-height: 1.12; letter-spacing: -.01em; margin-top: 5px; }
@media (max-width: 520px) { .xm-tag b { font-size: 14px; } .xm-tag { max-width: 104px; } }


/* ═══ Pie «Sé Singular.» en Navidad (igual que la web de Studio) ═══
   Saludo bajo la firma: Feliz Navidad (hasta el 31 dic) o Feliz 2027
   (1-6 ene). Bolas y tira de luces las crea navidad/pie.js. */
.ssg-sal { display: none; }
html.xmas .ssg-sal[data-sal="navidad"] { display: block; }
html.xmas.xmas-anyo .ssg-sal[data-sal="navidad"] { display: none; }
html.xmas.xmas-anyo .ssg-sal[data-sal="anyo"] { display: block; }
html.xmas .ssg { position: relative; }
.ssg-sal { --xm-on: #F7F3ED; --xm-on-3: rgba(247,243,237,.5); --xm-orange-lit: #EE7A4A; margin: clamp(40px, 6vw, 72px) auto 0; text-align: center; max-width: 34em; padding: 0 8px; }
.ssg-sal-h {
  font-family: var(--sans); font-weight: 700; font-variation-settings: "opsz" 96;
  font-size: clamp(1.6rem, 3.1vw, 2.4rem); letter-spacing: -.035em; line-height: 1.05; color: var(--xm-on); margin: 0;
}
.ssg-sal-h .ssg-sal-dot { color: var(--xm-orange-lit); animation: ssgGlow 3.6s ease-in-out infinite; }
.ssg-sal-v { font-family: var(--ui); font-size: clamp(.82rem, 1vw, .92rem); line-height: 1.55; color: var(--xm-on-3); margin: 14px 0 0; }
.ssg-sal-ref { display: block; margin-top: 4px; font-family: var(--ui); font-size: .72rem; letter-spacing: .08em; color: rgba(238,122,74,.78); }
.ssg-sal-n { font-family: var(--ui); font-size: clamp(.88rem, 1.1vw, 1rem); line-height: 1.5; color: rgba(247,243,237,.82); margin: 22px 0 0; letter-spacing: -.005em; }
.ssg-sal-n b { font-weight: 600; color: var(--xm-orange-lit); }
@keyframes ssgGlow { 0%,100% { text-shadow: 0 0 0 rgba(238,122,74,0); } 50% { text-shadow: 0 0 14px rgba(238,122,74,.75), 0 0 3px rgba(255,196,150,.9); } }

.pie-bolas { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.pie-b { position: absolute; top: 0; width: var(--S); margin-left: calc(var(--S) / -2); transform-origin: 50% 0; animation: pieSway var(--d) ease-in-out var(--dl) infinite alternate; }
.pie-bi { transform-origin: 50% 0; }
.pie-hilo { display: block; width: 1px; height: var(--L); margin: 0 auto; background: linear-gradient(rgba(217,186,133,0), rgba(217,186,133,.8) 35%, rgba(217,186,133,.85)); }
.pie-orn { width: var(--S); height: calc(var(--S) * 1.24); margin-top: calc(var(--S) * -.14); pointer-events: auto; filter: drop-shadow(0 8px 12px rgba(0,0,0,.45)); }
.pie-orn svg { display: block; width: 100%; height: 100%; }
@keyframes pieSway { from { transform: rotate(calc(var(--a) * -1)); } to { transform: rotate(var(--a)); } }
.pie-tira { position: absolute; left: 0; right: 0; top: 0; height: 40px; pointer-events: none; z-index: 2; }
.pie-tira svg { display: block; width: 100%; height: 40px; overflow: visible; }
.pie-gl { animation: pieTw 3s ease-in-out infinite alternate; }
@keyframes pieTw { from { opacity: .3; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .pie-b, .pie-gl { animation: none; }
  .ssg-sal-h .ssg-sal-dot { animation: none; text-shadow: 0 0 10px rgba(238,122,74,.6); }
}


/* ═══ Lazos en las tarjetas de precio (navidad/decor.js · lazos) ═══ */
.xm-cardbow {
  position: absolute; z-index: 6; top: -26px; left: 50%; width: 86px;
  transform: translateX(-50%) rotate(-4deg); transform-origin: 50% 60%;
  filter: drop-shadow(0 6px 8px rgba(28,21,18,.22)); pointer-events: none;
}
.xm-cardbow--r { transform: translateX(-50%) rotate(4deg); }
.xm-cardbow svg { display: block; width: 100%; height: auto; }
@media (prefers-reduced-motion: no-preference) {
  .xm-wrapped:hover .xm-cardbow { animation: xmBowWiggle 700ms cubic-bezier(.34,1.56,.64,1); }
}
@keyframes xmBowWiggle {
  0% { transform: translateX(-50%) rotate(-4deg) scale(1); }
  40% { transform: translateX(-50%) rotate(3deg) scale(1.06); }
  100% { transform: translateX(-50%) rotate(-4deg) scale(1); }
}
/* Planes web y Pack Hostelería recortan su contenido: en temporada dejan
   asomar el lazo (min-width:0 mantiene el reparto de la rejilla). */
.wp-plan.xm-wrapped, .pack-inner.xm-wrapped { overflow: visible; min-width: 0; }
.xm-wrapped { position: relative; }
@media (max-width: 760px) { .xm-cardbow { width: 70px; top: -21px; } }
