/* ============================================================
   Página de enlaces de Oaçis — diseño
   Colores y gráficos: manual de marca de Oaçis (gama cromática, patrón,
   gráficos y complementos). Tipografías alojadas aquí mismo (fonts/).
   ============================================================ */

@font-face {
  font-family: 'Outfit';
  src: url(fonts/outfit.woff2) format('woff2');
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: 'Bowlby One';
  src: url(fonts/bowlby-one.woff2) format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  /* Gama cromática oficial */
  --morado: #770b66;
  --rosa: #df479f;
  --crema: #f4dbb5;
  --amarillo: #f7c63b;
  /* Derivados */
  --morado-hondo: #4f0743;
  --morado-claro: #8e1a7c;
  --crema-clara: #fbecd6;
  --sombra: #3d0534;

  --radio: 22px;
  --ancho: 460px;
  --fuente: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Bowlby One', 'Outfit', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--morado);
  color: var(--crema);
  font-family: var(--fuente);
  font-size: 16px;
  line-height: 1.4;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }

/* ---------------- Fondo ---------------- */

.fondo {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(120% 70% at 50% -10%, var(--morado-claro) 0%, transparent 60%),
    radial-gradient(90% 60% at 50% 115%, var(--morado-hondo) 0%, transparent 70%);
}

/* El patrón del manual: isotipos en diagonal, muy sutiles */
.patron {
  position: absolute;
  inset: -50%;
  background: var(--rosa);
  opacity: .07;
  -webkit-mask: url(img/isotipo.svg) 0 0 / 46px auto repeat;
          mask: url(img/isotipo.svg) 0 0 / 46px auto repeat;
  transform: rotate(-18deg);
  animation: patron 60s linear infinite;
}
@keyframes patron {
  to { transform: rotate(-18deg) translateY(92px); }
}

/* ---------------- Columna ---------------- */

.col {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--ancho);
  margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) 18px max(40px, env(safe-area-inset-bottom));
}

/* ---------------- Hero ---------------- */

.hero { text-align: center; padding: 14px 0 6px; }

.logo {
  margin: 0 auto;
  width: min(70%, 290px);
  animation: entra-logo .9s cubic-bezier(.2, 1.4, .4, 1) both;
}
.logo img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 0 var(--sombra));
}
@keyframes entra-logo {
  from { opacity: 0; transform: translateY(-18px) scale(.86) rotate(-4deg); }
  to   { opacity: 1; transform: none; }
}

.lema {
  margin: 10px 0 0;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .01em;
  animation: aparece .7s .25s ease both;
}
.subrayado {
  position: relative;
  white-space: nowrap;
  color: var(--amarillo);
  font-weight: 700;
}
.subrayado::after {
  content: '';
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: -5px;
  height: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8' preserveAspectRatio='none'%3E%3Cpath d='M1 5.5C18 1 30 7.5 50 4s32-3 49 1' fill='none' stroke='%23df479f' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

/* ---------------- Fondo animado: el bowl que se arma (bowl.js) ---------------- */

/* Va al lado del logo: se ve completa y no empuja los enlaces hacia abajo
   (detrás de los botones quedaba tapada; detrás del logo, lo enredaba). */
.hero {
  display: grid;
  grid-template-columns: 1fr 42%;
  grid-template-areas: 'logo bowl' 'lema bowl';
  align-items: center;
  column-gap: 4px;
  text-align: left;
}
.hero .logo { grid-area: logo; width: 100%; margin: 0; align-self: end; }
.hero .lema { grid-area: lema; align-self: start; margin-top: 8px; font-size: 15px; text-wrap: balance; }
.escena-fondo {
  grid-area: bowl;
  position: relative;
  z-index: -1;
  width: 118%;
  margin-left: -6%;
  aspect-ratio: 260 / 250;
  pointer-events: none;
}
.escena-fondo svg { width: 100%; height: 100%; overflow: visible; }

/* Los elementos SVG animados giran/escalan sobre su propio centro */
.escena-fondo .caida, .escena-fondo .chispa, #vaso, #superficie { transform-box: fill-box; transform-origin: center; }
#vaso { transform-origin: 50% 100%; }

.rayos { animation: gira 48s linear infinite; transform-box: view-box; transform-origin: 130px 135px; }
.rayos path { fill: var(--crema); opacity: .07; }

.sombra-vaso { fill: rgba(30, 0, 25, .45); }
.flotar { animation: flotar 3.4s ease-in-out infinite; }
@keyframes flotar {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.vaso-fondo { fill: rgba(255, 245, 235, .07); }
.vaso-frente { fill: rgba(255, 245, 235, .06); stroke: rgba(255, 240, 225, .6); stroke-width: 2.2; stroke-linejoin: round; }
.borde-atras { fill: none; stroke: rgba(255, 240, 225, .35); stroke-width: 2; }
.borde-frente { fill: none; stroke: rgba(255, 240, 225, .75); stroke-width: 2.6; }
.vaso-brillo { fill: url(#g-brillo); opacity: .8; }
.vaso-logo { opacity: .92; }

.ola { animation: ola 1.1s linear infinite; }
@keyframes ola { to { transform: translateX(-40px); } }

/* ---------------- Bloques ---------------- */

.bloque { margin-top: 30px; animation: aparece .7s .35s ease both; }

@keyframes aparece {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* Etiqueta tipo "banda" de la carta (RECOMENDADOS, ESPECIALES) */
.etiqueta {
  position: relative;
  display: flex;
  align-items: center;
  width: fit-content;
  margin: 0 auto 16px;
  padding: 9px 20px 8px 50px;
  border-radius: 999px;
  background: var(--crema);
  color: var(--morado);
  font-family: var(--display);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: .02em;
  text-transform: uppercase;
  box-shadow: 0 4px 0 var(--sombra);
}
.etiqueta-ico {
  position: absolute;
  left: -10px;
  top: 50%;
  width: 50px;
  height: 50px;
  translate: 0 -50%;
  fill: var(--rosa);
  filter: drop-shadow(0 3px 0 var(--sombra));
}
.etiqueta-rosa { background: var(--rosa); color: var(--crema); }
.etiqueta-rosa .etiqueta-ico { fill: var(--amarillo); }

.pista {
  margin: 12px 0 0;
  text-align: center;
  font-size: 15px;
  opacity: .85;
}
.pista-chica { font-size: 13px; opacity: .7; }

/* ---------------- Selector de ciudad ---------------- */

.ciudades {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ciudad {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-height: 104px;
  padding: 14px 14px 12px;
  border: 0;
  border-radius: var(--radio);
  background: var(--morado-hondo);
  color: var(--crema);
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 0 0 2px rgba(244, 219, 181, .22), 0 5px 0 var(--sombra);
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.ciudad:hover { transform: translateY(-2px); }
.ciudad:active { transform: translateY(3px); box-shadow: inset 0 0 0 2px rgba(244, 219, 181, .22), 0 2px 0 var(--sombra); }

.ciudad-nombre {
  font-family: var(--display);
  font-size: 21px;
  line-height: 1.1;
}
.ciudad-zona { font-size: 14px; opacity: .75; }

.ciudad-estado {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
  font-size: 12.5px;
  font-weight: 600;
}
.ciudad-estado::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.ciudad-estado.abierto { color: var(--amarillo); }
.ciudad-estado.abierto::before { animation: late 1.6s ease-in-out infinite; }
.ciudad-estado.cerrado { color: var(--crema); opacity: .7; }

.ciudad[aria-checked='true'] {
  background: var(--crema);
  color: var(--morado);
  box-shadow: inset 0 0 0 3px var(--amarillo), 0 5px 0 var(--sombra);
}
.ciudad[aria-checked='true'] .ciudad-estado.abierto { color: var(--rosa); }
.ciudad[aria-checked='true'] .ciudad-estado.cerrado { color: var(--morado); }
.ciudad[aria-checked='true']::after {
  content: '';
  position: absolute;
  top: -10px;
  right: -8px;
  width: 34px;
  height: 40px;
  background: var(--rosa);
  -webkit-mask: url(img/isotipo.svg) center / contain no-repeat;
          mask: url(img/isotipo.svg) center / contain no-repeat;
  animation: rebote .5s cubic-bezier(.2, 1.6, .4, 1) both;
}

/* ¿Aún no elige? Las tarjetas laten para invitar */
.sin-sede .ciudad { animation: invita 2.4s ease-in-out infinite; }
.sin-sede .ciudad + .ciudad { animation-delay: .3s; }
@keyframes invita {
  0%, 100% { transform: none; }
  50% { transform: translateY(-4px); }
}
@keyframes late {
  0%, 100% { box-shadow: 0 0 0 0 currentColor; }
  50% { box-shadow: 0 0 0 4px transparent; opacity: .55; }
}
@keyframes rebote {
  from { opacity: 0; transform: scale(.3) rotate(-30deg); }
  to   { opacity: 1; transform: none; }
}

/* ---------------- Enlaces ---------------- */

.enlaces { display: grid; gap: 14px; margin-top: 22px; }
.enlaces.entra > * { animation: sube .55s cubic-bezier(.2, 1.2, .4, 1) both; }
.enlaces.entra > *:nth-child(2) { animation-delay: .05s; }
.enlaces.entra > *:nth-child(3) { animation-delay: .1s; }
.enlaces.entra > *:nth-child(4) { animation-delay: .15s; }
.enlaces.entra > *:nth-child(5) { animation-delay: .2s; }
.enlaces.entra > *:nth-child(6) { animation-delay: .25s; }
@keyframes sube {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

.aviso {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(79, 7, 67, .7);
  font-size: 14.5px;
  text-align: center;
  text-wrap: balance;
}
.aviso .punto {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--amarillo);
  color: var(--amarillo);
  animation: late 1.6s ease-in-out infinite;
}
.aviso.cerrado .punto { background: var(--crema); color: var(--crema); animation: none; opacity: .6; }
.aviso.cerrado { line-height: 1.5; }
.aviso strong { color: var(--amarillo); font-weight: 700; }

.btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 72px;
  padding: 12px 18px 12px 12px;
  border: 0;
  border-radius: var(--radio);
  background: var(--crema);
  color: var(--morado);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 0 var(--sombra);
  transition: transform .15s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px) rotate(-.4deg); box-shadow: 0 8px 0 var(--sombra); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--sombra); }
.btn:focus-visible, .ciudad:focus-visible, .carrusel:focus-visible, .bowl:focus-visible, .ig:focus-visible, .sello:focus-visible {
  outline: 3px solid var(--amarillo);
  outline-offset: 3px;
}

.btn-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--morado);
}
.btn-ico svg { width: 25px; height: 25px; fill: var(--crema); }

.btn-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.btn-titulo { font-weight: 800; font-size: 18px; line-height: 1.2; }
.btn-sub { font-size: 14px; opacity: .78; line-height: 1.3; }
.btn-flecha {
  flex: none;
  font-size: 22px;
  font-weight: 700;
  transition: transform .2s ease;
}
.btn:hover .btn-flecha { transform: translateX(4px); }

/* El botón principal: hoy "Pide tu domi" (la web), donde Oaçis quiere los pedidos */
.btn-principal {
  position: relative;
  min-height: 84px;
  background: var(--rosa);
  color: var(--crema-clara);
  overflow: hidden;
}
.btn-principal .btn-ico { background: var(--amarillo); }
.btn-principal .btn-ico svg { fill: var(--morado); }
.btn-principal .btn-titulo { font-size: 20px; }
.btn-principal .btn-sub { opacity: .92; }
.btn-principal::after {
  /* destello que pasa cada tanto */
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 30%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent);
  transform: skewX(-18deg);
  animation: destello 4.5s 1.2s ease-in-out infinite;
}
@keyframes destello {
  0%, 70% { left: -40%; }
  100% { left: 130%; }
}

/* ---------------- Oaçis App (discreto) ---------------- */

.app-oacis {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  margin-top: 22px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(79, 7, 67, .55);
  box-shadow: inset 0 0 0 1.5px rgba(244, 219, 181, .16);
  font-size: 13.5px;
  text-align: center;
}
.app-txt { display: inline-flex; align-items: center; gap: 6px; opacity: .9; }
.app-txt svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.app-txt strong { color: var(--amarillo); }
.app-tiendas { display: inline-flex; gap: 8px; }
.app-tienda {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--crema);
  color: var(--morado);
  font-weight: 700;
  font-size: 12.5px;
  text-decoration: none;
  transition: transform .15s ease;
}
.app-tienda svg { width: 13px; height: 13px; fill: currentColor; }
.app-tienda:hover { transform: translateY(-1px); }
.app-tienda:focus-visible { outline: 2px solid var(--amarillo); outline-offset: 2px; }

/* ---------------- Carrusel de favoritos ---------------- */

.carrusel {
  display: flex;
  gap: 14px;
  margin: 0 -18px;
  padding: 6px 18px 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 18px;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.carrusel::-webkit-scrollbar { display: none; }

.bowl {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 0 168px;
  padding: 10px 10px 12px;
  border: 0;
  border-radius: var(--radio);
  background: var(--crema);
  color: var(--morado);
  font: inherit;
  text-align: left;
  text-decoration: none;
  scroll-snap-align: start;
  cursor: pointer;
  box-shadow: 0 6px 0 var(--sombra);
  transition: transform .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.bowl:nth-child(odd) { rotate: -1.2deg; }
.bowl:nth-child(even) { rotate: 1.2deg; }
.bowl:hover { transform: translateY(-4px); }
.bowl:active { transform: translateY(3px); }

.bowl-foto {
  aspect-ratio: 1;
  border-radius: 16px;
  background: var(--crema-clara);
  overflow: hidden;
}
.bowl-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;     /* el fondo gris de la foto se funde con el crema */
  transform: scale(1.22);
  transition: transform .35s ease;
}
.bowl:hover .bowl-foto img { transform: scale(1.32) rotate(-3deg); }

.bowl-nombre {
  margin-top: 10px;
  font-family: var(--display);
  font-size: 15px;
  line-height: 1.15;
}
.bowl-toppings {
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.3;
  opacity: .8;
  flex: 1;
}
.bowl-cta {
  align-self: flex-start;
  margin-top: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--morado);
  color: var(--crema);
  font-size: 13px;
  font-weight: 700;
}

/* ---------------- Pie ---------------- */

.pie {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  text-align: center;
}
.sello { display: block; width: 112px; border-radius: 50%; }
.sello img { width: 100%; height: auto; animation: gira 26s linear infinite; }
@keyframes gira { to { rotate: 360deg; } }

.ig {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(79, 7, 67, .7);
  font-weight: 700;
  text-decoration: none;
}
.ig svg { width: 20px; height: 20px; fill: currentColor; }
.ig:hover { color: var(--amarillo); }
.pie-txt { margin: 4px 0 0; font-size: 13px; opacity: .65; letter-spacing: .04em; }

.sin-js { position: relative; z-index: 2; padding: 16px; text-align: center; }

/* ---------------- Escritorio ---------------- */

@media (min-width: 760px) {
  .col { padding-top: 48px; }
}

/* ---------------- Menos movimiento ---------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
