/* Soltar · sitio público
   Paleta "papel, tinta, arcilla y salvia" (tema Arena / Noche de la app).
   Los tonos *-texto son variantes con contraste AA para texto chico. */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --fondo: #F6F2EC;
  --superficie: #FFFDF9;
  --superficie-2: #EEE8DF;
  --borde: #E4DCD0;
  --texto: #26221E;
  --texto-2: #6E665D;
  --acento: #B8664A;
  --acento-texto: #A0533A;
  --acento-suave: #F1DED4;
  --sobre-acento: #FFFFFF;
  --calma: #6F8A74;
  --calma-texto: #566F5B;
  --calma-suave: #DEE7DD;
  --aviso-suave: #F4E9CF;
  --peligro-texto: #9E3A33;
  --peligro-suave: #F5DAD6;
  --sombra: 0 1px 2px rgba(38, 34, 30, .05), 0 8px 24px rgba(38, 34, 30, .06);
  --radio-s: 10px;
  --radio-m: 16px;
  --radio-l: 24px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ancho: 1120px;
  --ancho-texto: 720px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --fondo: #151311;
    --superficie: #1F1C19;
    --superficie-2: #2A2622;
    --borde: #332E29;
    --texto: #F1ECE5;
    --texto-2: #B5ACA1;
    --acento: #D9876A;
    --acento-texto: #E3967A;
    --acento-suave: #3A2821;
    --sobre-acento: #1A1512;
    --calma: #93AE97;
    --calma-texto: #93AE97;
    --calma-suave: #22302A;
    --aviso-suave: #3A311E;
    --peligro-texto: #E88A80;
    --peligro-suave: #3D2422;
    --sombra: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --fondo: #151311;
  --superficie: #1F1C19;
  --superficie-2: #2A2622;
  --borde: #332E29;
  --texto: #F1ECE5;
  --texto-2: #B5ACA1;
  --acento: #D9876A;
  --acento-texto: #E3967A;
  --acento-suave: #3A2821;
  --sobre-acento: #1A1512;
  --calma: #93AE97;
  --calma-texto: #93AE97;
  --calma-suave: #22302A;
  --aviso-suave: #3A311E;
  --peligro-texto: #E88A80;
  --peligro-suave: #3D2422;
  --sombra: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font: 400 1.0625rem/1.65 var(--sans);
  overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: var(--acento-texto); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--acento); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.18; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 6.4vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4.4vw, 2.35rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
em.serif, .serif-it { font-family: var(--serif); font-style: italic; font-weight: 400; }
ul, ol { padding-left: 1.25em; }
li { margin: .35em 0; }
strong { font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--borde); margin: 2.5rem 0; }

.saltar {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--texto); color: var(--fondo); padding: 10px 14px; border-radius: var(--radio-s);
}
.saltar:focus { top: 12px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.contenedor { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 20px; }
.contenedor--texto { max-width: var(--ancho-texto); }

/* ---------- Encabezado ---------- */
.cabecera {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--fondo) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid transparent;
}
.cabecera.con-borde { border-bottom-color: var(--borde); }
.cabecera__fila { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.marca { display: inline-flex; align-items: center; gap: 10px; color: var(--texto); text-decoration: none; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.marca img { width: 36px; height: 36px; border-radius: 10px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--texto); text-decoration: none; padding: 10px 12px; border-radius: var(--radio-s); font-size: .98rem; }
.nav a:hover { background: var(--superficie-2); }
.nav a[aria-current="page"] { color: var(--acento-texto); font-weight: 600; }
.nav .solo-ancho { display: none; }
@media (min-width: 760px) { .nav .solo-ancho { display: inline-block; } }
.boton-tema {
  appearance: none; border: 1px solid var(--borde); background: var(--superficie); color: var(--texto);
  width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; cursor: pointer; flex: none;
}
.boton-tema svg { width: 20px; height: 20px; }
.boton-tema .sol { display: none; }
:root[data-theme="dark"] .boton-tema .sol { display: block; }
:root[data-theme="dark"] .boton-tema .luna { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .boton-tema .sol { display: block; }
  :root:not([data-theme="light"]) .boton-tema .luna { display: none; }
}

/* ---------- Botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
}
.boton--primario { background: var(--acento-texto); color: #fff; }
:root[data-theme="dark"] .boton--primario { background: var(--acento); color: var(--sobre-acento); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .boton--primario { background: var(--acento); color: var(--sobre-acento); } }
.boton--primario:hover { filter: brightness(1.06); }
.boton--secundario { background: var(--superficie); color: var(--texto); border-color: var(--borde); }
.boton--secundario:hover { background: var(--superficie-2); }

.tiendas { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6rem 0 1rem; }
.tienda {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 20px 10px 16px;
  border-radius: 14px; background: var(--texto); color: var(--fondo); text-decoration: none; line-height: 1.15;
}
.tienda svg { width: 26px; height: 26px; flex: none; }
.tienda small { display: block; font-size: .75rem; opacity: .85; }
.tienda b { display: block; font-size: 1.08rem; font-weight: 600; }
a.tienda:hover { filter: brightness(1.15); }
.tienda--pronto { background: var(--superficie); color: var(--texto); border: 1px dashed var(--borde); }

/* ---------- Secciones ---------- */
.seccion { padding: 64px 0; }
.seccion--alt { background: var(--superficie); border-block: 1px solid var(--borde); }
.antetitulo { display: inline-block; font-size: .82rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--calma-texto); margin-bottom: .8rem; }
.bajada { font-size: 1.15rem; color: var(--texto-2); max-width: 46rem; }
.centro { text-align: center; }
.centro .bajada { margin-inline: auto; }

/* Héroe */
.heroe { padding: 28px 0 56px; }
.heroe__grilla { display: grid; gap: 8px; align-items: center; }
.heroe h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--acento-texto); }
.heroe .bajada { font-size: 1.18rem; }
.heroe__arte { position: relative; justify-self: center; width: min(52vw, 210px); order: -1; }
.heroe__arte::before {
  content: ""; position: absolute; inset: 12% 2% 2%; border-radius: 50%;
  background: radial-gradient(closest-side, var(--calma-suave), transparent);
}
.heroe__arte picture { position: relative; }
.sellos { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 0; list-style: none; color: var(--texto-2); font-size: .95rem; }
.sellos li { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.sellos svg { width: 18px; height: 18px; color: var(--calma-texto); }
@media (min-width: 880px) {
  .heroe { padding: 56px 0 88px; }
  .heroe__grilla { grid-template-columns: 1.15fr .85fr; gap: 48px; }
  .heroe__arte { order: 0; width: 100%; max-width: 420px; }
}

/* Tarjetas */
.grilla { display: grid; gap: 16px; }
@media (min-width: 640px) { .grilla--2 { grid-template-columns: repeat(2, 1fr); } .grilla--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grilla--3 { grid-template-columns: repeat(3, 1fr); } }
.tarjeta { background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio-m); padding: 22px; }
.seccion--alt .tarjeta { background: var(--fondo); }
.tarjeta h3 { margin-bottom: .35em; }
.tarjeta p:last-child { margin-bottom: 0; }
.tarjeta__icono { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--acento-suave); color: var(--acento-texto); margin-bottom: 14px; }
.tarjeta__icono svg { width: 22px; height: 22px; }
.tarjeta__icono--calma { background: var(--calma-suave); color: var(--calma-texto); }
.cifra { font-family: var(--serif); font-size: 2.3rem; font-weight: 600; line-height: 1; color: var(--acento-texto); display: block; margin-bottom: 6px; }
.etiqueta { display: inline-block; font-size: .78rem; font-weight: 650; padding: 3px 10px; border-radius: 999px; background: var(--calma-suave); color: var(--calma-texto); vertical-align: middle; }
.etiqueta--pro { background: var(--acento-suave); color: var(--acento-texto); }

/* Bloque dividido texto + imagen */
.dividido { display: grid; gap: 28px; align-items: center; }
.dividido__arte { width: min(64vw, 280px); justify-self: center; }
@media (min-width: 880px) {
  .dividido { grid-template-columns: 1fr 340px; gap: 56px; }
  .dividido--inv { grid-template-columns: 340px 1fr; }
  .dividido--inv .dividido__arte { order: -1; }
  .dividido__arte { width: 100%; }
}

/* Pasos del botón de emergencia */
.pasos { list-style: none; padding: 0; margin: 1.4rem 0; counter-reset: paso; display: grid; gap: 10px; }
.pasos li { counter-increment: paso; display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; margin: 0; }
.pasos li::before {
  content: counter(paso); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--acento-suave); color: var(--acento-texto); font-weight: 700; font-size: .95rem;
}
.pasos b { display: block; }
.pasos span { color: var(--texto-2); }

/* Brotecito etapas */
.etapas { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (min-width: 760px) { .etapas { grid-template-columns: repeat(6, 1fr); } }
.etapas li { margin: 0; text-align: center; font-size: .92rem; color: var(--texto-2); }
.etapas picture { width: 100%; max-width: 120px; margin: 0 auto 6px; }
.etapas b { display: block; color: var(--texto); font-family: var(--serif); font-weight: 500; font-size: 1.02rem; }

/* Planes */
.planes { display: grid; gap: 16px; margin-top: 2rem; }
@media (min-width: 820px) { .planes { grid-template-columns: 1fr 1fr; } }
.plan { border-radius: var(--radio-l); padding: 28px; border: 1px solid var(--borde); background: var(--superficie); }
.plan--pro { background: var(--acento-suave); border-color: transparent; }
.plan h3 { font-size: 1.6rem; }
.plan ul { list-style: none; padding: 0; margin: 1rem 0 0; }
.plan li { padding-left: 30px; position: relative; }
.plan li::before {
  content: ""; position: absolute; left: 4px; top: .45em; width: 14px; height: 8px;
  border-left: 2.5px solid var(--calma-texto); border-bottom: 2.5px solid var(--calma-texto); transform: rotate(-45deg);
}
.plan--pro li::before { border-color: var(--acento-texto); }
.nota { font-size: .95rem; color: var(--texto-2); }

/* Aviso / recuadros */
.recuadro { border-radius: var(--radio-m); padding: 20px 22px; background: var(--calma-suave); margin: 1.5rem 0; }
.recuadro > :last-child { margin-bottom: 0; }
.recuadro--aviso { background: var(--aviso-suave); }
.recuadro--peligro { background: var(--peligro-suave); }
.recuadro--peligro strong:first-child { color: var(--peligro-texto); }
.recuadro h2, .recuadro h3 { margin-top: 0; }

/* FAQ */
.faq { margin-top: 1.5rem; display: grid; gap: 10px; }
.faq details { background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio-m); }
.seccion--alt .faq details { background: var(--fondo); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; position: relative;
  font-family: var(--serif); font-weight: 500; font-size: 1.12rem; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--texto-2); border-bottom: 2px solid var(--texto-2); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .respuesta { padding: 0 20px 18px; color: var(--texto); }
.faq .respuesta > :last-child { margin-bottom: 0; }

/* CTA final */
.cierre { text-align: center; }
.cierre__arte { width: 160px; margin: 0 auto 12px; }
.cierre .tiendas { justify-content: center; }

/* ---------- Artículos y páginas de texto ---------- */
.migas { font-size: .9rem; color: var(--texto-2); padding-top: 18px; }
.migas ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.migas li { margin: 0; }
.migas li + li::before { content: "›"; margin-right: 6px; color: var(--texto-2); }
.migas a { color: var(--texto-2); }
.articulo { padding: 12px 0 64px; }
.articulo header { margin: 18px 0 28px; }
.articulo h1 { font-size: clamp(2rem, 5.6vw, 3rem); }
.articulo .meta { color: var(--texto-2); font-size: .93rem; margin: 0; }
.articulo .entrada { font-size: 1.2rem; color: var(--texto-2); }
.prosa h2 { margin-top: 2.2em; font-size: clamp(1.45rem, 3.6vw, 1.9rem); }
.prosa h3 { margin-top: 1.6em; }
.prosa p, .prosa li { font-size: 1.08rem; }
.prosa blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--acento); font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--texto); }
.indice { background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio-m); padding: 16px 20px; margin: 0 0 2rem; font-size: .98rem; }
.indice p { margin: 0 0 .3rem; font-weight: 650; }
.indice ol { margin: 0; }
.tabla { width: 100%; border-collapse: collapse; font-size: .97rem; margin: 1rem 0; }
.tabla th, .tabla td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--borde); }
.tabla-envoltura { overflow-x: auto; }
.llamado {
  margin: 3rem 0 0; border-radius: var(--radio-l); padding: 26px; background: var(--acento-suave);
  display: grid; gap: 14px; align-items: center;
}
.llamado h2 { margin: 0; font-size: 1.6rem; }
.llamado p { margin: 0; }
.llamado .tiendas { margin: .4rem 0 0; }
.llamado__arte { width: 120px; }
@media (min-width: 680px) { .llamado { grid-template-columns: 140px 1fr; } .llamado__arte { width: 140px; } }
.relacionadas { margin-top: 3rem; }
.relacionadas ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.relacionadas li { margin: 0; }
.relacionadas a { display: block; padding: 14px 18px; border: 1px solid var(--borde); border-radius: var(--radio-m); background: var(--superficie); text-decoration: none; color: var(--texto); }
.relacionadas a:hover { border-color: var(--acento); }
.relacionadas small { display: block; color: var(--texto-2); }

/* Índice de guías */
.guias { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 16px; }
@media (min-width: 720px) { .guias { grid-template-columns: 1fr 1fr; } }
.guias li { margin: 0; }
.guias a { display: flex; flex-direction: column; height: 100%; padding: 24px; border-radius: var(--radio-m); background: var(--superficie); border: 1px solid var(--borde); text-decoration: none; color: var(--texto); }
.guias a:hover { border-color: var(--acento); box-shadow: var(--sombra); }
.guias h2 { font-size: 1.35rem; margin-bottom: .4em; }
.guias p { color: var(--texto-2); margin: 0 0 .8em; }
.guias span { margin-top: auto; color: var(--acento-texto); font-weight: 600; font-size: .95rem; }

/* Legales */
.legal h2 { margin-top: 2.2em; padding-top: .8em; border-top: 1px solid var(--borde); font-size: 1.45rem; }
.legal .borrador { font-size: .92rem; }
.legal .indice ol { columns: 1; }
@media (min-width: 700px) { .legal .indice ol { columns: 2; column-gap: 32px; } }
.pendiente { background: var(--aviso-suave); border-radius: 4px; padding: 0 4px; }

/* ---------- Pie ---------- */
.pie { background: var(--superficie); border-top: 1px solid var(--borde); padding: 48px 0 32px; font-size: .96rem; }
.ayuda-pie { border-radius: var(--radio-m); padding: 20px 22px; background: var(--peligro-suave); margin-bottom: 36px; }
.ayuda-pie h2 { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; margin: 0 0 .4rem; color: var(--peligro-texto); }
.ayuda-pie p { margin: 0 0 .6rem; }
.ayuda-pie ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
@media (min-width: 720px) { .ayuda-pie ul { grid-template-columns: 1fr 1fr; } }
.ayuda-pie li { margin: 0; }
.ayuda-pie a { color: var(--texto); font-weight: 700; }
.pie__grilla { display: grid; gap: 28px; }
@media (min-width: 720px) { .pie__grilla { grid-template-columns: 1.4fr 1fr 1fr; } }
.pie h3 { font-family: var(--sans); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--texto-2); margin-bottom: .6rem; }
.pie ul { list-style: none; padding: 0; margin: 0; }
.pie li { margin: 0; }
.pie li a { display: inline-block; padding: 6px 0; color: var(--texto); text-decoration: none; }
.pie li a:hover { text-decoration: underline; }
.pie__legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--borde); color: var(--texto-2); font-size: .9rem; }

/* Página 404 */
.error { text-align: center; padding-top: 48px; padding-bottom: 80px; }
.error picture { width: 200px; margin: 0 auto 12px; }

@media print {
  .cabecera, .pie__grilla, .boton-tema, .tiendas, .llamado { display: none !important; }
  body { background: #fff; color: #000; }
}
.destacado { font-size: 1.3rem; line-height: 1.5; margin: 2rem 0; }
