/* Bromazo — web estática. Colores de la app (app/src/estilos.ts) y una sola familia: Bricolage Grotesque, alojada aquí. */
@font-face {
  font-family: "Bricolage";
  src: url("fuentes/bricolage-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 75% 100%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage";
  src: url("fuentes/bricolage-latin-ext.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 75% 100%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --tinta: #1d1b16;
  --piedra: #5b5547;
  --crema: #faf7f0;
  --arena: #ece6d8;
  --naranja: #c2410c;
  --naranja-hondo: #9a3412;
  --descolgar: #15803d;
  --papel: #ffffff;
  --medida: 68ch;
  --radio-mov: 34px;
  font-family: "Bricolage", ui-sans-serif, system-ui, sans-serif;
  font-size: 112.5%; /* 18 px */
  line-height: 1.55;
  color: var(--tinta);
  background: var(--crema);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
a { color: var(--naranja-hondo); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--naranja); outline-offset: 3px; border-radius: 4px; }
::selection { background: #fed7aa; }

.saltar { position: absolute; left: -999px; top: 8px; background: var(--tinta); color: var(--crema); padding: 8px 14px; z-index: 10; }
.saltar:focus { left: 8px; }

.contenedor { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Cabecera */
.cabecera { padding-block: 18px; }
.cabecera .contenedor { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.marca { display: inline-flex; align-items: center; gap: 10px; color: var(--tinta); text-decoration: none; font-weight: 800; font-size: 1.35rem; font-stretch: 85%; letter-spacing: -0.01em; }
.marca img { width: 38px; height: 38px; }
.menu { display: flex; gap: 6px 22px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; font-size: 0.95rem; }
.menu a { color: var(--tinta); text-decoration: none; padding-block: 6px; }
.menu a:hover, .menu a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--naranja); }

/* Portada */
.portada { padding-block: 40px 72px; }
.portada .contenedor { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; }
.portada h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.1rem);
  font-weight: 800;
  font-stretch: 84%;
  line-height: 0.98;
  letter-spacing: -0.012em;
  word-spacing: 0.04em;
  margin: 0 0 24px;
  text-wrap: balance;
}
.entrada { font-size: 1.2rem; color: var(--piedra); max-width: 34ch; margin: 0 0 32px; }
.acciones { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; }
.boton {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px;
  border-radius: 999px; border: 0; font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer;
  background: var(--tinta); color: var(--crema); text-decoration: none;
}
.boton:hover { background: #000; }
.boton[aria-disabled="true"] { cursor: default; background: var(--tinta); }
.boton svg { width: 22px; height: 22px; }
.boton-naranja { background: var(--naranja); color: #fff; }
.boton-naranja:hover { background: var(--naranja-hondo); }
.nota { font-size: 0.95rem; color: var(--piedra); margin: 0; }

/* La llamada: lo memorable de la portada */
.movil {
  background: var(--tinta); color: #f5f1e8; border-radius: var(--radio-mov);
  padding: 22px 18px 18px; max-width: 420px; margin-inline: auto; width: 100%;
  box-shadow: 0 30px 60px -30px rgba(60, 30, 10, 0.55);
}
.movil-cabeza { display: flex; align-items: center; gap: 12px; padding: 4px 6px 18px; border-bottom: 1px solid #3a362e; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: #3a362e; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; }
.movil-cabeza strong { display: block; font-size: 1.05rem; }
.movil-cabeza span { font-size: 0.85rem; color: #b8b0a0; font-variant-numeric: tabular-nums; }
.en-llamada { margin-left: auto; width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18); }
.charla { list-style: none; margin: 0; padding: 18px 4px 4px; display: flex; flex-direction: column; gap: 10px; min-height: 360px; }
.charla li { max-width: 82%; padding: 10px 14px; border-radius: 18px; font-size: 0.98rem; line-height: 1.4; }
.charla .ia { background: #2f2b24; border-bottom-left-radius: 6px; align-self: flex-start; }
.charla .ella { background: #f5f1e8; color: var(--tinta); border-bottom-right-radius: 6px; align-self: flex-end; }
.charla .quien { display: block; font-size: 0.75rem; color: #b8b0a0; margin-bottom: 2px; }
.charla .ella .quien { color: var(--piedra); }
.charla .revelacion {
  align-self: stretch; max-width: none; text-align: center; background: var(--naranja); color: #fff;
  font-weight: 800; font-size: 1.15rem; font-stretch: 85%; border-radius: 16px; padding: 14px;
}
.charla .revelacion small { display: block; font-weight: 500; font-size: 0.85rem; font-stretch: 100%; opacity: 0.9; margin-top: 2px; }

@media (prefers-reduced-motion: no-preference) {
  .js .charla li { opacity: 0; transform: translateY(8px); transition: opacity 0.35s ease, transform 0.35s ease; }
  .js .charla li.visto { opacity: 1; transform: none; }
  .js .charla .revelacion.visto { animation: destello 0.6s ease 0.1s both; }
}
@keyframes destello { 0% { transform: scale(0.94); } 60% { transform: scale(1.03); } 100% { transform: scale(1); } }

/* Secciones de la portada */
.seccion { padding-block: 72px; }
.seccion-arena { background: var(--arena); }
.seccion h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; font-stretch: 82%; line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 14px; text-wrap: balance; }
.seccion .entrada { margin-bottom: 40px; max-width: 46ch; }

.pasos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; counter-reset: paso; }
.pasos li { counter-increment: paso; border-top: 3px solid var(--tinta); padding-top: 18px; }
.pasos li::before { content: counter(paso); display: block; font-weight: 800; font-stretch: 75%; font-size: 3.2rem; line-height: 1; color: var(--naranja); margin-bottom: 10px; }
.pasos h3 { margin: 0 0 6px; font-size: 1.25rem; font-weight: 700; }
.pasos p { margin: 0; color: var(--piedra); }

.normas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.lista-normas { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.lista-normas li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.lista-normas li::before { content: ""; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--descolgar) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 15px no-repeat; }
.lista-normas strong { display: block; }
.lista-normas span { color: var(--piedra); }
.aviso {
  background: var(--tinta); color: var(--crema); border-radius: 24px; padding: 32px;
  position: sticky; top: 24px;
}
.aviso h3 { margin: 0 0 10px; font-size: 1.5rem; font-weight: 800; font-stretch: 85%; line-height: 1.1; }
.aviso p { color: #d6cfbf; margin: 0 0 22px; }

.preguntas { max-width: var(--medida); }
.preguntas details { border-top: 1px solid #d8d0bf; padding-block: 18px; }
.preguntas details:last-child { border-bottom: 1px solid #d8d0bf; }
.preguntas summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after { content: "+"; font-weight: 500; color: var(--naranja); font-size: 1.4rem; line-height: 1; }
.preguntas details[open] summary::after { content: "−"; }
.preguntas details p { margin: 12px 0 0; color: var(--piedra); }

/* Páginas de texto (legales, borrar cuenta, bloquear) */
.documento { padding-block: 32px 80px; }
.documento .contenedor { max-width: calc(var(--medida) + 32px); }
.documento h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; font-stretch: 80%; line-height: 1; letter-spacing: -0.02em; margin: 16px 0 10px; text-wrap: balance; }
.documento .fecha { color: var(--piedra); font-size: 0.95rem; margin: 0 0 32px; }
.documento h2 { font-size: 1.5rem; font-weight: 800; font-stretch: 88%; line-height: 1.15; margin: 44px 0 10px; scroll-margin-top: 20px; }
.documento h3 { font-size: 1.1rem; margin: 26px 0 6px; }
.documento p, .documento li { max-width: var(--medida); }
.documento ul, .documento ol { padding-left: 1.25em; }
.documento li { margin-bottom: 6px; }
.resumen { background: var(--papel); border-left: 5px solid var(--naranja); border-radius: 0 14px 14px 0; padding: 18px 22px; margin: 0 0 28px; }
.resumen p { margin: 0 0 8px; } .resumen p:last-child { margin: 0; }
.indice { font-size: 0.98rem; margin: 0 0 8px; }
.indice ol { padding-left: 1.4em; columns: 2; column-gap: 32px; }
.tabla { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 12px 0 20px; }
.tabla th, .tabla td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid #d8d0bf; }
.tabla th { font-weight: 700; }
.tabla-scroll { overflow-x: auto; }
.datos dt { font-weight: 700; } .datos dd { margin: 0 0 10px; }

/* Formulario de bloqueo */
.formulario { background: var(--papel); border: 2px solid var(--arena); border-radius: 22px; padding: 28px; margin: 8px 0 32px; }
.formulario label { display: block; font-weight: 700; margin-bottom: 8px; }
.campo-fila { display: flex; gap: 10px; }
.prefijo { display: inline-flex; align-items: center; padding: 0 14px; border-radius: 14px; background: var(--arena); font-weight: 700; min-height: 54px; }
.formulario input[type="tel"] {
  flex: 1 1 0; min-width: 0; min-height: 54px; border-radius: 14px; border: 2px solid #d8d0bf; padding: 0 16px;
  font: inherit; font-size: 1.15rem; letter-spacing: 0.04em; background: var(--crema); color: var(--tinta);
}
.formulario input[type="tel"]:focus { border-color: var(--naranja); outline: none; box-shadow: 0 0 0 4px #fed7aa; }
.formulario .boton { margin-top: 16px; }
.formulario .ayuda { font-size: 0.92rem; color: var(--piedra); margin: 10px 0 0; }
.estado { margin: 16px 0 0; padding: 14px 16px; border-radius: 14px; font-weight: 600; }
.estado:empty { display: none; }
.estado.bien { background: #dcfce7; color: #14532d; }
.estado.mal { background: #fee2e2; color: #7f1d1d; }

/* Pie */
.pie { background: var(--tinta); color: #d6cfbf; padding-block: 48px 36px; font-size: 0.95rem; }
.pie .contenedor { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.pie a { color: #fff; }
.pie .marca { color: #fff; margin-bottom: 10px; }
.pie ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pie h2 { font-size: 1rem; color: #fff; margin: 0 0 12px; }
.pie .legal { grid-column: 1 / -1; border-top: 1px solid #3a362e; padding-top: 20px; margin: 8px 0 0; font-size: 0.85rem; color: #a59d8c; }

@media (max-width: 860px) {
  .portada .contenedor, .normas { grid-template-columns: 1fr; gap: 40px; }
  .portada { padding-top: 16px; }
  .pasos { grid-template-columns: 1fr; gap: 28px; }
  .pie .contenedor { grid-template-columns: 1fr 1fr; }
  .pie .contenedor > :first-child { grid-column: 1 / -1; }
  .indice ol { columns: 1; }
}
@media (max-width: 520px) {
  :root { font-size: 106.25%; }
  .menu { gap: 4px 16px; font-size: 0.9rem; }
  .charla { min-height: 0; }
  .seccion { padding-block: 56px; }
  .formulario { padding: 20px; }
}
