/* Deguni — estilos del sitio. Sin dependencias ni fuentes externas. */

:root {
  --verde: #1f4d3a;
  --musgo: #4e7a5a;
  --hoja: #cfe3c4;
  --fondo: #f2f6ef;
  --fondo-alt: #e3ecdd;
  --texto: #14231b;
  --suave: #43574b;
  --linea: #c4d3bf;
  --copihue: #b3243b;
  --enlace: #1f4d3a;
  --banda: #14392a;
  --banda-texto: #eaf3ec;
  --banda-suave: #b7cdbd;
  --banda-linea: rgba(234, 243, 236, 0.22);
  --btn-bg: #1f4d3a;
  --btn-text: #f2f6ef;
  --btn-hover: #14392a;
  --badge-bg: #cfe3c4;
  --badge-text: #14392a;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fondo: #0e1813;
    --fondo-alt: #122019;
    --texto: #e4eee6;
    --suave: #a8bbae;
    --linea: #27382d;
    --copihue: #ee6a7e;
    --enlace: #9fd3af;
    --banda: #1a3326;
    --btn-bg: #9fd3af;
    --btn-text: #0e1813;
    --btn-hover: #b7e0c4;
    --badge-bg: #2a4d3a;
    --badge-text: #d6eadb;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font: 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--enlace);
  text-underline-offset: 0.18em;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--copihue);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

.container {
  width: min(100% - 2rem, 68rem);
  margin-inline: auto;
}

/* ---------- Cabecera y menú ---------- */

.site-header {
  position: relative;
  z-index: 5;
  padding: 1rem 0;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--texto);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  display: block;
  border-radius: 0.5rem;
}

.menu {
  position: relative;
}

.menu summary {
  list-style: none;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border: 1px solid var(--linea);
  border-radius: 999px;
  font-weight: 600;
  color: var(--texto);
}

.menu summary::-webkit-details-marker {
  display: none;
}

.menu .nav {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  display: flex;
  flex-direction: column;
  min-width: 13rem;
  padding: 0.5rem;
  background: var(--fondo);
  border: 1px solid var(--linea);
  border-radius: 1rem;
}

.nav a {
  padding: 0.6rem 0.9rem;
  border-radius: 0.6rem;
  color: var(--texto);
  font-weight: 600;
  text-decoration: none;
}

.nav a:hover {
  background: var(--fondo-alt);
}

.nav .lang-switch {
  border: 1px solid var(--linea);
  margin-top: 0.25rem;
}

@media (min-width: 52rem) {
  @supports selector(::details-content) {
    .menu summary {
      display: none;
    }

    .menu::details-content {
      content-visibility: visible;
    }

    .menu .nav {
      position: static;
      flex-direction: row;
      align-items: center;
      gap: 0.25rem;
      min-width: 0;
      padding: 0;
      background: none;
      border: 0;
    }

    .nav .lang-switch {
      margin: 0 0 0 0.5rem;
    }
  }
}

/* ---------- Portada ---------- */

.hero {
  position: relative;
  overflow: hidden;
  margin-top: -4.25rem;
  padding: 8rem 0 clamp(9rem, 24vw, 19rem);
  background: linear-gradient(180deg, var(--fondo) 0%, var(--fondo-alt) 100%);
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  max-width: 12ch;
  margin: 0 0 1.25rem;
  font-size: clamp(2.7rem, 9vw, 6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.corazon {
  color: var(--copihue);
}

.lead {
  max-width: 34rem;
  margin: 0 0 2rem;
  color: var(--suave);
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border-radius: 0.75rem;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-weight: 700;
  text-decoration: none;
}

.btn:hover {
  background: var(--btn-hover);
}

.condor {
  position: absolute;
  z-index: 3;
  top: 7rem;
  right: 5%;
  width: clamp(120px, 26vw, 360px);
  height: auto;
}

@media (max-width: 51.99rem) {
  .condor {
    top: auto;
    right: 8%;
    bottom: 6rem;
    width: 34vw;
  }
}

.cordillera {
  position: absolute;
  z-index: 1;
  bottom: -1px;
  left: 50%;
  width: 100%;
  min-width: 900px;
  height: auto;
  transform: translateX(-50%);
}

@media (prefers-reduced-motion: no-preference) {
  .cordillera {
    animation: subir 0.9s ease-out both;
  }

  .condor {
    animation: planear 1.4s ease-out 0.2s both;
  }
}

@keyframes subir {
  from {
    opacity: 0;
    transform: translate(-50%, 24px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes planear {
  from {
    opacity: 0;
    transform: translateX(-36px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 4.2vw, 2.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.section p {
  max-width: 62ch;
  margin: 0 0 1rem;
}

.section--banda {
  background: var(--banda);
  color: var(--banda-texto);
}

.section--banda p {
  color: var(--banda-suave);
}

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

.split {
  display: grid;
  gap: 1.5rem 4rem;
}

@media (min-width: 52rem) {
  .split {
    grid-template-columns: 1fr 1.6fr;
    align-items: start;
  }

  .split--media {
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
  }
}

/* Apps: filas separadas por líneas, porque son una lista */

.apps {
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--banda-linea);
}

.app-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 0.35rem 1.5rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--banda-linea);
}

.app-row h3 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.app-row p {
  grid-column: 1;
  margin: 0;
}

.badge {
  align-self: start;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.fauna-art {
  display: block;
  width: min(100%, 22rem);
  margin-inline: auto;
}

.mail {
  display: inline-block;
  margin: 0.25rem 0 1rem;
  color: var(--texto);
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration-color: var(--enlace);
  text-decoration-thickness: 1px;
  overflow-wrap: anywhere;
}

/* ---------- Pie ---------- */

.footer {
  padding: 2.5rem 0;
  background: var(--banda);
  color: var(--banda-texto);
  font-size: 0.95rem;
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
}

.footer p {
  margin: 0;
}

.footer .lema {
  font-size: 1.15rem;
  font-weight: 700;
}

.footer .corazon {
  color: #ee6a7e;
}

.footer a {
  color: var(--banda-texto);
}

.footer ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- Páginas legales y 404 ---------- */

.legal {
  padding: 2rem 0 5rem;
}

.legal .container {
  max-width: 46rem;
}

.legal h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.legal h2 {
  margin: 2.25rem 0 0.5rem;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.legal p,
.legal li {
  max-width: 62ch;
}

.legal .meta {
  margin: 0 0 2rem;
  color: var(--suave);
}

.notfound {
  display: grid;
  min-height: 70vh;
  place-items: center;
  padding: 3rem 0;
}

.notfound h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.2rem, 7vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.notfound .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
