/* Casa Vittori — landing de apertura.
   Tokens y proporciones vienen del sistema «Classical» del doc de diseño
   (variante 1a, «Il Sigillo»). El canvas original es de 1280 px fijos: acá los
   tamaños grandes usan clamp() para bajar a mobile sin romper la escala. */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/cormorant-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/cormorant-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/lora-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/lora-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --verde: #16281f;
  --papel: #f3f2f2;
  --fondo: #d9d6d0;
  --oro: #e1ad66;
  --oro-medio: #b68235;
  --oro-oscuro: #7d5411;
  --oro-tierra: #a06f24;
  --tinta: #201f1d;
  --gris: #605d5d;
  --linea: rgba(32, 31, 29, 0.16);
  --linea-oro: rgba(225, 173, 102, 0.35);

  --titulo: "Cormorant Garamond", Georgia, serif;
  --texto: "Lora", Georgia, serif;

  /* El diseño respira con 64 px a 1280; abajo se comprime hasta 24. */
  --margen: clamp(24px, 5vw, 64px);
}

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

body {
  margin: 0;
  background: var(--fondo);
  color: var(--tinta);
  font-family: var(--texto);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2 {
  font-family: var(--titulo);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: pretty;
}

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

a { color: var(--oro-oscuro); text-decoration: none; }
a:hover { color: var(--oro-medio); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--oro-medio); outline-offset: 3px; }
::selection { background: rgba(225, 173, 102, 0.4); }

.saltar {
  position: absolute;
  left: -9999px;
  z-index: 10;
  padding: 10px 18px;
  background: var(--papel);
  font-family: var(--titulo);
}
.saltar:focus { left: 12px; top: 12px; }

/* El «papel» del diseño: una hoja clara elevada sobre el fondo. */
.marco {
  max-width: 1280px;
  margin: 0 auto;
  background: var(--papel);
  box-shadow: 0 12px 32px rgba(45, 43, 43, 0.18);
}

.kicker {
  font-family: var(--titulo);
  font-size: clamp(13px, 1.1vw, 15px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0;
}
.kicker--oro { color: var(--oro); letter-spacing: 0.22em; }
.kicker--tierra { color: var(--oro-tierra); }

/* ── Barra superior ─────────────────────────────────────────────── */

.barra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 26px var(--margen);
  background: var(--verde);
  color: var(--papel);
  border-bottom: 1px solid var(--linea-oro);
}
.barra__marca { display: flex; align-items: center; gap: 16px; }
.barra__monograma { width: 38px; height: 38px; flex: none; }
.barra__dominio {
  font-family: var(--titulo);
  font-size: clamp(14px, 1.4vw, 17px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.barra__apertura {
  font-family: var(--titulo);
  font-size: clamp(12px, 1.2vw, 15px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--oro);
}

/* ── Hero ───────────────────────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  padding: clamp(56px, 7vw, 96px) var(--margen) clamp(64px, 8vw, 104px);
  background: var(--verde);
  color: var(--papel);
}
.hero__sello {
  width: min(320px, 100%);
  height: auto;
  aspect-ratio: 1;
  justify-self: center;
}
.hero__texto { display: flex; flex-direction: column; gap: clamp(20px, 2.2vw, 28px); }
.hero h1 {
  font-size: clamp(40px, 6vw, 76px);
  letter-spacing: -0.02em;
  color: var(--papel);
  max-width: 680px;
}
.hero__bajada {
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.6;
  max-width: 620px;
  color: rgba(243, 242, 242, 0.82);
}
.hero__nota { font-size: clamp(14px, 1.2vw, 15px); color: rgba(243, 242, 242, 0.55); }

/* ── Formulario ─────────────────────────────────────────────────── */

.alta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 620px;
  margin-top: 4px;
}
.campo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.campo label {
  font-family: var(--titulo);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243, 242, 242, 0.72);
}
.campo__opcional { text-transform: none; letter-spacing: 0.02em; opacity: 0.7; }

.campo input {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--texto);
  font-size: 17px;
  color: var(--papel);
  background: transparent;
  border: 1px solid rgba(243, 242, 242, 0.4);
  border-radius: 4px;
  caret-color: var(--oro);
}
.campo input::placeholder { color: rgba(243, 242, 242, 0.45); }
.campo input:hover { border-color: rgba(243, 242, 242, 0.65); }
.campo input:focus-visible { border-color: var(--oro); outline-offset: 0; }
.campo input[aria-invalid="true"] { border-color: #e8917c; }

.alta__enviar {
  grid-column: 1 / -1;
  justify-self: start;
  padding: 14px 34px;
  font-family: var(--titulo);
  font-size: 17px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--oro);
  background: transparent;
  border: 1px solid var(--oro);
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.alta__enviar:hover { background: rgba(225, 173, 102, 0.14); }
.alta__enviar:active { background: rgba(225, 173, 102, 0.24); }
.alta__enviar[disabled] { opacity: 0.5; cursor: progress; }

.alta__aviso {
  min-height: 1.5em;
  font-size: 16px;
  color: var(--oro);
}
.alta__aviso[data-estado="error"] { color: #f0a08c; }

/* Honeypot: invisible para personas, presente para bots. */
.trampa {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Cuando el alta se completa, el formulario se reemplaza por el agradecimiento. */
.gracias {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 620px;
  padding: 26px 30px;
  border: 1px solid var(--linea-oro);
  border-radius: 4px;
  background: rgba(225, 173, 102, 0.07);
}
.gracias h2 { font-size: clamp(26px, 2.6vw, 34px); color: var(--papel); }
.gracias p { font-size: 17px; line-height: 1.6; color: rgba(243, 242, 242, 0.8); }

/* ── Pilares ────────────────────────────────────────────────────── */

.pilares {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(36px, 5vw, 64px);
  padding: clamp(56px, 7vw, 88px) var(--margen);
  border-bottom: 1px solid var(--linea);
}
.pilar { display: flex; flex-direction: column; gap: 18px; }
.pilar__icono { width: 44px; height: 44px; flex: none; }
.pilar h2 { font-size: clamp(25px, 2.4vw, 30px); line-height: 1.15; }
.pilar p {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.6;
  text-align: justify;
  hyphens: auto;
}

/* ── Mientras tanto ─────────────────────────────────────────────── */

.mientras {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--linea);
}
.mientras__foto { margin: 0; border-right: 1px solid var(--linea); }
.mientras__foto img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.mientras__texto {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: clamp(48px, 6vw, 72px) var(--margen);
}
.mientras h2 { font-size: clamp(30px, 3.4vw, 40px); }
.mientras p { font-size: clamp(16px, 1.5vw, 18px); line-height: 1.6; max-width: 460px; }

.enlace-subrayado {
  width: fit-content;
  padding-bottom: 4px;
  font-family: var(--titulo);
  font-size: clamp(15px, 1.4vw, 17px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--oro-medio);
}

/* ── Eventos y catering ─────────────────────────────────────────── */

.eventos {
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 4vw, 52px);
  padding: clamp(56px, 7vw, 88px) var(--margen);
}
.eventos__intro { display: flex; flex-direction: column; gap: 18px; max-width: 620px; }
.eventos h2 { font-size: clamp(30px, 3.4vw, 40px); }
.eventos__intro p { font-size: clamp(16px, 1.5vw, 18px); line-height: 1.6; }

.eventos__lista {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3vw, 40px);
}
.evento {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(26px, 3vw, 36px);
  border: 1px solid var(--linea);
  border-radius: 4px;
  background: rgba(225, 173, 102, 0.06);
}
.evento__icono { width: 40px; height: 40px; flex: none; }
.evento h3 {
  margin: 0;
  font-family: var(--titulo);
  font-weight: 400;
  font-size: clamp(23px, 2.2vw, 27px);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.evento p { font-size: clamp(15px, 1.45vw, 17px); line-height: 1.6; }

.boton-oro {
  align-self: flex-start;
  padding: 14px 34px;
  font-family: var(--titulo);
  font-size: clamp(15px, 1.4vw, 17px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--oro-oscuro);
  border: 1px solid var(--oro-medio);
  border-radius: 4px;
  transition: background-color 0.15s ease;
}
.boton-oro:hover { background: rgba(182, 130, 53, 0.12); color: var(--oro-oscuro); }

/* ── Pie ────────────────────────────────────────────────────────── */

.pie {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: clamp(40px, 5vw, 56px) var(--margen);
  background: var(--verde);
  color: rgba(243, 242, 242, 0.7);
}
.pie__logo { width: min(300px, 70vw); height: auto; aspect-ratio: 720 / 200; flex: none; }
.pie__datos {
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.6;
  font-style: normal;
  text-align: right;
}
.pie__datos a { color: inherit; }
.pie__datos a:hover { color: var(--oro); }

/* ── Adaptaciones ───────────────────────────────────────────────── */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: left; }
  .hero__sello { width: min(220px, 60vw); }
  .pilares { grid-template-columns: 1fr; }
  .pilar p { text-align: left; }
  .mientras { grid-template-columns: 1fr; }
  .mientras__foto { border-right: 0; border-bottom: 1px solid var(--linea); }
  .mientras__foto img { min-height: 260px; max-height: 380px; }
  .eventos__lista { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .alta { grid-template-columns: 1fr; }
  .alta__enviar { justify-self: stretch; text-align: center; }
  .barra { justify-content: center; text-align: center; }
  .pie { flex-direction: column; align-items: flex-start; }
  .pie__datos { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
