/* ============================================================================
   Premium event template 3 — "Summit"
   Energetic corporate conference layout: accent-gradient hero with a LIVE
   countdown, ticket tiers, circular speaker grid. Themed by the event's two
   accents (--evp3-a / --evp3-b). Everything scoped under .evp3 / body.evp3-on
   so the rest of the site is untouched. Inspired by the Evente layout.
   ========================================================================== */
.evp3 {
  --evp3-a: #2f6bff;                 /* accent 1 (default: blue)   */
  --evp3-b: #7a3cff;                 /* accent 2 (default: violet) */
  --evp3-ink: #14161c;
  --evp3-muted: #667085;
  --evp3-bg: #ffffff;
  --evp3-soft: #f4f6fb;              /* alt-section background     */
  --evp3-dark: #0d0f16;             /* venue/footer base          */
  --evp3-line: #e6e8ef;
  --evp3-grad: linear-gradient(120deg, var(--evp3-a), var(--evp3-b));
  /* Typography pairing (event-selectable, see EventFontPreset / applyTypography
     in evento.js); every other rule below reads through these two. */
  --evp3-font-heading: 'Montserrat', sans-serif;
  --evp3-font-body: 'Mulish', sans-serif;
  color: var(--evp3-ink);
  font-family: var(--evp3-font-body);
}
body.evp3-on { background: var(--evp3-bg); }
body.evp3-on .site-header, body.evp3-on .site-footer { display: none; }
body.evp3-on main { padding: 0; }
body.evp3-on #evento-root.container { max-width: none; padding: 0; margin: 0; }

.evp3-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.evp3-section { padding: clamp(52px, 7vw, 92px) 0; }
.evp3-section-alt { background: var(--evp3-soft); }
.evp3 h1, .evp3 h2 { font-family: var(--evp3-font-heading); }
.evp3-head { max-width: 760px; margin-bottom: clamp(26px, 4vw, 44px); }
.evp3-kick { display: inline-block; font-family: var(--evp3-font-heading); font-weight: 800; text-transform: uppercase; letter-spacing: .16em; font-size: 12px; color: var(--evp3-a); margin-bottom: 12px; }
.evp3-kick-light { color: #fff; opacity: .9; }
.evp3-head h2 { font-weight: 800; font-size: clamp(28px, 4vw, 44px); line-height: 1.05; letter-spacing: -.01em; margin: 0; }

/* Buttons */
.evp3-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--evp3-font-heading); font-weight: 800; font-size: 14px; padding: 13px 26px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; letter-spacing: .01em; }
.evp3-btn-acc { background: var(--evp3-grad); color: #fff; box-shadow: 0 12px 30px -10px color-mix(in srgb, var(--evp3-a) 60%, transparent); }
.evp3-btn-dark { background: var(--evp3-ink); color: #fff; }
.evp3-btn-light { background: #fff; color: var(--evp3-ink); }
.evp3-btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.evp3-btn:hover { transform: translateY(-2px); transition: transform .15s ease; }

/* NAV */
.evp3-nav { position: absolute; top: 0; left: 0; right: 0; z-index: 20; padding: 18px 24px; }
.evp3-nav-inner { max-width: 1160px; margin: 0 auto; display: flex; align-items: center; gap: 22px; }
.evp3-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
/* El logo institucional es la firma de ANACOVI sobre el mini-sitio del evento:
   se lee antes que el nombre del evento, así que se le da presencia real. */
.evp3-brand img { height: 48px; width: auto; }
@media (max-width: 860px) { .evp3-brand img { height: 36px; } }
.evp3-brand span { font-family: var(--evp3-font-heading); font-weight: 800; color: #fff; letter-spacing: .01em; }
.evp3-links { display: flex; gap: 26px; margin-left: auto; }
.evp3-links a { color: rgba(255,255,255,.92); text-decoration: none; font-family: var(--evp3-font-heading); font-weight: 700; font-size: 14px; }
.evp3-links a:hover { color: #fff; }
.evp3-nav-cta .evp3-btn { padding: 10px 20px; }
@media (max-width: 900px) { .evp3-links, .evp3-nav-cta { display: none; } }

/* HERO with countdown */
.evp3-hero { position: relative; min-height: clamp(600px, 92vh, 820px); display: flex; align-items: center; text-align: center;
  background: var(--evp3-dark); overflow: hidden; }
.evp3-hero::before { content: ''; position: absolute; inset: 0; background: var(--evp3-grad); opacity: .96; }
.evp3-hero::after { content: ''; position: absolute; inset: 0; background-image: var(--evp3-hero-img, none); background-size: cover; background-position: center; mix-blend-mode: soft-light; opacity: .5; }
.evp3-hero-in { position: relative; z-index: 2; max-width: 940px; margin: 0 auto; padding: 120px 24px 64px; width: 100%; }
.evp3-badge { display: inline-block; font-family: var(--evp3-font-heading); font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: #fff; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); padding: 8px 16px; border-radius: 999px; }
.evp3-hero h1 { color: #fff; font-weight: 900; font-size: clamp(40px, 6.4vw, 82px); line-height: 1.0; letter-spacing: -.02em; margin: 20px 0 0; }
.evp3-hero-sub { color: rgba(255,255,255,.9); font-size: clamp(16px, 2vw, 20px); margin: 18px auto 0; max-width: 60ch; }

.evp3-count { display: inline-flex; gap: clamp(10px, 2vw, 22px); margin: 34px auto 0; flex-wrap: wrap; justify-content: center; }
.evp3-count-u { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-radius: 14px; padding: 14px 6px; min-width: 88px; }
.evp3-count-u b { display: block; font-family: var(--evp3-font-heading); font-weight: 900; font-size: clamp(30px, 4.4vw, 48px); line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.evp3-count-u span { display: block; margin-top: 6px; font-family: var(--evp3-font-heading); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 10px; color: rgba(255,255,255,.8); }
.evp3-count-msg { color: #fff; font-family: var(--evp3-font-heading); font-weight: 800; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); padding: 12px 22px; border-radius: 999px; }
.evp3-hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

/* ABOUT */
.evp3-about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.evp3-about-l h2 { font-weight: 800; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.06; margin: 0; }
.evp3-about-r p { color: var(--evp3-muted); font-size: 16px; line-height: 1.7; margin: 0; }
.evp3-stats { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 26px; }
.evp3-stats b { display: block; font-family: var(--evp3-font-heading); font-weight: 900; font-size: 32px; color: var(--evp3-a); }
.evp3-stats span { color: var(--evp3-muted); font-size: 13px; }
@media (max-width: 780px) { .evp3-about { grid-template-columns: 1fr; } }

/* AGENDA */
.evp3-agenda { display: flex; flex-direction: column; gap: 12px; }
.evp3-slot { display: grid; grid-template-columns: 116px 1fr; gap: 20px; align-items: start; background: var(--evp3-bg); border: 1px solid var(--evp3-line); border-radius: 14px; padding: 18px 22px; }
.evp3-section-alt .evp3-slot { background: #fff; }
.evp3-slot-time { font-family: var(--evp3-font-heading); font-weight: 800; color: var(--evp3-a); font-size: 15px; padding-top: 2px; }
.evp3-slot-title { font-family: var(--evp3-font-heading); font-weight: 800; font-size: 17px; }
.evp3-slot-detail { color: var(--evp3-muted); font-size: 14px; margin-top: 4px; }
.evp3-slot-who { color: var(--evp3-ink); font-weight: 700; font-size: 13px; margin-top: 8px; }
@media (max-width: 640px) { .evp3-slot { grid-template-columns: 84px 1fr; gap: 14px; } }

/* SPEAKERS — circular photos in a grid */
.evp3-speakers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.evp3-sp { text-align: center; }
/* Foto cuadrada con esquinas ligeramente redondeadas, sin anillo ni sombra de
   acento. La inicial (sin foto) conserva el gradiente. */
.evp3-sp-photo { width: 100%; max-width: 168px; aspect-ratio: 1; margin: 0 auto 14px; border-radius: 14px; background-size: cover; background-position: center top; border: 1px solid var(--evp3-line); background-color: var(--evp3-soft); }
.evp3-sp:hover .evp3-sp-photo { border-color: var(--evp3-a); }
.evp3-sp-noimg { display: grid; place-items: center; font-family: var(--evp3-font-heading); font-weight: 900; font-size: 46px; color: #fff; background-image: var(--evp3-grad); }
.evp3-sp-name { font-family: var(--evp3-font-heading); font-weight: 800; font-size: 17px; }
.evp3-sp-role { color: var(--evp3-a); font-size: 13px; margin-top: 3px; font-weight: 700; }
.evp3-sp-org { color: var(--evp3-muted); font-size: 12.5px; margin-top: 2px; }
@media (max-width: 900px) { .evp3-speakers { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .evp3-speakers { grid-template-columns: repeat(2, 1fr); } }

/* PRICING */
.evp3-pricing { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.evp3-tier { position: relative; flex: 1 1 260px; max-width: 340px; background: #fff; border: 1px solid var(--evp3-line); border-radius: 18px; padding: 32px 28px; text-align: center; }
.evp3-tier-hi { border: 0; background: var(--evp3-grad); color: #fff; box-shadow: 0 24px 50px -20px color-mix(in srgb, var(--evp3-a) 60%, transparent); }
.evp3-tier-tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--evp3-ink); color: #fff; font-family: var(--evp3-font-heading); font-weight: 800; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; padding: 6px 14px; border-radius: 999px; }
.evp3-tier-n { font-family: var(--evp3-font-heading); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
.evp3-tier-p { font-family: var(--evp3-font-heading); font-weight: 900; font-size: 42px; margin: 10px 0 4px; }
.evp3-tier-note { font-size: 13px; opacity: .85; margin-bottom: 22px; }
.evp3-tier-hi .evp3-tier-note { color: rgba(255,255,255,.9); }
.evp3-tier .evp3-btn { width: 100%; }

/* GALLERY */
.evp3-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.evp3-gal { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 14px; cursor: zoom-in; }
.evp3-gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.evp3-gal:hover img { transform: scale(1.05); }
@media (max-width: 720px) { .evp3-gallery { grid-template-columns: repeat(2, 1fr); } }

/* VENUE (dark) */
.evp3-venue { background: var(--evp3-dark); background-size: cover; background-position: center; padding: clamp(56px, 8vw, 104px) 0; }
.evp3-venue-in { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.evp3-venue h2 { color: #fff; font-weight: 800; font-size: clamp(26px, 3.4vw, 42px); margin: 0; }
.evp3-venue-info { display: flex; flex-direction: column; gap: 16px; }
.evp3-venue-info > div { border-left: 3px solid var(--evp3-a); padding-left: 16px; }
.evp3-venue-info span { display: block; color: rgba(255,255,255,.65); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.evp3-venue-info b { color: #fff; font-size: 16px; }
@media (max-width: 780px) { .evp3-venue-in { grid-template-columns: 1fr; gap: 24px; } }

/* SPONSORS */
.evp3-sptier { margin-bottom: 26px; }
.evp3-sptier-t { font-family: var(--evp3-font-heading); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 11px; color: var(--evp3-muted); margin-bottom: 14px; }
.evp3-splogos { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.evp3-splogo { display: grid; place-items: center; min-width: 150px; height: 80px; padding: 12px 18px; border: 1px solid var(--evp3-line); border-radius: 14px; background: #fff; text-decoration: none; }
.evp3-splogo img { max-height: 46px; max-width: 140px; object-fit: contain; }
.evp3-splogoname { font-family: var(--evp3-font-heading); font-weight: 800; color: var(--evp3-ink); }

/* DOCS */
.evp3-docs { display: flex; flex-wrap: wrap; gap: 14px; }
.evp3-doc { display: flex; flex-direction: column; gap: 4px; min-width: 220px; border: 1px solid var(--evp3-line); border-radius: 14px; padding: 16px 20px; background: #fff; text-decoration: none; color: var(--evp3-ink); }
.evp3-doc b { font-family: var(--evp3-font-heading); font-weight: 800; }
.evp3-doc span { color: var(--evp3-a); font-weight: 700; font-size: 13px; }

/* FOOTER */
.evp3-foot { background: var(--evp3-ink); color: #fff; padding: clamp(48px, 6vw, 80px) 0 32px; }
.evp3-foot-cta { text-align: center; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.14); }
.evp3-foot-cta h2 { color: #fff; font-weight: 900; font-size: clamp(26px, 4vw, 46px); margin: 0 0 8px; }
.evp3-foot-cta p { color: rgba(255,255,255,.7); margin: 0 0 22px; }
.evp3-foot-bar { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; }
.evp3-foot-bar img { height: 30px; }
.evp3-foot-bar span { color: rgba(255,255,255,.6); font-size: 13px; }
@media (max-width: 560px) { .evp3-foot-bar { flex-direction: column; gap: 14px; } }

/* ── Efectos opcionales por evento (video de fondo, brillo, movimiento) ────── */
.evp3-hero-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; filter: brightness(.55); }

.evp3.is-glow .evp3-hero h1 { animation: evp3-glow 3.4s ease-in-out infinite; }
@keyframes evp3-glow {
  0%, 100% { text-shadow: 0 0 22px color-mix(in srgb, var(--evp3-a) 50%, transparent), 0 0 9px color-mix(in srgb, var(--evp3-a) 34%, transparent); }
  50% { text-shadow: 0 0 36px color-mix(in srgb, var(--evp3-a) 82%, transparent), 0 0 15px color-mix(in srgb, var(--evp3-a) 56%, transparent); }
}

.evp3.is-motion .evp3-hero-in { animation: evp3-rise .8s cubic-bezier(.2,.7,.2,1) both; }
.evp3.is-motion section { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.evp3.is-motion section.is-in { opacity: 1; transform: none; }
@keyframes evp3-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .evp3.is-motion .evp3-hero-in { animation: none; }
  .evp3.is-motion section { opacity: 1; transform: none; transition: none; }
  .evp3.is-glow .evp3-hero h1 { animation: none; }
}

/* ── Más dinamismo (cuando is-motion / is-glow) ─────────────────────────────── */
.evp3.is-motion .mo-item { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.evp3.is-motion .mo-item.mo-in { opacity: 1; transform: none; }
/* Brillo en los acentos que se leen sobre claro (kicker + números de stats). */
.evp3.is-glow .evp3-kick, .evp3.is-glow .evp3-stats b { text-shadow: 0 0 18px color-mix(in srgb, var(--evp3-a) 45%, transparent); }
/* Hero: el gradiente de acento respira lentamente. */
.evp3.is-motion .evp3-hero::before { background-size: 200% 200%; animation: evp3-sheen 20s ease-in-out infinite; }
@keyframes evp3-sheen { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@media (prefers-reduced-motion: reduce) {
  .evp3.is-motion .mo-item { opacity: 1; transform: none; }
  .evp3.is-motion .evp3-hero::before { animation: none; }
}

/* ── Orbes ambientales del hero (solo con is-motion) ───────────────────────── */
.evp3-orbs { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.evp3-orbs i { position: absolute; display: block; border-radius: 50%; filter: blur(60px); opacity: .38; }
.evp3-orbs i:nth-child(1) { width: 40vw; height: 40vw; left: -8vw; top: -8vh; background: radial-gradient(circle, #ffffff, transparent 66%); animation: evp3-orb1 24s ease-in-out infinite; }
.evp3-orbs i:nth-child(2) { width: 30vw; height: 30vw; right: -6vw; top: 20vh; background: radial-gradient(circle, var(--evp3-b), transparent 64%); animation: evp3-orb2 30s ease-in-out infinite; }
.evp3-orbs i:nth-child(3) { width: 24vw; height: 24vw; left: 36vw; bottom: -12vh; background: radial-gradient(circle, #ffffff, transparent 68%); animation: evp3-orb3 27s ease-in-out infinite; }
@keyframes evp3-orb1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(6vw,5vh) scale(1.12); } }
@keyframes evp3-orb2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-5vw,-4vh) scale(1.1); } }
@keyframes evp3-orb3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(4vw,-6vh) scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .evp3-orbs { display: none; } }

/* ── Líneas de fondo animadas del hero (canvas, solo con is-motion) ─────────── */
.evp-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.evp3-hero .evp-lines { z-index: 1; }
.evp3.has-lines .evp3-hero::before { opacity: .82; }
@media (prefers-reduced-motion: reduce) { .evp-lines { display: none; } }

/* ── Tamaño de logo de patrocinador (sz-sm / sz-md / sz-lg) ─────────────────── */
.evp3-splogo.sz-sm { min-width: 130px; height: 72px; }
.evp3-splogo.sz-sm img { max-height: 38px; max-width: 130px; }
.evp3-splogo.sz-lg { min-width: 244px; height: 128px; }
.evp3-splogo.sz-lg img { max-height: 88px; max-width: 220px; }

/* ── Galería: badge; patrocinadores más atractivos ─────────────────────────── */
.evp3-gal { position: relative; }
.evp3-splogo { transition: transform .2s ease, box-shadow .2s ease; }
.evp3-splogo:hover { transform: translateY(-4px); box-shadow: 0 16px 30px -16px color-mix(in srgb, var(--evp3-a) 45%, transparent); }

/* ── Niveles de patrocinio: evento.js ordena por rango y fija --sp-scale
   (cada nivel mide 66% del anterior). Nombre del nivel en su tono metálico. */
.evp3-sptier.tier-diamond  { --t1: #7fd6ff; --t2: #3f97cf; --t3: #7f6ef0; }
.evp3-sptier.tier-platinum { --t1: #b4c3cf; --t2: #6f7f8c; --t3: #4b5863; }
.evp3-sptier.tier-gold     { --t1: #f3c24a; --t2: #c8911a; --t3: #8a5d0f; }
.evp3-sptier.tier-silver   { --t1: #c3c7cb; --t2: #8a9096; --t3: #5f656b; }
.evp3-sptier.tier-bronze   { --t1: #e0a36b; --t2: #b06a2c; --t3: #7c471b; }
.evp3-sptier.tier-other    { --t1: var(--evp3-a); --t2: var(--evp3-a); --t3: var(--evp3-b); }
.evp3-sptier.tiered { margin-bottom: calc(18px + 20px * var(--sp-scale)); }
.evp3-sptier.tiered .evp3-sptier-t {
  font-size: calc(10px + 5px * var(--sp-scale)); letter-spacing: .2em; color: transparent;
  background: linear-gradient(100deg, var(--t3), var(--t2) 38%, var(--t1) 50%, var(--t2) 62%, var(--t3));
  background-size: 240% 100%; -webkit-background-clip: text; background-clip: text;
  animation: evp3-metal 6s linear infinite; }
.evp3-sptier.tiered .evp3-splogo {
  min-width: 0; width: min(calc(280px * var(--sp-scale)), 100%); height: calc(140px * var(--sp-scale));
  padding: calc(14px * var(--sp-scale)) calc(20px * var(--sp-scale));
  border-color: color-mix(in srgb, var(--t2) 45%, var(--evp3-line)); }
.evp3-sptier.tiered .evp3-splogo img { width: calc(226px * var(--sp-scale)); height: calc(92px * var(--sp-scale)); object-fit: contain; }
.evp3-sptier.tiered.is-top .evp3-splogo { border-width: 1.5px; box-shadow: 0 12px 32px -18px color-mix(in srgb, var(--t2) 75%, transparent); }
@keyframes evp3-metal { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@media (prefers-reduced-motion: reduce) { .evp3-sptier.tiered .evp3-sptier-t { animation: none; } }

/* Media partners: grupo aparte al final, a tamaño completo y separado. */
.evp3-sptier.tier-media { --t1: var(--evp3-a); --t2: var(--evp3-a); --t3: var(--evp3-b); }
.evp3-sptier + .evp3-sptier.tier-media { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--evp3-line); }

/* ── Alineación de texto (configurable por evento) ── solo el párrafo de
   "Sobre el evento"; títulos, CTAs y etiquetas mantienen su alineación fija. */
.evp3[data-align="center"] .evp3-about-r p { text-align: center; }
.evp3[data-align="justify"] .evp3-about-r p { text-align: justify; text-align-last: left; hyphens: auto; }

/* Justificación por sección (data-sec + data-align los pone evento.js).
   Alcanza a la prosa de la sección; títulos, etiquetas y botones conservan su
   alineación propia, igual que con el ajuste global del evento. */
[data-sec][data-align="left"] p { text-align: left; }
[data-sec][data-align="center"] p { text-align: center; }
[data-sec][data-align="justify"] p { text-align: justify; text-align-last: left; hyphens: auto; }
