/* Garrafero · estilos compartidos. Colores tomados del tema de la app (Orange40 #B34D00). */
:root {
  color-scheme: light dark;
  --naranja: #b34d00;
  --naranja-claro: #ffdbc9;
  --fondo: #fff8f6;
  --superficie: #ffffff;
  --superficie-2: #fcebe3;
  --texto: #231a16;
  --texto-suave: #52443c;
  --borde: #e6d3ca;
  --radio: 18px;
  --ancho: 68rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --naranja: #ffb68f;
    --naranja-claro: #793000;
    --fondo: #1a120e;
    --superficie: #231a16;
    --superficie-2: #2f241f;
    --texto: #f1dfd8;
    --texto-suave: #d8c2b9;
    --borde: #3d302a;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
}
a { color: var(--naranja); }
img, svg { display: block; max-width: 100%; }
.contenedor { max-width: var(--ancho); margin: 0 auto; padding: 0 1.25rem; }

/* Encabezado */
.encabezado { border-bottom: 1px solid var(--borde); background: var(--fondo); position: sticky; top: 0; z-index: 10; }
.encabezado .contenedor { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.marca { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.2rem; color: var(--texto); text-decoration: none; letter-spacing: -.01em; }
.marca img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; gap: 1.25rem; font-size: .95rem; }
.nav a { color: var(--texto-suave); text-decoration: none; }
.nav a:hover { color: var(--naranja); }
@media (max-width: 640px) { .nav .opcional { display: none; } }

/* Botones */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px; padding: 0 1.4rem; border-radius: 999px;
  background: var(--naranja); color: #fff; font-weight: 700; text-decoration: none;
  border: 2px solid var(--naranja);
}
@media (prefers-color-scheme: dark) { .boton { color: #341000; } }
.boton:hover { filter: brightness(1.08); }
.boton.secundario { background: transparent; color: var(--naranja); }

/* Hero */
.hero { padding: 4rem 0 3rem; }
.hero .contenedor { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 3rem; align-items: center; }
.etiqueta { display: inline-block; font-size: .85rem; font-weight: 700; color: var(--naranja); background: var(--naranja-claro); padding: .25rem .75rem; border-radius: 999px; }
@media (prefers-color-scheme: dark) { .etiqueta { color: #ffdbc9; } }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.08; letter-spacing: -.025em; margin: 1rem 0; }
.hero p.bajada { font-size: 1.2rem; color: var(--texto-suave); max-width: 34rem; margin: 0 0 2rem; }
.acciones { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 860px) {
  .hero { padding-top: 2.5rem; }
  .hero .contenedor { grid-template-columns: minmax(0, 1fr); }
}

/* Capturas en marco de celular */
.telefono {
  margin: 0; width: min(300px, 100%); justify-self: center;
  padding: 10px; border-radius: 34px; background: #231a16;
  box-shadow: 0 30px 60px -24px rgba(80, 30, 0, .45);
}
.telefono img { width: 100%; height: auto; border-radius: 25px; }
.hero .telefono { width: min(320px, 100%); }

/* Filas de funciones: texto + captura, alternadas */
.fila { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.fila.invertida .fila-texto { order: 2; }
.fila-texto p { color: var(--texto-suave); font-size: 1.1rem; }
.paso-num { display: inline-block; font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--naranja); margin-bottom: .5rem; }
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.duo .telefono { width: 100%; }
.duo .telefono:nth-child(2) { margin-top: 3rem; }
@media (max-width: 860px) {
  .fila { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .fila.invertida .fila-texto { order: 0; }
  .telefono { width: min(260px, 80%); }
}
@media (max-width: 480px) { .duo .telefono:nth-child(2) { margin-top: 1.5rem; } }
.nota { font-size: .9rem; color: var(--texto-suave); margin-top: 2rem; }

/* Secciones */
section { padding: 3.5rem 0; }
section.alterna { background: var(--superficie-2); }
h2.titulo { font-size: clamp(1.6rem, 3.5vw, 2.2rem); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5rem; }
p.intro { color: var(--texto-suave); font-size: 1.1rem; max-width: 40rem; margin: 0 0 2rem; }

.grilla { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.tarjeta { background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio); padding: 1.4rem; }
.tarjeta h3 { margin: .6rem 0 .3rem; font-size: 1.1rem; }
.tarjeta p { margin: 0; color: var(--texto-suave); }

.destacado { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
@media (max-width: 860px) { .destacado { grid-template-columns: 1fr; } }
.lista-check { list-style: none; padding: 0; margin: 0; }
.lista-check li { padding-left: 1.6rem; position: relative; margin-bottom: .8rem; }
.lista-check li::before { content: ""; position: absolute; left: 0; top: .55em; width: .6rem; height: .6rem; border-radius: 2px; background: var(--naranja); }

.pasos { counter-reset: paso; list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.pasos li { counter-increment: paso; background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio); padding: 1.25rem 1.25rem 1.25rem 4rem; position: relative; }
.pasos li::before { content: counter(paso); position: absolute; left: 1.1rem; top: 1.1rem; width: 2rem; height: 2rem; border-radius: 50%; background: var(--naranja); color: #fff; display: grid; place-items: center; font-weight: 800; }
@media (prefers-color-scheme: dark) { .pasos li::before { color: #341000; } }

.cta { text-align: center; }
.cta .acciones { justify-content: center; }

/* Preguntas frecuentes */
details { background: var(--superficie); border: 1px solid var(--borde); border-radius: 14px; padding: 1rem 1.2rem; margin-bottom: .6rem; }
summary { cursor: pointer; font-weight: 700; }
details p { margin: .6rem 0 0; color: var(--texto-suave); }

/* Páginas de texto (legales) */
.texto { max-width: 44rem; margin: 0 auto; padding: 2.5rem 1.25rem 3rem; }
.texto h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .25rem; }
.texto h2 { font-size: 1.25rem; margin-top: 2.2rem; }
.texto .sub { color: var(--texto-suave); margin-top: 0; }
.texto li { margin-bottom: .45rem; }
.caja { border-left: 4px solid var(--naranja); padding: .25rem 1rem; background: var(--superficie-2); border-radius: 6px; }

/* Pie */
.pie { border-top: 1px solid var(--borde); padding: 2rem 0 2.5rem; font-size: .92rem; color: var(--texto-suave); }
.pie .contenedor { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.pie nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.pie a { color: var(--texto-suave); }

:focus-visible { outline: 3px solid var(--naranja); outline-offset: 3px; border-radius: 4px; }
