/* Mismos tokens que storybook-web/app/globals.css. Si cambian alli, cambian aqui. */
:root {
  --cream-50: #fffefb; --cream-100: #fdfaf4; --cream-200: #f6f0e6; --cream-300: #e9e0d2;
  --mist-100: #eff7fd;
  --brand-50: #f0f9fe; --brand-100: #d9eefc; --brand-300: #85caf5; --brand-500: #1d9ce4; --brand-600: #1481cc; --brand-700: #0f66a6;
  --navy-800: #0e1b3e; --navy-700: #14306a;
  --ink-900: #2b2620; --ink-700: #4a4239; --ink-500: #7a6f62; --ink-300: #a99e90;
  --radius-card: 1.5rem;
  --shadow-soft: 0 2px 8px rgba(88,72,48,.05), 0 8px 24px rgba(88,72,48,.06);
  --shadow-lift: 0 4px 12px rgba(88,72,48,.07), 0 16px 40px rgba(88,72,48,.09);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--cream-100); color: var(--ink-900);
  font-family: "Nunito", ui-sans-serif, system-ui, sans-serif; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: "Fraunces", ui-serif, Georgia, serif; font-weight: 400; }
:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .wrap { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .wrap { padding: 0 2rem; } }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; white-space: nowrap;
  border-radius: 999px; font-weight: 600; background: var(--brand-500); color: #fff;
  box-shadow: var(--shadow-soft); transition: background-color .15s;
  padding: .625rem 1.25rem; font-size: .9375rem;
}
.btn:hover { background: var(--brand-600); }
.btn:active { background: var(--brand-700); }
.btn-lg { padding: .875rem 1.75rem; font-size: 1rem; }

/* Cabecera */
header.site { border-bottom: 1px solid rgba(246,240,230,.8); background: rgba(255,254,251,.8); backdrop-filter: blur(4px); }
header.site .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-top: .75rem; padding-bottom: .75rem; }
header.site .logo img { height: 3rem; width: auto; }
header.site .cta { display: none; justify-self: end; }
@media (min-width: 640px) { header.site .logo img { height: 3.5rem; } header.site .cta { display: block; } }

/* Hero */
.hero { background: var(--cream-100); padding: 3rem 0; }
.hero .grid { display: grid; gap: 2.5rem; align-items: center; }
.hero h1 { font-size: 2.25rem; line-height: 1.14; text-wrap: balance; }
.hero .lead { margin-top: 1.25rem; max-width: 32rem; font-size: 1.125rem; line-height: 1.625; color: var(--ink-700); }
.hero .actions { margin-top: 2rem; display: flex; flex-direction: column; gap: .75rem; }
.hero .actions .btn { width: 100%; }
.hero .note { font-size: .875rem; color: var(--ink-500); }
.hero .art { width: 100%; max-width: 36rem; margin: 0 auto; }
.hero .art > div { overflow: hidden; border-radius: var(--radius-card); background: #fff; padding: .75rem; box-shadow: var(--shadow-lift); }
.hero .art img { width: 100%; border-radius: 1.1rem; }
@media (min-width: 640px) {
  .hero { padding: 5rem 0; }
  .hero h1 { font-size: 3rem; }
  .hero .actions { flex-direction: row; align-items: center; }
  .hero .actions .btn { width: auto; }
  .hero .note { margin-left: .5rem; }
}
@media (min-width: 1024px) {
  .hero .grid { grid-template-columns: 1.15fr 1fr; gap: 3.5rem; }
  .hero h1 { font-size: 3.25rem; }
  .hero .art { max-width: none; }
}

/* Tarjetas */
.card { border-radius: var(--radius-card); background: #fff; box-shadow: var(--shadow-soft); }
.card-sm { padding: 1rem; }
.card-flush { overflow: hidden; }
.card-interactive { transition: box-shadow .2s; }
.card-interactive:hover { box-shadow: var(--shadow-lift); }

/* Historias */
.stories { background: var(--mist-100); padding: 3.5rem 0; }
.stories h2, .how h2 { font-size: 1.875rem; color: var(--ink-900); }
.stories .intro { max-width: 36rem; }
.stories .intro p { margin-top: .75rem; font-size: 1.125rem; color: var(--ink-700); }
.chips { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  font: inherit; cursor: pointer; border-radius: 999px; border: 1px solid var(--cream-300); background: #fff; color: var(--ink-700);
  padding: .5rem 1rem; font-size: .875rem; font-weight: 600; transition: color .15s, border-color .15s, background-color .15s;
}
.chip:hover { border-color: var(--brand-300); color: var(--brand-700); }
.chip span { margin-left: .375rem; color: var(--ink-300); }
.chip[aria-pressed="true"] { border-color: var(--brand-500); background: var(--brand-500); color: #fff; }
.chip[aria-pressed="true"] span { color: rgba(255,255,255,.7); }
.grid-stories { margin-top: 2rem; display: grid; gap: 1.5rem; }
.grid-stories > li[hidden] { display: none; }
.grid-stories .card { height: 100%; }
.cover { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 1rem; }
.cover img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.soon {
  position: absolute; left: .5rem; top: .5rem; border-radius: 999px; background: rgba(43,38,32,.85); color: #fff;
  padding: .25rem .625rem; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .025em; box-shadow: var(--shadow-soft);
}
.card-text { padding: 1rem .5rem .25rem; }
.card-text h3 { font-size: 1.25rem; line-height: 1.4; color: var(--ink-900); }
.card-text p { margin-top: .375rem; color: var(--ink-500); }
.more { margin-top: 2.5rem; display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.more p { color: var(--ink-500); }
@media (min-width: 640px) {
  .stories { padding: 5rem 0; }
  .stories h2, .how h2 { font-size: 2.25rem; }
  .grid-stories { grid-template-columns: repeat(2, 1fr); }
  .more { flex-direction: row; align-items: center; }
}
@media (min-width: 1024px) { .grid-stories { grid-template-columns: repeat(3, 1fr); } }

/* Como funciona */
.how { background: var(--cream-50); padding: 3.5rem 0; }
.how .head { max-width: 42rem; margin: 0 auto; text-align: center; }
.how .head .a { margin-top: .75rem; font-size: 1.125rem; color: var(--ink-700); }
.how .head .b { margin-top: .5rem; color: var(--ink-500); }
.how .groups { margin-top: 3rem; display: grid; gap: 3rem; }
.group-title { text-align: center; font-size: .875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .18em; color: var(--brand-600); }
.steps { margin-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.steps > li { width: 100%; }
.step { display: flex; height: 100%; flex-direction: column; }
.step img { width: 100%; }
.step-text { flex: 1; padding: 1.25rem; }
.step-text h4 { font-size: 1.25rem; line-height: 1.4; color: var(--ink-900); }
.step-text p { margin-top: .5rem; line-height: 1.625; color: var(--ink-700); }
.trust { position: relative; margin-top: 3.5rem; overflow: hidden; border-radius: var(--radius-card); background: var(--navy-800); box-shadow: var(--shadow-soft); }
.trust::before {
  content: ""; position: absolute; inset: 0; opacity: .7; pointer-events: none;
  background-image: radial-gradient(60% 120% at 0% 50%, var(--navy-700) 0%, transparent 55%), radial-gradient(60% 120% at 100% 50%, var(--navy-700) 0%, transparent 55%);
}
.trust ul { position: relative; display: grid; gap: 1.5rem 2rem; padding: 1.75rem 1.5rem; }
.trust li { display: flex; align-items: center; gap: .875rem; }
.trust img { height: 2.5rem; width: 3rem; flex-shrink: 0; object-fit: contain; }
.trust .t { font-weight: 700; line-height: 1.375; color: #fff; text-wrap: balance; }
.trust .d { font-size: .875rem; line-height: 1.375; color: rgba(255,255,255,.6); text-wrap: balance; }
@media (min-width: 640px) {
  .how { padding: 5rem 0; }
  .how .groups { margin-top: 3.5rem; gap: 3.5rem; }
  .steps > li { width: calc(50% - .75rem); }
  .trust { margin-top: 4rem; }
  .trust ul { grid-template-columns: repeat(2, 1fr); padding: 1.75rem 2rem; }
  .trust img { height: 2.75rem; width: 3.5rem; }
}
@media (min-width: 1024px) {
  .steps > li { width: calc(33.333% - 1rem); }
  .trust ul { grid-template-columns: repeat(4, auto); justify-content: space-between; column-gap: 1.25rem; padding: 1.75rem 2.5rem; }
  .trust li + li { border-left: 1px solid rgba(255,255,255,.1); padding-left: 1.25rem; }
}

/* Pie */
footer.site { margin-top: auto; border-top: 1px solid var(--cream-200); background: var(--cream-50); }
footer.site .wrap { padding-top: 2rem; padding-bottom: 2rem; }
footer.site .a { font-size: .875rem; color: var(--ink-500); }
footer.site .b { margin-top: .25rem; font-size: .75rem; color: var(--ink-300); }

/* Menu */
.hub { padding: 3rem 0 2.5rem; }
.hub-head { max-width: 40rem; margin: 0 auto; text-align: center; }
.hub-head h1 { font-size: 2.25rem; line-height: 1.14; text-wrap: balance; }
.hub-head p { margin-top: .75rem; font-size: 1.125rem; color: var(--ink-700); }
.options { margin-top: 2.5rem; display: grid; gap: 1.5rem; }
.option { display: flex; height: 100%; flex-direction: column; color: inherit; }
.option-art { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--mist-100); }
.option-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.option-art img.fit { object-fit: contain; background: #fff; padding: .75rem; }
.option-art .ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.option-art .ph span { font-size: 4.5rem; }
.option-text { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 1.25rem 1.5rem 1.5rem; }
.option-text h2 { font-size: 1.5rem; line-height: 1.3; }
.option-text p { margin-top: .5rem; flex: 1; line-height: 1.625; color: var(--ink-700); }
.option-text .btn { margin-top: 1.25rem; }
.option.off { cursor: default; }
.option.off img, .option.off .ph { filter: saturate(.75); }
.btn-off { background: var(--cream-300); color: var(--ink-500); box-shadow: none; }
.follow { padding: 1.5rem 0 4rem; text-align: center; }
.follow h2 { font-size: 1.5rem; }
.socials { margin-top: 1.25rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .625rem; }
.social {
  display: inline-flex; align-items: center; gap: .5rem; border-radius: 999px; border: 1px solid var(--cream-300);
  background: #fff; color: var(--ink-700); padding: .5rem 1rem; font-size: .875rem; font-weight: 600;
  transition: color .15s, border-color .15s;
}
a.social:hover { border-color: var(--brand-300); color: var(--brand-700); }
.social.off { opacity: .55; }
@media (min-width: 640px) {
  .hub { padding: 4.5rem 0 3rem; }
  .hub-head h1 { font-size: 3rem; }
  .options { grid-template-columns: repeat(3, 1fr); }
}

/* Menu de la web */
header.site-nav .wrap { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding-top: .75rem; padding-bottom: .75rem; }
header.site-nav .logo img { height: 3rem; width: auto; }
header.site-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem .375rem; }
header.site-nav nav a { display: block; border-radius: 999px; padding: .4rem .9rem; font-size: .9375rem; font-weight: 600; color: var(--ink-700); transition: background-color .15s, color .15s; }
header.site-nav nav a:hover { background: var(--brand-50); color: var(--brand-700); }
header.site-nav nav a[aria-current="page"] { background: var(--brand-100); color: var(--brand-700); }
@media (min-width: 900px) {
  header.site-nav .wrap { flex-direction: row; justify-content: space-between; }
  header.site-nav .logo img { height: 3.5rem; }
}
.soon-page { display: grid; gap: 2rem; align-items: center; max-width: 56rem; }
.soon-art { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--radius-card); background: #fff; box-shadow: var(--shadow-lift); }
.soon-art img, .soon-art .ph { width: 100%; height: 100%; }
.soon-art img { object-fit: cover; }
.soon-art .ph { display: flex; align-items: center; justify-content: center; }
.soon-art .ph span { font-size: 6rem; }
.soon-text h1 { font-size: 2.25rem; line-height: 1.14; }
.soon-text p { margin: 1rem 0 1.75rem; font-size: 1.125rem; line-height: 1.625; color: var(--ink-700); }
@media (min-width: 768px) { .soon-page { grid-template-columns: 1fr 1fr; gap: 3rem; } .soon-text h1 { font-size: 3rem; } }
.contact { max-width: 40rem; text-align: center; }
.contact h1 { font-size: 2.25rem; line-height: 1.14; }
.contact .lead { margin: 1rem 0 1.75rem; font-size: 1.125rem; line-height: 1.625; color: var(--ink-700); }
.contact h2 { margin-top: 3rem; font-size: 1.5rem; }
@media (min-width: 640px) { .contact h1 { font-size: 3rem; } }

/* Ayuda y politicas */
.prose { max-width: 44rem; }
.prose h1 { font-size: 2.25rem; line-height: 1.14; }
.prose .updated { margin-top: .5rem; font-size: .875rem; color: var(--ink-500); }
.prose .lead { margin-top: 1.25rem; font-size: 1.125rem; line-height: 1.625; color: var(--ink-700); }
.prose h2 { margin-top: 2.25rem; font-size: 1.375rem; line-height: 1.3; }
.prose p { margin-top: .75rem; line-height: 1.7; color: var(--ink-700); }
.prose a { color: var(--brand-600); text-decoration: underline; text-underline-offset: 2px; }
.prose .end { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--cream-200); }
.prose details { margin-top: .75rem; border-radius: 1rem; background: #fff; box-shadow: var(--shadow-soft); padding: 1rem 1.25rem; }
.prose details summary { cursor: pointer; font-weight: 700; color: var(--ink-900); }
.prose details p { margin-top: .625rem; }
@media (min-width: 640px) { .prose h1 { font-size: 3rem; } }
footer.site .legal { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font-size: .875rem; }
footer.site .legal a { color: var(--ink-500); }
footer.site .legal a:hover { color: var(--brand-700); text-decoration: underline; }
