/* Nochevieja 2026 · Casa Axis
   Sistema de casaaxis.com (negro · blanco · plata · CASAAXIS + Denim).
   La portada es el cartel de Felipe; el oro y el rosa neón salen de él.
   Detrás de todo, el cielo de sky.js (fuegos artificiales y destellos). */

@font-face { font-family: 'CASAAXIS'; src: url('fonts/CASAAXIS-Regular.otf') format('opentype'); font-display: swap; }
@font-face { font-family: 'Denim'; src: url('fonts/Denim-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Denim'; src: url('fonts/Denim-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Denim'; src: url('fonts/Denim-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'C059'; src: url('fonts/C059-Italic.woff2') format('woff2'); font-style: italic; font-weight: 400; font-display: swap; }

:root {
  --bg: #000;
  --silver-1: #f4f6f8;
  --silver-2: #b9c0c8;
  --silver-3: #7d858f;
  --line: rgba(185, 192, 200, .22);
  --silver-grad: linear-gradient(115deg, #f4f7fa 0%, #6d7681 26%, #ffffff 50%, #4e565f 74%, #e9edf1 100%);
  /* champán para la línea art déco (Gatsby) */
  --gold-2: #c99a68;
  --gold-grad: linear-gradient(115deg, #e6c68f 0%, #b07437 28%, #f2ddb0 50%, #8a5a2e 72%, #dcb87e 100%);
  /* arco FP para los acentos (sin verde) */
  --fp-arc: linear-gradient(90deg, #6BF8F4, #59A8F3, #2B5CF0, #5B137E, #DD2B47, #DA7F22, #FFEC36);
  /* del cartel: oro de «CASA AXIS» y rosa neón del «2027» */
  --poster-gold: #fdc764;
  --poster-rose: #eb1f72;
  --gutter: clamp(20px, 6vw, 72px);
  --maxw: 760px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--silver-1);
  font-family: 'Denim', Inter, -apple-system, system-ui, sans-serif; font-weight: 500;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
::selection { background: #b9c0c8; color: #000; }

/* cielo de fondo (sky.js): fijo, detrás de todo */
.sky { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; z-index: -1; pointer-events: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }

/* ---------- barra ---------- */
.bar {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: max(18px, env(safe-area-inset-top)) var(--gutter) 18px;
}
.logo {
  display: block; width: 168px; height: 19px;
  background: var(--silver-grad);
  -webkit-mask: url('img/lockup.svg') left center / contain no-repeat;
          mask: url('img/lockup.svg') left center / contain no-repeat;
}
.lang { display: flex; gap: 6px; align-items: center; font-family: 'CASAAXIS'; font-size: 13px; letter-spacing: .12em; color: var(--silver-3); }
.lang button { background: none; border: 0; padding: 6px 2px; cursor: pointer; color: var(--silver-3); letter-spacing: inherit; font-family: inherit; }
.lang button[aria-pressed="true"] { color: #fff; }

/* ---------- portada ---------- */
.hero { position: relative; text-align: center; padding: clamp(120px, 22vw, 190px) var(--gutter) clamp(56px, 10vw, 96px); }
/* con cartel: la imagen manda (a sangre en el móvil) y sus bordes se funden con el cielo.
   Debajo van primero la fecha, el sitio y los botones, en letra de texto; «Nochevieja»
   baja y abre el resto de la página, para que no se confunda con el rótulo del cartel
   (Felipe, 25-nov-2026). */
.hero.with-cartel { display: flex; flex-direction: column; align-items: center; padding-top: 62px; padding-bottom: clamp(6px, 2vw, 18px); }
.hero.with-cartel .when { order: 1; margin-top: 0; }
.hero.with-cartel .where { order: 2; }
.hero.with-cartel .cta { order: 3; }
.hero.with-cartel .title { order: 4; margin-top: clamp(104px, 24vw, 168px); }
.cartel {
  display: block; flex: none; width: min(100vw, 560px); max-width: none; height: auto;
  margin: 0 0 clamp(20px, 5vw, 36px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 2.2%, #000 94%, transparent 100%), linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 2.2%, #000 94%, transparent 100%), linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}

.title {
  margin: 0; font-family: 'CASAAXIS'; font-weight: 400; text-transform: uppercase; line-height: .9;
  /* CASAAXIS es muy ancha: «NOCHEVIEJA» mide ~8,5 veces el cuerpo */
  font-size: min(10vw, 76px); letter-spacing: .01em;
}
.title .solid {
  display: block;
  background: var(--silver-grad); background-size: 220% 220%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 7s ease-in-out infinite;
}
/* un título por idioma (data-only) */
.title [data-only][hidden] { display: none; }
/* «New Year’s Eve» es más largo que «Nochevieja»: un poco más pequeño para que quepa en una línea */
.title .t-en { font-size: .74em; word-spacing: .12em; }
/* CASAAXIS no tiene apóstrofo: una rayita del mismo trazo */
.title .apo { display: inline-block; width: .1em; height: .3em; margin: 0 .04em 0 .05em; vertical-align: .4em; border-radius: .02em; background: var(--silver-1); }
.title .outline { display: block; margin-top: .14em; font-size: .78em; color: transparent; -webkit-text-stroke: 1.5px var(--silver-2); }
@keyframes sheen { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@media (prefers-reduced-motion: reduce) { .title .solid { animation: none; } }
/* con cartel: el título repite su oro con halo rosa; el año y el dress code ya los dice el cartel */
.hero.with-cartel .title .solid {
  background: none; color: var(--poster-gold); animation: none;
  text-shadow: 0 0 2px rgba(235, 31, 114, .9), 0 0 16px rgba(235, 31, 114, .6), 0 0 38px rgba(235, 31, 114, .35);
}
.hero.with-cartel .title .outline, .hero.with-cartel .dress { display: none; }
.hero.with-cartel .title .apo { background: var(--poster-gold); box-shadow: 0 0 2px rgba(235, 31, 114, .9), 0 0 16px rgba(235, 31, 114, .6), 0 0 38px rgba(235, 31, 114, .35); }

.dress {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: clamp(22px, 5vw, 34px) 0 0; font-size: clamp(19px, 2.6vw, 24px); font-weight: 600;
}
.dress .txt { background: var(--gold-grad); background-size: 150% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.gem { width: 9px; height: 9px; transform: rotate(45deg); background: var(--gold-grad); flex: none; }
.when { margin: 14px 0 0; font-weight: 600; font-size: clamp(17px, 2.3vw, 21px); color: #fff; }
.where { margin: 4px 0 0; font-size: 15px; color: var(--silver-2); }

.cta { display: flex; flex-wrap: wrap; gap: 14px 26px; justify-content: center; align-items: center; margin-top: clamp(24px, 5vw, 38px); }

/* botones: acción = cápsula · lectura = texto con flecha */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--silver-grad); background-size: 160% 100%; color: #000;
  font-weight: 600; font-size: 16px; text-decoration: none; letter-spacing: -.005em;
  transition: background-position .5s ease, transform .15s ease;
}
.btn:hover { background-position: 100% 0; }
.btn:active { transform: scale(.98); }
.btn:focus-visible, .read:focus-visible, .chip input:focus-visible + span, .lang button:focus-visible {
  outline: 2px solid #6BF8F4; outline-offset: 3px;
}
.read {
  background: none; border: 0; padding: 8px 0; cursor: pointer; text-decoration: none;
  color: var(--silver-2); font-size: 16px; font-weight: 500;
}
.read:hover { color: #fff; }

/* ---------- bloques ---------- */
.block { max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(64px, 12vw, 120px) var(--gutter) 0; }
.kicker {
  display: flex; align-items: center; gap: 12px; margin: 0 0 22px;
  font-size: 14px; color: var(--silver-2);
}
.kicker::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.num { font-family: 'CASAAXIS'; font-size: 13px; letter-spacing: .14em; color: var(--silver-3); }

.big { margin: 0; font-size: clamp(26px, 5vw, 40px); line-height: 1.12; font-weight: 600; letter-spacing: -.02em; color: #fff; }
.body { margin: 18px 0 0; font-size: 17px; line-height: 1.55; color: var(--silver-2); max-width: 60ch; }

/* ---------- fotos ---------- */
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.shots figure { margin: 0; overflow: hidden; border-radius: 14px; aspect-ratio: 3 / 4; background: #111; }
.shots figure:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 5; }
.shots button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.shots button:focus-visible { outline: 2px solid #6BF8F4; outline-offset: -2px; }
.shots img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
@media (hover: hover) { .shots button:hover img { transform: scale(1.03); } }
/* 11 fotos (Felipe quiere la galería simétrica): en el móvil, la grande + 5 filas de 2;
   en pantalla ancha, la grande a todo el ancho + 2 filas de 5.
   Si cambia el número de fotos, revisar que no quede una suelta al final. */
@media (min-width: 700px) {
  .shots { grid-template-columns: repeat(5, 1fr); }
  .shots figure:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
}

.lightbox {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .94); cursor: zoom-out; padding: 16px;
}
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; }
.lightbox button {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3); background: rgba(0,0,0,.5); color: #fff; font-size: 18px; cursor: pointer;
}
.lightbox .lb-prev { left: 12px; } .lightbox .lb-next { right: 12px; }

/* ---------- menú: una carta ----------
   Estrecha, centrada y enmarcada, para que se lea como la carta de un restaurante.
   Platos en serifa cursiva (C059, la misma de felipepantone.com). */
.carta {
  position: relative; max-width: 500px; margin: 6px auto 0; text-align: center;
  padding: clamp(36px, 9vw, 54px) clamp(22px, 6vw, 46px) clamp(32px, 8vw, 48px);
  background: rgba(5, 5, 9, .8); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  border: 1px solid rgba(253, 199, 100, .55);
}
.carta::before { content: ''; position: absolute; inset: 6px; border: 1px solid rgba(253, 199, 100, .2); pointer-events: none; }
.carta-emblem {
  display: block; width: 24px; height: 24px; margin: 0 auto 16px; background: var(--poster-gold);
  -webkit-mask: url('img/emblem.svg') center / contain no-repeat; mask: url('img/emblem.svg') center / contain no-repeat;
}
.carta-title { margin: 0; font-family: 'C059', Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 400; font-size: clamp(36px, 9vw, 44px); line-height: 1; color: #fff; }

.sep { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 28px 0 24px; }
.sep i { width: 46px; height: 1px; background: linear-gradient(90deg, transparent, rgba(253, 199, 100, .6)); }
.sep i:last-child { transform: scaleX(-1); }
.sep .gem { width: 6px; height: 6px; }

.course-head { margin-bottom: 10px; }
.course-head h3 { margin: 0; padding-left: .24em; font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--poster-gold); }
.course-head .aside { display: block; margin-top: 6px; font-family: 'C059', Georgia, serif; font-style: italic; font-size: 15px; color: var(--silver-3); }

.dish { padding: 10px 0 12px; }
.dish h4 {
  margin: 0 auto; max-width: 22ch; text-wrap: balance;
  font-family: 'C059', Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 400;
  font-size: clamp(21px, 5.6vw, 25px); line-height: 1.2; color: #fff;
}
.nw { white-space: nowrap; }
.dish p { margin: 9px auto 0; max-width: 38ch; text-wrap: balance; font-size: 14.5px; line-height: 1.5; color: var(--silver-2); }
.dish p.note { margin-top: 6px; font-family: 'C059', Georgia, serif; font-style: italic; font-size: 15px; line-height: 1.4; color: var(--silver-3); }
.dish .or { display: block; margin: 0 0 12px; font-family: 'C059', Georgia, serif; font-style: italic; font-size: 19px; line-height: 1; color: var(--poster-gold); }
.tag {
  display: inline-block; margin-top: 9px; padding: 3px 10px 4px; border-radius: 999px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #000;
  background: linear-gradient(100deg, #DCFCFB, #ACF7F2 30%, #f7d7e4 70%, #fff3b0);
}
.course.dessert h4 { max-width: none; font-family: 'CASAAXIS'; font-style: normal; text-transform: uppercase; letter-spacing: .02em; font-size: clamp(22px, 6vw, 30px);
  background: var(--fp-arc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pairing { margin: 0; font-family: 'C059', Georgia, serif; font-style: italic; font-size: 17px; color: var(--silver-1); }

/* ---------- confirmación ---------- */
#rsvp-form { margin-top: 30px; }
.person { padding: 18px 0; border-top: 1px solid var(--line); }
.person:first-child { border-top: 0; padding-top: 0; }
.person-top { display: flex; gap: 12px; align-items: center; }
.person-top input { flex: 1; min-width: 0; }
.remove { background: none; border: 0; color: var(--silver-3); cursor: pointer; font-size: 14px; padding: 10px 4px; }
.remove:hover { color: #fff; }

input[type="text"], textarea {
  width: 100%; background: rgba(255,255,255,.04); color: #fff; font: inherit; font-size: 16px;
  border: 1px solid rgba(185,192,200,.3); border-radius: 14px; padding: 13px 16px;
}
textarea { resize: vertical; min-height: 56px; line-height: 1.4; }
input::placeholder, textarea::placeholder { color: var(--silver-3); }
input:focus, textarea:focus { outline: none; border-color: #ACF7F2; box-shadow: 0 0 0 3px rgba(107,248,244,.15); }

.choice { margin-top: 12px; }
.choice .lbl { display: block; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px;
  border: 1px solid rgba(185,192,200,.35); color: var(--silver-1); font-size: 15px; transition: all .2s ease;
}
.chip input:checked + span { background: var(--silver-grad); background-size: 160% 100%; color: #000; border-color: transparent; font-weight: 600; }

.lbl { font-size: 14px; color: var(--silver-2); }
.field { display: block; margin-top: 24px; }
.field .lbl { display: block; margin-bottom: 8px; }
.lbl .opt { color: var(--silver-3); }
.add { margin-top: 6px; }

.error { margin: 16px 0 0; color: #ff8a9b; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; margin-top: 26px; }
.fine { margin: 16px 0 0; font-size: 14px; color: var(--silver-3); }
.cal { display: inline-block; margin-top: 30px; }

/* ---------- pie ---------- */
.foot {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: clamp(80px, 14vw, 140px) auto 0;
  padding: 26px var(--gutter) max(34px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}
.foot .logo.small { width: 130px; height: 15px; }
.foot p { margin: 0; font-family: 'CASAAXIS'; font-size: 13px; letter-spacing: .12em; color: var(--silver-3); }

