/* Landing — estilos compartidos. Sin dependencias externas: sin CDNs ni
   webfonts (font stack de sistema), para que no haya nada que declarar en
   la política de cookies y funcione abierto por file://. Mobile-first. */

/* Paleta de marca Korguía, tomada de los propios assets (`landing/assets/`):
   verde bosque del logotipo, crema del fondo del banner, terracota de la gorra.
   Si se regeneran las piezas gráficas, estos valores deben seguirlas. */
:root {
  --color-primary: #12362b;
  --color-primary-dark: #0b241c;
  --color-accent: #c1663f;
  --color-bg: #ffffff;
  --color-bg-alt: #f4ebd9;
  --color-text: #12362b;
  --color-text-muted: #5b6b62;
  --color-border: #e2d9c4;
  --color-warning-bg: #fff3c4;
  --max-width: 960px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

h1, h2, h3 {
  line-height: 1.25;
}

a {
  color: var(--color-primary);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

/* Lockup de marca: icono + nombre como texto real (no incrustado en la imagen),
   para que siga siendo seleccionable, accesible e indexable. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-primary);
  text-decoration: none;
}

.brand img {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 9px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.95rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--color-text-muted);
}

.site-nav a:hover {
  color: var(--color-primary);
}

/* ---------- Hero ---------- */

.hero {
  padding: 3.5rem 0 3rem;
  background: var(--color-bg-alt);
  text-align: center;
}

/* El fondo del icono es el mismo crema que el del hero, así que la rana
   aparece recortada sobre el fondo en vez de dentro de un cuadrado. */
.hero .container {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 1.25rem;
}

.hero-art {
  display: block;
  width: 168px;
  height: 168px;
  flex-shrink: 0;
}

.hero h1 {
  font-size: 2rem;
  margin: 0.75rem 0 0.5rem;
}

.hero .subtitle {
  max-width: 42rem;
  margin: 0 auto;
  color: var(--color-text-muted);
  font-size: 1.1rem;
}

.badge {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}

/* ---------- Secciones ---------- */

section {
  padding: 2.75rem 0;
}

section h2 {
  font-size: 1.5rem;
  margin-top: 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1.25rem;
}

.card h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

.card p {
  margin-bottom: 0;
  color: var(--color-text-muted);
}

.chips {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.92rem;
  text-align: center;
}

/* Categorías previstas pero aún NO publicadas: atenuadas y con borde
   discontinuo, para que se lean inequívocamente como "todavía no". */
.chips-muted li {
  background: transparent;
  border-style: dashed;
  color: var(--color-text-muted);
}

.expansion-title {
  margin-top: 2rem;
  margin-bottom: 0.25rem;
  font-size: 1.05rem;
}

.checklist {
  padding-left: 1.4rem;
}

.checklist li {
  margin-bottom: 0.4rem;
}

.note {
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.cta-button {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
}

.cta-button:hover {
  background: var(--color-primary-dark);
}

/* ---------- Páginas legales ---------- */

.legal-page {
  padding: 2.5rem 0;
}

.legal-page h1 {
  font-size: 1.7rem;
}

.legal-page h2 {
  font-size: 1.2rem;
  margin-top: 2rem;
}

.legal-page table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 1rem 0;
}

.legal-page th,
.legal-page td {
  border: 1px solid var(--color-border);
  padding: 0.5rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

.legal-page th {
  background: var(--color-bg-alt);
}

.table-wrap {
  overflow-x: auto;
}

/* Placeholder pendiente de rellenar: se resalta hasta que el usuario lo
   sustituya por el dato real (ver landing/README.md). */
mark.placeholder-pending {
  background: var(--color-warning-bg);
  padding: 0 0.25rem;
  border-radius: 3px;
  font-weight: 600;
}

/* ---------- Footer (inyectado por js/main.js) ---------- */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
  margin-top: 2rem;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.site-footer button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--color-primary);
  text-decoration: underline;
  cursor: pointer;
}

/* ---------- Banner de cookies ---------- */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-text);
  color: #fff;
  padding: 1rem 1.25rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.9rem;
}

.cookie-banner a {
  color: #9fd9cc;
}

.cookie-banner .cookie-actions {
  display: flex;
  gap: 0.75rem;
}

/* Aceptar y Rechazar con idéntica prominencia (Guía AEPD sobre cookies). */
.cookie-banner button {
  flex: 1 1 0;
  max-width: 12rem;
  padding: 0.55rem 1rem;
  font: inherit;
  font-weight: 600;
  border: 1px solid #fff;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.cookie-banner button:hover {
  background: rgba(255, 255, 255, 0.15);
}

.hidden {
  display: none;
}

/* ---------- Escritorio ---------- */

@media (min-width: 720px) {
  /* En escritorio el hero pasa a dos columnas, como el banner de marca:
     texto a la izquierda, rana a la derecha. */
  .hero {
    text-align: left;
  }

  .hero .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
  }

  .hero .subtitle {
    margin: 0;
  }

  .hero-art {
    width: 232px;
    height: 232px;
  }

  .hero h1 {
    font-size: 2.6rem;
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .cookie-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .cookie-banner p {
    max-width: 60%;
  }
}
