/* ──────────────────────────────────────────────────────────────────────── */
/*  Proximitty Eventos — Portada Pública (Estilo Apple Product Launch)      */
/*  Colores y tipografía: -apple-system, #1d1d1f, #6e6e73, #f5f5f7, #0071e3 */
/* ──────────────────────────────────────────────────────────────────────── */

:root {
  --ev-ink: #1d1d1f;
  --ev-muted: #6e6e73;
  --ev-surface: #f5f5f7;
  --ev-border: #d2d2d7;
  --ev-line: #e5e5ea;
  --ev-focus: #0071e3;
  --ev-gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body.ev-body {
  margin: 0; padding: 0; background: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", system-ui, Helvetica, Arial, sans-serif;
  color: var(--ev-ink); font-synthesis: none; -webkit-font-smoothing: antialiased;
}

.ev-body [hidden], .ev-body .hidden { display: none !important; }
.ev-body a:focus-visible, .ev-body button:focus-visible, .ev-body input:focus-visible, .ev-body summary:focus-visible {
  outline: 3px solid var(--ev-focus); outline-offset: 3px; border-radius: 8px;
}
.ev-body [id] { scroll-margin-top: 64px; }
.ev-body h1, .ev-body h2, .ev-body h3, .ev-hero-lead, .ev-section-lead, .ev-closing-lead { text-wrap: balance; }

/* ── Barra de Navegación ── */
.ev-topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.88); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.ev-topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1020px; margin: 0 auto; padding: 0 var(--ev-gutter); min-height: 52px;
}
.ev-brand {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; color: var(--ev-ink);
}
.ev-brand-logo { height: 14px; width: auto; display: block; }
.ev-brand-tag { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; color: var(--ev-ink); padding-left: 2px; }
.ev-topbar-nav { display: inline-flex; align-items: center; gap: 14px; }
.ev-nav-link {
  display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; color: var(--ev-muted); text-decoration: none;
  transition: color 0.15s;
}
.ev-nav-link:hover { color: var(--ev-ink); }
.ev-topbar-sep { display: inline-block; width: 1px; height: 16px; background: var(--ev-line); }
.ev-btn-ghost {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; background: transparent;
  border: 0; font-family: inherit; font-size: 13px; font-weight: 500; color: var(--ev-ink); cursor: pointer; white-space: nowrap;
  text-decoration: none;
}
.ev-btn-ghost:hover { color: #000; text-decoration: underline; text-underline-offset: 3px; }

/* ── Botones y Enlaces ── */
.ev-hero-actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; margin-top: 28px;
}
.ev-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px;
  border-radius: 999px; background: var(--ev-ink); color: #fff; font-size: 17px; font-weight: 500;
  border: 0; font-family: inherit; text-decoration: none; cursor: pointer; transition: background 0.15s;
}
.ev-button:hover { background: #000; color: #fff; text-decoration: none; }
.ev-button--small { min-height: 44px; padding: 0 16px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.ev-more {
  display: inline-flex; align-items: center; min-height: 44px; font-size: 17px; font-weight: 400;
  color: var(--ev-ink); text-decoration: none; background: none; border: none; cursor: pointer; padding: 0; font-family: inherit;
}
.ev-more::after { content: "›"; margin-left: 0.35em; font-size: 1.25em; line-height: 1; transform: translateY(-0.04em); }
.ev-more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── 1. Hero Spotlight ── */
.ev-hero {
  padding: 56px var(--ev-gutter) 0; text-align: center; overflow: hidden; background: #ffffff;
}
.ev-badge-chip {
  display: inline-flex; align-items: center; padding: 4px 14px; border-radius: 999px;
  background: var(--ev-surface); border: 1px solid var(--ev-line);
  font-size: 13px; font-weight: 600; color: var(--ev-muted); margin: 0 0 12px;
}
.ev-hero h1 {
  font-size: clamp(40px, 10vw, 82px); line-height: 1.04; font-weight: 600; letter-spacing: -0.045em;
  margin: 0 auto; max-width: 14ch; color: var(--ev-ink);
}
.ev-hero-lead {
  font-size: clamp(17px, 3.5vw, 21px); line-height: 1.45; color: var(--ev-muted);
  margin: 18px auto 0; max-width: 42ch;
}

/* Stage de teléfonos */
.ev-stage-wrap {
  margin: 48px auto 0; padding-bottom: 56px; max-width: 980px; position: relative;
}
.ev-stage-chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 12px; margin-bottom: 32px;
}
.ev-stage-tag {
  font-size: 12px; font-weight: 600; letter-spacing: 0.01em; color: var(--ev-muted);
  background: var(--ev-surface); border: 1px solid var(--ev-line); padding: 6px 14px; border-radius: 999px;
}

.visual-duo {
  display: flex; justify-content: center; align-items: flex-start;
}
.phone {
  --phone-w: min(48vw, 270px); position: relative; width: var(--phone-w); padding: calc(var(--phone-w) * 0.028);
  background: #18181a; border: 2px solid #636366; border-radius: calc(var(--phone-w) * 0.18); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.14);
}
.phone::before {
  content: ""; position: absolute; z-index: 2; left: 50%; top: calc(var(--phone-w) * 0.045);
  transform: translateX(-50%); width: 27%; height: calc(var(--phone-w) * 0.068); border-radius: 999px; background: #000;
}
.phone-screen { border-radius: calc(var(--phone-w) * 0.14); overflow: hidden; padding-top: calc(var(--phone-w) * 0.1); }
.phone-screen-dark { background: #0b0b0d; }
.phone-screen img { display: block; width: 100%; height: auto; }
.visual-duo .phone-back { margin-right: calc(min(48vw, 270px) * -0.16); transform: rotate(-4deg); z-index: 1; }
.visual-duo .phone-front { margin-top: 36px; z-index: 2; box-shadow: 0 28px 56px rgba(0, 0, 0, 0.28); }

/* ── 2. Stat Moments Strip ── */
.ev-stats-strip {
  border-block: 1px solid var(--ev-line); background: #ffffff; padding: 48px var(--ev-gutter);
}
.ev-stats-grid {
  display: grid; gap: 32px; max-width: 1020px; margin: 0 auto; text-align: left;
}
.ev-stat-item {
  display: flex; flex-direction: column; gap: 6px;
}
.ev-stat-number {
  font-size: clamp(40px, 8vw, 64px); line-height: 1.05; font-weight: 600; letter-spacing: -0.04em; color: var(--ev-ink);
}
.ev-stat-title {
  font-size: 19px; font-weight: 600; letter-spacing: -0.02em; margin: 0; color: var(--ev-ink);
}
.ev-stat-desc {
  font-size: 15px; line-height: 1.45; color: var(--ev-muted); margin: 0; max-width: 38ch;
}

/* ── Secciones Generales ── */
.ev-container { max-width: 1020px; margin: 0 auto; }
.ev-section { padding: 72px var(--ev-gutter); text-align: center; }
.ev-section--surface { background: var(--ev-surface); }
.ev-section-header { margin-bottom: 40px; }
.ev-section h2, .ev-closing h2 {
  font-size: clamp(32px, 7vw, 54px); line-height: 1.08; font-weight: 600; letter-spacing: -0.04em;
  margin: 0 auto; max-width: 16ch; color: var(--ev-ink);
}
.ev-section-lead {
  font-size: 17px; line-height: 1.45; color: var(--ev-muted); margin: 14px auto 0; max-width: 42ch;
}

/* ── 3. Bento Grid: Historias y Capacidades ── */
.ev-bento-grid {
  display: grid; gap: 16px; text-align: left;
}
.ev-bento-card {
  background: #ffffff; border-radius: 24px; padding: 32px 28px; border: 1px solid var(--ev-line);
  display: flex; flex-direction: column; justify-content: space-between;
}
.ev-bento-pill {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--ev-muted); margin-bottom: 12px;
}
.ev-bento-card h3 {
  font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 10px; color: var(--ev-ink);
}
.ev-bento-card p {
  font-size: 15px; line-height: 1.45; color: var(--ev-muted); margin: 0; text-wrap: pretty;
}

/* Captura real del pase en la tarjeta principal. */
.ev-bento-card--lead {
  gap: 24px;
}
.ev-bento-capture {
  display: block; width: min(100%, 220px); height: auto; margin: 0 auto;
  border-radius: 18px; box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
}

/* ── 4. Flujo "Así Funciona" (Flow Steps) ── */
.ev-flow-steps {
  list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; text-align: left;
}
.ev-flow-card {
  background: var(--ev-surface); border-radius: 22px; padding: 32px 28px;
}
.ev-flow-index {
  display: inline-block; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--ev-muted); margin-bottom: 12px;
}
.ev-flow-card h3 {
  font-size: 21px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 8px; color: var(--ev-ink);
}
.ev-flow-card p {
  font-size: 15px; line-height: 1.45; color: var(--ev-muted); margin: 0;
}

/* ── 5. Planes & Configuración de Evento ── */
.ev-plans-grid {
  display: grid; gap: 16px; text-align: left;
}
.ev-plan-card {
  position: relative; background: #ffffff; border: 1px solid var(--ev-border); border-radius: 22px; padding: 32px 24px;
  display: flex; flex-direction: column;
}
.ev-plan-card--featured { border: 2px solid var(--ev-focus); }
.ev-plan-featured-tag {
  position: absolute; top: -12px; left: 24px; background: var(--ev-focus); color: #fff;
  font-size: 12px; font-weight: 600; padding: 3px 12px; border-radius: 999px; letter-spacing: 0.02em;
}
.ev-plan-header { border-bottom: 1px solid var(--ev-line); padding-bottom: 18px; margin-bottom: 20px; }
.ev-plan-title { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin: 0; color: var(--ev-ink); }
.ev-plan-price { font-size: 46px; line-height: 1.05; font-weight: 600; letter-spacing: -0.04em; color: var(--ev-ink); margin: 8px 0 4px; }
.ev-plan-currency { font-size: 15px; font-weight: 400; color: var(--ev-muted); letter-spacing: normal; }
.ev-plan-sub { font-size: 13px; line-height: 1.4; color: var(--ev-muted); margin: 6px 0 0; }
.ev-plan-features { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; flex-grow: 1; }
.ev-plan-features li { font-size: 15px; line-height: 1.4; color: var(--ev-muted); position: relative; padding-left: 20px; }
.ev-plan-features li::before { content: "✓"; position: absolute; left: 0; color: var(--ev-ink); font-weight: 600; }
.ev-plan-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; border-radius: 999px;
  background: var(--ev-surface); color: var(--ev-ink); font-size: 16px; font-weight: 500; border: 1px solid var(--ev-border);
  cursor: pointer; font-family: inherit; text-decoration: none; transition: all 0.15s;
}
.ev-plan-btn:hover { background: var(--ev-line); }
.ev-plan-btn--primary { background: var(--ev-ink); color: #fff; border-color: var(--ev-ink); }
.ev-plan-btn--primary:hover { background: #000; }

/* ── 6. Formulario Creador y Preview ── */
.ev-creator-box {
  display: none; margin: 36px auto 0; background: #ffffff; border: 1px solid var(--ev-border);
  border-radius: 24px; padding: 24px; text-align: left;
}
.ev-creator-box.visible { display: grid; gap: 32px; }
.ev-creator-box > *, .ev-form-grid, .ev-field, .ev-form-header > div { min-width: 0; }
.ev-form-header {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-bottom: 20px; border-bottom: 1px solid var(--ev-line); margin-bottom: 24px;
}
.ev-plan-selected-badge { font-size: 16px; font-weight: 600; color: var(--ev-ink); }
.ev-change-plan {
  background: none; border: none; color: var(--ev-focus); font-size: 15px; font-weight: 500; cursor: pointer;
  padding: 0; font-family: inherit; min-height: 44px; display: inline-flex; align-items: center;
}
.ev-change-plan:hover { text-decoration: underline; }
.ev-form-grid { display: grid; gap: 18px; }
.ev-field { display: flex; flex-direction: column; gap: 6px; }
.ev-field label { font-size: 14px; font-weight: 500; color: var(--ev-ink); }
.ev-field input[type="text"], .ev-field input[type="password"], .ev-field input[type="date"] {
  min-height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--ev-border); background: #fff;
  font-size: 16px; color: var(--ev-ink); font-family: inherit; width: 100%;
}
.ev-field input:focus { border-color: var(--ev-focus); outline: none; }
.ev-field input:focus-visible { outline: 3px solid var(--ev-focus); outline-offset: 3px; }
.ev-colors-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ev-color-picker {
  display: flex; align-items: center; gap: 6px; background: var(--ev-surface); border: 1px solid var(--ev-border);
  border-radius: 10px; padding: 6px 10px; min-height: 44px;
}
.ev-color-picker label { font-size: 13px; margin: 0; flex-grow: 1; }
.ev-color-picker input[type="color"] { width: 44px; height: 44px; flex-shrink: 0; border: 0; padding: 0; border-radius: 6px; cursor: pointer; background: transparent; }
.ev-submit-btn { margin-top: 10px; width: 100%; }

.ev-success-box {
  display: none; background: var(--ev-surface); border: 1px solid var(--ev-line); border-radius: 16px; padding: 24px; margin-top: 24px;
}
.ev-success-box h3 { margin: 0 0 8px; font-size: 19px; font-weight: 600; color: var(--ev-ink); }
.ev-success-links { margin-top: 16px; display: grid; gap: 10px; font-size: 14px; word-break: break-all; }
.ev-success-links a { color: var(--ev-focus); text-decoration: none; }
.ev-success-links a:hover { text-decoration: underline; }

/* Vista Previa Reactiva */
.ev-preview-card {
  background: var(--ev-surface); border-radius: 20px; padding: 24px; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.ev-preview-legend { font-size: 13px; font-weight: 600; color: var(--ev-muted); margin: 0 0 16px; text-align: center; }
.ev-pv-pass {
  width: 100%; max-width: 300px; background: #1d1d1f; color: #fff; border-radius: 20px; padding: 22px 20px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16); display: flex; flex-direction: column; gap: 20px;
  transition: background 0.2s, color 0.2s;
}
.ev-pv-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; opacity: 0.9; }
.ev-pv-event { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.ev-pv-attendee { display: flex; align-items: center; gap: 12px; }
.ev-pv-avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--ev-focus); color: #fff;
  display: grid; place-items: center; font-weight: 600; font-size: 14px; flex-shrink: 0; transition: background 0.2s;
}
.ev-pv-name { margin: 0; font-size: 16px; font-weight: 600; }
.ev-pv-role { margin: 4px 0 0; font-size: 12px; opacity: 0.75; }
.ev-pv-footer {
  display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed rgba(255, 255, 255, 0.2);
  padding-top: 14px; font-size: 11px; opacity: 0.8;
}
.ev-preview-note { font-size: 12px; color: var(--ev-muted); margin: 16px 0 0; text-align: center; }

/* ── 7. Preguntas Frecuentes ── */
.ev-faq-list { max-width: 780px; margin: 36px auto 0; text-align: left; }
.ev-faq details { border-top: 1px solid var(--ev-border); }
.ev-faq details:last-child { border-bottom: 1px solid var(--ev-border); }
.ev-faq summary {
  min-height: 64px; padding: 20px 28px 20px 0; position: relative; list-style: none; font-size: 17px;
  font-weight: 500; color: var(--ev-ink); cursor: pointer;
}
.ev-faq summary::-webkit-details-marker { display: none; }
.ev-faq summary::after { content: "+"; position: absolute; right: 2px; top: 20px; font-size: 22px; font-weight: 400; color: var(--ev-muted); }
.ev-faq details[open] summary::after { content: "−"; }
.ev-faq details p { margin: 0 0 24px; max-width: 64ch; font-size: 15px; line-height: 1.5; color: var(--ev-muted); text-wrap: pretty; }

/* ── 8. Cierre Hero (Apple Style CTA) ── */
.ev-closing { padding: 88px var(--ev-gutter) 96px; text-align: center; background: #ffffff; }
.ev-closing-inner { max-width: 720px; margin: 0 auto; }
.ev-closing-lead { font-size: 18px; line-height: 1.45; color: var(--ev-muted); margin: 16px auto 0; max-width: 40ch; }

/* ── 9. Pie de Página ── */
.ev-footer { background: var(--ev-surface); color: var(--ev-muted); padding: 48px var(--ev-gutter) 36px; font-size: 12px; line-height: 1.5; border-top: 1px solid var(--ev-line); }
.ev-footer-inner { max-width: 1020px; margin: 0 auto; }
.ev-footer-brand { display: block; padding-bottom: 24px; border-bottom: 1px solid var(--ev-line); }
.ev-footer-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 16px; padding: 28px 0 36px; }
.ev-footer-columns h3 { font-size: 12px; font-weight: 600; color: var(--ev-ink); margin: 0 0 8px; }
.ev-footer-brand a, .ev-footer-columns a, .ev-footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
.ev-footer-columns a { display: flex; padding: 6px 0; color: var(--ev-muted); text-decoration: none; }
.ev-footer-columns a:hover { text-decoration: underline; color: var(--ev-ink); }
.ev-footer-bottom { border-top: 1px solid var(--ev-line); padding-top: 20px; display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 11px; }
.ev-footer-bottom > span:first-child { flex-basis: 100%; }
.ev-footer-bottom a { color: var(--ev-muted); text-decoration: none; }
.ev-footer-bottom a:hover { text-decoration: underline; }

/* ── Modales de Organizador ── */
.ev-modal-backdrop {
  position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: none;
  align-items: center; justify-content: center; padding: 16px;
}
.ev-modal-backdrop.open { display: flex; }
.ev-modal-window {
  background: #fff; border-radius: 24px; padding: 32px 24px; width: min(100%, 420px);
  position: relative; box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
}
.ev-modal-close {
  position: absolute; top: 16px; right: 16px; background: var(--ev-surface); border: 0; width: 44px; height: 44px;
  border-radius: 50%; font-size: 20px; line-height: 1; display: grid; place-items: center; cursor: pointer; color: var(--ev-muted);
}
.ev-modal-close:hover { background: var(--ev-line); color: var(--ev-ink); }
.ev-modal-window h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 20px; color: var(--ev-ink); }

/* ── Media Queries ── */
@media (max-width: 640px) {
  .ev-topbar-nav .ev-nav-link, .ev-topbar-sep { display: none; }
}

@media (max-width: 420px) {
  .ev-topbar-nav #site-nav-cta { display: none; }
  .ev-brand-logo { height: 12px; }
}

@media (max-width: 600px) {
  .ev-colors-row { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 834px) {
  :root { --ev-gutter: 32px; }
  .ev-hero { padding-top: 88px; }
  .ev-stage-wrap { margin-top: 56px; padding-bottom: 72px; }
  .phone { --phone-w: 270px; }
  .visual-duo .phone-back { margin-right: -32px; }

  .ev-stats-grid { grid-template-columns: repeat(3, 1fr); gap: 48px; }
  .ev-section { padding: 104px var(--ev-gutter); }

  .ev-bento-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .ev-bento-card--lead {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    padding: 44px 40px;
  }

  .ev-flow-steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .ev-flow-card { padding: 40px 32px; }

  .ev-plans-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .ev-creator-box.visible { grid-template-columns: 1fr 340px; padding: 40px; }

  .ev-closing { padding: 120px var(--ev-gutter) 130px; }
  .ev-footer-columns { grid-template-columns: repeat(4, 1fr); gap: 32px; padding-bottom: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
