/* Evento con inscripción (desayuno en Lomas, 12-dic-2026). v2 (16-nov): video del barrio de fondo, cuenta regresiva,
   formulario como entrada y aviso flotante en escritorio.
   El mismo archivo vive en lomas-de-escobar-web/evento.css y mercadolote-web/assets/evento.css: si se cambia uno, se cambia el otro. */
.ev {
  --ev-green: #0D2C20; --ev-green-2: #123A2A; --ev-line: rgba(244, 238, 226, .18);
  --ev-cream: #F4EEE2; --ev-cream-2: #D9D1C1; --ev-ochre: #E0AC55; --ev-terra: #C85F31; --ev-terra-2: #A94B22; --ev-ink: #0B1F17;
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ev-green); color: var(--ev-cream);
  padding: clamp(64px, 9vw, 128px) clamp(16px, 5vw, 72px);
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  scroll-margin-top: 72px;
}
.ev[hidden] { display: none; }

/* Video del barrio de fondo */
.ev-media { position: absolute; inset: 0; z-index: -2; }
.ev-media video, .ev-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(9, 32, 23, .94) 0%, rgba(9, 32, 23, .82) 42%, rgba(9, 32, 23, .45) 72%, rgba(9, 32, 23, .62) 100%),
    linear-gradient(0deg, rgba(9, 32, 23, .7) 0%, rgba(9, 32, 23, 0) 40%);
}

.ev-in { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 80px); align-items: center; }

.ev-kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 8px 16px 8px 12px;
  border: 1px solid rgba(224, 172, 85, .5); border-radius: 999px; background: rgba(13, 44, 32, .55); backdrop-filter: blur(6px);
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ev-ochre);
}
.ev-kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--ev-ochre); animation: ev-pulse 2.4s ease-out infinite; }
@keyframes ev-pulse { 0% { box-shadow: 0 0 0 0 rgba(224, 172, 85, .6); } 70%, 100% { box-shadow: 0 0 0 12px rgba(224, 172, 85, 0); } }

.ev h2 { margin: 0; font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5.4rem); line-height: .95; letter-spacing: -.035em; font-weight: 800; color: var(--ev-cream); text-wrap: balance; }
.ev h2 em { display: block; font-style: normal; color: var(--ev-ochre); }
.ev-lead { margin: 22px 0 0; font-size: clamp(1.05rem, 1rem + .3vw, 1.22rem); line-height: 1.55; color: var(--ev-cream-2); max-width: 32em; }
.ev-lead strong { color: var(--ev-cream); }

/* Fecha · hora · lugar */
.ev-meta { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ev-meta li { display: grid; gap: 2px; padding: 12px 18px; border-radius: 14px; background: rgba(244, 238, 226, .08); border: 1px solid var(--ev-line); backdrop-filter: blur(8px); }
.ev-meta small { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ev-ochre); }
.ev-meta b { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-size: 1.55rem; font-weight: 600; line-height: 1.05; color: var(--ev-cream); letter-spacing: .01em; }

/* Lo que hay */
.ev-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 26px; }
.ev-list li { display: flex; gap: 12px; align-items: center; font-weight: 600; font-size: 1rem; color: var(--ev-cream); }
.ev-list svg { flex: none; width: 38px; height: 38px; padding: 8px; border-radius: 11px; background: rgba(224, 172, 85, .14); color: var(--ev-ochre); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ev-where { margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; color: var(--ev-cream-2); font-size: .96rem; }
.ev-where a { color: var(--ev-ochre); font-weight: 700; text-decoration: none; border-bottom: 1px solid currentColor; }
.ev-where a:hover { color: var(--ev-cream); }

/* Formulario: una entrada */
.ev-card { position: relative; background: var(--ev-cream); color: var(--ev-ink); border-radius: 24px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); overflow: hidden; }
.ev-stub { position: relative; display: flex; align-items: center; gap: 18px; padding: 22px clamp(22px, 3vw, 32px) 24px; background: var(--ev-terra); color: #fff; }
.ev-stub::after { /* troquelado */
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--ev-cream) 0 8px, transparent 8px 16px);
}
.ev-stub-date { flex: none; display: grid; place-items: center; width: 70px; height: 70px; border-radius: 16px; background: rgba(255, 255, 255, .14); border: 1.5px solid rgba(255, 255, 255, .5); font-family: "Barlow Condensed", "Arial Narrow", sans-serif; line-height: .85; text-align: center; }
.ev-stub-date b { display: block; font-size: 2.3rem; font-weight: 700; }
.ev-stub-date span { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; margin-top: 3px; }
.ev-stub h3 { margin: 0; font-size: 1.35rem; line-height: 1.15; letter-spacing: -.01em; font-weight: 800; color: #fff; }
.ev-stub p { margin: 4px 0 0; font-size: .92rem; opacity: .9; }
.ev-count { display: flex; gap: 8px; margin: 0; padding: 16px clamp(22px, 3vw, 32px) 0; font-size: .82rem; font-weight: 700; color: #5A6A62; align-items: center; flex-wrap: wrap; }
.ev-count[hidden] { display: none; }
.ev-count span { display: inline-grid; place-items: center; min-width: 46px; padding: 6px 8px 4px; border-radius: 10px; background: var(--ev-green); color: var(--ev-cream); font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-size: 1.35rem; font-weight: 600; line-height: 1; }
.ev-count span small { font-family: "Plus Jakarta Sans", ui-sans-serif, sans-serif; font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ev-ochre); margin-top: 2px; }
.ev-body { padding: 18px clamp(22px, 3vw, 32px) clamp(22px, 3vw, 30px); }
.ev-f { display: grid; gap: 14px; }
.ev-f label { display: grid; gap: 6px; font-size: .86rem; font-weight: 700; color: #3B4A43; }
.ev-f input, .ev-f select {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #CFC6B5; border-radius: 12px; background: #fff;
  font: 500 1rem/1.3 "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif; color: var(--ev-ink);
  transition: border-color .15s, box-shadow .15s;
}
.ev-f input:focus, .ev-f select:focus { outline: none; border-color: var(--ev-green); box-shadow: 0 0 0 3px rgba(13, 44, 32, .14); }
.ev-f input[aria-invalid="true"] { border-color: var(--ev-terra); box-shadow: 0 0 0 3px rgba(200, 95, 49, .14); }
.ev-row { display: grid; grid-template-columns: 1fr 112px; gap: 12px; }
.ev-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ev-btn {
  min-height: 56px; border: 0; border-radius: 999px; background: var(--ev-green); color: var(--ev-cream); cursor: pointer;
  font: 800 1.05rem/1 "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif; letter-spacing: .01em;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: background .15s, transform .15s cubic-bezier(.16, 1, .3, 1);
}
.ev-btn svg { width: 20px; height: 20px; fill: none; stroke: var(--ev-ochre); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s cubic-bezier(.16, 1, .3, 1); }
.ev-btn:hover { background: var(--ev-green-2); }
.ev-btn:hover svg { transform: translateX(3px); }
.ev-btn:active { transform: scale(.98); }
.ev-btn[disabled] { opacity: .65; cursor: progress; }
.ev-err { margin: 0; min-height: 1.2em; color: var(--ev-terra-2); font-size: .9rem; font-weight: 600; }
.ev-err:empty { min-height: 0; }
.ev-legal { margin: 0; font-size: .76rem; line-height: 1.45; color: #5A6A62; }
.ev-ok { padding: 24px clamp(22px, 3vw, 32px) 30px; }
.ev-ok[hidden] { display: none; }
.ev-ok .ev-check { width: 52px; height: 52px; border-radius: 50%; background: var(--ev-green); color: var(--ev-ochre); display: grid; place-items: center; margin-bottom: 16px; }
.ev-ok .ev-check svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ev-ok h3 { margin: 0 0 8px; font-size: 1.4rem; }
.ev-ok p { margin: 0 0 18px; color: #3B4A43; }
.ev-ok-links { display: grid; gap: 10px; }
.ev-ok-links a { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px; border: 1.5px solid var(--ev-green); color: var(--ev-green); font-weight: 700; text-decoration: none; }
.ev-ok-links a:first-child { background: var(--ev-green); color: var(--ev-cream); }

/* Entrada al ver la sección */
.ev .ev-a { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1); }
.ev.is-in .ev-a { opacity: 1; transform: none; }
.ev.is-in .ev-a:nth-child(2) { transition-delay: .06s; } .ev.is-in .ev-a:nth-child(3) { transition-delay: .12s; }
.ev.is-in .ev-a:nth-child(4) { transition-delay: .18s; } .ev.is-in .ev-a:nth-child(5) { transition-delay: .24s; }
.ev.is-in .ev-card.ev-a { transition-delay: .2s; }

/* Aviso flotante (solo escritorio) */
.ev-pill {
  position: fixed; left: 20px; bottom: 20px; z-index: 60; display: flex; align-items: center; gap: 12px;
  padding: 10px 12px 10px 10px; border-radius: 18px; background: #0D2C20; color: #F4EEE2; text-decoration: none;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .55); border: 1px solid rgba(224, 172, 85, .35);
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  transform: translateY(140%); opacity: 0; transition: transform .5s cubic-bezier(.16, 1, .3, 1), opacity .3s;
}
.ev-pill.is-on { transform: none; opacity: 1; }
.ev-pill-d { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: #C85F31; color: #fff; font-family: "Barlow Condensed", "Arial Narrow", sans-serif; line-height: .85; text-align: center; }
.ev-pill-d b { display: block; font-size: 1.45rem; } .ev-pill-d span { display: block; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; }
.ev-pill-t { display: grid; gap: 2px; font-size: .92rem; font-weight: 700; line-height: 1.2; }
.ev-pill-t small { font-size: .78rem; font-weight: 600; color: #E0AC55; }
.ev-pill-x { display: grid; place-items: center; width: 28px; height: 28px; margin-left: 4px; border: 0; border-radius: 50%; background: rgba(244, 238, 226, .1); color: #F4EEE2; cursor: pointer; font-size: 1rem; line-height: 1; }
.ev-pill-x:hover { background: rgba(244, 238, 226, .2); }
@media (max-width: 899px) { .ev-pill { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .ev-kicker i { animation: none; }
  .ev .ev-a { opacity: 1; transform: none; transition: none; }
  .ev-pill { transition: none; }
}
@media (max-width: 960px) {
  .ev-in { grid-template-columns: 1fr; }
  /* En columna: el video ocupa la parte de arriba, a la vista, y se funde en el verde. */
  .ev { padding-top: clamp(200px, 52vw, 340px); }
  .ev-media { bottom: auto; height: clamp(420px, 105vw, 640px); }
  .ev::before { background: linear-gradient(180deg, rgba(9, 32, 23, .15) 0%, rgba(9, 32, 23, .35) clamp(120px, 30vw, 220px), rgba(13, 44, 32, .92) clamp(300px, 80vw, 520px), #0D2C20 clamp(420px, 105vw, 640px)); }
  .ev-kicker { background: rgba(13, 44, 32, .8); }
}
@media (max-width: 520px) {
  .ev-list { grid-template-columns: 1fr; }
  .ev-row { grid-template-columns: 1fr 96px; }
  .ev-meta li { padding: 10px 14px; flex: 1 1 auto; }
  .ev-meta b { font-size: 1.3rem; }
}
