/* KRATERA · landing kratera.cl — rediseño "nocturno editorial" (ref.: Liquid Maestro, Figma Community)
   Paleta de marca: granate #850808 · coral #DB6A5F · verde #9BBF4B · crema #F3EBDD · negro cálido #171513
   Composición calcada del template: hero gigante con trazos, intro centrada con subrayados,
   tira de fotos a todo el ancho, ficha grande del bar (formato carta), filas punteadas grandes
   (formato Opening Hours) y formulario de líneas (formato Bookings).
   Regla de formas (misma que la app): botones píldora · paneles 20px · inputs 12px */

:root {
  --negro: #171513;
  --negro-alzado: #201c18;
  --crema: #f3ebdd;
  --crema-suave: rgba(243, 235, 221, 0.72);
  --crema-tenue: rgba(243, 235, 221, 0.45);
  --granate: #850808;
  --granate-hover: #9c1212;
  /* Acento de texto: granate aclarado para fondo oscuro (pedido 2026-11-12;
     el granate puro #850808 queda para botones/fondos claros).
     El nombre de la variable se mantiene para no tocar todo el CSS. */
  --coral: #b01e1e;
  --verde: #9bbf4b;
  --linea-oscura: #2b2620;
  --linea-punteada: rgba(243, 235, 221, 0.22);
  --trazo: rgba(243, 235, 221, 0.14);
  --radio-panel: 20px;
  --radio-input: 12px;
  --fuente-display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --fuente-cuerpo: "Outfit", "Segoe UI", sans-serif;
  --shell: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  background: var(--negro);
  color: var(--crema);
  font-family: var(--fuente-cuerpo);
  font-size: 1.1875rem;
  line-height: 1.6;
  font-weight: 400;
}

img { max-width: 100%; display: block; }

.shell {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* ---------- Tipografía ---------- */

h1, h2, h3, .wordmark, .num, .fundador-nombre {
  font-family: var(--fuente-display);
  line-height: 1.06;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2.7rem, 7vw, 5.2rem);
  font-weight: 700;
  max-width: 15ch;
}

h3 {
  font-size: 1.45rem;
  font-weight: 600;
}

p { max-width: 58ch; color: var(--crema-suave); }
p strong { color: var(--crema); }

.acento { color: var(--coral); }

/* Título de sección, discreto y a dos tonos, como "Cocktails Menu" / "Bookings & Contact" */
.titulo-seccion {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--crema);
}
.titulo-seccion .acento { font-weight: 600; }

/* Título mayor (solo "Llena tu bar" y "Avísame") */
.titulo-grande {
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  max-width: 24ch;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--coral);
  margin-bottom: 14px;
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 20;
  background: rgba(23, 21, 19, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(243, 235, 221, 0.07);
}

.nav-inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--crema);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.wordmark img { height: 26px; width: auto; display: block; }
.pie .wordmark img { height: 30px; }

.nav-link {
  color: var(--crema-suave);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 2px;
  transition: color 0.2s ease;
}
.nav-link:hover, .nav-link:focus-visible { color: var(--crema); }

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-family: var(--fuente-cuerpo);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.12s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: var(--verde);
  color: var(--negro);
}
.btn-primary:hover { background: #8aad3f; }
.btn-primary:focus-visible { outline-color: var(--crema); }

.btn-ghost {
  border-color: rgba(243, 235, 221, 0.35);
  color: var(--crema);
  background: transparent;
}
.btn-ghost:hover { border-color: rgba(243, 235, 221, 0.7); }

:focus-visible {
  outline: 2px solid var(--verde);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible { border-radius: 999px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: min(100dvh, 880px);
  display: flex;
  align-items: center;
  padding: 120px 0 90px;
  overflow: hidden;
  /* Foto "Barra" bajo un velo oscuro + brillos de marca (el velo garantiza la lectura del texto) */
  background:
    radial-gradient(75% 60% at 82% 10%, rgba(133, 8, 8, 0.35), transparent 62%),
    linear-gradient(100deg, rgba(23, 21, 19, 0.92) 0%, rgba(23, 21, 19, 0.72) 45%, rgba(23, 21, 19, 0.45) 100%),
    linear-gradient(180deg, rgba(23, 21, 19, 0.35) 55%, rgba(23, 21, 19, 0.97) 96%, #171513 100%),
    url("/img/hero.webp") center / cover no-repeat,
    #171513;
}

.trazo-hero {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.trazo-hero path, .trazo-hero circle { stroke: var(--trazo); fill: none; }

.hero-copy { position: relative; }

.hero-sub {
  margin-top: 24px;
  font-size: clamp(1.4rem, 2.5vw, 1.7rem);
  color: var(--crema-suave);
  max-width: 36ch;
}
.hero-sub .acento { color: var(--coral); font-weight: 500; }

.cta-row {
  margin-top: 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero .nota { margin-top: 18px; }

/* ---------- Intro centrada (formato "Intro" del template) ---------- */

.intro { padding: 120px 0 100px; }

.intro-inner {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.intro-texto {
  font-size: clamp(1.5rem, 3vw, 1.95rem);
  line-height: 1.6;
  color: var(--crema-suave);
  max-width: none;
}
.intro-texto + .intro-texto { margin-top: 26px; }

.subrayado {
  color: var(--coral);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(219, 106, 95, 0.55);
}

/* ---------- Tira de fotos a todo el ancho (formato "Image Divider") ---------- */

.divisor { overflow: hidden; }

.divisor-fila {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.divisor-foto {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--negro-alzado);
}
.divisor-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* La foto del cóctel es vertical: se encuadra más arriba para que el vaso salga completo */
.divisor-foto:nth-child(2) img { object-position: 50% 24%; }

/* ---------- Bar fundador (formato "Cocktails Menu": foto + nombre grande) ---------- */

.fundador { padding: 110px 0; }

.fundador .titulo-seccion { margin-bottom: 56px; }

.fundador-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 64px;
  align-items: center;
}

.fundador-foto { border-radius: var(--radio-panel); overflow: hidden; }

.fundador-foto img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  /* La foto de Sereno es 9:16: se ancla arriba para que el letrero salga completo */
  object-position: 50% 10%;
  display: block;
}

.fundador-nombre {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 700;
  max-width: 16ch;
}
.fundador-nombre .acento { display: block; }

.fundador-copy p { margin-top: 22px; }

.link-inline {
  display: inline-block;
  margin-top: 20px;
  color: var(--crema);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: rgba(219, 106, 95, 0.6);
  transition: color 0.2s ease;
}
.link-inline:hover { color: var(--coral); }

/* ---------- Piloto para bares (formato "Bookings & Contact") ---------- */

.piloto {
  padding: 104px 0;
  border-top: 1px dashed var(--linea-punteada);
  position: relative;
  overflow: hidden;
}

/* Letra gigante delineada, como la "B" de Bookings del template */
.letra-gigante {
  position: absolute;
  left: -3%;
  bottom: -4%;
  font-family: var(--fuente-display);
  font-weight: 700;
  font-size: clamp(18rem, 40vw, 38rem);
  line-height: 0.78;
  color: transparent;
  -webkit-text-stroke: 1px rgba(243, 235, 221, 0.08);
  pointer-events: none;
  user-select: none;
}
@supports not (-webkit-text-stroke: 1px black) {
  .letra-gigante { display: none; }
}

.piloto .shell { position: relative; }

.piloto-intro { margin-top: 16px; max-width: 52ch; font-size: 1.35rem; }

/* Cuerpo a dos columnas, como el bloque Bookings del template: foto grande + contenido */
.piloto-cuerpo {
  margin-top: 56px;
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 64px;
  align-items: start;
}

.piloto-foto {
  border-radius: var(--radio-panel);
  overflow: hidden;
  position: sticky;
  top: 96px;
}
.piloto-foto img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

/* Un solo ritmo para todo el contenido: bloques iguales separados por la misma línea punteada,
   todos con un h3 como título y texto al mismo tamaño, alineados a la izquierda. */
.piloto-contenido .bloque + .bloque {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px dashed var(--linea-punteada);
}

.piloto-contenido h3 { margin-bottom: 16px; }
.piloto-contenido .bloque > p { max-width: 58ch; }

/* La caja del QR va aparte: se lee como extra opcional, no como un bloque más */
.bloque-qr {
  border: 1px dashed var(--linea-punteada);
  border-radius: 14px;
  background: rgba(32, 28, 24, 0.6);
  padding: 20px 22px;
}
.piloto-contenido .bloque.bloque-qr {
  border-top: 1px dashed var(--linea-punteada);
  padding-top: 20px;
  margin-top: 36px;
}
.bloque-qr-titulo {
  font-weight: 600;
  color: var(--crema);
  margin-bottom: 8px;
}
.bloque-qr p + p { font-size: 1.05rem; line-height: 1.6; }

.lista-rayas { list-style: none; }
.lista-rayas li {
  padding: 9px 0 9px 22px;
  position: relative;
  color: var(--crema-suave);
  line-height: 1.5;
}
.lista-rayas li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 10px;
  height: 2px;
  background: var(--coral);
}

/* Tarjeta de cierre: destacado + WhatsApp a la izquierda, formulario a la derecha */
.piloto-cierre {
  margin-top: 72px;
  background: rgba(32, 28, 24, 0.65);
  border: 1px solid var(--linea-oscura);
  border-radius: var(--radio-panel);
  padding: 52px 56px;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: start;
}

.piloto-destacado {
  font-family: var(--fuente-display);
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  line-height: 1.3;
  font-weight: 600;
  color: var(--crema);
  max-width: 24ch;
}

.piloto-cta {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.piloto-zona { margin-top: 16px; font-size: 1.1rem; }

/* Formulario del piloto: campos de línea, como el template */

.form-titulo { margin-bottom: 26px; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 36px;
  margin-bottom: 30px;
}

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

.campo label {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--crema-suave);
}

.campo input,
.campo select {
  font: inherit;
  color: var(--crema);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(243, 235, 221, 0.28);
  border-radius: 0;
  padding: 8px 2px 10px;
  width: 100%;
  transition: border-color 0.2s ease;
}
.campo select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23f3ebdd' stroke-opacity='0.6' stroke-width='1.6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
}
.campo select option { background: var(--negro-alzado); color: var(--crema); }
.campo input::placeholder { color: var(--crema-tenue); }
.campo input:hover, .campo select:hover { border-bottom-color: rgba(243, 235, 221, 0.5); }
.campo input:focus-visible,
.campo select:focus-visible {
  outline: none;
  border-bottom-color: var(--coral);
}

.campo-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  cursor: pointer;
  font-size: 1.05rem;
  color: var(--crema);
}
.campo-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--granate);
  flex: none;
}

.form-estado { margin-top: 14px; font-weight: 500; min-height: 1.4em; color: var(--crema-suave); }
.form-estado.ok { color: var(--verde); }
.form-estado.error { color: var(--coral); }

/* ---------- Pasos (formato "Opening Hours": filas grandes punteadas) ---------- */

.pasos {
  padding: 104px 0 110px;
  border-top: 1px dashed var(--linea-punteada);
  /* Foto "Barra" de fondo bajo un velo oscuro, como el hero */
  background:
    linear-gradient(100deg, rgba(23, 21, 19, 0.93) 0%, rgba(23, 21, 19, 0.82) 55%, rgba(23, 21, 19, 0.62) 100%),
    linear-gradient(180deg, rgba(23, 21, 19, 0.9) 0%, rgba(23, 21, 19, 0.55) 40%, rgba(23, 21, 19, 0.97) 97%, #171513 100%),
    url("/img/pasos.webp") center / cover no-repeat,
    #171513;
}

.pasos .titulo-seccion { margin-bottom: 36px; }

.pasos-lista {
  list-style: none;
  max-width: 880px;
}

.pasos-lista li {
  display: flex;
  align-items: baseline;
  gap: 30px;
  padding: 26px 0;
  border-bottom: 1px dashed var(--linea-punteada);
}
.pasos-lista li:first-child { border-top: 1px dashed var(--linea-punteada); }

.pasos-lista .num {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--coral);
  flex: none;
  width: 2.2em;
}

.pasos-lista p {
  font-family: var(--fuente-display);
  font-size: clamp(1.4rem, 3vw, 2.05rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--crema);
  max-width: none;
}

/* ---------- Avísame ---------- */

.avisame {
  padding: 110px 0;
  border-top: 1px dashed var(--linea-punteada);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(45% 55% at 88% 72%, rgba(133, 8, 8, 0.16), transparent 55%),
    var(--negro);
}

.avisame-inner { max-width: 620px; }

.avisame form { margin-top: 30px; }

.avisame-fila {
  display: flex;
  gap: 18px;
  align-items: end;
  flex-wrap: wrap;
}

.avisame .campo { flex: 1 1 260px; }

.nota { margin-top: 16px; color: var(--crema-suave); font-size: 1.1rem; }

/* ---------- Sobre Kratera ---------- */

.sobre {
  padding: 96px 0 104px;
  border-top: 1px dashed var(--linea-punteada);
}

.sobre-inner { max-width: 680px; display: grid; gap: 18px; }

.sobre .titulo-seccion { margin-bottom: 8px; }

.sobre a {
  color: var(--coral);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.sobre a:hover { color: var(--crema); }

/* ---------- Pie ---------- */

.pie {
  border-top: 1px solid var(--linea-oscura);
  padding: 56px 0 64px;
}

.pie-grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.pie-zona { margin-top: 10px; color: var(--crema-suave); font-size: 1rem; }

.pie-links {
  display: grid;
  gap: 10px;
  justify-items: start;
}
.pie-links a {
  color: var(--crema-suave);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s ease;
}
.pie-links a:hover, .pie-links a:focus-visible { color: var(--crema); }

/* ---------- Revelado al hacer scroll ---------- */

@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }
  html.js .reveal.in {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Móvil ---------- */

@media (max-width: 860px) {
  .hero { min-height: min(92dvh, 760px); padding: 110px 0 70px; }

  .intro { padding: 84px 0 72px; }

  .divisor-fila { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
  .divisor-foto { flex: 0 0 74%; scroll-snap-align: start; }

  .fundador { padding: 80px 0; }
  .fundador .titulo-seccion { margin-bottom: 36px; }
  .fundador-grid { grid-template-columns: 1fr; gap: 32px; }

  .piloto { padding: 80px 0; }
  .letra-gigante { font-size: 19rem; left: -12%; bottom: 18%; }
  .piloto-cuerpo { grid-template-columns: 1fr; gap: 36px; }
  .piloto-foto { position: static; }
  .piloto-foto img { aspect-ratio: 16 / 10; }
  .piloto-contenido .bloque + .bloque { margin-top: 32px; padding-top: 32px; }
  .piloto-cierre { margin-top: 44px; grid-template-columns: 1fr; gap: 40px; padding: 28px 22px; }
  .form-grid { grid-template-columns: 1fr; }

  .pasos { padding: 80px 0 88px; }
  .pasos-lista li { gap: 18px; padding: 20px 0; }

  .avisame { padding: 84px 0; }
  .avisame-fila .btn { width: 100%; }

  .sobre { padding: 72px 0 80px; }
}

@media (max-width: 420px) {
  .cta-row .btn { width: 100%; }
}
