/* Portal de Mi Jardinería. Hereda la estructura de lumbre.lat y usa el verde
   de jardín de la app sobre un fondo crema. */

:root {
  --navy: #2f6b3c;
  --navy-hi: #3f8350;
  --navy-lo: #1c3a24;
  --free: #2f7d4a;
  --ink: #26322a;
  --muted: #69756d;
  --line: #e3e0d2;
  --bg: #f8f6ee;
  --card: #ffffff;
  --bg-alt: #f4f1e4;
  --bg-alt2: #efeade;
  --bg-alt3: #eae4d4;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(28, 58, 36, .08), 0 8px 24px rgba(28, 58, 36, .08);
}

html.tema-oscuro {
  --navy: #71a880;
  --navy-hi: #86bb93;
  --navy-lo: #14211a;
  --free: #45a568;
  --ink: #eaf0ea;
  --muted: #a6b3a9;
  --line: #38443a;
  --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--Jardin { background: linear-gradient(150deg, #4a8a5c, #2f6b3c); }
.icono--Privacidad { background: linear-gradient(150deg, #3f8350, #245032); }

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

.hero__nota {
  color: #d8e6db;
  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: #c9dbcd;
  font-size: 12px;
  text-align: center;
}

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

.pantalla { text-align: center; }
.pantalla .telefono { width: min(210px, 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: #1c2b21; }

/* Pasos numerados y preguntas frecuentes como tarjetas. */
.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: #1d2b22;
  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; }

/* Lista de descargas por arquitectura. */
.descargas {
  display: grid;
  gap: 9px;
  margin: 0 0 14px;
}
.descarga {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--bg-alt);
}
.descarga:hover { text-decoration: none; border-color: var(--navy-hi); }
.descarga strong { display: block; font-size: 14px; }
.descarga span { font-size: 12px; color: var(--muted); }
.descarga b { font-size: 13px; color: var(--free); white-space: nowrap; }

.catalogo {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
  gap: 10px;
  margin: 0 0 6px;
  padding: 0;
  list-style: none;
}
.catalogo li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 13px;
  font-size: 14px;
}
.catalogo strong { display: block; }
.catalogo span { color: var(--muted); font-size: 13px; }

@media (max-width: 1060px) {
  .pantallas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 940px) {
  .hero__rejilla { padding-left: 20px; padding-right: 20px; }
  .baner__lista { padding-left: 20px; padding-right: 20px; }
  .hero__telefono { margin-top: 8px; }
  .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%); }
}
