/* La Coctelería — lacocteleria.net
   Direction: "The object, large" (tasteskill seed 1165746458), brand palette "Casa". */

:root {
  --ink-field: #1B1B1F;   /* negro tinta: page ground */
  --surface: #26262B;     /* one tone step up from the ground */
  --cream: #F5EEE3;       /* crema hueso: text on dark, menu field */
  --cream-step: #EBE2D3;  /* one tone step down from cream */
  --coral: #E8553D;       /* coral camarón: the action */
  --coral-press: #CF4630;
  --lime: #A8C93A;        /* verde limón: heat chiles */
  --ink: #1B1B1F;
  --muted-dark: #B9B2A7;  /* secondary text on dark */
  --muted-light: #5A554E; /* secondary text on cream */

  --font: "Clash Grotesk", "Helvetica Neue", Arial, sans-serif;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(3.5rem, 7.2vw, 7rem);

  --margin: clamp(16px, 2.6vw, 32px);
  --gap-section: clamp(96px, 12vw, 200px);
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink-field);
  color: var(--cream);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
::selection { background: var(--coral); color: var(--cream); }

/* ---------- buttons: square, flat, one fill ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  font: 500 var(--step-body)/1 var(--font);
  text-decoration: none; border: 0; border-radius: 0; cursor: pointer;
  transition: transform .18s var(--ease-out), background-color .18s;
}
.btn:active { transform: scale(.97); }
.btn-accent { background: var(--coral); color: var(--ink); }
.btn-accent:hover { background: var(--coral-press); }
.btn-paper { background: var(--cream); color: var(--ink); }
.btn-paper:hover { background: var(--cream-step); }
.btn-wide { width: 100%; }

/* ---------- bar ---------- */
.bar {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 32px;
  padding: 24px var(--margin);
}
.wordmark {
  display: inline-flex; align-items: flex-start; gap: 2px;
  font-weight: 600; font-size: var(--step-lead); letter-spacing: -0.02em; text-decoration: none; color: var(--cream);
}
.wordmark-chile { width: 18px; height: 18px; fill: var(--lime); transform: translateY(-4px); }
.bar-links { display: flex; gap: 28px; }
.bar-links a { text-decoration: none; transition: color .18s; }
.bar-links a:hover { color: var(--lime); }
.bar-action { min-height: 44px; padding: 0 22px; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
  background: #13151A; /* matches the photograph's own black so the cup has no seam */
}
.hero-copy {
  position: relative; z-index: 2; text-align: center;
  padding: 120px var(--margin) 0;
  display: flex; flex-direction: column; align-items: center;
}
.hero-title {
  font-size: var(--step-display); font-weight: 500;
  line-height: .92; letter-spacing: -0.035em;
}
.hero-title span { display: block; }
.hero-lede { margin-top: 32px; max-width: 34ch; font-size: var(--step-lead); line-height: 1.3; color: var(--cream); }
.hero .btn { margin-top: 32px; }
.hero-pic {
  position: absolute; left: 0; right: 0; bottom: 0; height: 60svh; z-index: 1;
  overflow: hidden;
}
.hero-pic img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%;
  transform-origin: 50% 100%;
}

/* ---------- menu (cream field) ---------- */
.menu {
  background: var(--cream); color: var(--ink);
  padding: var(--gap-section) var(--margin) clamp(96px, 10vw, 160px);
}
.menu-head {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end;
}
.h-section { font-size: var(--step-head); font-weight: 500; line-height: 1; letter-spacing: -0.03em; }
.menu-head .h-section { grid-column: 1 / 7; }
.menu-intro { grid-column: 8 / 13; font-size: var(--step-lead); line-height: 1.3; }
.cat { margin-top: 96px; }
.cat-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 40px; }
.h-cat { font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 500; line-height: 1; letter-spacing: -0.03em; }
.cat-count { font-size: var(--step-body); color: var(--muted-light); }
.items { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; row-gap: 40px; }
.item { display: grid; grid-template-columns: 112px 1fr; gap: 24px; align-items: start; }
.item-pic { width: 112px; height: 112px; object-fit: cover; mix-blend-mode: multiply; }
.item-line { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.item-name { font-size: var(--step-lead); line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
.item-desc { margin-top: 8px; max-width: 46ch; }
.item-note { margin-top: 8px; color: #A9341F; font-weight: 500; }
.item.item-extras { grid-template-columns: 1fr; align-self: center; background: var(--cream-step); padding: 28px; }

.heat { display: inline-flex; gap: 2px; flex: none; }
.heat svg { width: 20px; height: 20px; }
.heat .on { fill: #6F8F12; }
.heat .off { fill: none; stroke: #6F8F12; stroke-width: 1.5; opacity: .45; }

.qty { margin-top: 16px; display: inline-flex; align-items: center; background: var(--ink); color: var(--cream); }
.qty-btn {
  width: 48px; height: 44px; border: 0; background: transparent; color: inherit;
  font: 500 1.375rem/1 var(--font); cursor: pointer; transition: background-color .15s, transform .15s;
}
.qty-btn:hover { background: var(--surface); }
.qty-btn:active { transform: scale(.92); }
.qty-n { min-width: 36px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 500; }
.item.is-picked .qty { background: var(--coral); }

/* ---------- order ---------- */
.order {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px;
  padding: var(--gap-section) var(--margin);
}
.order-left { grid-column: 1 / 7; }
.order-lede { margin-top: 32px; max-width: 44ch; font-size: var(--step-lead); line-height: 1.3; }
.order-list { margin-top: 48px; display: grid; gap: 12px; font-size: var(--step-lead); }
.order-list li { display: flex; justify-content: space-between; gap: 16px; background: var(--surface); padding: 16px 20px; }
.order-list .order-empty { display: block; background: transparent; padding: 0; color: var(--muted-dark); font-size: var(--step-body); }
.order-list .n { font-variant-numeric: tabular-nums; color: var(--lime); font-weight: 600; }
.order-form { grid-column: 8 / 13; display: grid; gap: 20px; align-content: start; background: var(--surface); padding: 32px; }
.heat-pick { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.heat-pick legend { padding: 0; margin-bottom: 12px; font-weight: 500; }
.heat-pick label {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  background: var(--ink-field); cursor: pointer; transition: background-color .15s, color .15s;
}
.heat-pick input { position: absolute; opacity: 0; pointer-events: none; }
.heat-pick label:has(input:checked) { background: var(--lime); color: var(--ink); }
.heat-pick label:has(input:focus-visible) { outline: 3px solid var(--lime); outline-offset: 3px; }
.field { display: grid; gap: 8px; font-weight: 500; }
.field input {
  min-height: 52px; padding: 0 16px; font: 400 var(--step-body) var(--font);
  color: var(--ink); background: var(--cream); border: 2px solid var(--cream); border-radius: 0;
}
.field input:focus { border-color: var(--lime); outline: none; }
.field-help { margin-top: -12px; font-size: var(--step-small); color: var(--muted-dark); }

/* ---------- verbs: one verb at a time ---------- */
.verb-panel { position: relative; height: 100svh; overflow: hidden; }
.verb-panel > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.verb-stick { position: absolute; inset: 0; pointer-events: none; }
.verb {
  position: sticky; top: 50%; transform: translateY(-50%);
  text-align: center; color: var(--cream);
  font-size: clamp(96px, 17vw, 300px); font-weight: 600; line-height: .9; letter-spacing: -0.045em;
}
.verb-note {
  position: absolute; left: var(--margin); bottom: var(--margin); max-width: 30ch;
  background: rgba(27, 27, 31, .82); padding: 16px 20px; font-size: var(--step-body); line-height: 1.35;
}

/* ---------- about ---------- */
.about { padding: var(--gap-section) 20px 0; }
.about-panel {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  overflow: hidden; background: var(--coral); color: var(--ink);
  padding: 56px 56px 0;
}
.about-title {
  grid-column: 1; align-self: start;
  font-size: var(--step-head); font-weight: 500; line-height: 1; letter-spacing: -0.03em; max-width: 12ch;
}
.about-text { grid-column: 2; grid-row: 1 / 3; display: grid; gap: 56px; align-content: start; max-width: 460px; justify-self: end; }
.h-sub { font-size: var(--step-lead); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
.about-block p { margin-top: 12px; }
.about-text .btn { justify-self: start; background: var(--ink); color: var(--cream); }
.about-text .btn:hover { background: var(--surface); }
.about-pic {
  grid-column: 1; grid-row: 2; align-self: end; width: 38vw; aspect-ratio: 1; object-fit: cover;
  border-radius: 50%; margin-bottom: -8vw;
}

/* ---------- faq ---------- */
.faq {
  overflow-x: clip;
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px;
  padding: var(--gap-section) var(--margin);
}
.faq-title { grid-column: 1 / 13; font-size: var(--step-head); font-weight: 500; line-height: 1; letter-spacing: -0.035em; }
.faq-list { grid-column: 5 / 13; margin-top: 48px; display: grid; gap: 12px; }
.faq-list details { padding: 12px 24px; margin: 0 -24px; transition: background-color .2s; }
.faq-list details[open] { background: var(--surface); padding-bottom: 28px; }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  min-height: 48px; cursor: pointer; list-style: none; font-size: var(--step-lead);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 12px; height: 12px; margin-right: 4px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s var(--ease-out);
}
.faq-list details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq-list summary:hover { color: var(--lime); }
.faq-list details p { margin-top: 12px; max-width: 48ch; }

/* ---------- contact ---------- */
.contact { position: relative; min-height: 100svh; overflow: hidden; }
.contact-pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.contact-card {
  position: absolute; top: 60px; right: 60px; width: 380px;
  background: var(--cream); color: var(--ink); padding: 32px 32px 0;
  display: grid; gap: 20px;
}
.card-title { font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.hours { margin: 0; display: grid; gap: 6px; }
.hours div { display: flex; justify-content: space-between; }
.hours dt { font-weight: 500; }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; }
.card-phone a { font-weight: 600; text-decoration: none; }
.contact-card .btn { margin: 4px -32px 0; width: calc(100% + 64px); }

/* ---------- footer ---------- */
.foot { display: grid; grid-template-columns: repeat(12, 1fr); min-height: 100svh; }
.foot-pic { grid-column: 1 / 7; width: 100%; height: 100%; object-fit: cover; }
.foot-side { grid-column: 8 / 13; padding: 80px var(--margin) 32px 0; display: flex; flex-direction: column; }
.foot-mark { font-weight: 600; font-size: var(--step-lead); letter-spacing: -0.02em; }
.foot-nav { margin-top: 48px; display: grid; gap: 20px; }
.foot-nav a {
  font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1;
  text-decoration: none; transition: transform .2s var(--ease-out), color .2s; justify-self: start;
}
.foot-nav:hover a { color: var(--muted-dark); }
.foot-nav a:hover, .foot-nav a:focus-visible { color: var(--cream); transform: translateX(12px); }
.foot-info { margin-top: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; font-size: var(--step-small); }
.foot-info a { color: var(--lime); }
.foot-legal { margin-top: auto; padding-top: 48px; font-size: var(--step-small); color: var(--muted-dark); }

/* ---------- cart bar ---------- */
.cart-bar {
  position: fixed; left: 50%; bottom: 16px; z-index: 10; transform: translateX(-50%);
  display: flex; align-items: center; gap: 20px; padding: 8px 8px 8px 24px;
  background: var(--ink); color: var(--cream); box-shadow: 0 10px 30px rgba(0,0,0,.35); /* taste-skill-ignore: floating sticky bar */
}
.cart-bar[hidden] { display: none; }
.cart-bar .btn { min-height: 44px; }

/* ---------- motion ---------- */
.js [data-reveal] > * { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js [data-reveal].is-in > * { opacity: 1; transform: none; }
.js [data-reveal].is-in > *:nth-child(2) { transition-delay: .08s; }
.js [data-reveal].is-in > *:nth-child(3) { transition-delay: .16s; }
.js [data-reveal].is-in > *:nth-child(4) { transition-delay: .24s; }

.js .hero-pic { clip-path: inset(100% 0 0 0); animation: shutter 1.1s var(--ease-out) .15s forwards; }
.js .hero-pic img { transform: scale(1.12); animation: settle 1.4s var(--ease-out) .15s forwards; }
.js .hero-copy > * { opacity: 0; transform: translateY(20px); animation: rise .8s var(--ease-out) forwards; }
.js .hero-copy > :nth-child(1) { animation-delay: .5s; }
.js .hero-copy > :nth-child(2) { animation-delay: .6s; }
.js .hero-copy > :nth-child(3) { animation-delay: .7s; }
@keyframes shutter { to { clip-path: inset(0 0 0 0); } }
@keyframes settle { to { transform: scale(1); } }
@keyframes rise { to { opacity: 1; transform: none; } }

.contact-pic, .foot-pic { transition: transform 1.6s var(--ease-out); }
.js .contact.is-in .contact-pic, .js .foot.is-in .foot-pic { transform: scale(1.04); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] > *, .js .hero-copy > * { opacity: 1; transform: none; transition: none; animation: none; }
  .js .hero-pic, .js .hero-pic img { animation: none; clip-path: none; transform: none; }
  .contact-pic, .foot-pic { transition: none; transform: none !important; }
}

/* ---------- tablet ---------- */
@media (max-width: 1024px) {
  .menu-head .h-section { grid-column: 1 / 13; }
  .menu-intro { grid-column: 1 / 13; }
  .order-left, .order-form { grid-column: 1 / 13; }
  .faq-list { grid-column: 3 / 13; }
  .about-panel { grid-template-columns: 1fr; padding: 48px; }
  .about-text { grid-column: 1; justify-self: start; }
  .about-text { grid-row: auto; }
  .about-pic { grid-row: auto; width: 70%; margin: 0 auto -20%; }
}

/* ---------- phone ---------- */
@media (max-width: 700px) {
  .bar { grid-template-columns: 1fr auto; padding: 16px var(--margin); }
  .bar-links { display: none; }
  .hero-copy { padding-top: 104px; }
  .hero-title { font-size: 13vw; }
  .hero-lede { margin-top: 20px; font-size: 1.0625rem; }
  .hero .btn { margin-top: 24px; }
  .hero { background: #17191E; }
  .hero-pic { height: 54svh; }
  .hero-pic img { object-position: 50% 30%; }
  .items { grid-template-columns: 1fr; row-gap: 36px; }
  .item { grid-template-columns: 72px 1fr; gap: 16px; }
  .item-pic { width: 72px; height: 72px; }
  .item-name { font-size: var(--step-body); }
  .h-cat { font-size: 8.5vw; }
  .cat { margin-top: 72px; }
  .order-form { padding: 24px; }
  .verb { font-size: 22vw; }
  .verb-note { left: 0; right: 0; bottom: 0; max-width: none; font-size: 1rem; }
  .about { padding: var(--gap-section) 10px 0; }
  .about-panel { padding: 32px 24px; gap: 40px; }
  .about-title { font-size: 9vw; }
  .about-panel { padding-bottom: 0; }
  .about-pic { width: 86vw; margin: 0 auto -25%; }
  .faq-title { font-size: 10vw; }
  .faq-list { grid-column: 1 / 13; margin-top: 48px; }
  .faq-list details { margin: 0 calc(-1 * var(--margin)); padding-left: var(--margin); padding-right: var(--margin); }
  .contact { min-height: auto; padding-bottom: 32px; }
  .contact-pic { position: relative; height: 70svh; }
  .contact-card { position: relative; top: auto; right: auto; width: auto; margin: -80px var(--margin) 0; }
  .foot { grid-template-columns: 1fr; min-height: 0; }
  .foot-pic { grid-column: 1; height: 50svh; }
  .foot-side { grid-column: 1; padding: 48px var(--margin) 32px; }
  .foot-nav { gap: 20px; }
  .foot-nav a { font-size: 8vw; }
  .foot-info { grid-template-columns: 1fr; }
  .cart-bar { left: var(--margin); right: var(--margin); transform: none; justify-content: space-between; }
}
