:root {
  --bg: #100e0c;
  --cream: #f4ead7;
  --cream-dim: #cbbfa6;
  --red: #e10600;
  --red-btn: #b11218;
  --orange: #f15a22;
  --amber: #e7a23a;
  --ink: #1a120e;
  --paper: #f3eadc;
  --line: rgba(244, 234, 215, 0.14);
  --fuente: "Outfit", "Segoe UI", sans-serif;
  --display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.nav-abierta {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--fuente);
  font-size: 17px;
  line-height: 1.55;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

::selection {
  background: var(--red);
  color: #fff;
}

[hidden] {
  display: none !important;
}

.saltar {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--cream);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 50;
}

.saltar:focus {
  top: 12px;
}

.brasa-fondo {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 48% 36% at 88% 0%, rgba(225, 6, 0, 0.2), transparent 62%),
    radial-gradient(ellipse 36% 28% at 0% 88%, rgba(241, 90, 34, 0.14), transparent 58%);
}

.barra,
main,
.cinta,
.pie {
  position: relative;
  z-index: 1;
}

.barra {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: linear-gradient(to bottom, rgba(16, 14, 12, 0.94), rgba(16, 14, 12, 0.72) 70%, transparent);
}

.barra.solida {
  background: rgba(16, 14, 12, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.barra-interna {
  position: relative;
  width: min(1120px, calc(100% - 8vw));
  margin: 0 auto;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.marca {
  display: flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
  color: var(--cream);
}

.logo {
  display: block;
  height: 74px;
  width: auto;
  max-width: min(150px, 38vw);
  object-fit: contain;
  object-position: left center;
  border-radius: 12px;
}

.hero-logo {
  display: block;
  width: min(210px, 62vw);
  height: auto;
  margin: 0 0 14px;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.logo-pie {
  height: auto;
  width: min(200px, 68vw);
  max-width: none;
  border-radius: 18px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
}

.nav a[aria-current="true"]:not(.btn) {
  background: rgba(255, 255, 255, 0.08);
}

.nav a.btn {
  margin-left: 8px;
  padding: 0 18px;
}

.menu-btn {
  display: none;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(244, 234, 215, 0.35);
  border-radius: 999px;
  min-height: 44px;
  padding: 0 14px;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.menu-icono {
  width: 18px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
  display: block;
  position: relative;
}

.menu-btn[aria-expanded="true"] .menu-icono {
  background: transparent;
  box-shadow: none;
}

.menu-btn[aria-expanded="true"] .menu-icono::before,
.menu-btn[aria-expanded="true"] .menu-icono::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.menu-btn[aria-expanded="true"] .menu-icono::before {
  transform: rotate(45deg);
}

.menu-btn[aria-expanded="true"] .menu-icono::after {
  transform: rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.btn-rojo {
  background: var(--red-btn);
  color: #fff;
  box-shadow: 0 10px 28px rgba(177, 18, 24, 0.35);
}

.btn-rojo:hover {
  background: #c4161d;
}

.btn-linea {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(244, 234, 215, 0.45);
}

.btn-linea:hover {
  background: rgba(255, 255, 255, 0.06);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: 108px 0 36px;
  overflow: hidden;
}

.hero-foto,
.hero-velo {
  position: absolute;
  inset: 0;
}

.hero-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  animation: aliento 28s ease-in-out infinite alternate;
}

@keyframes aliento {
  to {
    transform: scale(1.08);
  }
}

.hero-velo {
  background:
    linear-gradient(to top, rgba(16, 14, 12, 0.94) 0%, rgba(16, 14, 12, 0.42) 46%, rgba(16, 14, 12, 0.28) 100%),
    linear-gradient(to right, rgba(16, 14, 12, 0.62), transparent 58%);
}

.hero-contenido {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 8vw));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.75fr);
  gap: 36px;
  align-items: end;
}

.hero-marco {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #1a120e;
  transform: rotate(-1.4deg);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(244, 234, 215, 0.18);
}

.hero-marco img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-texto {
  margin: 0;
  text-align: left;
}

.sobre {
  margin: 0 0 8px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.sobre-tinta {
  color: #9d1016;
}

h1,
h2,
.tecnica h3,
.grupo h3 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.92;
}

h1 {
  margin: 0;
  font-size: clamp(56px, 8vw, 104px);
  color: var(--cream);
}

h1 span {
  color: var(--red);
}

.lede,
.intro {
  color: var(--cream-dim);
  font-size: 18px;
}

.lede {
  margin: 18px 0 0;
  max-width: 42ch;
}

.hero-acciones {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.firma {
  margin: 22px 0 0;
  color: var(--cream-dim);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.firma span {
  color: var(--red);
  padding: 0 6px;
}

.cinta {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: #140f0c;
  margin-top: 0;
}

.cinta-pista {
  display: flex;
  width: max-content;
  animation: correr 32s linear infinite;
}

.cinta:hover .cinta-pista {
  animation-play-state: paused;
}

.cinta-pista p {
  margin: 0;
  padding: 14px 0;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
  white-space: nowrap;
}

@keyframes correr {
  to {
    transform: translateX(-50%);
  }
}

.seccion {
  width: min(1120px, calc(100% - 8vw));
  margin: 0 auto;
  padding: 76px 0;
}

.seccion h2 {
  margin: 0 0 14px;
  font-size: clamp(42px, 6vw, 72px);
}

.intro {
  max-width: 62ch;
  margin: 0 0 28px;
}

.bento {
  display: grid;
  grid-template-columns: 0.72fr 1fr 1fr;
  grid-template-rows: 240px 240px;
  gap: 14px;
  margin-bottom: 14px;
}

.foto {
  position: relative;
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #1a120e;
}

.foto-alta {
  grid-row: 1 / span 2;
}

.foto-ancha {
  grid-column: 2 / span 2;
}

.foto img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.foto figcaption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
}

.nota-fotos {
  margin: 0 0 28px;
  color: var(--cream-dim);
  font-size: 13px;
}

.corte {
  position: relative;
  margin: 0;
  height: min(72vh, 640px);
  overflow: hidden;
}

.corte img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  display: block;
}

.corte figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 72px 8vw 36px;
  background: linear-gradient(to top, rgba(16, 14, 12, 0.88), transparent);
}

.corte figcaption p:last-child {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(42px, 6vw, 84px);
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.rejilla-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tecnica,
.tarjeta {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px 22px 26px;
}

.tecnica {
  border-top: 3px solid var(--red);
}

.tecnica:nth-child(2) {
  border-top-color: var(--orange);
}

.tecnica:nth-child(3) {
  border-top-color: var(--amber);
}

.indice {
  margin: 0;
  font-family: var(--display);
  font-size: 54px;
  line-height: 1;
  color: var(--red);
}

.tecnica:nth-child(2) .indice {
  color: var(--orange);
}

.tecnica:nth-child(3) .indice {
  color: var(--amber);
}

.tecnica h3,
.tarjeta h3,
.lado h3 {
  margin: 0 0 8px;
  font-size: 32px;
}

.tecnica p,
.tarjeta p {
  margin: 0;
  color: var(--cream-dim);
}

.carta-papel {
  background:
    linear-gradient(#9d1016, #9d1016) 0 0 / 100% 8px no-repeat,
    var(--paper);
  color: var(--ink);
  color-scheme: light;
  border-radius: 28px;
  padding: 36px 40px 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.carta-cabeza {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.carta-papel h2 {
  color: var(--ink);
}

.sello {
  flex: none;
  width: 108px;
  height: 108px;
  margin: 0;
  display: grid;
  place-items: center;
  text-align: center;
  border: 2px solid #9d1016;
  border-radius: 50%;
  color: #9d1016;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.15;
  transform: rotate(-8deg);
}

.carta-intro {
  max-width: 68ch;
  margin: 8px 0 0;
  color: #5c4e42;
}

.filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 8px;
}

.filtros button {
  border: 1px solid rgba(26, 18, 14, 0.22);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  min-height: 40px;
  padding: 0 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.filtros button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.carta-estado {
  margin: 0 0 8px;
  color: #6d5e52;
  font-size: 14px;
}

.grupo h3 {
  margin: 28px 0 0;
  color: #9d1016;
  font-size: 34px;
}

.grupo:first-of-type h3 {
  margin-top: 12px;
}

.bajada {
  margin: 2px 0 4px;
  color: #6d5e52;
  font-size: 14px;
}

.plato {
  padding: 14px 0;
  border-bottom: 1px dashed rgba(26, 18, 14, 0.18);
}

.nombre {
  margin: 0;
  font-weight: 700;
  font-size: 18px;
}

.detalle {
  margin: 2px 0 0;
  color: #5e5146;
  font-size: 15px;
}

.enlace {
  display: inline-block;
  margin-top: 16px;
  color: var(--cream);
  font-weight: 700;
}

.enlace:hover {
  color: var(--amber);
}

.reserva-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 18px;
  align-items: start;
}

.formulario {
  display: grid;
  gap: 12px;
}

.campos-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.campo {
  display: grid;
  gap: 6px;
}

.campo label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(244, 234, 215, 0.18);
  background: #241c18;
  color: var(--cream);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
}

textarea {
  resize: vertical;
  min-height: 96px;
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--cream) 50%), linear-gradient(135deg, var(--cream) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 12px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--amber);
}

.error {
  margin: 0;
  min-height: 1.2em;
  color: #ffb4ae;
  font-size: 13px;
}

.error:empty {
  display: none;
}

.formulario .btn {
  justify-self: start;
  margin-top: 4px;
}

.reserva-lista {
  background: var(--paper);
  color: var(--ink);
  border-radius: 16px;
  padding: 16px;
}

.reserva-lista p {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}

.reserva-lista pre {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 15px;
  margin: 10px 0 14px;
}

.btn-tinta {
  background: var(--ink);
  color: var(--paper);
  border: 0;
  border-radius: 999px;
  min-height: 44px;
  padding: 0 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.lado h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 36px;
}

.lado p,
.dato dd {
  color: var(--cream-dim);
}

.lado a {
  color: var(--cream);
}

.como {
  margin-top: 26px;
}

#contacto-datos:empty {
  display: none;
}

.dato {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.dato dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}

.dato dd {
  margin: 2px 0 0;
}

.pasos {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  counter-reset: paso;
  display: grid;
  gap: 14px;
}

.pasos li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--cream-dim);
}

.pasos li::before {
  content: counter(paso);
  counter-increment: paso;
  font-family: var(--display);
  font-size: 28px;
  line-height: 1;
  color: var(--red);
}

.pasos strong {
  color: var(--cream);
}

.pie {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
}

.pie-interno {
  width: min(1120px, calc(100% - 8vw));
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.pie-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.pie-nav a {
  text-decoration: none;
  font-weight: 600;
}

.pie-nav a:hover,
.pie-mail a:hover {
  color: var(--amber);
}

.pie-mail,
.pie-copy {
  margin: 0;
  color: var(--cream-dim);
}

.pie-copy {
  font-size: 14px;
}

.mapa {
  margin: 22px 0 0;
  display: grid;
  gap: 14px;
}

.mapa iframe {
  width: 100%;
  height: 380px;
  border: 0;
  border-radius: 22px;
  background: #1a120e;
}

.mapa figcaption p:last-of-type {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.wa-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 35;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.wa-panel {
  width: min(320px, calc(100vw - 36px));
  padding: 16px;
  border-radius: 18px;
  background: #1b1613;
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.wa-cabeza {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
}

.wa-cabeza strong {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 0.04em;
  font-weight: 400;
}

.wa-cabeza span {
  color: #25d366;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wa-cabeza button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--cream);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.wa-panel p {
  margin: 10px 0 14px;
  color: var(--cream-dim);
  font-size: 15px;
}

.wa-ir {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  background: #128c4a;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.wa-ir:hover {
  background: #0f7a40;
}

.wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 16px 0 14px;
  border: 0;
  border-radius: 999px;
  background: #128c4a;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.wa svg {
  width: 26px;
  height: 26px;
}

.wa:hover {
  background: #0f7a40;
}

section[id] {
  scroll-margin-top: 104px;
}

@media (max-width: 860px) {
  .menu-btn {
    display: inline-flex;
  }

  .barra-interna {
    height: 76px;
  }

  .logo {
    height: 58px;
    max-width: 46vw;
  }

  .hero-logo {
    width: min(168px, 54vw);
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    background: #1b1613;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  }

  .nav.abierto {
    display: flex;
  }

  .nav a.btn {
    margin: 6px 0 0;
  }

  .rejilla-3,
  .reserva-grid,
  .campos-2 {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 92svh;
  }

  .hero-contenido {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-marco {
    transform: none;
    max-width: 520px;
  }

  .bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 280px 200px 220px;
  }

  .foto-alta {
    grid-row: auto;
    grid-column: 1 / span 2;
  }

  .foto-ancha {
    grid-column: 1 / span 2;
  }

  .carta-papel {
    padding: 28px 18px 18px;
  }

  .carta-cabeza {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 46px;
  }

  .logo {
    height: 50px;
    border-radius: 8px;
  }

  .hero-logo {
    width: min(140px, 46vw);
    border-radius: 14px;
  }

  .seccion {
    padding: 56px 0;
  }
}

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

  .hero-foto img {
    animation: none;
  }

  .cinta-pista {
    animation: none;
  }

  .cinta-pista p:nth-child(n + 2) {
    display: none;
  }

  .btn-rojo:hover,
  .btn-linea:hover {
    transition: none;
  }
}
