/* Batería Viva — hoja de estilos del sitio público.
   Consume las variables del panel de diseño: apariencia, radio, espaciado, tipografía y movimiento. */

:root {
  --site-bg: #f4f9f7;
  --site-fg: #12263a;
  --site-accent: #0f8f6f;
  --site-on-accent: #ffffff;
  --site-surface: rgba(255, 255, 255, 0.74);
  --site-muted: #4c6272;
  --site-border: rgba(18, 38, 58, 0.12);
  --site-font: "Segoe UI", Roboto, system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --site-radius: 24px;
  --site-space: 1;
  --site-type: 1;
  --site-motion: 1;

  --menta: #2fd3a5;
  --hoja: #4faa3a;
  --tinta-suave: var(--site-muted);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--site-fg);
  font-family: var(--site-font);
  line-height: 1.62;
  background-color: var(--site-bg);
  background-image:
    radial-gradient(46rem 32rem at 8% -10%, rgba(47, 211, 165, 0.48), transparent 62%),
    radial-gradient(42rem 30rem at 96% 2%, rgba(120, 205, 92, 0.34), transparent 64%),
    radial-gradient(40rem 30rem at 78% 42%, rgba(24, 156, 190, 0.20), transparent 62%),
    radial-gradient(44rem 32rem at 22% 96%, rgba(15, 143, 111, 0.22), transparent 64%);
  background-attachment: fixed;
}

.columna {
  max-width: 720px;
  margin: 0 auto;
  padding: calc(40px * var(--site-space)) calc(22px * var(--site-space)) calc(48px * var(--site-space));
}

/* Marca */
.marca {
  display: flex;
  align-items: center;
  gap: calc(16px * var(--site-space));
  margin-bottom: calc(30px * var(--site-space));
}

.marca img {
  width: 72px;
  height: 72px;
  border-radius: calc(var(--site-radius) * 0.75);
  box-shadow: 0 10px 24px rgba(16, 48, 60, 0.18);
  background: #ffffff;
}

.marca-texto { display: flex; flex-direction: column; }

.marca-nombre {
  font-size: calc(24px * var(--site-type));
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1.2;
}

.marca-desarrollador {
  font-size: calc(14px * var(--site-type));
  color: var(--tinta-suave);
}

/* Portada */
h1 {
  font-size: calc(44px * var(--site-type));
  line-height: 1.12;
  font-weight: 750;
  letter-spacing: -0.6px;
  margin: 0 0 calc(18px * var(--site-space));
}

h1 .acento { color: var(--site-accent); }

.entrada {
  font-size: calc(19px * var(--site-type));
  color: var(--tinta-suave);
  margin: 0 0 calc(26px * var(--site-space));
}

/* Botones */
.acciones { display: flex; flex-wrap: wrap; align-items: center; gap: calc(14px * var(--site-space)); }

.boton {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: calc(15px * var(--site-space)) calc(26px * var(--site-space));
  border-radius: calc(var(--site-radius) * 0.6);
  background-image: linear-gradient(135deg, #1cc48f, #0a6f57);
  color: var(--site-on-accent);
  font-size: calc(17px * var(--site-type));
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(10, 111, 87, 0.28);
  transition: transform calc(180ms * var(--site-motion)) ease,
              box-shadow calc(180ms * var(--site-motion)) ease;
}

.boton:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(10, 111, 87, 0.34); }
.boton:active { transform: translateY(0); }
.boton:focus-visible { outline: 3px solid rgba(47, 211, 165, 0.65); outline-offset: 3px; }

.nota {
  font-size: calc(15px * var(--site-type));
  color: var(--tinta-suave);
  margin: calc(14px * var(--site-space)) 0 0;
}

/* Tarjetas */
.tarjeta {
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  padding: calc(26px * var(--site-space)) calc(26px * var(--site-space));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(16, 48, 60, 0.08);
  margin-top: calc(22px * var(--site-space));
  transition: box-shadow calc(200ms * var(--site-motion)) ease,
              transform calc(200ms * var(--site-motion)) ease;
}

.tarjeta:hover { box-shadow: 0 14px 34px rgba(16, 48, 60, 0.13); }

.seccion { margin-top: calc(44px * var(--site-space)); }

h2 {
  font-size: calc(27px * var(--site-type));
  font-weight: 700;
  letter-spacing: -0.2px;
  margin: 0 0 calc(6px * var(--site-space));
}

.seccion .subrayado {
  font-size: calc(16px * var(--site-type));
  color: var(--tinta-suave);
  margin: 0 0 calc(18px * var(--site-space));
}

/* Lista de funciones */
.lista { list-style: none; margin: 0; padding: 0; }

.lista li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: calc(14px * var(--site-space));
  align-items: start;
  padding: calc(16px * var(--site-space)) 0;
  border-top: 1px solid var(--site-border);
}

.lista li:first-child { border-top: 0; padding-top: 0; }
.lista li:last-child { padding-bottom: 0; }

.lista .dibujo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--site-accent);
  background-image: linear-gradient(140deg, rgba(47, 211, 165, 0.34), rgba(79, 170, 58, 0.20));
  border: 1px solid rgba(15, 143, 111, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.lista .dibujo svg { width: 24px; height: 24px; display: block; }

.lista h3 {
  font-size: calc(18px * var(--site-type));
  font-weight: 680;
  margin: 0 0 3px;
}

.lista p { margin: 0; font-size: calc(16px * var(--site-type)); color: var(--tinta-suave); }

/* Destacado */
.destacado {
  border-left: 5px solid var(--menta);
  background: var(--site-surface);
}

.destacado p { margin: 0 0 calc(12px * var(--site-space)); }
.destacado p:last-child { margin-bottom: 0; }

/* Permisos */
.permisos { margin: 0; }

.permisos .par {
  padding: calc(14px * var(--site-space)) 0;
  border-top: 1px solid var(--site-border);
}

.permisos .par:first-child { border-top: 0; padding-top: 0; }

.permisos dt { font-size: calc(17px * var(--site-type)); font-weight: 660; }

.permisos dd {
  margin: 4px 0 0;
  font-size: calc(15.5px * var(--site-type));
  color: var(--tinta-suave);
}

/* Documentos legales */
.documento h2 { margin-bottom: calc(14px * var(--site-space)); }

.documento h3 {
  font-size: calc(19px * var(--site-type));
  font-weight: 680;
  margin: calc(26px * var(--site-space)) 0 calc(6px * var(--site-space));
}

.documento p { margin: 0 0 calc(12px * var(--site-space)); font-size: calc(16.5px * var(--site-type)); }

.vigencia {
  display: inline-block;
  font-size: calc(14px * var(--site-type));
  font-weight: 600;
  color: var(--site-accent);
  background: rgba(47, 211, 165, 0.16);
  border: 1px solid rgba(15, 143, 111, 0.24);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: calc(18px * var(--site-space));
}

/* Pie */
.pie {
  margin-top: calc(48px * var(--site-space));
  padding-top: calc(22px * var(--site-space));
  border-top: 1px solid var(--site-border);
  font-size: calc(15px * var(--site-type));
  color: var(--tinta-suave);
}

.pie .enlaces { display: flex; flex-wrap: wrap; gap: calc(8px * var(--site-space)) calc(20px * var(--site-space)); margin-bottom: 10px; }

a { color: var(--site-accent); }
a:hover { color: #0a6f57; }

/* Enlace de regreso */
.regreso {
  display: inline-block;
  font-size: calc(15px * var(--site-type));
  font-weight: 600;
  text-decoration: none;
  margin-bottom: calc(18px * var(--site-space));
}

/* Pantallas pequeñas */
@media (max-width: 560px) {
  h1 { font-size: calc(36px * var(--site-type)); }
  .marca img { width: 60px; height: 60px; }
  .tarjeta { padding: calc(22px * var(--site-space)) calc(18px * var(--site-space)); }
  .boton { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .boton:hover { transform: none; }
}
