/* Web de Picados: mismos colores y letras que la app (src/theme). */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/bricolage-800.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-600.woff2') format('woff2');
}

:root {
  --white: #ffffff;
  --surface: #f5f4f1; /* Hueso */
  --ink: #111113; /* Tinta */
  --flame: #ff4d2e; /* Llama */
  --mist: #8e8e93; /* Niebla */
  --border: #e6e4df;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --text: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.wrap {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Logo: "picad" + la o como cuenta atrás + "s" ---- */

.wordmark {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--display);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
}
.wordmark svg {
  width: 0.556em;
  height: 0.556em;
  margin: 0 0.03em;
  overflow: visible;
}

.site-header {
  padding-top: 20px;
  padding-bottom: 8px;
}

/* ---- Inicio ---- */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 48px;
  padding-bottom: 48px;
}

.lo-mas {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 88px;
  line-height: 1.05;
  letter-spacing: -3px;
  color: var(--flame);
}

.word-slot {
  position: relative;
  height: 70px;
  overflow: hidden;
}
.word {
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 56px;
  line-height: 1.15;
  letter-spacing: -1.5px;
  white-space: nowrap;
}
.word.enter {
  animation: word-in 450ms ease-out both;
}
.word.leave {
  animation: word-out 300ms ease-in both;
}
@keyframes word-in {
  from {
    transform: translateY(40%);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes word-out {
  to {
    transform: translateY(-40%);
    opacity: 0;
  }
}

.tagline {
  margin: 24px 0 0;
  font-size: 18px;
  line-height: 26px;
  color: var(--mist);
}

.store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  align-self: flex-start;
}
.store {
  cursor: default;
}
.store svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ---- Páginas de texto (Ayuda, Privacidad, Términos, Normas) ---- */

.page {
  flex: 1;
  padding-top: 32px;
  padding-bottom: 56px;
}

.page h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -1px;
}

.updated {
  margin: 8px 0 32px;
  font-size: 14px;
  color: var(--mist);
}

.page h2 {
  margin: 36px 0 8px;
  font-family: var(--text);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
}

.page p,
.page li {
  margin: 0 0 12px;
}

.page ul,
.page ol {
  padding-left: 22px;
  margin: 0 0 12px;
}

.note {
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--surface);
}

/* Textos legales: resumen arriba, apartados y tabla de datos */
.summary {
  margin-bottom: 8px;
}

.page h2 + p,
.page h2 + ul {
  margin-top: 0;
}

.data {
  width: 100%;
  margin: 4px 0 16px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.45;
}

.data th,
.data td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.data th {
  font-weight: 600;
  color: var(--mist);
  font-size: 13px;
}

/* En el móvil, cada fila de la tabla pasa a ser una ficha */
@media (max-width: 560px) {
  .data thead {
    display: none;
  }
  .data tr {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .data td {
    display: block;
    padding: 2px 0;
    border: 0;
  }
  .data td:first-child {
    font-weight: 600;
  }
  .data td:not(:first-child)::before {
    content: attr(data-label) ': ';
    color: var(--mist);
  }
}

/* Preguntas de Ayuda: se abren al tocarlas */
details {
  border-bottom: 1px solid var(--border);
}
details:first-of-type {
  border-top: 1px solid var(--border);
}
summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  font-weight: 600;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: '';
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-right: 2px solid var(--mist);
  border-bottom: 2px solid var(--mist);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 200ms ease;
}
details[open] summary::after {
  transform: rotate(-135deg) translate(-3px, 0);
}
details .answer {
  padding: 0 0 12px;
}

kbd {
  font-family: var(--text);
  font-weight: 600;
  font-size: 0.9em;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--surface);
}

/* ---- Pie ---- */

.site-footer {
  padding-top: 24px;
  padding-bottom: 32px;
  font-size: 14px;
  color: var(--mist);
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 4px;
}
.site-footer a {
  color: var(--mist);
  text-decoration: none;
  padding: 4px 0;
}
.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
}
.site-footer .dot {
  padding: 4px 4px;
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--flame);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (min-width: 720px) {
  .lo-mas {
    font-size: 112px;
  }
  .word-slot {
    height: 84px;
  }
  .word {
    font-size: 68px;
  }
  .tagline {
    font-size: 20px;
    line-height: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .word.enter,
  .word.leave {
    animation: none;
  }
}

/* Texto solo para lectores de pantalla */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.site-footer .contact {
  margin: 4px 0 0;
}
