/* Ajuste final del hero y la identidad visual. */
header > div {
  min-height: 4.5rem;
  height: auto;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

header a[aria-label*="Inicio"] img {
  width: 205px;
  max-width: 44vw;
}

@media (min-width: 1024px) {
  header > div {
    min-height: 5.75rem;
  }

  header a[aria-label*="Inicio"] img {
    width: 270px;
    max-width: 24vw;
  }

  #top > div {
    min-height: 820px;
  }

  #top .home-hero-image {
    top: auto;
    right: auto;
    bottom: 0;
    left: 0;
    width: auto;
    height: 82%;
    max-width: 60vw;
    object-fit: contain;
    object-position: left bottom;
    transform: none;
    z-index: 1;
    -webkit-mask-image:
      linear-gradient(to right, #000 0%, #000 52%, rgba(0, 0, 0, 0.92) 68%, rgba(0, 0, 0, 0.52) 84%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.58) 8%, #000 18%, #000 74%, rgba(0, 0, 0, 0.68) 88%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(to right, #000 0%, #000 52%, rgba(0, 0, 0, 0.92) 68%, rgba(0, 0, 0, 0.52) 84%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.58) 8%, #000 18%, #000 74%, rgba(0, 0, 0, 0.68) 88%, transparent 100%);
    mask-composite: intersect;
  }

  #top .home-hero-image + div {
    z-index: 0;
  }

  #top h2 {
    max-width: 100%;
    overflow: visible;
    font-size: clamp(3.5rem, 4.5vw, 5.35rem);
    line-height: 0.96;
  }

  #metricas {
    padding-top: 7rem;
  }
}

#temas > div {
  display: flex;
  flex-direction: column;
}

#temas > div > [class~="mt-10"] {
  order: -1;
  margin-top: 0;
  margin-bottom: 3.5rem;
}

.speaker-event-card {
  margin-top: 1.25rem;
  border: 1px solid color-mix(in oklab, var(--primary) 48%, transparent);
  border-radius: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  background:
    radial-gradient(circle at 92% 10%, color-mix(in oklab, var(--primary) 24%, transparent), transparent 42%),
    color-mix(in oklab, var(--card) 88%, transparent);
}

.speaker-event-card h3 {
  margin: 0 0 0.75rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.speaker-event-card p {
  margin: 0;
  max-width: 56rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

.speaker-event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.speaker-event-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.75rem 1.35rem;
  border: 1px solid color-mix(in oklab, var(--primary) 60%, transparent);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
}

.speaker-event-actions a:last-child {
  border-color: transparent;
  background: var(--primary);
  color: var(--primary-foreground);
}

@media (max-width: 640px) {
  .speaker-event-actions {
    flex-direction: column;
  }

  .speaker-event-actions a {
    width: 100%;
  }
}

@media (min-width: 1280px) {
  header a[aria-label*="Inicio"] img {
    width: 300px;
  }
}

/* Menú desplegable de servicios. */
.services-menu {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 3rem;
}

.services-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 180ms ease;
}

.services-trigger span {
  color: var(--primary);
  font-size: 0.8rem;
  transition: transform 180ms ease;
}

.services-submenu {
  position: absolute;
  z-index: 80;
  top: calc(100% - 0.2rem);
  left: 50%;
  width: 18.5rem;
  padding: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: color-mix(in oklab, var(--background) 94%, transparent);
  box-shadow: 0 1.25rem 3.5rem rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 0.6rem);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.services-menu:hover .services-submenu,
.services-menu:focus-within .services-submenu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.services-menu:hover .services-trigger,
.services-menu:focus-within .services-trigger {
  color: var(--foreground);
}

.services-menu:hover .services-trigger span,
.services-menu:focus-within .services-trigger span {
  transform: rotate(180deg);
}

.services-submenu a {
  display: block;
  padding: 0.72rem 0.85rem;
  border-radius: 0.7rem;
  color: var(--muted-foreground);
  line-height: 1.3;
  white-space: normal;
  transition: color 160ms ease, background-color 160ms ease;
}

.services-submenu a:hover,
.services-submenu a:focus-visible {
  color: var(--foreground);
  background: color-mix(in oklab, var(--primary) 14%, transparent);
  outline: none;
}
