/* Landing de Alkimia Coffee. Matiz de marca: el azul de la pluma (H=205). Dorado y café salen del logo. */
:root {
  --h: 205;
  --ink: hsl(var(--h) 24% 10%);
  --ink-mut: hsl(var(--h) 12% 38%);
  --bg: hsl(40 22% 96%);
  --surface: hsl(40 30% 99%);
  --line: hsl(var(--h) 18% 12% / 0.1);
  --blue: hsl(200 72% 40%);
  --gold: hsl(41 62% 46%);
  --gold-bright: hsl(41 70% 62%);
  --coffee: hsl(20 32% 14%);
  --coffee-ink: hsl(40 28% 94%);
  --coffee-mut: hsl(40 18% 94% / 0.72);

  --gutter: clamp(20px, 5vw, 64px);
  --pad-x: max(var(--gutter), calc((100% - 1180px) / 2));

  --shadow: 0 1px 1px hsl(var(--h) 32% 14% / 0.04), 0 2px 2px hsl(var(--h) 32% 14% / 0.04),
    0 4px 4px hsl(var(--h) 32% 14% / 0.04), 0 8px 8px hsl(var(--h) 32% 14% / 0.04),
    0 16px 24px hsl(var(--h) 32% 14% / 0.05);

  --ease-snap: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --ui: "Instrument Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* Grano global: unifica fotos y fondos. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.75rem);
  letter-spacing: -0.042em;
  line-height: 0.98;
  max-width: 13ch;
}
h2 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  letter-spacing: -0.024em;
  line-height: 1.05;
  max-width: 18ch;
}
h3 {
  font-size: 1.125rem;
  letter-spacing: -0.012em;
  line-height: 1.2;
}
p {
  margin: 0;
  text-wrap: pretty;
  max-width: 62ch;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid hsl(var(--h) 90% 52% / 0.9);
  outline-offset: 3px;
  border-radius: 6px;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 10;
}
.skip:focus {
  top: 12px;
}

.overline {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 600;
  color: var(--gold-bright);
  margin-block-end: 14px;
}
.small {
  font-size: 0.9375rem;
  letter-spacing: 0.006em;
}

/* ---------- botones ---------- */
.btn {
  display: inline-block;
  font: 600 1rem/1.2 var(--ui);
  text-decoration: none;
  padding: 14px 24px 15px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid transparent;
  transition: background-color 140ms var(--ease-snap), transform 90ms var(--ease-snap),
    border-color 140ms var(--ease-snap), color 140ms var(--ease-snap);
}
.btn:hover {
  background: hsl(var(--h) 24% 22%);
}
.btn:active {
  transform: translateY(0.5px) scale(0.988);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: hsl(var(--h) 18% 12% / 0.28);
}
.btn--ghost:hover {
  background: var(--surface);
  border-color: hsl(var(--h) 18% 12% / 0.5);
}
.btn--gold {
  background: var(--gold-bright);
  color: var(--coffee);
}
.btn--gold:hover {
  background: hsl(41 75% 70%);
}
.btn--small {
  padding: 9px 16px 10px;
  font-size: 0.9375rem;
}

/* ---------- cabecera ---------- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px var(--pad-x);
}
.brand img {
  inline-size: 132px;
  block-size: auto;
}
.top nav {
  display: flex;
  align-items: center;
  gap: 8px 28px;
}
.top nav a:not(.btn) {
  display: none;
  text-decoration: none;
  font-weight: 500;
  color: var(--ink-mut);
  transition: color 140ms var(--ease-snap);
}
.top nav a:not(.btn):hover {
  color: var(--ink);
}
@media (min-width: 640px) {
  .top nav a:not(.btn) {
    display: inline;
  }
  .brand img {
    inline-size: 156px;
  }
}

/* ---------- hero: texto a la izquierda, foto descentrada ---------- */
.hero {
  display: grid;
  gap: 40px;
  padding: 32px var(--pad-x) 80px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.006em;
  color: var(--ink-mut);
  padding: 6px 14px 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-block-end: 24px;
}
.status-dot {
  inline-size: 8px;
  block-size: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.lede {
  margin-block: 24px 36px;
  font-size: 1.1875rem;
  color: var(--ink-mut);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-photo {
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: hsl(var(--h) 14% 88%);
}
.hero-photo img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  filter: saturate(0.94) contrast(1.02);
}
@media (min-width: 900px) {
  .hero {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: end;
    gap: 0 24px;
    padding-block: 48px 120px;
  }
  .hero-copy {
    grid-column: 1 / span 7;
    padding-block-end: 24px;
  }
  .hero-photo {
    grid-column: 8 / -1;
    margin-block-start: 48px;
    margin-inline-end: calc(var(--gutter) * -0.6);
    border-radius: 36px 36px 36px 8px;
  }
}

/* ---------- carta ---------- */
.carta {
  display: grid;
  gap: 40px;
  padding: 72px var(--pad-x) 96px;
}
.carta-photo {
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  overflow: hidden;
  background: hsl(var(--h) 14% 88%);
}
.carta-photo img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  filter: saturate(0.94) contrast(1.02);
}
.section-note {
  margin-block: 16px 40px;
  color: var(--ink-mut);
}
.menu {
  display: grid;
  gap: 36px 40px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.menu h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-block-end: 14px;
  border-bottom: 1px solid var(--ink);
}
.menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu li {
  padding-block: 11px 12px;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.icon {
  inline-size: 1.15em;
  block-size: 1.15em;
  flex: none;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.5;
  stroke-linecap: square;
  stroke-linejoin: miter;
  vector-effect: non-scaling-stroke;
}
.icon * {
  vector-effect: non-scaling-stroke;
}
.icon .soft {
  opacity: 0.38;
}
@media (min-width: 900px) {
  .carta {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0 24px;
    padding-block: 96px 120px;
  }
  .carta-photo {
    grid-column: 1 / span 4;
    aspect-ratio: 4 / 5;
    align-self: start;
    border-radius: 8px 28px 28px 28px;
  }
  .carta-body {
    grid-column: 6 / -1;
  }
}

/* ---------- casa: fondo café, foto que sangra a la izquierda ---------- */
.casa {
  display: grid;
  gap: 40px;
  padding: 80px var(--pad-x) 88px;
  background: var(--coffee);
  color: var(--coffee-ink);
}
.casa-photo {
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  overflow: hidden;
}
.casa-photo img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
}
.casa-body {
  display: grid;
  gap: 20px;
  justify-items: start;
  align-content: center;
}
.casa-body > p {
  color: var(--coffee-mut);
}
.events {
  list-style: none;
  margin: 4px 0;
  padding: 0;
  inline-size: min(100%, 420px);
}
.events li {
  padding-block: 11px 12px;
  border-bottom: 1px solid hsl(40 18% 94% / 0.16);
  font-weight: 500;
}
.events li:first-child {
  border-top: 1px solid hsl(40 18% 94% / 0.16);
}
.casa .small {
  color: var(--coffee-mut);
  margin-block-start: 8px;
}
.casa :focus-visible {
  outline-color: hsl(41 90% 70%);
}
@media (min-width: 900px) {
  .casa {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0 24px;
    padding: 0 var(--pad-x) 0 0;
  }
  .casa-photo {
    grid-column: 1 / span 7;
    aspect-ratio: auto;
    min-block-size: 560px;
    border-radius: 0 40px 40px 0;
  }
  .casa-body {
    grid-column: 8 / -1;
    padding-block: 120px;
    padding-inline-start: 8px;
  }
}

/* ---------- visita ---------- */
.visit {
  display: grid;
  gap: 40px;
  padding: 80px var(--pad-x) 112px;
  position: relative;
}
dl {
  margin: 32px 0 36px;
  display: grid;
  gap: 0;
  max-inline-size: 520px;
}
dl > div {
  display: grid;
  gap: 4px 24px;
  padding-block: 16px 18px;
  border-top: 1px solid var(--line);
}
dl > div:last-child {
  border-bottom: 1px solid var(--line);
}
dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 600;
  color: var(--ink-mut);
}
dd {
  margin: 0;
  font-weight: 500;
}
.hours {
  display: block;
  font-variant-numeric: tabular-nums;
}
.hours b {
  font-weight: 600;
  white-space: nowrap;
}
.visit-mark {
  inline-size: 128px;
  block-size: auto;
  opacity: 0.9;
}
@media (min-width: 640px) {
  dl > div {
    grid-template-columns: 96px 1fr;
    align-items: baseline;
  }
}
@media (min-width: 900px) {
  .visit {
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: center;
    padding-block: 120px 160px;
  }
  .visit-mark {
    inline-size: 240px;
    justify-self: center;
    transform: rotate(-5deg);
  }
}

/* ---------- pie ---------- */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 28px var(--pad-x) 36px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  letter-spacing: 0.006em;
  color: var(--ink-mut);
}
.foot a {
  text-underline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
