:root {
  --ink: #1d1d1f;
  --muted: #5f5f5a;
  --paper: #ffffff;
  --soft: #eeeeea;
  --soft-light: #f7f7f4;
  --line: #ddddda;
  --max-width: 1060px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 18px;
  line-height: 1.65;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}

.site-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 28px;
  min-height: 122px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.brand span {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.brand strong {
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: -0.035em;
}

.brand small {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

nav a {
  font-size: 0.95rem;
  font-weight: 750;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

main::before {
  content: "";
  display: block;
  height: 30px;
  background: var(--soft);
  margin-bottom: 0;
}

main > section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 28px;
}

.hero {
  padding-top: 78px;
  padding-bottom: 84px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.11em;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.intro {
  max-width: 760px;
  margin: 30px 0 0;
  color: #41413e;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  line-height: 1.55;
}

.actions {
  margin: 38px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 25px;
}

.button {
  display: inline-block;
  padding: 12px 20px;
  border: 2px solid var(--ink);
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 5px 5px 0 #aaa9a3;
}

.button:hover {
  box-shadow: 6px 6px 0 #aaa9a3;
  transform: translate(-1px, -1px);
}

main > section:not(.hero) {
  border-top: 1px solid var(--line);
}

h2 {
  max-width: 800px;
  margin: 0 0 25px;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

h3 {
  max-width: 760px;
  margin: 32px 0 5px;
  font-size: 1.25rem;
  line-height: 1.3;
}

.lead {
  max-width: 780px;
  margin: 0 0 30px;
  font-size: 1.18rem;
}

section > p:not(.eyebrow):not(.actions):not(.lead) {
  max-width: 780px;
}

.settings {
  max-width: 780px;
  margin: 34px 0;
  border-top: 1px solid var(--line);
}

.settings div {
  padding: 15px 0;
  display: grid;
  grid-template-columns: 175px 1fr;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.settings dt {
  font-weight: 800;
}

.settings dd {
  margin: 0;
}

code {
  font-family:
    ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  font-size: 0.92em;
}

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

.important {
  margin-top: 32px;
  padding: 20px 22px;
  border-left: 5px solid var(--ink);
  background: var(--soft-light);
}

#zona a,
#servicios a {
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.map-block {
  max-width: calc(var(--max-width) - 40px);
  margin-top: 30px;
  margin-bottom: 30px;
  padding: 58px 48px;
  border: 0 !important;
  border-radius: 15px;
  background: var(--soft);
}

.map-block p:not(.eyebrow) {
  max-width: 720px;
}

footer {
  margin-top: 30px;
  background: var(--ink);
  color: #fff;
  padding: 45px max(28px, calc((100% - var(--max-width)) / 2 + 28px));
}

footer p {
  max-width: 720px;
  margin: 0 0 14px;
}

footer a {
  color: inherit;
}

.license {
  margin-top: 24px;
  color: #cacac5;
  font-size: 0.86rem;
}

@media (max-width: 720px) {
  body {
    font-size: 17px;
  }

  .site-header {
    padding: 18px 20px 20px;
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .brand img {
    width: 62px;
    height: 62px;
  }

  .brand strong {
    font-size: 1.7rem;
  }

  .brand small {
    font-size: 0.9rem;
  }

  nav {
    width: 100%;
    gap: 12px 22px;
  }

  main::before {
    height: 24px;
  }

  main > section {
    padding: 48px 20px;
  }

  .hero {
    padding-top: 48px;
    padding-bottom: 58px;
  }

  h1 {
    font-size: clamp(2.55rem, 13vw, 4rem);
  }

  .settings div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .map-block {
    width: auto;
    margin: 20px 16px;
    padding: 38px 24px;
    border-radius: 11px;
  }

  footer {
    margin-top: 20px;
    padding: 40px 20px;
  }
}

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

  .button:hover {
    transform: none;
  }
}

/* Fondo máis cálido e menos branco */
body {
  background: #eeeeea;
}

.site-header {
  background: #ffffff;
}

main {
  background: #eeeeea;
}

main::before {
  background: #deded8;
}

main > section {
  background: #ffffff;
}

main > section:nth-of-type(even):not(.map-block) {
  background: #f3f3ef;
}

.hero {
  background: #f1f1ed;
}

.map-block {
  background: #e4e4de;
}

/* Fondo cálido e menos branco */
body {
  background: #eeeeea;
}

.site-header {
  background: #ffffff;
}

main {
  background: #eeeeea;
}

main::before {
  background: #dcdcd6;
}

main > section {
  background: #f8f8f5;
}

main > section:nth-of-type(even):not(.map-block) {
  background: #eeeeea;
}

.hero {
  background: #f2f2ee;
}

.map-block {
  background: #deded8;
}

.map-links {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.map-links > a:not(.button) {
  font-weight: 750;
  text-underline-offset: 4px;
}

.principles {
  margin-top: 30px;
  margin-bottom: 30px;
  padding: 58px 48px;
  border: 0 !important;
  border-radius: 15px;
  background: #292a2d !important;
  color: #ffffff;
}

.principles .eyebrow {
  color: #c7c7c2;
}

.principles .lead,
.principles > p {
  max-width: 780px;
}

.principles-ending {
  margin-top: 32px;
  font-size: 1.08rem;
}

@media (max-width: 720px) {
  .principles {
    margin: 20px 16px;
    padding: 38px 24px;
    border-radius: 11px;
  }
}

.basics-wrap {
  background: #e4e4de;
  padding: 30px 28px;
}

.basics {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 34px 0;
}

.basics h2 {
  margin-bottom: 34px;
}

.basics-grid {
  max-width: 900px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #c8c8c2;
  border-bottom: 1px solid #c8c8c2;
}

.basics-grid > div {
  padding: 26px 30px 26px 0;
}

.basics-grid > div + div {
  padding-left: 30px;
  border-left: 1px solid #c8c8c2;
}

.basics-grid h3 {
  margin-top: 0;
}

.basics-grid p {
  margin-bottom: 0;
}

.link-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.secondary-button {
  display: inline-block;
  padding: 11px 18px;
  border: 2px solid var(--ink);
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  font-weight: 800 !important;
  line-height: 1.35;
  text-decoration: none !important;
}

.secondary-button:hover {
  background: var(--ink);
  color: #ffffff;
}

.map-links .secondary-button {
  text-decoration: none;
}

@media (max-width: 720px) {
  .basics-wrap {
    padding: 20px;
  }

  .basics {
    padding: 28px 0;
  }

  .basics-grid {
    grid-template-columns: 1fr;
  }

  .basics-grid > div {
    padding: 22px 0;
  }

  .basics-grid > div + div {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid #c8c8c2;
  }

  .link-actions,
  .map-links {
    align-items: stretch;
  }

  .secondary-button {
    text-align: center;
  }
}

.check-list {
  max-width: 780px;
  margin: 32px 0;
  padding-left: 1.6rem;
}

.check-list li {
  margin-bottom: 18px;
  padding-left: 8px;
}

.check-list li::marker {
  font-weight: 800;
}

.check-note {
  max-width: 780px;
  margin-top: 30px;
  padding: 20px 22px;
  border-left: 5px solid var(--ink);
  background: var(--soft-light);
  color: var(--ink);
}

/* Comprobación de conexión */
.check-list {
  max-width: 780px;
  margin: 32px 0;
  padding-left: 1.6rem;
}

.check-list li {
  margin-bottom: 18px;
  padding-left: 8px;
}

.check-list li::marker {
  font-weight: 800;
}

.check-note {
  max-width: 780px;
  margin-top: 30px;
  padding: 20px 22px;
  border-left: 5px solid var(--ink);
  background: var(--soft-light);
  color: var(--ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.footer-links a {
  font-weight: 750;
  text-underline-offset: 4px;
}
