/* ==========================================================================
   Seminario ILC 2026 — Chile 100
   ========================================================================== */

/* Post-evento (Presentaciones y Galería) ocultos hasta después del seminario.
   Para reactivarlos: borrar esta regla (o comentarla). No es necesario tocar el HTML. */
.post-evento-hidden { display: none !important; }

@font-face {
  font-family: 'Trebuchet MS';
  src: url('fonts/trebuc.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Trebuchet MS';
  src: url('fonts/trebucbd.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #222449;
  --navy-deep: #171A3B;
  --blue: #307CFF;
  --blue-light: #6E9BFF;
  --gray: #7D8B97;
  --cream: #ECEAE5;
  --white: #FFFFFF;
  --ink: #222449;

  --font: 'Trebuchet MS', 'Trebuchet MS LT Std', Helvetica, Arial, sans-serif;

  --wrap: 1120px;
  --radius: 999px;
  --radius-sm: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0 0 1em; line-height: 1.6; }
p:last-child { margin-bottom: 0; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  transition: box-shadow .25s ease;
}
.nav.is-scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,.12);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav__logo-img { height: 26px; width: auto; }
.nav__logo-divider {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,.3);
}
.nav__logo-text {
  color: var(--white);
  font-size: 14px;
  letter-spacing: .02em;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links a {
  color: var(--white);
  font-size: 14.5px;
  opacity: .88;
  transition: opacity .15s ease;
}
.nav__links a:hover { opacity: 1; }
.nav__cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: var(--radius);
  opacity: 1 !important;
}
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  transition: transform .2s ease, opacity .2s ease;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  background: var(--navy);
  padding: 8px 28px 24px;
  gap: 4px;
}
.nav__mobile a {
  color: var(--white);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: 15px;
}
.nav__mobile a:last-child { border-bottom: none; }
.nav__mobile.is-open { display: flex; }
.nav__mobile .nav__cta {
  display: inline-block;
  margin-top: 8px;
  text-align: center;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy);
  overflow: hidden;
  padding: 64px 0 96px;
}
.hero__pattern {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: .9;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.35) 60%, transparent 95%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.35) 60%, transparent 95%);
}
.hero__pattern-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-repeat: repeat;
  background-size: 620px auto;
}
.hero__pattern-img--a { background-image: url('img/trama-anim-1.png'); animation: heroPatternBase 6s infinite ease-in-out; }
.hero__pattern-img--b { background-image: url('img/trama-anim-2.png'); animation: heroPatternTop 6s infinite ease-in-out; }
@keyframes heroPatternBase {
  0%  { opacity: 1; transform: scale(1); }
  55% { opacity: 0; transform: scale(1.01); }
}
@keyframes heroPatternTop {
  0%  { opacity: 1; transform: scale(1); }
  66% { opacity: 0; transform: scale(1.01); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__pattern-img--a, .hero__pattern-img--b { animation: none; }
  .hero__pattern-img--b { opacity: 0; }
}
.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__brand {
  height: 34px;
  margin-bottom: 28px;
}
.eyebrow {
  color: var(--blue-light);
  font-size: 14px;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin: 0 0 8px;
  font-weight: 400;
}
.eyebrow strong { color: var(--white); font-weight: 700; }

.hero__title-img {
  width: min(420px, 72vw);
  margin: 0 0 28px;
}
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}
.badge {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: var(--white);
  font-size: 14px;
  padding: 10px 18px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
a.badge--pin {
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  transition: background .15s ease, border-color .15s ease;
}
a.badge--pin:hover {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.32);
}
.badge--pin__city {
  padding-left: 20px;
}
.badge--pin__addr {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
a.badge--pin svg {
  flex-shrink: 0;
  margin-top: 2px;
  opacity: .85;
}

/* ---------- Countdown ---------- */
.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}
.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 76px;
  padding: 14px 0 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-sm);
}
.countdown__value {
  font-size: 30px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown__label {
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-light);
}
@media (max-width: 520px) {
  .countdown { gap: 8px; }
  .countdown__unit { width: 64px; padding: 10px 0 8px; }
  .countdown__value { font-size: 24px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--light {
  background: var(--white);
  color: var(--navy);
}
.btn--light:hover { box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.btn--accent {
  background: var(--blue);
  color: var(--white);
}
.btn--accent:hover { box-shadow: 0 10px 24px rgba(46,111,243,.4); }

/* ---------- Sections generic ---------- */
.section {
  padding: 96px 0;
}
.section--dark {
  background: var(--navy);
  color: var(--white);
}
.kicker {
  color: var(--blue);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.kicker--light { color: var(--blue-light); }
.section__title {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 12px;
}
.section__title--light { color: var(--white); }
.section__subtitle {
  color: var(--gray);
  font-size: 16px;
  margin-bottom: 48px;
}
.section--dark .section__subtitle { color: rgba(255,255,255,.6); }
.section__subtitle a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 3px;
  opacity: .9;
}
.section__subtitle a:hover { opacity: 1; }

.programa__meta {
  margin-bottom: 48px;
}
.programa__datetime {
  color: var(--white);
  font-weight: 700;
  font-size: 17px;
  margin: 0 0 8px;
}
.programa__venue {
  color: rgba(255,255,255,.75);
  font-size: 15px;
  margin: 0 0 4px;
}
.programa__address {
  margin: 0;
}
.programa__address a {
  color: rgba(255,255,255,.6);
  font-size: 14px;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 3px;
  transition: color .15s ease;
}
.programa__address a:hover { color: rgba(255,255,255,.85); }

/* ---------- Sobre ---------- */
.sobre__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
}
.sobre__col h2 {
  font-size: clamp(26px, 3.4vw, 34px);
  margin-bottom: 20px;
  line-height: 1.2;
}
.sobre__col p {
  color: #40465C;
  font-size: 16px;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
.sobre__col--ilc {
  border-left: 3px solid var(--blue);
  padding-left: 32px;
}
.sobre__col--ilc p { color: #565C70; font-size: 15px; }

/* ---------- Filiales ---------- */
.filiales {
  padding: 56px 0;
  border-top: 1px solid #E7E5DF;
  border-bottom: 1px solid #E7E5DF;
}
.filiales__label {
  text-align: center;
  color: var(--gray);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.filiales__row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px 56px;
}
.filiales__row a {
  display: inline-flex;
  align-items: center;
}
.filiales__row img {
  height: 42px;
  width: auto;
  filter: grayscale(100%);
  opacity: .55;
  transition: filter .2s ease, opacity .2s ease;
}
.filiales__row a:hover img {
  filter: grayscale(0%);
  opacity: 1;
}
.filiales__row img.filiales__logo--small { height: 30px; }
@media (max-width: 640px) {
  .filiales__row { gap: 28px 32px; }
  .filiales__row img { height: 34px; }
  .filiales__row img.filiales__logo--small { height: 24px; }
}

/* ---------- Timeline ---------- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255,255,255,.12);
}
.timeline__item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
  align-items: center;
}
.timeline__time {
  font-size: 20px;
  font-weight: 700;
  color: var(--blue-light);
}
.timeline__body {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.timeline__body h3 {
  font-size: 19px;
  margin: 0;
  font-weight: 400;
  color: rgba(255,255,255,.75);
  flex: 1;
  min-width: 200px;
}
.timeline__text {
  flex: 1;
  min-width: 200px;
}
.timeline__text h3 {
  margin: 0 0 4px;
}
.timeline__person {
  margin: 0;
  font-size: 15px;
  color: rgba(255,255,255,.6);
}
.timeline__name {
  color: var(--blue-light);
  font-weight: 700;
}
.timeline__avatars {
  display: flex;
  flex-shrink: 0;
}
.timeline__body--panel {
  display: block;
}
.timeline__body--panel h3 {
  display: block;
  margin: 0 0 16px;
}
.timeline__panel {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.timeline__panel li {
  display: flex;
  align-items: center;
  gap: 14px;
}
.timeline__panel .timeline__avatar {
  flex-shrink: 0;
}
.timeline__role {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,.5);
  font-weight: 400;
  margin-top: 2px;
}
.timeline__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #EEF0F5;
  border: 2px solid var(--navy);
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.25);
}
.timeline__avatars .timeline__avatar + .timeline__avatar {
  margin-left: -14px;
}
@media (max-width: 640px) {
  .timeline__avatar { width: 36px; height: 36px; }
}

/* ---------- Speakers ---------- */
.speakers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.speaker-card {
  text-align: center;
}
.speaker-card__photo {
  width: 100%;
  max-width: 190px;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, #E7EBF8, #D3DCF5);
  margin: 0 auto 16px;
  overflow: hidden;
}
.speaker-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter .25s ease;
}
.speaker-card__photo:hover img {
  filter: grayscale(0%);
}
.speaker-card h3 {
  font-size: 17px;
  margin-bottom: 2px;
}
.speaker-card p {
  font-size: 14px;
  color: var(--gray);
}
.speaker-card__role {
  margin-bottom: 14px;
}
.speaker-card__cv {
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--blue);
  background: none;
  border: 1px solid var(--blue);
  padding: 7px 20px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.speaker-card__cv:hover {
  background: var(--blue);
  color: var(--white);
}

/* ---------- Bio Modal ---------- */
.bio-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.bio-modal.is-open { display: flex; }
.bio-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20,22,45,.72);
}
.bio-modal__panel {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  max-height: min(85vh, 780px);
  background: var(--white);
  border-radius: var(--radius-sm);
  overflow-y: auto;
  box-shadow: 0 30px 60px rgba(0,0,0,.35);
}
.bio-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  color: var(--gray);
  cursor: pointer;
  padding: 4px;
  display: flex;
  z-index: 1;
}
.bio-modal__close:hover { color: var(--ink); }
.bio-modal__body {
  padding: 40px 40px 36px;
}
.bio-modal__name {
  font-size: 22px;
  color: var(--ink);
  margin: 0 0 4px;
  padding-right: 28px;
}
.bio-modal__role {
  font-size: 14px;
  color: var(--blue);
  font-weight: 700;
  margin: 0 0 20px;
}
.bio-modal__text p {
  color: #40465C;
  font-size: 15px;
  line-height: 1.65;
  text-align: justify;
  margin: 0 0 14px;
}
.bio-modal__text p:last-child { margin-bottom: 0; }
@media (max-width: 520px) {
  .bio-modal__body { padding: 32px 24px 28px; }
}

/* ---------- Presentaciones / Grabaciones ---------- */
.grabaciones-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.grabacion-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.grabacion-info {
  padding: 18px 20px;
}
.grabacion-info h3 {
  color: var(--white);
  font-size: 16px;
  margin: 0 0 8px;
}
.pres-chip {
  display: inline-block;
  font-size: 12.5px;
  color: var(--blue-light);
  background: rgba(110,155,255,.12);
  border-radius: var(--radius);
  padding: 3px 10px;
  margin: 0 6px 4px 0;
}
.vimeo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(0,0,0,.25);
}
.vimeo-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.vimeo-wrap__empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255,255,255,.4);
  font-size: 13px;
  text-align: center;
  padding: 0 16px;
}
.vimeo-wrap__empty svg { opacity: .5; }
@media (max-width: 800px) {
  .grabaciones-grid { grid-template-columns: 1fr; }
}

/* ---------- Galeria ---------- */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 8px;
}
.galeria-grid:empty { margin-bottom: 0; }
.galeria-thumb {
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #EEF0F5;
}
.galeria-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}
.galeria-thumb:hover img { transform: scale(1.06); }
.galeria-empty {
  color: var(--gray);
  font-size: 15px;
  text-align: center;
  padding: 32px 0;
  border: 1px dashed #D8D5CC;
  border-radius: var(--radius-sm);
  display: none;
}
.galeria-empty.is-visible { display: block; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.lightbox.is-open { display: flex; }
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,11,26,.9);
}
.lightbox__img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 30px 60px rgba(0,0,0,.4);
}
.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--white);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox__close:hover { background: rgba(255,255,255,.2); }

/* ---------- CTA / Inscripcion ---------- */
.section--cta {
  background: var(--blue);
  position: relative;
  overflow: hidden;
  padding: 0;
}
.cta__inner {
  position: relative;
  padding: 88px 28px;
}
.cta__pattern {
  position: absolute;
  inset: 0;
  background-image: url('img/trama-cta-white.png?v=3');
  background-repeat: repeat;
  background-size: 620px auto;
  background-position: center;
  opacity: .3;
}
.cta__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.section--cta .kicker { color: rgba(255,255,255,.85); }
.section--cta .section__subtitle { color: rgba(255,255,255,.85); margin-bottom: 32px; }
.cta__datetime {
  font-size: clamp(15px, 4.6vw, 30px);
  white-space: nowrap;
}
.section--cta .btn--accent {
  background: var(--white);
  color: var(--blue);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-deep);
  padding: 40px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__logo { height: 22px; }
.footer p {
  color: rgba(255,255,255,.55);
  font-size: 13px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .sobre__grid { grid-template-columns: 1fr; gap: 40px; }
  .sobre__col--ilc { border-left: none; padding-left: 0; border-top: 3px solid var(--blue); padding-top: 24px; }
  .speakers { grid-template-columns: repeat(2, 1fr); }
  .timeline__item { grid-template-columns: 80px 1fr; }
}
@media (max-width: 520px) {
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 72px; }
  .speakers { grid-template-columns: 1fr 1fr; gap: 16px; }
}
