  :root {
    --main: #2A5768;
    --main-dark: #1D3E4A;
    --ink: #16221F;
    --paper: #FFFFFF;
    --muted: #5B6764;
  }

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

  html, body {
    overflow-x: clip;
    max-width: 100%;
  }

  body {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
  }

  /* ---------- Nav ---------- */
  .topbar {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 32px 4vw;
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 65px;
  }

  .topbar a {
    color: var(--ink);
    text-decoration: none;
    font-size: 15px;
    font-weight: 550;
    letter-spacing: -0.01em;
    white-space: nowrap;
  }

  .topbar a:hover { color: var(--main); }

  .lang {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
  }

  .lang svg { width: 12px; height: 12px; }

  /* hamburger toggle — hidden until the nav needs to collapse */
  .nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 24px;
    height: 34px;
    cursor: pointer;
    flex-shrink: 0;
  }

  .nav-burger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* ---------- Nav: tablet — tighten spacing ---------- */
  @media (max-width: 1100px) {
    .nav-links { gap: 34px; }
    .topbar a { font-size: 14px; }
  }

  @media (max-width: 920px) {
    .nav-links { gap: 22px; }
    .topbar a { font-size: 13px; }
  }

  /* ---------- Nav: mobile — full-screen overlay ---------- */
  @media (max-width: 820px) {
    .topbar { justify-content: flex-end; padding: 23px 3.2vw;}

    .nav-burger {
      display: flex;
      position: relative;
      z-index: 25;
    }

    .nav-links {
      position: fixed;
      inset: 0;
      width: 100%;
      height: 100%;
      z-index: 15;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 6px;
      background: var(--paper);
      padding: 80px 6vw 40px;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.25s ease;
    }

    .nav-toggle:checked ~ .nav-links {
      opacity: 1;
      pointer-events: auto;
    }

    .nav-links a {
      width: 100%;
      max-width: 340px;
      text-align: center;
      padding: 18px 20px;
      font-size: 18px;
    }

    .nav-links a:hover { color: var(--main); }

    .nav-links .lang { justify-content: center; }
  }

  @media (max-width: 600px) {
    .topbar { padding-right: 25px; }
  }

  /* ---------- Hero ---------- */
  .hero {
    position: relative;
    display: grid;              /* photo and text share one cell */
    width: 100%;
    padding-top: 37px;
    overflow-x: clip;
  }

  .hero-photo-frame,
  .hero-overlay {
    grid-area: 1 / 1;           /* same row + column = they overlap */
  }

  .hero-photo-frame {
    z-index: 2;
    align-self: end;            /* photo sits on the section's bottom edge */
    width: 100%;
    overflow: hidden;
    pointer-events: none;
  }

  .hero-photo {
    display: block;
    width: 66%;
    height: auto;
    margin-left: auto;
    margin-right: -190px;
  }

  .hero-overlay {
    position: relative;         /* in flow, so it can grow the hero */
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* the photo's left edge sits at 34% + 190px; stop short of it */
    width: calc(34% + 270px);
    max-width: 100%;
    min-width: 0;
    padding: 0;
  }

  .hero-inner {
    max-width: 780px;
    background: linear-gradient(120deg,
      rgba(255,255,255,0.97) 0%,
      rgba(255,255,255,0.94) 45%,
      rgba(255,255,255,0.55) 78%,
      rgba(255,255,255,0) 100%);
    padding: 8px 28px 32px 4vw;
    border-radius: 0 0 4px 0;
  }

  .badge-row {
    display: flex;
    align-items: flex-start;
    gap: 32px;
  }

  .mark {
    width: 110px;
    height: auto;
    flex-shrink: 0;
    display: block;
  }

  .eyebrow {
    display: block;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--main);
  }

  h1 {
    color: inherit;   /* heredado del contenedor: el tema de WP lo pisaba */
    font-size: clamp(34px, 3.5vw, 62px);
    line-height: 1.07;
    font-weight: 650;
    letter-spacing: -0.04em;
    padding-top: 18px;
  }

  h1 .accent {
    display: block;
    margin-top: 8px;
    color: var(--main);
    font-weight: 600;
    font-size: 0.9em;
  }

  .sub-line {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 22px;
  }

  .sub-line p {
    position: relative;
    padding-left: 28px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.6;
    color: var(--main);
  }

  .sub-line p::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 2px;
    background: var(--main);
  }

  .lede {
    margin-top: 24px;
    max-width: 42ch;
    font-size: 18px;
    line-height: 1.55;
    letter-spacing: -0.01em;
    color: black;
  }

  .event-details {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 38px;
    margin-top: 32px;
  }

  .detail-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
  }

  .detail-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    margin-top: -5px;
    color: var(--main);
  }

  .detail-text strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
  }

  .detail-text p {
    margin-top: 6px;
    max-width: 20ch;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--muted);
  }

  .cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    border-radius: 2px;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
    margin-top: 10px;
  }

  .btn-primary {
    background: var(--main);
    color: var(--paper);
    border: 1px solid var(--main);
  }

  .btn-primary:hover { background: var(--main-dark); border-color: var(--main-dark); }

  .btn-primary svg { width: 15px; height: 15px; }

  .btn-outline {
    background: rgba(255,255,255,0.9);
    border: 1.5px solid var(--main);
    color: var(--main);
  }

  .btn-outline:hover { border-color: var(--main); color: var(--main); }

  /* ---------- Hero: stack below 880px ---------- */


.host-section {
  padding: 0 4vw 14px;
  margin-top: 40px;
}

.host-card {
  background: #f4f4f4;
  border-radius: 14px;
  padding: 35px 35px;
  display: grid;
  grid-template-columns: 0.9fr 1.15fr 1.35fr;
  gap: 40px;
  align-items: start;
}

.host-left .eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--main);
  margin-bottom: 22px;
}

.host-logo {
  max-width: 300px;
  width: 100%;
  height: auto;
  display: block;
}

.host-mid {
  align-self: center;
}

.host-mid p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}

.host-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--main);
  text-decoration: none;
}

.host-link svg { width: 14px; height: 14px; }
.host-link:hover { color: var(--main-dark); }

.host-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 6;
  min-height: 156px;         /* keep its height from shrinking as the card narrows (≈900–1300px) */
  border-radius: 10px;
  overflow: hidden;
}

.host-photo img.host-photo-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.host-photo-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  height: 100%;
  width: auto;
}
.speakers-section {
  padding: 40px 4vw 10px;
  text-align: center;
}

.speakers-section .eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.speakers-section .eyebrow::after {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  background: var(--main);
  margin: 13px auto 0;
}

.speakers-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
  margin-top: 32px;
  text-align: left;
}

.speaker-card {
  background: #FFFFFF;
  border: 1px solid #E7E6E1;
  border-radius: 2px;
  overflow: hidden;
}

.speaker-photo {
  width: 100%;
  aspect-ratio: 15 / 16;
  overflow: hidden;
  background: #EAEAE6;
}

.speaker-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.speaker-info { padding: 16px 18px 10px; }

.speaker-info h3 {
  color: inherit;   /* idem */
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.speaker-info p {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.speaker-info p .company-line {
  font-weight: 600;
  color: var(--ink);
}

.speaker-linkedin {
  display: inline-flex;
  margin-top: 12px;
}

.speaker-linkedin img {
  width: 25px;
  height: 25px;
  display: block;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.speaker-linkedin:hover img {
  opacity: 1;
}

.speakers-cta { margin-top: 35px; }

.speakers-cta .btn-outline {
  border-color: var(--main);
  color: var(--ink);
}
.event-info-section {
  padding: 35px 35px;
}

.event-info-card {
  background:#f4f4f4;
  border-radius: 14px;
  padding: 35px 35px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
}

.info-col {
  padding: 0 36px;
  min-width: 0;
}

.info-col:first-child { padding-left: 0; }
.info-col:last-child { padding-right: 0; }

.info-col:not(:first-child) {
  border-left: 1px solid #DDDBD6;
}

.info-col h3 {
  color: inherit;   /* idem */
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1.4;
}

/* Column 1: trophy + top 10 list */
.award-col {
  display: flex;
  gap: 28px;
}

.trophy-img {
  width: 190px;
  height: 280px;          /* fixed height ≥900px so it doesn't stretch with the column */
  align-self: flex-start;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.rank-list {
  /* Dos columnas fijas, no flex-wrap.

     Con flex-wrap las columnas se dimensionaban según su contenido y
     saltaban a una debajo de la otra cuando no entraban. Entre 1101 y
     1300px pasaba justo eso: arriba de 1100 el trofeo vuelve a ponerse
     al lado de la lista (190px + 28px de gap), y hasta 1300 la primera
     columna de la grilla no es lo bastante ancha para las dos listas
     más los 65px de separación. Debajo de 1101 el trofeo se apila y
     hay lugar de sobra; arriba de 1300 también. Por eso fallaba solo
     en esa franja.

     Con grid las columnas se reparten el ancho disponible y se angostan
     en vez de saltar, así que quedan al lado siempre. */
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  margin-top: 20px;
}

.rank-list-col {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rank-list-col li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
}

.rank-list-col .num {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--main-dark);
  color: var(--paper);
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
}

.info-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--main);
  text-decoration: none;
}

.info-link svg { width: 14px; height: 14px; }
.info-link:hover { color: var(--main); }

/* Column 2: venue */
.venue-address {
  display: flex;
  gap: 7px;
  margin-top: 18px;
}

.venue-icon {
  width: 33px;
  height: 33px;
  flex-shrink: 0;
  margin-top: -2px;
  color: var(--main);
}

.venue-address strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.venue-address p {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.venue-photo {
  width: 100%;
  aspect-ratio: 8 / 4;
  object-fit: cover;
  border-radius: 6px;
  margin-top: 20px;
  display: block;
}

@media (min-width: 900px) {
  .venue-photo { aspect-ratio: auto; height: 130px; }   /* fixed height ≥900px */
}

/* Column 3: map */
.map-img {
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  border-radius: 6px;
  margin-top: 18px;
  display: block;
}
.closing-cta {
  padding: 0 4vw 50px;
}

.cta-banner {
  background: var(--main);
  border-radius: 14px;
  padding: 27px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-left {
  display: flex;
  align-items: center;
  gap: 28px;
}

.cta-icon-circle {
  width: 74px;
  height: 74px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-icon-circle svg {
  width: 42px;
  height: 42px;
  color: #FFFFFF;
}

.cta-icon-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cta-text h3 {
  font-size: 22px;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

.cta-text p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(255,255,255,0.72);
  max-width: 70ch;
}

.cta-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-right: 32px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  color: var(--main);
  padding: 15px 26px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 5px;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.cta-btn:hover { background: #EDEDE9; }
.cta-btn svg { width: 15px; height: 15px; }

.cta-note {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

@media (max-width: 1200px) {
  .detail-text p { max-width: 20ch; }
  .detail-text .addr-cont { display: block; }
}
@media (max-width: 1100px) {
  .speakers-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1000px) {
.hero-photo {
    display: block;
    width: 74%;
    height: auto;
    margin-left: auto;
    margin-right: -190px;
  }

}

@media (max-width: 900px) {
  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px;
  }

  .cta-right { align-self: center; margin-right: 0; }

  .cta-row { flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 20px; }

  .cta-row .btn { margin-top: 0; margin-bottom: 0; }

  .cta-row .btn-outline { padding-left: 18px; padding-right: 18px; }

  .event-details .detail-item:last-child { flex-basis: 100%; }
  .hero-photo {
    display: block;
    width: 93%;
    height: auto;
    margin-left: auto;
    margin-right: -230px;
  }
}

@media (max-width: 900px) {
  .event-info-card {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 28px;
  }

  .info-col {
    padding: 0 !important;
    border-left: none !important;
    border-top: 1px solid #DDDBD6;
    padding-top: 28px !important;
  }

  .info-col:first-child { border-top: none; padding-top: 0 !important; }

  .award-col { flex-direction: column; }
  .trophy-img { width: 140px; min-height: 200px; }
}
@media (max-width: 900px) {
  .host-card {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px;
  }
   .lede {
    margin-top: 24px;
    max-width: 38ch;
    font-size: 18px;
    line-height: 1.55;
    letter-spacing: -0.01em;
    color: black;
  }

  .host-photo { aspect-ratio: 16 / 9; }
}

@media (min-width: 901px) and (max-width: 1000px) {
  .host-card { gap: 10px; }
  .info-col { padding: 0 18px; }
}

@media (max-width: 800px) {
  .hero { padding-top: 0; }
  .topbar { padding-bottom: 14px; }
}


@media (max-width: 700px) {
  .speakers-grid { grid-template-columns: repeat(2, 1fr); }

  .hero-photo {
    display: block;
    width: 98%;
    height: auto;
    margin-left: auto;
    margin-right: -220px;
  }

  .hero-photo-frame {
    transform: translateY(38px);
  }

  .hero { padding-bottom: 38px; }
}

@media (max-width: 600px) {
  .speakers-grid { grid-template-columns: repeat(2, 1fr); }

  .hero-photo {
    display: block;
    width: 102%;
    height: auto;
    margin-left: auto;
    margin-right: -180px;
  }

  .hero-photo-frame {
    transform: translateY(88px);
  }

  .hero { padding-bottom: 88px; }

  .cta-btn { padding: 12px 20px; font-size: 13px; }
  .cta-btn svg { width: 13px; height: 13px; }
}

@media (max-width: 500px) {
  .cta-row .btn {
    padding: 10px 18px;
    font-size: 12px;
  }
   .hero-photo {
    display: block;
    width: 102%;
    height: auto;
    margin-left: auto;
    margin-right: -140px;
  }
 .hero-photo-frame {
    transform: translateY(98px);
  }
  .cta-row .btn svg { width: 13px; height: 13px; }

  .hero { padding-bottom: 98px; }

  .event-info-card { padding: 20px; }

  .lede { font-size: 15px; }

  .detail-text strong { font-size: 14px; }
  .detail-text p { font-size: 11px; }
  .detail-icon { width: 34px; height: 34px; }

  .cta-icon-circle { width: 46px; height: 46px; }
  .cta-icon-circle svg { width: 32px; height: 32px; }
  .cta-left { align-items: flex-start; gap: 22px; }
  .cta-banner { padding: 24px; }
  .cta-text h3 { font-size: 19px; }
  .cta-text p { font-size: 14px; margin-top: 12px; }
}

@media (max-width: 400px) {

     .hero-photo {
    display: block;
    width: 102%;
    height: auto;
    margin-left: auto;
    margin-right: -125px;
  }
 .hero-photo-frame {
    transform: translateY(128px);
  }

  .hero { padding-bottom: 128px; }

  .detail-text strong { font-size: 14px; }
  .detail-text p { font-size: 11px; }
  .detail-icon { width: 34px; height: 34px; }

  .cta-icon-circle { width: 38px; height: 38px; }
  .cta-icon-circle svg { width: 32px; height: 32px; }
  .cta-left { align-items: flex-start; gap: 20px; }
  .cta-banner { padding: 20px; }
  .cta-text h3 { font-size: 17px; }
  .cta-text p { font-size: 13px; margin-top: 12px; }

  .speakers-cta .btn-outline {
    padding: 10px 16px;
    font-size: 11px;
    white-space: normal;
    text-align: center;
  }
  .speakers-cta .btn-outline svg { width: 12px; height: 12px; }

  .event-info-section { padding: 18px; }
}

/* ≤1100px: stack the award image between the ranking list and the "VER MÁS" link */
@media (max-width: 1100px) {
  .award-col { flex-direction: column; gap: 16px; }
  .award-col > div { display: contents; }

  .trophy-img {
    order: 3;
    width: 190px;
    height: 260px;
    min-height: 0;
    align-self: flex-start;
    margin-top: 15px;
  }

  .award-col .info-link { order: 4; }
}


/* ------------------------------------------------------------------
   Mismo blindaje que en ilds.css: Astra define a:hover con más
   especificidad que tus clases de botón y les cambia el color al pasar
   el mouse. Acá se fijan en todos los estados.
   ------------------------------------------------------------------ */
body.ilds-evento .btn-primary,
body.ilds-evento .btn-primary:hover,
body.ilds-evento .btn-primary:focus,
body.ilds-evento .btn-primary:active { color: var(--paper); }

body.ilds-evento .btn-outline,
body.ilds-evento .btn-outline:hover,
body.ilds-evento .btn-outline:focus,
body.ilds-evento .btn-outline:active { color: var(--main); }

body.ilds-evento .host-link,
body.ilds-evento .host-link:focus,
body.ilds-evento .host-link:active { color: var(--main); }
body.ilds-evento .host-link:hover { color: var(--main-dark); }

body.ilds-evento .info-link,
body.ilds-evento .info-link:hover,
body.ilds-evento .info-link:focus,
body.ilds-evento .info-link:active { color: var(--main); }

body.ilds-evento .cta-btn,
body.ilds-evento .cta-btn:hover,
body.ilds-evento .cta-btn:focus,
body.ilds-evento .cta-btn:active { color: var(--main); }

body.ilds-evento .topbar a,
body.ilds-evento .topbar a:active { color: var(--ink); }
body.ilds-evento .topbar a:hover,
body.ilds-evento .topbar a:focus { color: var(--main); }
