:root {
  --teal: #178A78;
  --teal-dk: #0E3B35;
  --coral: #E8705C;
  --lime: #86AE3C;
  --sand: #F4EBDD;
  --ink: #18231F;
  --ink-coral: #3A120D;
  --ink-lime: #1C2A0C;
  --white: #FFFDF8;
  --display: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --brand: 'Cinzel', Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--display); color: var(--ink); background: var(--teal); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 16px; top: -60px; background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: 8px; z-index: 50; text-decoration: none; font-weight: 600; }
.skip:focus { top: 16px; }

/* Cabecera */
.top { position: fixed; inset: 16px 16px auto 16px; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 14px 10px 20px; border-radius: 999px; background: rgba(10, 38, 34, 0.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--white); }
.logo { display: flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; }
.logo-arrow { font-size: 14px; }
.logo-word { font-family: var(--brand); font-weight: 700; font-size: 20px; letter-spacing: 0.08em; }
.top nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.top nav a { text-decoration: none; font-size: 14px; font-weight: 600; letter-spacing: 0.04em; padding: 10px 14px; border-radius: 999px; }
.top nav a:hover { background: rgba(255, 255, 255, 0.14); }

/* Tipografía */
.kicker { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; }
.display { margin: 0; font-weight: 200; font-style: italic; font-size: clamp(48px, 8.5vw, 132px); line-height: 0.95; letter-spacing: -0.01em; }
.lede { margin: 18px 0 0; font-size: clamp(17px, 1.5vw, 22px); line-height: 1.45; font-weight: 400; max-width: 30ch; }

/* Escena con scroll */
.scrolly { position: relative; }
.stage { position: relative; }
#bottle, .dots, .loader { display: none; }
.panel { position: relative; padding: 120px 16px 56px; display: flex; flex-direction: column; gap: 12px; }
.panel-img { width: 100%; height: auto; border-radius: 16px; margin-bottom: 20px; }
.panel-hero { background: var(--teal); color: var(--white); }
.panel-flavor.ink-light { background: var(--teal); color: var(--white); }
.panel-flavor.ink-dark-coral { background: var(--coral); color: var(--ink-coral); }
.panel-flavor.ink-dark-lime, .panel-outro { background: var(--lime); color: var(--ink-lime); }
.hint { display: none; }

.attrs { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.attrs li { font-size: 14px; font-weight: 600; letter-spacing: 0.06em; padding: 10px 16px; border-radius: 999px; border: 1.5px solid currentColor; }

/* Modo animado: escena fija mientras se recorre */
.anim .scrolly { height: 720vh; }
.anim .stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.anim #bottle { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.anim .panel-img { display: none; }
.anim .panel { position: absolute; inset: 0; padding: 0 6vw; background: none; opacity: 0; visibility: hidden; pointer-events: none; display: grid; grid-template-columns: 1fr minmax(180px, 30vw) 1fr; align-items: center; }
.anim .panel.on { visibility: visible; pointer-events: auto; }
.anim .panel-hero, .anim .panel-outro { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding-bottom: 12vh; }
.anim .panel-outro { justify-content: center; align-items: flex-end; text-align: right; padding-bottom: 0; }
.panel-outro .display { font-size: clamp(36px, 4.2vw, 64px); }
.anim .col-left { grid-column: 1; }
.anim .col-right { grid-column: 3; justify-self: end; flex-direction: column; align-items: flex-end; }
.anim .panel .display, .anim .panel .lede { text-shadow: 0 2px 24px rgba(0, 0, 0, 0.12); }
.anim .hint { display: flex; align-items: center; gap: 12px; margin-top: 28px; font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; }
.anim .hint i { width: 1px; height: 40px; background: currentColor; transform-origin: top; animation: hint 1.6s ease-in-out infinite; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

.anim .dots { display: flex; flex-direction: column; gap: 14px; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); margin: 0; padding: 0; list-style: none; z-index: 5; }
.dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--white); background: transparent; padding: 0; cursor: pointer; transition: background .2s, transform .2s; }
.dots button.active { background: var(--white); transform: scale(1.25); }

.anim .loader { display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.2); }
.loader span { display: block; height: 100%; width: 0; background: var(--white); transition: width .3s; }
.loader.done { opacity: 0; transition: opacity .6s .4s; }

.btn { display: inline-block; margin-top: 28px; padding: 14px 26px; border-radius: 999px; background: var(--ink-lime); color: var(--white); text-decoration: none; font-weight: 600; letter-spacing: 0.06em; font-size: 15px; }
.btn:hover { filter: brightness(1.15); }

/* Sobre Imperial */
.about { background: var(--sand); color: var(--ink); padding: 120px 16px; }
.wrap { max-width: 1180px; margin: 0 auto; }
.about .display { color: #0E5E52; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.photos img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; }

/* Contacto */
.contact { background: var(--teal-dk); color: var(--white); padding: 120px 16px; }
.links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.contact .btn { background: var(--white); color: var(--teal-dk); }
.contact .btn-ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255, 255, 255, 0.6); cursor: default; }

.foot { background: #0A2A26; color: #B9D3CD; padding: 28px 16px; font-size: 13px; line-height: 1.5; text-align: center; }
.foot p { max-width: 900px; margin: 0 auto; }

/* Móvil */
@media (max-width: 760px) {
  .top { inset: 12px 12px auto 12px; padding: 8px 6px 8px 14px; gap: 8px; }
  .top nav { flex-wrap: nowrap; gap: 0; }
  .top nav a { font-size: 11px; padding: 8px 7px; letter-spacing: 0.02em; white-space: nowrap; }
  .logo-word { font-size: 15px; }
  .display { font-size: 44px; }
  .anim .panel { display: flex; flex-direction: column; justify-content: space-between; align-items: stretch; padding: 92px 16px 36px; }
  .anim .panel-hero { justify-content: flex-start; }
  .anim .panel-hero .lede { max-width: 26ch; }
  .anim .hint { margin-top: auto; }
  .anim .col-right { align-items: flex-start; flex-direction: row; justify-self: auto; }
  .anim .panel-outro { justify-content: flex-start; align-items: flex-start; text-align: left; }
  .anim .dots { right: 10px; }
  .photos { grid-template-columns: 1fr; }
  .lede { max-width: none; }
}
