/* Web de HerriKultura. Sin fuentes, scripts ni servicios externos: nada sale de la página. */
:root {
  --bg: #081213;
  --surface: #101d1f;
  --surface-high: #17292b;
  --border: #223a3c;
  --border-high: #30504f;
  --text: #f2f8f7;
  --muted: #a0b4b2;
  --teal: #22b8af;
  --teal-soft: #6fe3d9;
  --coral: #ff8a65;
  --grad: linear-gradient(120deg, #6fe3d9 0%, #22b8af 48%, #ffb38a 100%);
  --grad-btn: linear-gradient(120deg, #12a49c 0%, #0e8a83 100%);
  --radius: 28px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 760px;
  background:
    radial-gradient(circle at 12% 0%, rgba(34, 184, 175, 0.3) 0%, rgba(34, 184, 175, 0) 46%),
    radial-gradient(circle at 88% 10%, rgba(255, 138, 101, 0.16) 0%, rgba(255, 138, 101, 0) 44%);
  pointer-events: none;
  z-index: -1;
}

a { color: var(--teal-soft); }
a:hover { color: #fff; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Cabecera */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.2px; }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.nav-links { display: flex; align-items: center; gap: 20px; font-size: 15px; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--text); }
.nav-links a.lang { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-high); color: var(--text); }

/* Portada */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  padding: 40px 0 24px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(34, 184, 175, 0.15);
  border: 1px solid rgba(34, 184, 175, 0.38);
  color: var(--teal-soft);
  font-weight: 700;
  font-size: 14px;
}
h1 { font-size: clamp(40px, 7vw, 68px); line-height: 1.05; letter-spacing: -1.8px; margin: 18px 0 16px; }
.lead { color: var(--muted); font-size: 19px; max-width: 32em; margin: 0 0 28px; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
}
.btn-primary { background: var(--grad-btn); color: #fff; box-shadow: 0 10px 32px rgba(18, 164, 156, 0.42); }
.btn-primary:hover { color: #fff; filter: brightness(1.1); }
.btn-secondary { background: var(--surface-high); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { color: var(--text); border-color: var(--border-high); }
.btn small { display: block; font-weight: 600; font-size: 11px; opacity: 0.85; line-height: 1; margin-bottom: 3px; }
.btn .label { line-height: 1.15; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 24px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; font-weight: 600; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }

/* Teléfonos de la portada */
.stage { position: relative; justify-self: center; width: 100%; max-width: 420px; padding: 12px 8px 12px 56px; }
.stage::before {
  content: "";
  position: absolute;
  inset: 8% 4%;
  background: var(--grad);
  filter: blur(74px);
  opacity: 0.36;
  border-radius: 50%;
  z-index: -1;
}
.phone {
  position: relative;
  z-index: 1;
  border-radius: 40px;
  padding: 9px;
  background: linear-gradient(160deg, #2c4648, #0c1718 60%);
  border: 1px solid #3a5a5a;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  transform: rotate(2.5deg);
}
.phone img { display: block; width: 100%; height: auto; border-radius: 32px; }
.phone-back {
  position: absolute;
  z-index: 0;
  top: 7%;
  left: 0;
  width: 62%;
  transform: rotate(-7deg);
  opacity: 0.92;
}
.float {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: 18px;
  background: rgba(16, 29, 31, 0.9);
  border: 1px solid var(--border);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.float small { display: block; color: var(--muted); font-weight: 600; font-size: 12px; line-height: 1.2; }
.float .dot { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--grad-btn); flex: none; }
.float .dot svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.float-1 { top: -2%; left: 0; }
.float-2 { bottom: 11%; right: -4px; }

/* Categorías */
.cats-section { padding: 28px 0 8px; }
.cats {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cats li { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; color: var(--muted); font-size: 14px; font-weight: 600; line-height: 1.25; }
.cat {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.2s, border-color 0.2s;
}
.cats li:hover .cat { transform: translateY(-3px); border-color: var(--c); }
.cat svg { width: 32px; height: 32px; stroke: var(--c); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Secciones */
section { padding: 64px 0; }
h2 { font-size: clamp(30px, 4.6vw, 44px); line-height: 1.12; letter-spacing: -1px; margin: 0 0 12px; }
.section-lead { color: var(--muted); margin: 0 0 36px; font-size: 18px; max-width: 40em; }
.kicker { display: block; color: var(--teal-soft); font-weight: 800; font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: 10px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--border-high); transform: translateY(-2px); }
.card h3 { margin: 16px 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.tile {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: rgba(34, 184, 175, 0.14);
  border: 1px solid rgba(34, 184, 175, 0.3);
  display: grid;
  place-items: center;
}
.tile svg { width: 26px; height: 26px; stroke: var(--teal-soft); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Bloques destacados (texto + captura) */
.spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}
.spotlight.reverse .spot-media { order: -1; }
.spot-media {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 340px;
}
.spot-media::before {
  content: "";
  position: absolute;
  inset: 10%;
  background: var(--grad);
  filter: blur(60px);
  opacity: 0.26;
  z-index: -1;
}
/* Recorte de la captura (540 × 960) a 4:5 para que no quede tan alta; cada una enfoca su zona. */
.spot-media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 30px; border: 1px solid var(--border); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }
.spot-media img.crop-top { object-position: 50% 10%; }
.spot-media img.crop-bottom { object-position: 50% 100%; }
.checks { list-style: none; margin: 20px 0 0; padding: 0; }
.checks li { position: relative; padding-left: 34px; margin: 12px 0; color: #d3e2e0; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--grad-btn);
}
.checks li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

/* Capturas */
.shots {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 14px;
  scrollbar-color: var(--border-high) transparent;
}
.shots img {
  width: 240px;
  height: auto;
  flex: 0 0 auto;
  border-radius: 26px;
  border: 1px solid var(--border);
  scroll-snap-align: start;
}

.highlight {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  padding: 44px;
  background: linear-gradient(120deg, #12a49c 0%, #0e7f7a 60%, #0b6462 100%);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
}
.highlight::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -90px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 40px solid rgba(255, 255, 255, 0.1);
}
.highlight h2 { margin-bottom: 8px; }
.highlight p { margin: 0; font-weight: 600; font-size: 17px; opacity: 0.96; max-width: 36em; }
.highlight .btn { justify-self: start; position: relative; z-index: 1; background: #fff; color: #0b5f5b; }
.highlight .btn:hover { color: #0b5f5b; background: #e6f6f5; }

details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px 22px;
  margin-bottom: 12px;
}
details[open] { border-color: var(--border-high); }
summary { cursor: pointer; font-weight: 700; font-size: 17px; }
details p { color: var(--muted); margin: 12px 0 0; }

footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 14px;
}
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

/* Páginas de texto (privacidad) */
.doc { max-width: 760px; padding: 32px 0 64px; }
.doc h1 { font-size: clamp(36px, 6vw, 52px); }
.doc h2 { font-size: 24px; letter-spacing: -0.3px; margin-top: 40px; }
.doc p, .doc li { color: #d2e0de; }
.doc .updated { color: var(--muted); }
.doc .summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  border-radius: 18px;
  padding: 18px 22px;
  margin: 24px 0;
}
.doc .table-wrap { overflow-x: auto; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 12px; border-bottom: 1px solid var(--border); vertical-align: top; color: #d2e0de; }
.doc th { color: var(--text); }

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; padding-top: 16px; gap: 32px; }
  .stage { max-width: 360px; }
  .cats { grid-template-columns: repeat(4, 1fr); row-gap: 22px; }
  .features { grid-template-columns: 1fr 1fr; }
  .spotlight { grid-template-columns: 1fr; gap: 32px; }
  .spotlight.reverse .spot-media { order: 0; }
  .highlight { grid-template-columns: 1fr; padding: 32px 28px; }
  .nav-links a:not(.lang) { display: none; }
  .shots img { width: 200px; }
}

@media (max-width: 560px) {
  section { padding: 48px 0; }
  .features { grid-template-columns: 1fr; }
  .float { font-size: 13px; }
  .cat { width: 62px; height: 62px; }
  .cats li { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .cat { transition: none; }
  .card:hover, .cats li:hover .cat { transform: none; }
}
