/* ============================================================
   assets/styles.css · El Arepazo de Quito
   Composición premium: rueda de sabores, cinta, arepas,
   tipografía display y motion CSS (reduced-motion aware).
   ============================================================ */

:root {
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  font-family: var(--arep-font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.font-display {
  font-family: var(--arep-font-display);
}

/* ------------------------------------------------------------
   Marca / navbar
   ------------------------------------------------------------ */
.arep-brand-name {
  font-family: var(--arep-font-display);
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--arep-crema);
}

.arep-brand-sub {
  margin-top: 0.2rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--arep-amarillo);
}

.arep-nav {
  background: rgba(23, 21, 15, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.arep-nav.is-scrolled {
  background: rgba(23, 21, 15, 0.98);
}

.arep-nav.is-hidden {
  transform: translateY(-100%);
}

.arep-nav-link {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0.8rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(247, 239, 226, 0.72);
  transition: color 0.25s var(--ease-out);
}

.arep-nav-link:hover {
  color: var(--arep-amarillo);
}

.arep-nav-link.is-active {
  color: var(--arep-amarillo);
}

.arep-nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.1rem;
  height: 2px;
  border-radius: 9999px;
  background: var(--arep-amarillo);
}

/* ------------------------------------------------------------
   Textos auxiliares
   ------------------------------------------------------------ */
.arep-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(247, 239, 226, 0.8);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.45rem 0.95rem;
  border-radius: 9999px;
}

.arep-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--arep-dorado-deep);
}

.arep-footer-title {
  font-family: var(--arep-font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--arep-amarillo);
}

/* ------------------------------------------------------------
   Hero title (SplitType)
   ------------------------------------------------------------ */
.arep-hero-title .line {
  overflow: hidden;
}

.arep-hero-title .word {
  display: inline-block;
  transform-origin: 0% 100%;
}

/* ------------------------------------------------------------
   Puntos y discos de arepa
   ------------------------------------------------------------ */
.arep-dot {
  display: inline-block;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 9999px;
  background: var(--disc);
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.15);
}

.arep-disc {
  position: relative;
  display: inline-block;
  border-radius: 9999px;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.28), transparent 55%),
    radial-gradient(circle at 50% 62%, rgba(0, 0, 0, 0.06), transparent 70%),
    var(--disc);
  box-shadow: inset 0 -8px 18px rgba(0, 0, 0, 0.16), 0 14px 30px -12px rgba(0, 0, 0, 0.3);
}

.arep-disc::after {
  content: "";
  position: absolute;
  inset: 16%;
  border-radius: 9999px;
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.12) 0 2px, transparent 2px 9px);
  opacity: 0.35;
}

.arep-disc-md { width: 3.25rem; height: 3.25rem; }
.arep-disc-lg { width: 5rem; height: 5rem; }
.arep-disc-xl { width: 9rem; height: 9rem; }

/* ------------------------------------------------------------
   Rueda de sabores (hero)
   ------------------------------------------------------------ */
.arep-wheel {
  position: relative;
  width: min(29rem, 100%);
  aspect-ratio: 1;
  container-type: inline-size;
}

.arep-wheel-ring {
  position: absolute;
  inset: 0;
  animation: arep-spin 80s linear infinite;
}

.arep-wheel-disc {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20cqw;
  height: 20cqw;
  margin-left: -10cqw;
  margin-top: -10cqw;
  border-radius: 9999px;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.3), transparent 55%),
    var(--disc);
  box-shadow: inset 0 -4px 12px rgba(0, 0, 0, 0.2), 0 10px 22px -8px rgba(0, 0, 0, 0.35);
  transform: rotate(var(--a)) translateY(-36cqw) rotate(calc(-1 * var(--a)));
}

.arep-wheel-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arep-wheel-center::before {
  content: "";
  position: absolute;
  inset: 28%;
  border-radius: 9999px;
  background: var(--arep-negro);
  box-shadow: 0 0 0 2px rgba(233, 184, 0, 0.35), 0 20px 50px -18px rgba(0, 0, 0, 0.6);
}

.arep-wheel-center img {
  position: relative;
}

@keyframes arep-spin {
  to { transform: rotate(360deg); }
}

/* ------------------------------------------------------------
   Cinta de sabores (marquee)
   ------------------------------------------------------------ */
.arep-marquee {
  background: var(--arep-amarillo);
  color: var(--arep-negro);
  overflow: hidden;
  padding: 0.75rem 0;
}

.arep-marquee-track {
  display: flex;
  width: max-content;
}

.arep-marquee-group {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-right: 2.5rem;
  animation: arep-marquee 36s linear infinite;
}

.arep-marquee-group span {
  font-family: var(--arep-font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

@keyframes arep-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* ------------------------------------------------------------
   Fila de sabor (índice editorial)
   ------------------------------------------------------------ */
.arep-sabor {
  transition: background-color 0.35s var(--ease-out);
}

.arep-sabor:hover {
  background-color: color-mix(in srgb, var(--disc) 11%, transparent);
}

.arep-sabor-num {
  font-family: var(--arep-font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--arep-gris);
}

.arep-sabor-link {
  position: relative;
  transition: color 0.25s var(--ease-out);
}

.arep-sabor-link:hover {
  color: var(--arep-dorado-deep);
}

.arep-sabor-link i {
  transition: transform 0.25s var(--ease-out);
}

.arep-sabor-link:hover i {
  transform: translate(2px, -2px);
}

/* ------------------------------------------------------------
   Proceso
   ------------------------------------------------------------ */
.arep-proceso-line {
  transform-origin: 0% 50%;
}

.arep-proceso-num {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background: var(--arep-amarillo);
  color: var(--arep-negro);
  font-family: var(--arep-font-display);
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.3);
}

/* ------------------------------------------------------------
   Contacto
   ------------------------------------------------------------ */
.arep-icon-bubble {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.9rem;
  background: var(--arep-negro);
  color: var(--arep-amarillo);
  flex-shrink: 0;
}

/* ------------------------------------------------------------
   Botones fantasma
   ------------------------------------------------------------ */
.arep-btn-ghost-dark {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--arep-crema);
  background: transparent;
}

.arep-btn-ghost-dark:hover {
  background: rgba(255, 255, 255, 0.08);
}

.arep-btn-ghost-light {
  border: 1px solid var(--arep-linea);
  color: var(--arep-tinta);
  background: transparent;
}

.arep-btn-ghost-light:hover {
  background: rgba(0, 0, 0, 0.04);
}

.arep-btn-ghost-yellow {
  border: 1px solid rgba(23, 21, 15, 0.22);
  color: var(--arep-negro);
  background: transparent;
}

.arep-btn-ghost-yellow:hover {
  background: rgba(23, 21, 15, 0.06);
}

/* ------------------------------------------------------------
   FABs flotantes
   ------------------------------------------------------------ */
.arep-fab {
  position: fixed;
  right: 1.25rem;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}

.arep-fab-wa {
  bottom: 1.25rem;
  background: #25d366;
  color: #fff;
}

.arep-fab-wa:hover {
  transform: translateY(-2px);
  background: #1fbd57;
}

.arep-fab-top {
  bottom: 5.5rem;
  background: var(--arep-negro);
  color: var(--arep-amarillo);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.arep-fab-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ------------------------------------------------------------
   Accesibilidad: reduced motion
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .arep-wheel-ring,
  .arep-marquee-group {
    animation: none !important;
  }

  .arep-hero-title .word {
    transform: none !important;
    opacity: 1 !important;
  }

  * {
    scroll-behavior: auto !important;
  }
}
