:root {
  --petrol: #394f48;
  --mint:   #8fc6bd;
  --bg:     #f0f5f4;
  --text:   #14201e;
  --muted:  #546a66;
  --neon:   #f9ff08;
  --border: #d6e4e1;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Inter, Roboto, Arial, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
}

/* ── HEADER — igual a index.html ── */
.skip-link {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--neon);
  color: var(--petrol);
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  z-index: 100;
  transform: translateY(-200%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.visually-hidden {
  position: absolute;
  left: -9999px;
}

header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--petrol);
  color: #fff;
  border-bottom: 3px solid var(--neon);
}

header .inner,
main .container,
footer .container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

main .container {
  width: min(760px, 92%);
}

header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand img { width: 66px; height: auto; flex: 0 0 auto; }
.brand strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.small { font-size: 13px; opacity: 0.75; }

.hamb {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  border-radius: 10px;
  background: var(--mint);
}
.hamb span { display: block; width: 22px; height: 2px; background: #fff; }

nav.menu {
  display: none;
  position: absolute;
  top: 56px;
  left: 0;
  right: 0;
  background: var(--petrol);
  padding: 12px 6%;
  border-bottom: 3px solid var(--neon);
  flex-direction: column;
  gap: 8px;
}

nav.menu a {
  display: block;
  color: #eaf3f1;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  transition: color .2s, background .2s;
}

nav.menu a:hover { color: var(--neon); background: #31554d; }
#nav-toggle:checked ~ nav.menu { display: flex; }

@media (min-width: 1024px) {
  .hamb { display: none; }
  nav.menu {
    position: static;
    display: flex;
    flex-direction: row;
    gap: 16px;
    background: var(--petrol);
    border: 0;
    padding: 0;
    align-items: center;
  }
  nav.menu a {
    display: inline-flex;
    align-items: center;
    padding: 10px 8px;
  }
}

/* ── MAIN ── */
main {
  padding: 52px 0 80px;
}

.legal-meta {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 6px;
}

main h1 {
  font-size: clamp(24px, 3.5vw, 36px);
  color: var(--petrol);
  margin: 0 0 20px;
  line-height: 1.2;
}

main > .container > p:not(.legal-meta) {
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 44px;
}

/* ── SECCIONES ── */
section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px 34px;
  margin-top: 20px;
  box-shadow: 0 1px 4px rgba(20,40,35,0.06);
}

section h2 {
  margin: 0 0 14px;
  font-size: 16px;
  color: var(--petrol);
  padding-left: 12px;
  border-left: 3px solid var(--mint);
}

section p {
  margin: 0 0 12px;
  font-size: 15px;
  color: #2e3d3b;
}

section p:last-child { margin-bottom: 0; }

ul {
  padding-left: 20px;
  margin: 6px 0 0;
}

ul li {
  font-size: 15px;
  color: #2e3d3b;
  margin-bottom: 8px;
}

ul li:last-child { margin-bottom: 0; }

/* ── FOOTER ── */
footer {
  background: #1f2a2a;
  color: rgba(255,255,255,0.8);
  padding: 24px 0;
}

footer p {
  margin: 0 0 6px;
  font-size: 14px;
}

footer a {
  color: var(--mint);
  text-decoration: none;
}

footer a:hover { text-decoration: underline; }

/* ── COOKIE BANNER ── */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(520px, calc(100% - 24px));
  background: #fff;
  border: 1px solid #cfe0dc;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 18px 40px rgba(17,32,28,0.18);
  display: none;
  gap: 14px;
}

.cookie-banner.is-visible { display: grid; }

.cookie-banner p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-actions button {
  flex: 1 1 160px;
  border-radius: 10px;
  border: 2px solid var(--mint);
  padding: 10px 14px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  background: #fff;
  color: var(--petrol);
}

.cookie-actions button.accept {
  background: var(--mint);
  color: #0e1b1a;
}

.cookie-manage {
  background: transparent;
  border: 1px dashed rgba(255,255,255,0.5);
  color: rgba(255,255,255,0.7);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 13px;
  cursor: pointer;
}

.cookie-manage:hover {
  color: var(--mint);
  border-color: var(--mint);
}

@media (max-width: 600px) {
  nav { margin-top: 8px; }

  section { padding: 22px 18px; }
}
