/* === RESET & BASE === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #1e1e1e;
  --bg-alt: #252525;
  --bg-card: #2a2a2a;
  --primary: #f9c307;
  --primary-dim: #d4a506;
  --secondary: #e57682;
  --secondary-dim: #c85d6a;
  --text: #ffffff;
  --text-dim: #a0a0a0;
  --text-muted: #6b6b6b;
  --radius: 16px;
  --radius-sm: 8px;
  --font: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Outfit (OFL), servida desde el propio dominio: nada de CDN, ni una peticion a
   terceros. Es variable, asi que un unico fichero cubre los pesos 100-900. */
@font-face {
  font-family: "Outfit";
  src: url("../assets/fonts/outfit-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* === TYPOGRAPHY === */
h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h3 {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 400;
}

p {
  color: var(--text-dim);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
}

.highlight {
  color: var(--primary);
  font-weight: 400;
}

/* TM y no R: la marca esta solicitada pero el registro no ha terminado, y el simbolo
   R solo se puede usar con el registro concedido. Mismo tamano que en la app. */
.tm {
  font-size: 0.85em;
  margin-inline-start: 1px;
}

/* La moneda se escribe con el logotipo de la cabecera delante y la palabra en
   minuscula. El nowrap mantiene logo y palabra en la misma linea, y el
   text-transform: none la protege de las etiquetas en mayusculas. */
.coin-name {
  white-space: nowrap;
  text-transform: none;
}

/* El logotipo mide 380x120 y la linea base de las letras cae en y=91, con las
   panzas de la o y la a entre y=33 e y=91. A 1.05em la altura de esas letras
   coincide con la del texto de alrededor, y el vertical-align baja la imagen los
   29px (de 120) que van de la linea base al borde inferior. */
.coin-name img {
  /* El reset de arriba pone todas las imagenes en display: block, que aqui partia
     el logotipo y la palabra en dos lineas. */
  display: inline-block;
  height: 1.05em;
  width: auto;
  vertical-align: -0.25em;
  margin-right: 0.18em;
}

/* === UTILITY === */
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 2rem);
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.25;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
  max-width: 100%;
  min-width: 0;
}

.btn-primary {
  background: var(--primary);
  color: #1a1a1a;
}

.btn-primary:hover {
  background: var(--primary-dim);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(249, 195, 7, 0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(249, 195, 7, 0.2);
}

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(30, 30, 30, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar .logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.navbar .logo .logo-word {
  height: 45px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  position: relative;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text-dim);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
}

/* Siete idiomas no caben en pastillas, asi que va un <select> nativo: en el movil
   abre el selector del sistema y no hay que mantener un desplegable a mano. Ensena
   el codigo (ES, EN, DE...) porque con los nombres completos "Portugues" obligaria a
   adelantar el menu hamburguesa. */
.lang-select {
  background: var(--bg-alt);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  padding: 5px 10px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 400;
  cursor: pointer;
  transition: var(--transition);
}

.lang-select:hover,
.lang-select:focus-visible {
  border-color: var(--primary);
  color: var(--primary);
}

/* Las opciones las pinta el sistema: sin color propio, en Windows salen en blanco
   sobre blanco. */
.lang-select option {
  background: #1a1a1a;
  color: #f0f0f0;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
  border-radius: 2px;
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(249, 195, 7, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 6rem 1rem 3rem;
}

.hero-coin {
  width: clamp(100px, 20vw, 150px);
  height: auto;
  filter: drop-shadow(0 0 40px rgba(249, 195, 7, 0.35));
  animation: float 4s ease-in-out infinite;
}

.hero-logo {
  margin: 0;
  line-height: 0;
}

/* tope en 400px: es el ancho nativo del PNG, por encima se veria blando */
.hero-logo img {
  /* El tope es el ancho NATIVO del logo (380px): por encima se ampliaria y se veria
     blando. Si cambias logo.png, ajusta este numero a su ancho real. */
  width: clamp(220px, 50vw, 380px);
  height: auto;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-16px);
  }
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.3rem);
  color: var(--secondary);
  font-weight: 400;
  letter-spacing: 0.05em;
}

.hero-tagline {
  font-size: clamp(1.1rem, 3.5vw, 1.5rem);
  color: var(--text-dim);
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 0.5rem;
}

/* Boton fijo de movil. Solo existe por debajo de 768px, solo si hay enlace de beta y
   solo cuando el boton del hero ya ha salido de pantalla (lo pone .is-shown desde
   main.js): con los dos a la vista a la vez seria el mismo boton repetido. */
.sticky-cta {
  display: none;
}

@media (max-width: 768px) {
  .sticky-cta {
    display: block;
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    z-index: 900;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    transform: translateY(160%);
    transition: transform var(--transition);
  }

  .sticky-cta.is-shown {
    transform: none;
  }

  .sticky-cta[hidden] {
    display: none;
  }

  /* Mientras se decide lo de las cookies, el aviso ocupa ese mismo sitio */
  body:has(.cookie-banner.visible) .sticky-cta {
    display: none;
  }
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.store-badges .label {
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.6rem;
  background: var(--bg-alt);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-dim);
  transition: var(--transition);
  /* Sin cursor de mano y sin hover mientras no haya fichas en las tiendas: el
     distintivo informa, no lleva a ningun sitio. Cuando existan los enlaces, esto
     vuelve a ser cursor: pointer mas la regla :hover de debajo. */
  cursor: default;
}

/* Logos de tienda: en reposo siguen el color del texto y al pasar por encima
   cogen el color oficial de cada marca (degradados definidos en el sprite). */
.store-icon {
  fill: currentColor;
  transition: fill var(--transition);
}

/* Colores oficiales de Google (los del logo actual de Play), uno por pieza del
   triangulo. Van como custom properties porque son lo unico que atraviesa el
   <use>: el resto del CSS no llega a los paths del sprite. */
.store-badge:hover .store-play,
.beta-btn:hover .store-play {
  --play-left: #4285f4;
  --play-top: #34a853;
  --play-bottom: #ea4335;
  --play-tip: #fbbc04;
}

.store-badge:hover .store-apple,
.beta-btn:hover .store-apple {
  fill: url(#grad-appstore);
}

.store-badge svg {
  width: 26px;
  height: 26px;
}

.flag-eu {
  width: 20px;
  height: auto;
  border-radius: 2px;
  flex-shrink: 0;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator span {
  display: block;
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* === SECTIONS === */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-subtitle {
  margin-top: 0.5rem;
}

.section-header h2 {
  margin-bottom: 0.5rem;
}

/* === REVEAL ANIMATIONS === */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* === ABOUT SECTION === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text h2 {
  margin-bottom: 1.5rem;
}

.about-text p {
  margin-bottom: 1rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.p2p-badge,
.europe-badge,
.eco-badge,
.local-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 400;
}

.p2p-badge {
  background: rgba(229, 118, 130, 0.12);
  border: 1px solid rgba(229, 118, 130, 0.2);
  color: var(--secondary);
}

.europe-badge,
.local-badge {
  background: rgba(249, 195, 7, 0.1);
  border: 1px solid rgba(249, 195, 7, 0.22);
  color: var(--primary);
}

.about-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}

.about-grid > *,
.privacy-grid > * {
  min-width: 0;
}

.peer-nodes {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.6rem, 7vw, 2rem);
}

.peer-node {
  width: clamp(44px, 13vw, 60px);
  height: clamp(44px, 13vw, 60px);
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-node 2s ease-in-out infinite;
}

/* Desfase de los latidos. Por clase y no por :nth-child, porque los nodos alternan con las
   líneas (nodo, línea, nodo, línea, nodo) y :nth-child cuenta las dos cosas: esas reglas no
   daban con los nodos, y lo que de verdad desfasaba eran unos style="" en el HTML. La
   política de contenido de la web no admite estilos en línea, así que viven aquí. */
.peer-node--2 {
  animation-delay: 0.5s;
}

.peer-node--3 {
  animation-delay: 1s;
}

.peer-line--2 {
  animation-delay: 0.25s;
}

@keyframes pulse-node {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(249, 195, 7, 0.3);
  }
  50% {
    box-shadow: 0 0 0 16px rgba(249, 195, 7, 0);
  }
}

.peer-line {
  width: clamp(18px, 9vw, 40px);
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
  position: relative;
}

.peer-line::after {
  content: "";
  position: absolute;
  top: -3px;
  right: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: flow 1.5s linear infinite;
}

@keyframes flow {
  0% {
    right: 100%;
  }
  100% {
    right: 0;
  }
}

/* === PRIVACY SECTION === */
.privacy-section {
  background: var(--bg-alt);
}

.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.privacy-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === PHONE MOCKUP === */
.phone {
  position: relative;
  width: min(288px, 92%);
  /* La altura la marca la pantalla (.phone-screen), que lleva la proporcion real del
     movil con el que se hicieron las capturas: asi entran enteras y no hay que recortar. */
  padding: 10px;
  border-radius: 40px;
  background: linear-gradient(150deg, #3a3a3a, #101010 55%, #2c2c2c);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.07),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  animation: phone-float 6s ease-in-out infinite;
}

.privacy-visual::before {
  content: "";
  position: absolute;
  width: 115%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 195, 7, 0.14) 0%, transparent 62%);
  pointer-events: none;
}

/* En movil el resplandor ocupa toda la columna, y al 115% sobresalia 5-6px por fuera de la
   pantalla: poco, pero bastaba para que la pagina se pudiera arrastrar de lado. Como se
   desvanece al 62% del radio, a 100% se ve exactamente igual. */
@media (max-width: 768px) {
  .privacy-visual::before {
    width: 100%;
  }
}

.phone::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 62px;
  height: 6px;
  border-radius: 50px;
  background: #000;
  z-index: 3;
}

@keyframes phone-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

.phone-screen {
  position: relative;
  aspect-ratio: 1080 / 2400;
  border-radius: 31px;
  overflow: hidden;
  background: #121212;
  display: flex;
  flex-direction: column;
  font-size: 11px;
  line-height: 1.35;
  text-align: left;
}

/* Carrusel de capturas reales de la app.
   Las diapositivas se apilan una encima de otra y se cruzan con opacidad: nada se mueve
   de sitio, asi que no hace falta reservar espacio ni medir nada. Cuando hay capturas,
   js/main.js pone .has-shots en la pantalla y el mockup en CSS se apaga entero: es el
   respaldo mientras no haya ficheros, no algo que se vea a la vez. */
.app-shots {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.app-shots img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* Recorta por abajo: arriba esta la barra de estado, que da veracidad, y abajo solo la
     barra de gestos de Android. */
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transition: opacity 700ms ease;
}

.app-shots img.is-on {
  opacity: 1;
}

.phone-screen.has-shots > :not(.app-shots) {
  display: none;
}

/* Con el sistema en "menos movimiento": ni flotar ni fundidos. Las capturas siguen
   pasando, pero de golpe, que es un cambio de contenido y no un movimiento. */
@media (prefers-reduced-motion: reduce) {
  .phone {
    animation: none;
  }

  .app-shots img {
    transition: none;
  }

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.app-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 4px;
  font-size: 9px;
  font-weight: 400;
  color: var(--text);
  flex-shrink: 0;
}

.app-status-icons {
  display: flex;
  gap: 3px;
}

.app-status-icons svg {
  width: 11px;
  height: 11px;
}

.app-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  background: #1f1f1f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.app-back {
  width: 13px;
  height: 13px;
  color: var(--text-dim);
  flex-shrink: 0;
}

.app-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #1a1a1a;
  font-weight: 600;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.app-title {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  flex: 1;
  min-width: 0;
}

.app-title strong {
  font-size: 11px;
  color: var(--text);
}

.app-online {
  font-size: 8px;
  color: var(--primary);
}

.app-actions {
  display: flex;
  gap: 7px;
  color: var(--text-dim);
  flex-shrink: 0;
}

.app-actions svg {
  width: 13px;
  height: 13px;
}

.app-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 10px 9px;
  overflow: hidden;
}

.e2e-notice {
  display: flex;
  align-items: center;
  gap: 5px;
  align-self: center;
  text-align: center;
  padding: 5px 9px;
  border-radius: 8px;
  background: rgba(249, 195, 7, 0.1);
  border: 1px solid rgba(249, 195, 7, 0.18);
  color: var(--primary);
  font-size: 8px;
  line-height: 1.3;
}

.e2e-notice svg {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}

.msg {
  display: flex;
  flex-direction: column;
  max-width: 82%;
}

.msg.in {
  align-self: flex-start;
  align-items: flex-start;
}

.msg.out {
  align-self: flex-end;
  align-items: flex-end;
}

.msg-meta {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 7.5px;
  color: var(--text-muted);
  margin-bottom: 2px;
  padding: 0 3px;
}

.msg-meta .tick {
  width: 11px;
  height: 7px;
  color: var(--primary);
}

.bubble {
  padding: 7px 9px;
  background: #1f1f1f;
  color: var(--text);
  font-size: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.msg.in .bubble {
  border-radius: 2px 10px 10px 10px;
}

.msg.out .bubble {
  background: #2c2c2c;
  border-radius: 10px 2px 10px 10px;
}

.bubble-coin {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--primary) !important;
  color: #1a1a1a;
  font-weight: 400;
}

.bubble-coin img {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.app-input {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 9px 12px;
  background: #1f1f1f;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.app-input-box {
  flex: 1;
  padding: 6px 10px;
  border-radius: 50px;
  background: #121212;
  color: var(--text-muted);
  font-size: 9px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.app-send {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.app-send svg {
  width: 12px;
  height: 12px;
  color: #1a1a1a;
}

.privacy-text h2 {
  margin-bottom: 1.5rem;
}

.privacy-text p {
  margin-bottom: 1rem;
}

.eco-badge {
  background: rgba(79, 168, 10, 0.12);
  border: 1px solid rgba(79, 168, 10, 0.25);
  color: #6dc42a;
}

/* === COIN VISUAL (shared) === */
.coin-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 800px;
}

.coin-3d {
  width: clamp(140px, 25vw, 200px);
  height: auto;
  filter: drop-shadow(0 0 40px rgba(249, 195, 7, 0.3));
  will-change: transform;
}

.peer-coin {
  width: 28px;
  height: 28px;
}

/* === FEATURES SECTION === */
/* Flex y no grid a proposito: con un numero de funciones que no llena la ultima
   fila, justify-content centra lo que sobra en vez de dejarlo colgando a la
   izquierda, y sigue funcionando si manana hay una funcion mas o una menos. */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.feature-card {
  flex: 0 1 calc((100% - 3rem) / 3);
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 195, 7, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(249, 195, 7, 0.08);
  border: 1px solid rgba(249, 195, 7, 0.18);
  color: var(--primary);
  margin-bottom: 0.5rem;
  transition: var(--transition);
}

.feature-icon svg {
  width: 27px;
  height: 27px;
  /* red de seguridad: las formas macizas del sprite ya llevan fill="currentColor",
     esto cubre cualquier icono nuevo que se anada sin ese atributo */
  fill: currentColor;
}

.feature-icon .feature-img {
  width: 30px;
  height: 30px;
}

.feature-card:hover .feature-icon {
  background: rgba(249, 195, 7, 0.15);
  border-color: rgba(249, 195, 7, 0.45);
  transform: scale(1.06);
}

.feature-card h3 {
  color: var(--text);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* === ECONOMY SECTION === */
.economy-section {
  background: var(--bg-alt);
}

.economy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.economy-text h2 {
  margin-bottom: 1.5rem;
}

.economy-text p {
  margin-bottom: 1rem;
}

.economy-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

.economy-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
}

.economy-card h3 {
  color: var(--text);
  margin-bottom: 1.25rem;
}

.rate-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.rate-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rate-list li:last-child {
  border-bottom: none;
}

.rate-label {
  font-size: 0.95rem;
  color: var(--text-dim);
  text-align: left;
}

.rate-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--primary);
  white-space: nowrap;
  text-align: right;
}

/* Lo que todavia no esta abierto (anuncios y compras) va detras del precio, en la
   misma linea: si hace falta sitio, lo cede la etiqueta de la izquierda. */
.rate-soon {
  font-size: 0.85em;
  font-weight: 400;
  color: var(--text-dim);
}

.fineprint {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-top: 1.25rem;
}

.fineprint.center {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* === ACCOUNT TIERS === */
.accounts-intro {
  max-width: 760px;
  margin: 0 auto;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tiers-table {
  width: 100%;
  min-width: 560px;
  /* separate y no collapse: con collapse el border-radius no recorta las celdas
     y las esquinas se pintan cuadradas sobre el borde redondeado */
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  overflow: hidden;
}

.tiers-table th,
.tiers-table td {
  padding: 0.9rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tiers-table th {
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
}

.tiers-table td {
  color: var(--text-dim);
}

.tiers-table tbody tr:last-child td {
  border-bottom: none;
}

.tiers-table th:first-child,
.tiers-table td:first-child {
  text-align: left;
}

/* colores, degradados y tamanos de icono tal cual account-type.page.scss de la app */
.tier-standard {
  --tier-color: #f9f9f9;
  --tier-grad: linear-gradient(120deg, #f9f9f9 0%, #ffffff 100%);
  --tier-icon: 15px;
}

.tier-bronze {
  --tier-color: #ce8946;
  --tier-grad: linear-gradient(120deg, #ce8946 0%, #e57682 100%);
  --tier-icon: 16.5px;
}

.tier-silver {
  --tier-color: #999b9b;
  --tier-grad: linear-gradient(120deg, #999b9b 0%, #f9f9f9 100%);
  --tier-icon: 18px;
}

.tier-gold {
  --tier-color: #f9c307;
  --tier-grad: linear-gradient(120deg, #f9c307 0%, #e57682 100%);
  --tier-icon: 19.5px;
}

.tier-diamond {
  --tier-color: #c8e5eb;
  --tier-grad: linear-gradient(120deg, #c8e5eb 0%, #e57682 100%);
  --tier-icon: 21px;
}

/* Los cinco niveles sin sus cifras. Reaprovechan las variables --tier-color y
   --tier-grad de la tabla, asi que los colores son los mismos que trae la app. */
.tier-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.tier-chips li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.2rem 0.7rem 1.35rem;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  color: var(--tier-color);
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.0125em;
}

.tier-chips li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 4px;
  border-radius: 0 3px 3px 0;
  background: var(--tier-grad);
}

.tier-name {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.0125em;
  color: var(--tier-color) !important;
  padding-left: 1.5rem !important;
}

.tier-name::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 0 3px 3px 0;
  background: var(--tier-grad);
}

.tier-ribbon {
  width: var(--tier-icon);
  height: var(--tier-icon);
  color: var(--tier-color);
  fill: currentColor;
  flex-shrink: 0;
}

.tier-cnt {
  color: var(--primary) !important;
  font-weight: 500;
}

/* === EARLY ACCESS === */
.early-section {
  text-align: center;
}

.early-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 3rem 2rem;
}

.early-card h2 {
  margin-bottom: 1rem;
}

.early-card p {
  margin-bottom: 2rem;
}

.beta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.beta-btn {
  gap: 0.6rem;
}

.beta-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Sin URL de beta todavia: el boton se ve apagado y no se puede pulsar */
.beta-btn.is-disabled {
  pointer-events: none;
  opacity: 0.45;
  filter: grayscale(0.6);
}

.beta-note {
  margin-top: 0;
  margin-bottom: 0;
}

.early-stores {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.early-stores .label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* === FOOTER === */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2rem 0;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.footer-logo {
  height: 24px;
  width: auto;
  opacity: 0.9;
}

/* el simbolo de marca registrada, en superindice discreto */
.footer p sup {
  font-size: 0.7em;
  vertical-align: super;
  line-height: 0;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-social a {
  display: flex;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-social svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.footer-social .social-ig:hover,
.footer-social .social-ig:focus-visible {
  color: #e4405f;
}

.footer-social .social-yt:hover,
.footer-social .social-yt:focus-visible {
  color: #ff0000;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
}

.footer-links li {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-europe {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-europe .flag-eu {
  width: 18px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .feature-card {
    flex-basis: calc((100% - 1.5rem) / 2);
  }
}

/* El menu pasa a hamburguesa antes que el resto del layout: con 6 enlaces mas el
   selector de idioma no cabe. El limite lo marca el idioma mas largo, el frances
   ("Qu'est-ce que holapp", "Accès anticipé"), que necesita 1007px: por debajo de
   ~1085px el menu se pega al logo sin respiro. Si se traduce a un idioma mas largo,
   hay que volver a medirlo. */
@media (max-width: 1085px) {
  /* Cerrado, el panel se esconde con visibility y no solo subiendolo: translateY(-120%)
     es un porcentaje de SU PROPIA altura, y un panel corto no sube lo bastante. En las
     paginas legales (95px de panel) se quedaba encima de la barra tapando el logo. Con
     visibility: hidden ademas nadie puede tabular a enlaces que no se ven. El retraso de
     la visibility deja terminar la animacion de cierre antes de ocultarlo. */
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(30, 30, 30, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-120%);
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.35s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-links.open {
    transform: translateY(0);
    visibility: visible;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Barras sin boton de hamburguesa (las paginas legales, que solo llevan el selector de
     idioma): no hay nada que plegar, el selector se queda en la barra a cualquier ancho. */
  .nav-links.nav-links--plain {
    position: static;
    flex-direction: row;
    padding: 0;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 0;
    transform: none;
    visibility: visible;
    transition: none;
  }

  .menu-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 4rem 0;
  }

  .hero-content {
    padding-top: 5rem;
  }

  .about-grid,
  .privacy-grid,
  .economy-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-visual,
  .privacy-visual {
    order: -1;
  }

  .feature-card {
    flex-basis: calc((100% - 1.5rem) / 2);
  }

  .economy-cards {
    grid-template-columns: 1fr;
  }

  .badge-row {
    justify-content: center;
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .feature-card {
    flex-basis: 100%;
  }

  .early-card {
    padding: 1.75rem 1.1rem;
  }

  .early-card h2 {
    font-size: 1.55rem;
    line-height: 1.2;
    margin-bottom: 0.75rem;
  }

  .early-card p {
    margin-bottom: 1.25rem;
  }

  .beta-links {
    flex-direction: column;
    margin-bottom: 0.75rem;
  }

  .early-stores {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
  }

  .early-stores .label {
    margin-bottom: 0.75rem;
  }

  .store-links {
    gap: 0.6rem;
  }

  .store-links .store-badge {
    padding: 0.55rem 0.85rem;
    font-size: 0.9rem;
  }

  .beta-btn {
    width: 100%;
  }

  .economy-card {
    padding: 1.75rem 1.25rem;
  }

  .rate-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }

  .rate-value {
    text-align: left;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .navbar .logo .logo-word {
    height: 36px;
  }
}
