* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font:
    1rem/1.58 "DM Sans",
    Arial,
    sans-serif;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-underline-offset: 0.26em;
}
button,
summary,
a {
  touch-action: manipulation;
}
a:focus-visible,
summary:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
}
h1 {
  font-size: clamp(4.5rem, 7.4vw, 8.2rem);
  line-height: 0.97;
  letter-spacing: -0.044em;
}
h2 {
  font-size: clamp(2.65rem, 4.4vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}
h3 {
  font-size: clamp(1.8rem, 2.6vw, 2.65rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.35rem 5.5%;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  white-space: nowrap;
  line-height: 0.95;
}
.brand img {
  width: 3.6rem;
  height: 2.65rem;
  object-fit: contain;
}
.brand span {
  font:
    1.6rem/1 "Instrument Serif",
    Georgia,
    serif;
}
.brand small {
  display: block;
  font:
    0.76rem/1 "DM Sans",
    sans-serif;
  margin-top: 0.34rem;
}
.top nav {
  display: flex;
  gap: clamp(1rem, 2.6vw, 3rem);
  align-items: center;
}
.top nav a {
  text-decoration: none;
  font-size: 0.94rem;
}
.top nav a:hover,
.inline-link:hover,
footer a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  text-align: center;
  padding: 0.86rem 1.55rem;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
  line-height: 1.35;
}
.button:hover {
  filter: brightness(0.88);
}
.top .button {
  font-size: 0.9rem;
  padding: 0.68rem 1.4rem;
}
.hero {
  position: relative;
  isolation: isolate;
}
.lead {
  align-self: center;
  position: relative;
}
.location {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  font-size: 0.9rem;
  margin-bottom: 1.45rem;
}
.location::before {
  content: "";
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: currentColor;
}
.lead > p:not(.location),
.contact p:not(.location) {
  max-width: 26rem;
  margin: 1.65rem 0;
}
.section {
  padding: clamp(4rem, 7vw, 8rem) 6%;
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
  margin-bottom: 2.3rem;
}
.section-head p {
  max-width: 30rem;
}
.care-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3rem 2rem;
}
.care-picture {
  overflow: hidden;
}
.care-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.care-text {
  padding-top: 1.2rem;
}
.care-text p {
  margin: 0.7rem 0 1rem;
  max-width: 33rem;
}
.inline-link {
  font-size: 0.9rem;
  font-weight: 600;
}
.pending {
  display: block;
  font-size: 0.81rem;
  font-weight: 600;
  margin-top: 0.65rem;
}
.about,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(2rem, 8vw, 8rem);
  align-items: center;
}
.about {
  background: var(--wash);
}
.about-brand {
  padding: 1.25rem 10%;
}
.about-brand img {
  width: 100%;
  mix-blend-mode: multiply;
}
.about h2,
.about p {
  max-width: 37rem;
}
.about p:not(.location) {
  margin-top: 1.05rem;
}
.contact {
  align-items: start;
}
dl {
  margin: 0;
}
dt {
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
dd {
  margin: 0 0 0.9rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 20%, transparent);
  overflow-wrap: anywhere;
}
footer {
  padding: 2.4rem 6%;
  border-top: 1px solid color-mix(in srgb, var(--ink) 23%, transparent);
  font-size: 0.88rem;
}
.footer-nav {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
}
footer details {
  margin-top: 1.3rem;
}
summary {
  cursor: pointer;
}
footer details p {
  max-width: 52rem;
  margin-top: 0.6rem;
}
.skip,
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip:focus {
  inset: 0.5rem auto auto 0.5rem;
  width: auto;
  height: auto;
  clip-path: none;
  background: var(--paper);
  color: var(--ink);
  z-index: 5;
  padding: 0.6rem;
}
@media (min-width: 1800px) {
  body {
    max-width: 1920px;
    margin-inline: auto;
  }
}
@media (max-width: 900px) {
  .care-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .section-head {
    display: block;
  }
  .section-head p {
    margin-top: 0.85rem;
  }
}
@media (max-width: 680px) {
  .top {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.9rem 1rem;
    padding: 0.85rem 6%;
  }
  .top nav {
    grid-row: 2;
    grid-column: 1/-1;
    justify-content: space-between;
    gap: 0.5rem;
  }
  .top .button {
    grid-column: 2;
    grid-row: 1;
  }
  .brand img {
    width: 2.6rem;
  }
  .top nav a {
    font-size: 0.88rem;
  }
  .location {
    margin-bottom: 0.95rem;
  }
  .care-list,
  .about,
  .contact {
    grid-template-columns: 1fr;
  }
  .about {
    gap: 1.7rem;
  }
  .about-brand {
    max-width: 24rem;
    width: 100%;
    justify-self: center;
  }
  .section {
    padding-block: 3.6rem;
  }
  .section-head {
    margin-bottom: 1.7rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (max-width: 680px) {
  .top nav a,
  .top .button,
  .inline-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

/* Navegación y respuesta al tacto compartidas por las cinco propuestas. */
body {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}
.top {
  position: relative;
  z-index: 4;
  background: var(--paper);
}
@media (min-width: 681px) {
  html { scroll-padding-top: 6.5rem; }
  .top {
    position: sticky;
    top: 0;
    background: color-mix(in srgb, var(--paper) 92%, transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
}
.skip:focus { z-index: 10; }
.top nav a {
  position: relative;
}
.top nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
}
.top nav a:is(:hover, :focus-visible) { text-decoration: none; }
.top nav a:is(:hover, :focus-visible)::after { transform: scaleX(1); }
@media (prefers-reduced-motion: no-preference) {
  .top nav a::after { transition: transform 220ms var(--ease-out); }
  .button { transition: translate 180ms var(--ease-out), filter 180ms ease; }
  .button:active { translate: 0 2px; }
  .care-picture.in-view { animation: print-appear 470ms var(--ease-out); }
  @media (hover: hover) and (pointer: fine) {
    .button:hover { translate: 0 -2px; }
    .care-picture img { transition: scale 470ms var(--ease-out); }
    .care:is(:hover, :focus-within) .care-picture img { scale: 1.04; }
  }
}
@keyframes print-appear {
  from { opacity: .65; translate: 0 12px; }
  to { opacity: 1; translate: 0 0; }
}

/* Arte ambiental: capas sin interacción, de tamaño limitado a la portada. */
div[aria-hidden="true"].ambient-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}
.ambient-art::before, .ambient-art::after {
  pointer-events: none;
}

/* El motivo se repite a la misma distancia que recorre en cada vuelta. */
body {
  isolation: isolate;
  --wave-period: clamp(36rem, 82vw, 84rem);
  --wave-ink: var(--accent);
}
.background-wave {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}
.page-wave { position: fixed; }
.cover-wave { position: absolute; }
.background-wave::before {
  content: "";
  position: absolute;
  left: 0;
  top: 40%;
  width: calc(100% + var(--wave-period));
  height: clamp(8rem, 22vw, 22rem);
  background-color: var(--wave-ink);
  opacity: .22;
  mask: url("assets/onda.png") left center / var(--wave-period) 100% repeat-x;
  -webkit-mask: url("assets/onda.png") left center / var(--wave-period) 100% repeat-x;
}
.page-wave::before { opacity: .13; }
@media (max-width: 680px) {
  .cover-wave::before { top: 20%; }
}
@media (prefers-reduced-motion: no-preference) {
  .background-wave::before {
    animation: wave-travel 30s linear infinite;
  }
}
@keyframes wave-travel {
  to { transform: translateX(calc(-1 * var(--wave-period))); }
}
