/*
 * Footer público (Components::SiteFooterComponent).
 * Violeta plano, bordes y sombras duras en violeta noche, acento lila.
 * Primero celular; se abre a dos columnas desde 900px y a cinco desde 1100px.
 */
.sf {
  --sf-violet: #3600e0;
  --sf-night: #120838;
  --sf-lilac: #c9bfff;
  --sf-soft: #efeaff;
  --sf-pad: clamp(20px, 5vw, 64px);
  --sf-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  position: relative;
  overflow: hidden;
  background: var(--sf-violet);
  color: #fff;
  -webkit-font-smoothing: antialiased;
}

.sf a { text-decoration: none; }
.sf a:focus-visible,
.sf button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }

.sf-wrap {
  max-width: 1280px;
  margin-inline: auto;
  padding-left: max(var(--sf-pad), env(safe-area-inset-left, 0px));
  padding-right: max(var(--sf-pad), env(safe-area-inset-right, 0px));
}

/* ---------- arriba: destino que rueda + buscador ---------- */
.sf-top {
  display: grid;
  gap: 32px;
  align-items: end;
  padding-top: clamp(52px, 8vw, 96px);
}

.sf-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font: 500 12px/1.4 var(--sf-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
}

.sf-blink {
  width: 9px;
  height: 9px;
  flex: none;
  background: var(--sf-lilac);
  animation: sf-blink 1.1s steps(1) infinite;
}

.sf-head {
  margin: 0;
  font-weight: 700;
  font-size: clamp(40px, 6.2vw, 78px);
  line-height: .98;
  letter-spacing: -.045em;
  color: #fff;
}

/* Todos los destinos ocupan la misma celda: la caja mide lo del más largo y
   el título nunca cambia de alto al rodar. */
.sf-roll {
  display: grid;
  overflow: hidden;
  padding-bottom: .1em;
  margin-bottom: -.1em;
}

.sf-roll > span {
  grid-area: 1 / 1;
  color: var(--sf-lilac);
  opacity: 0;
  transform: translateY(110%);
  transition: transform .55s cubic-bezier(.75, 0, .2, 1), opacity .45s;
}

.sf-roll > span.is-on { opacity: 1; transform: none; }
.sf-roll > span.is-off { transform: translateY(-110%); }

.sf-search { position: relative; min-width: 0; }
.sf-combo { position: relative; }

.sf-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 16px;
  background: #fff;
  color: #0a0a0a;
  border: 2px solid var(--sf-night);
  border-radius: 18px;
  box-shadow: 6px 6px 0 var(--sf-night);
  transition: transform .15s, box-shadow .15s;
}

.sf-field:focus-within { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--sf-night); }

.sf-field-icon { width: 20px; height: 20px; flex: none; color: var(--sf-violet); }

.sf-field input {
  flex: 1;
  min-width: 0;
  padding: 10px 0;
  border: 0;
  background: transparent;
  appearance: none;
  font: 500 16px/1.3 "Poppins", sans-serif;
  color: #0a0a0a;
  box-shadow: none;
  outline: none;
}

.sf-field input:focus { outline: none; box-shadow: none; }
.sf-field input::placeholder { color: #8f8a99; opacity: 1; }

.sf-go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 12px 18px;
  border: 2px solid var(--sf-night);
  border-radius: 12px;
  background: var(--sf-violet);
  color: #fff;
  font: 600 15px/1 "Poppins", sans-serif;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--sf-night);
  transition: transform .1s, box-shadow .1s;
}

.sf-go:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--sf-night); }
.sf-go:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--sf-night); }
.sf-go-icon { width: 18px; height: 18px; }
.sf-go-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: sf-spin .7s linear infinite;
}
.sf-go.is-loading .sf-go-icon { display: none; }
.sf-go.is-loading .sf-go-spinner { display: block; }

/* Resultados de Google */
.sf-results {
  position: absolute;
  z-index: 30;
  top: calc(100% + 14px);
  left: 0;
  right: 0;
  max-height: min(360px, 60vh);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 8px;
  background: #fff;
  color: #0a0a0a;
  border: 2px solid var(--sf-night);
  border-radius: 18px;
  box-shadow: 6px 6px 0 var(--sf-night);
}

.sf-results[hidden] { display: none; }

.sf-res-group {
  margin: 0;
  padding: 10px 10px 6px;
  font: 500 11px/1.4 var(--sf-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #7b7787;
}

.sf-res {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 12px;
  background: none;
  text-align: left;
  color: inherit;
  cursor: pointer;
}

.sf-res:hover,
.sf-res[aria-selected="true"] { background: var(--sf-soft); }

.sf-res-ico {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 10px;
  background: var(--sf-soft);
  color: var(--sf-violet);
}

.sf-res:hover .sf-res-ico,
.sf-res[aria-selected="true"] .sf-res-ico { background: #fff; }
.sf-res-ico svg { width: 18px; height: 18px; }
.sf-res-text { display: grid; min-width: 0; }
.sf-res-main { font-size: 14px; font-weight: 600; line-height: 1.3; }
.sf-res-sub { overflow: hidden; font-size: 12px; line-height: 1.4; color: #6b6780; white-space: nowrap; text-overflow: ellipsis; }
.sf-res-empty { margin: 0; padding: 12px 10px; font-size: 14px; line-height: 1.5; color: #4c4858; }

.sf-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

.sf-quick a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1.5px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  color: #fff;
  transition: background .15s, color .15s, border-color .15s;
}

.sf-quick a:hover { background: #fff; border-color: #fff; color: var(--sf-violet); }
.sf-quick svg { width: 15px; height: 15px; flex: none; }

/* ---------- cintas cruzadas ---------- */
.sf-tapes {
  position: relative;
  height: clamp(116px, 13vw, 160px);
  margin-top: clamp(40px, 5vw, 60px);
}

.sf-tape {
  position: absolute;
  top: 50%;
  left: -6%;
  width: 112%;
  overflow: hidden;
  padding: 14px 0;
  border-block: 2px solid var(--sf-night);
  font: 700 clamp(13px, 1.3vw, 16px)/1 "Poppins", sans-serif;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.sf-tape-front { z-index: 2; background: #fff; color: var(--sf-violet); transform: translateY(-50%) rotate(-3deg); }
.sf-tape-back { z-index: 1; background: var(--sf-night); color: #fff; transform: translateY(-50%) rotate(2.4deg); }

.sf-tape-track { display: inline-flex; animation: sf-tape 48s linear infinite; }
.sf-tape-back .sf-tape-track { animation-direction: reverse; animation-duration: 60s; }
.sf-tape-track > span { display: inline-flex; align-items: center; gap: 20px; padding-right: 20px; }
.sf-tape-car { width: 20px; height: 20px; flex: none; }
.sf-tape-back .sf-tape-car { color: var(--sf-lilac); }
.sf-tapes:hover .sf-tape-track { animation-play-state: paused; }

/* ---------- columnas + app ---------- */
.sf-mid {
  display: grid;
  gap: 44px;
  padding-top: clamp(28px, 4vw, 44px);
  padding-bottom: clamp(40px, 5vw, 56px);
}

/* Celular: enlaces en dos columnas que se acomodan solas y la app abajo, a
   todo lo ancho. Desde 640px, retícula de 3: en compu la app es la sexta
   celda (3 y 3). */
.sf-cols { columns: 2; column-gap: 20px; }
.sf-col { break-inside: avoid; margin-bottom: 34px; }
.sf-cols > .sf-app { column-span: all; break-inside: avoid; margin-top: 10px; }

.sf-col-title {
  margin: 0 0 14px;
  font: 500 11px/1.4 var(--sf-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
}

.sf-col-title a { font-family: inherit; color: inherit; }
.sf-col-title a:hover { color: #fff; }
.sf-col-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }

.sf-col-list a {
  display: inline-block;
  font-size: 14px;
  line-height: 1.35;
  color: #fff;
  transition: transform .15s, color .15s;
}

.sf-col-list a:hover { color: var(--sf-lilac); transform: translateX(3px); }

.sf-app {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  max-width: 560px;
  margin-right: 8px;
  padding: 20px;
  background: var(--sf-night);
  border: 2px solid var(--sf-night);
  border-radius: 22px;
  box-shadow: 6px 6px 0 var(--sf-lilac);
}

.sf-qr {
  display: none;
  width: 112px;
  height: 112px;
  padding: 8px;
  background: #fff;
  border-radius: 16px;
  transition: transform .2s;
}

.sf-qr:hover { transform: rotate(-3deg) scale(1.04); }
.sf-qr-svg { display: block; width: 100%; height: 100%; }
.sf-app-title { margin: 0 0 6px; font-size: 19px; font-weight: 700; line-height: 1.15; letter-spacing: -.03em; color: #fff; }
.sf-app-body { margin: 0 0 14px; font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .72); }
.sf-stores { display: flex; flex-wrap: wrap; gap: 8px; }
.sf-stores a { display: block; transition: transform .15s; }
.sf-stores a:hover { transform: translateY(-2px); }
.sf-stores img { display: block; width: auto; height: 40px; }

/* ---------- barra legal ---------- */
.sf-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.sf-bar::before {
  content: "";
  flex-basis: 100%;
  height: 2px;
  background: rgba(255, 255, 255, .16);
}

.sf-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 13px; color: rgba(255, 255, 255, .72); }
.sf-legal a { color: inherit; }
.sf-legal a:hover { color: #fff; }
.sf-logo img { display: block; width: auto; height: 26px; }

.sf-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.sf-lang:hover { color: #fff; }
.sf-lang svg { width: 16px; height: 16px; }

.sf-socials { display: flex; gap: 8px; }

.sf-socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
  color: #fff;
  transition: background .15s, color .15s, border-color .15s;
}

.sf-socials a:hover { background: #fff; border-color: #fff; color: var(--sf-violet); }
.sf-socials svg { width: 18px; height: 18px; }
.sf-socials .sf-fill svg { fill: currentColor; }

/* ---------- el nombre en grande ---------- */
.sf-word {
  display: flex;
  justify-content: center;
  margin-top: clamp(32px, 5vw, 72px);
  margin-bottom: -.13em;
  font-weight: 700;
  font-size: 23vw;
  line-height: .78;
  letter-spacing: -.06em;
  color: #fff;
  cursor: default;
  user-select: none;
  touch-action: pan-y;
}

.sf-word span {
  display: inline-block;
  transform-origin: 50% 100%;
  transition: transform .35s cubic-bezier(.2, .9, .25, 1.2), color .2s;
}

.sf-word span.is-hot { color: var(--sf-lilac); }

/* ---------- tamaños ---------- */
@media (max-width: 479px) {
  .sf-go { padding: 12px 14px; }
  .sf-go-label { display: none; }
}

/* En pantallas angostas las cintas casi no se inclinan: se separan para que
   se vean las dos. */
@media (max-width: 767px) {
  .sf-tapes { height: 150px; }
  .sf-tape-back { top: 34%; transform: translateY(-50%) rotate(4deg); }
  .sf-tape-front { top: 64%; transform: translateY(-50%) rotate(-4deg); }
}

@media (min-width: 640px) {
  .sf-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 20px; columns: auto; }
  .sf-col { margin-bottom: 0; }
  .sf-cols > .sf-app { grid-column: 1 / -1; margin-top: 0; }
  .sf-app { grid-template-columns: auto minmax(0, 1fr); gap: 22px; box-shadow: 8px 8px 0 var(--sf-lilac); }
  .sf-qr { display: block; }
}

@media (min-width: 900px) {
  .sf-top { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; }
}

@media (min-width: 1100px) {
  .sf-cols { gap: 48px 40px; }
  .sf-cols > .sf-app { grid-column: auto; align-self: start; max-width: none; }
}

@keyframes sf-blink { 50% { opacity: 0; } }
@keyframes sf-spin { to { transform: rotate(360deg); } }
@keyframes sf-tape { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .sf-tape-track,
  .sf-blink { animation: none; }
  .sf *,
  .sf *::before { transition: none !important; }
}
