/* Portal de Mis Paseos. Hereda la estructura de lumbre.lat y usa el verde
   bosque y el terracota de la app. */

:root {
  --navy: #2f6b4f;
  --navy-hi: #3f8161;
  --navy-lo: #1c3a2c;
  --free: #2f7d5a;
  --ink: #26322b;
  --muted: #69756e;
  --line: #e4ddcf;
  --bg: #f8f5ee;
  --card: #ffffff;
  --bg-alt: #f4efe5;
  --bg-alt2: #f0eade;
  --bg-alt3: #ebe4d5;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(28, 58, 44, .08), 0 8px 24px rgba(28, 58, 44, .08);
}

html.tema-oscuro {
  --navy: #6fa38c;
  --navy-hi: #84b79e;
  --navy-lo: #14211b;
  --free: #3fa374;
  --ink: #eaf0ea;
  --muted: #a6b3aa;
  --line: #38443b;
  --bg: #161b17;
  --card: #202722;
  --bg-alt: #252d27;
  --bg-alt2: #29322b;
  --bg-alt3: #2d3730;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 22px rgba(0, 0, 0, .45);
}

.hero {
  background:
    radial-gradient(circle at 82% 12%, rgba(255, 255, 255, .16), transparent 38%),
    linear-gradient(120deg, var(--navy-lo), var(--navy) 62%, var(--navy-hi));
}

.icono--Paseos { background: linear-gradient(150deg, #4a8a68, #2f6b4f); }
.icono--Privacidad { background: linear-gradient(150deg, #3f8161, #24503c); }

.icono-app {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  flex: none;
  box-shadow: var(--shadow);
}

.hero__nota {
  color: #d8e6dc;
  font-size: 13px;
  margin: 16px 0 0;
}

.hero__telefono { justify-self: center; }

.telefono {
  width: min(290px, 100%);
  margin: 0 auto;
  padding: 9px;
  border-radius: 40px;
  background: #0f1511;
  box-shadow: 0 22px 55px rgba(0, 0, 0, .38);
}

.telefono img {
  width: 100%;
  height: auto;
  border-radius: 32px;
}

.telefono__leyenda {
  margin: 10px 0 0;
  color: #c9dbcf;
  font-size: 12px;
  text-align: center;
}

.pantallas {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin: 8px 0 4px;
}

.pantalla { text-align: center; }
.pantalla .telefono { width: min(240px, 100%); padding: 7px; border-radius: 34px; }
.pantalla .telefono img { border-radius: 27px; }
.pantalla figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}
.pantalla figcaption strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.recuadro--privacidad {
  border-left: 4px solid var(--free);
  background: #f0f7f1;
}

html.tema-oscuro .recuadro--privacidad { background: #1c2b22; }

/* La base no trae estilos para pasos ni preguntas: aquí van como tarjetas
   numeradas y acordeones. */
.pasos {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 12px;
  counter-reset: paso;
}
.pasos li {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px 14px 58px;
}
.pasos li::before {
  counter-increment: paso;
  content: counter(paso);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: grid;
  place-items: center;
}
.pasos strong { display: block; margin-bottom: 3px; }
.pasos span { color: #40503f; font-size: 15px; }

.faq {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 700; }
.faq summary:hover { color: var(--navy-hi); }
.faq p { margin: 10px 0 2px; color: #40503f; }


.lista--simple {
  margin: 0 0 14px;
  padding-left: 20px;
  color: #40503f;
}
.lista--simple li { margin-bottom: 6px; }

html.tema-oscuro .lista--simple,
html.tema-oscuro .producto__cuerpo p,
html.tema-oscuro dd { color: var(--muted); }
html.tema-oscuro .pasos span,
html.tema-oscuro .lista--rasgos span,
html.tema-oscuro .faq p { color: var(--muted); }
html.tema-oscuro .pasos li,
html.tema-oscuro .lista--rasgos li,
html.tema-oscuro .recuadro { border-color: var(--line); }
html.tema-oscuro .nota--alerta {
  background: #3a3020;
  border-color: #6b5326;
  color: #f0d5a8;
}
html.tema-oscuro .nota--ok {
  background: #1d2b23;
  border-color: #335745;
  color: #bfe4cc;
}
html.tema-oscuro .nota--hash code { background: var(--bg-alt3); color: var(--ink); }
html.tema-oscuro .miga a { color: var(--muted); }
html.tema-oscuro .btn--fant { color: var(--ink); }
html.tema-oscuro .btn--fant:hover { color: #fff; background: var(--navy); border-color: var(--navy); }
html.tema-oscuro .baner span { color: rgba(255, 255, 255, .85); }
html.tema-oscuro .icono-app { box-shadow: 0 8px 22px rgba(0, 0, 0, .5); }

/* La base fija el fondo de .marco en blanco; en tema oscuro el texto es
   claro y quedaría ilegible. */
.marco { background: var(--card); }

/* El hash y el identificador del paquete no tienen espacios: sin esto su
   ancho mínimo ensancha la columna del producto y desborda en móvil. */
.nota--hash code { overflow-wrap: anywhere; }
.compra__datos span:last-child { overflow-wrap: anywhere; }

@media (max-width: 940px) {
  .hero__telefono { margin-top: 8px; }
  .pantallas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pantalla .telefono { width: min(260px, 100%); }
  .producto { grid-template-columns: minmax(0, 1fr); }
  .producto__cuerpo, .compra { min-width: 0; }
}

@media (max-width: 640px) {
  .compra__botones .btn { width: 100%; }
  .producto__cab { align-items: flex-start; }
  .producto__cab h1 { font-size: 26px; }
  .pantallas { grid-template-columns: 1fr; }
  .pantalla .telefono { width: min(280px, 100%); }
}
