/*! concrete.css v3.0.0 | MIT License | github.com/louismerlin/concrete.css */
:root {
  --fg: #55000e;
  --bg: #fff;
  --highlight: #c2e166;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fg: #fff;
    --bg: #55000e;
  }
}
html {
  font-size: 1.25rem;
  box-sizing: border-box;
}
*, ::after, ::before {
  box-sizing: inherit;
  text-decoration-thickness: 0.1rem;
}
body {
  color: var(--fg);
  background: var(--bg);
  font-family: Helvetica, Arial, sans-serif;
}
a {
  color: var(--highlight);
}
body, figure {
  margin: 0;
}
figcaption {
  text-align: right;
  font-size: 0.8em;
  border-bottom: 0.2rem solid var(--fg);
  padding-bottom: 0.2rem;
}
img {
  max-width: 100%;
  height: auto;
}
main section + section {
  padding: 2rem 0;
}
body > footer, body > header, body > main {
  margin: auto;
  max-width: 660px;
  padding-left: 10px;
  padding-right: 10px;
  width: 100%;
}
body > header {
  padding-top: 8rem;
  padding-bottom: 8rem;
  font-size: 1.2em;
}
h1 {
  font-size: 2em;
}
h2 {
  font-size: 1.5em;
}
h3 {
  font-size: 1.17em;
}
h4 {
  font-size: 1em;
}
h5 {
  font-size: 0.83em;
}
h6 {
  font-size: 0.67em;
}
footer {
  text-align: center;
}
button, input[type="button"], input[type="reset"], input[type="submit"] {
  display: inline-block;
  vertical-align: middle;
  padding: 0.2rem 0.5rem;
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  background: var(--bg);
  color: var(--fg);
  border: 0.1rem solid var(--fg);
  border-radius: 0;
  cursor: pointer;
}
button:disabled,
input[type="button"]:disabled,
input[type="reset"]:disabled,
input[type="submit"]:disabled {
  border-style: dashed;
  cursor: not-allowed;
}
ul {
  list-style: square;
}
nav {
  margin: 2rem 0;
}
nav ul {
  padding: 0;
  list-style: none;
}
nav ul li {
  margin: 0 0.2rem;
  display: inline-block;
}
fieldset {
  border: 0.1rem solid var(--fg);
}
label, legend {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
input[type="email"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="text"],
input[type="url"],
select,
textarea {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  box-shadow: none;
  box-sizing: inherit;
  padding: 0.2rem 0.5rem;
  width: 100%;
  font-size: 1rem;
  color: var(--fg);
  background-color: var(--bg);
  border: 0.1rem solid var(--fg);
  border-radius: 0;
  font-family: Helvetica, Arial, sans-serif;
}
fieldset, input, select, textarea {
  margin: 0 0 0.8rem;
}
input::placeholder, textarea::placeholder {
  color: var(--fg);
  font-style: italic;
  opacity: 1;
}
table {
  width: 100%;
  border-spacing: 0;
}
td, th {
  padding: 0.4rem;
}
td:first-child, th:first-child {
  padding-left: 0;
}
td:last-child, th:last-child {
  padding-right: 0;
}
th {
  border-bottom: 0.1rem solid var(--fg);
  text-align: left;
}
td {
  border-bottom: 0.05rem solid var(--fg);
}
blockquote, pre {
  margin-left: 0;
  margin-right: 0;
  padding: 0.5rem 0.8rem;
  border-left: 0.1rem solid var(--fg);
  overflow-y: hidden;
}
pre {
  border: 0.05rem dotted var(--fg);
}
pre > code {
  white-space: pre;
  display: block;
  font-size: 0.8rem;
}
progress {
  -moz-appearance: none;
  -webkit-appearance: none;
  display: block;
  height: 0.5rem;
  overflow: hidden;
  padding: 0;
  width: 100%;
  background: var(--bg);
  color: var(--fg);
  border: 0.1rem solid var(--fg);
  border-radius: 0;
}
progress::-webkit-progress-bar {
  background-color: var(--bg);
}
progress::-webkit-progress-value {
  background-color: var(--fg);
}
progress::-moz-progress-bar {
  background-color: var(--fg);
}
hr {
  border: 0.05rem solid var(--fg);
}

/* === page background: side images that match viewport height and keep aspect ratio === */
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--fg);
  font-family: Helvetica, Arial, sans-serif;

  /* use the same image twice: left and right.
     `auto 100%` keeps aspect ratio and makes the image height = viewport height. */
  background-image: url("/img/fondo.webp"), url("/img/fondo.webp");
  background-position: left center, right center;
  background-repeat: no-repeat;
  background-size: auto 100vh, auto 100vh; /* force viewport-based height */
  background-attachment: fixed; /* optional: attach to viewport */
}

/* === central column: full viewport height background that sits above the body background === */
body::before {
  content: "";
  position: fixed; /* fixed so it always covers viewport height */
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(
    660px,
    100%
  ); /* same as your max-width; shrinks on small screens */
  background: var(--bg);
  z-index: 0; /* sits behind content but above body background */
}

/* make header/main/footer render above the pseudo-element */
body > header,
body > main,
body > footer {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  max-width: 660px;
  width: 100%;
  padding-left: 10px;
  padding-right: 10px;
  /* remove any height:100% declarations here (they don't produce full viewport height). */
}

/* allow main to grow so content + footer layout naturally (header/footer remain their own height) */
body > main {
  flex: 1 0 auto;
}

/* optional: hide side artwork on narrow screens so it doesn't compete with content */
@media (max-width: 900px) {
  body {
    background-image: none;
  }
  /* make the centre background span full width on very small screens */
  body::before {
    left: 0;
    transform: none;
    width: 100%;
  }
}
