/* ============================================================
   Cocktail asesores Inviu 2026 — landing + /agendar
   Layout igual a cocktail2025: dos mitades de 50%, cada una con
   su contenido centrado, línea dorada entre ambas y tamaños
   fijos en px (con un escalón para pantallas grandes).
   Colores, tipografías y degradés: del PDF de este año.
   ============================================================ */

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

:root {
  --bg:        #111111;
  --input-bg:  #3e3e3e;
  --white:     #ffffff;
  --black:     #000000;
  --gold-text: #eaa22f;
  --error:     #ff7a6e;

  /* Degradé dorado del botón (muestreado del PDF) */
  --gold-gradient: linear-gradient(90deg,
    #b8813f 0%, #c79c5a 12%, #ddc886 28%, #c9a060 38%,
    #b57c3b 46%, #c89a56 63%, #deca88 82%, #c29654 100%);

  /* Degradé dorado vertical de la línea divisoria */
  --gold-line: linear-gradient(180deg,
    #cbbb7f 0%, #a47036 9%, #bc9e63 19%, #cbb97e 28%, #b18a4f 37%,
    #a36e33 46%, #b3884b 55%, #c0a164 64%, #cab97e 73%, #ba9a5f 82%, #aa7c42 100%);
}

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  font-family: 'Roboto', sans-serif;
  color: var(--white);
  background: var(--bg) url('assets/bg.jpg') center top / cover no-repeat fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Layout: dos mitades centradas ───────────────────────── */
.layout {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 100vh;
  overflow: hidden; /* el "2026" decorativo nunca genera scroll */
}

.brand-col,
.form-col {
  width: 50%;
  display: flex;
  align-items: center;
  padding: 2em 5em;
}
.brand-col { justify-content: center; }

/* ── Mitad izquierda: datos del evento ───────────────────── */
.brand-block {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-logo { line-height: 0; }
.brand-logo img {
  width: 400px;
  max-width: 100%;
  height: auto;
}

.event-date {
  margin-top: 60px;
  font-weight: 300;
  font-size: 28px;
  letter-spacing: 0.09em;
  white-space: nowrap;
}

.event-place {
  margin-top: 32px;
  font-family: 'Roboto Slab', serif;
  font-weight: 300;
  font-size: 45px;
  letter-spacing: 0.03em;
  line-height: 1.15;
  color: var(--gold-text);
  opacity: 0.9;
}

.event-address {
  margin-top: 6px;
  font-weight: 300;
  font-size: 20px;
  line-height: 1.25;
  color: var(--gold-text);
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

/* "2026" gigante casi invisible (multiply 39% sobre el fondo).
   Absoluto: decorativo, no ocupa lugar. */
.event-year {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: -6px;
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  font-size: clamp(110px, 22vh, 180px); /* en ventanas bajas se achica para no cortarse */
  line-height: 1;
  color: var(--black);
  opacity: 0.39;
  mix-blend-mode: multiply;
  user-select: none;
  pointer-events: none;
}

/* ── Línea dorada entre las mitades ──────────────────────── */
.gold-line {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 2px;
  height: 80%;
  max-height: 640px;
  background: var(--gold-line);
  opacity: 0.9;
}

/* ── Mitad derecha: formulario ───────────────────────────── */
.form-inner {
  width: 100%;
  max-width: 580px;
  padding: 0 25px;
}

.col-title {
  font-family: 'Roboto Slab', serif;
  font-weight: 300;
  font-size: 24px;
  margin-bottom: 25px;
}

.form-field { margin-bottom: 15px; }

.form-field input {
  width: 100%;
  height: 50px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--white);
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  outline: none;
  transition: box-shadow .2s ease;
}
.form-field input::placeholder { color: var(--white); opacity: 1; }
.form-field input:focus { box-shadow: 0 0 0 2px #c29654; }

/* Errores por campo */
.form-field--error input { box-shadow: 0 0 0 2px var(--error); }
.form-field-error {
  margin: 6px 4px 0;
  font-size: 0.85rem;
  color: var(--error);
}

/* Honeypot: invisible para humanos */
.form-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ── Botón dorado (form + popup) ─────────────────────────── */
.btn-gold {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 8px;
  background: var(--gold-gradient);
  color: var(--black);
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.5);
  transition: filter .2s ease, transform .2s ease;
}
.btn-gold:hover,
.btn-gold:focus-visible { filter: brightness(1.06); transform: scale(1.01); outline: none; }
.btn-gold:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

#register-form .btn-gold { margin-top: 10px; }

/* ── Popup (modal) ───────────────────────────────────────── */
.modal {
  position: fixed; inset: 0;
  z-index: 9999;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal[aria-hidden="false"] { display: flex; animation: modalFade .2s ease-out; }
.modal-overlay {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
.modal-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: var(--white);
  color: var(--black);
  border-radius: 16px;
  padding: 56px 50px 50px;
  animation: modalSlide .25s ease-out;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: 0; background: transparent;
  color: var(--black);
  cursor: pointer;
}
.modal-close svg { width: 20px; height: 20px; }
.modal-title {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
}
.modal-message {
  margin-top: 16px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}
.modal-action { margin-top: 32px; }
.modal-action[hidden] { display: none; }

/* Errores: el mensaje secundario va en peso normal y más chico */
.modal--error .modal-message { font-weight: 400; font-size: 18px; }

@keyframes modalFade  { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalSlide { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }

/* ── /agendar (medidas de cocktail2025/agendar) ─────────── */
.form-col--agenda .col-title { margin-bottom: 48px; }

.calendar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* flex (no inline-flex) para que cada fila mida lo que el ícono:
   32px + 24px de gap = 56px por fila, como la anterior */
.calendar-item {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 16px;
  color: var(--white);
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 20px;
  transform-origin: left center;
  transition: color .3s ease, transform .3s ease;
}
.calendar-item:hover,
.calendar-item:focus-visible { color: #deca88; transform: scale(1.05); outline: none; }
.calendar-item img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}
.calendar-item .ics-icon { width: 24px; }

.ics-text {
  margin: 50px 0 24px;
  font-size: 18px;
  line-height: 1.35;
}

/* ── Animación de entrada ────────────────────────────────── */
/* Todo entra en una pantalla: animación CSS al cargar (no depende
   de JS). Delay por elemento con style="--d:200ms". */
[data-reveal] {
  animation: reveal-up .8s cubic-bezier(.2,.6,.2,1) both;
  animation-delay: var(--d, 0ms);
}
[data-reveal="fade-right"] { animation-name: reveal-right; }
[data-reveal="fade-left"]  { animation-name: reveal-left; }

@keyframes reveal-up    { from { opacity: 0; transform: translateY(24px); }  to { opacity: 1; transform: none; } }
@keyframes reveal-right { from { opacity: 0; transform: translateX(-32px); } to { opacity: 1; transform: none; } }
@keyframes reveal-left  { from { opacity: 0; transform: translateX(32px); }  to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { animation: none; }
}

/* ── Pantallas grandes: un poco más de aire ──────────────── */
@media (min-width: 1600px) and (min-height: 850px) {
  .brand-logo img { width: 460px; }
  .event-date     { font-size: 32px; margin-top: 72px; }
  .event-place    { font-size: 52px; }
  .event-address  { font-size: 23px; }
  .event-year     { font-size: clamp(110px, 22vh, 210px); }

  .form-inner     { max-width: 640px; }
  .col-title      { font-size: 28px; margin-bottom: 30px; }
  .form-field     { margin-bottom: 18px; }
  .form-field input { height: 58px; font-size: 18px; }
  .btn-gold       { height: 58px; font-size: 22px; }
}

/* ── Tablet ──────────────────────────────────────────────── */
@media (min-width: 768px) and (max-width: 1024px) {
  .brand-col, .form-col { padding: 2em; }
  .brand-logo img { width: 320px; }
  .event-date     { font-size: 22px; margin-top: 44px; }
  .event-place    { font-size: 36px; }
  .event-address  { font-size: 17px; }
  .event-year     { font-size: 140px; }
}

/* ── Mobile: una columna, con scroll ─────────────────────── */
@media (max-width: 767px) {
  body { background-attachment: scroll; background-position: 70% top; }

  .layout { flex-direction: column; overflow: visible; }
  .brand-col, .form-col { width: 100%; padding: 2em; }
  .brand-col { padding-top: 4em; }
  .form-col  { padding-bottom: 4em; }

  .brand-logo img { width: 280px; }
  .event-date     { font-size: 21px; margin-top: 40px; white-space: normal; }
  .event-place    { font-size: 34px; margin-top: 24px; }
  .event-address  { font-size: 17px; }

  /* En mobile el 2026 vuelve al flujo, debajo de la dirección */
  .event-year { position: static; transform: none; margin-top: 4px; font-size: 120px; }

  .gold-line { display: none; }
  .form-inner { padding: 0; margin: 0 auto; }

  .modal-card { padding: 48px 24px 28px; }

  /* /agendar centrado en mobile, como la anterior */
  .form-col--agenda .form-inner { text-align: center; }
  .calendar-list { align-items: center; }
  .form-col--agenda .calendar-item { margin: 0 auto; }
}
