/* Expositores (pages/expositores.html) */

/* --- Tarjetas de expositor --- */

.expositores-list {
  gap: 0;
}

.expositores {
  width: 100%;
}

.expositores-container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
  padding: 24px 0;
}

.expo-img {
  width: 30%;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
}

.expo-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
}

@media (hover: hover) {
  .expositores-container:hover .expo-img img {
    transform: scale(1.06);
  }

  .open-modal-btn:hover {
    background-color: var(--page-accent-soft);
  }
}

.expo-text {
  width: 70%;
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 6px;
}

.expo-name {
  font-weight: 700;
  font-size: 1.75em;
  width: 100%;
  line-height: 1.15;
  letter-spacing: 1px;
}

.expo-talk {
  font-weight: 400;
  font-size: 1em;
  width: 100%;
  line-height: 1.3;
  letter-spacing: 0.5px;
}

.expo-chip {
  display: inline-block;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 0.65em;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
  margin-top: 2px;
}

.expo-chip--presidentes {
  color: var(--venue-presidentes);
  background-color: rgba(221, 104, 39, 0.18);
}

.expo-chip--oro {
  color: var(--venue-oro);
  background-color: rgba(139, 165, 71, 0.18);
}

.expo-chip--pergamino {
  color: var(--venue-pergamino);
  background-color: rgba(123, 155, 224, 0.18);
}

.expo-chip--tazza {
  color: var(--venue-tazza);
  background-color: rgba(215, 165, 63, 0.18);
}

.expo-chip--catacion {
  color: var(--venue-catacion);
  background-color: rgba(79, 182, 168, 0.18);
}

.expo-schedule {
  font-weight: 600;
  font-size: 0.9em;
  color: var(--page-text);
  opacity: 0.65;
  width: 100%;
  line-height: 1.3;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.open-modal-btn {
  background-color: var(--page-accent);
  border: none;
  color: var(--page-text);
  font-weight: 700;
  text-align: center;
  padding: 6px 16px;
  margin-top: 4px;
  cursor: pointer;
}

/* --- Modal de detalle (<dialog>) --- */

.modal {
  width: min(95%, 560px);
  height: 90%;
  margin-top: auto;
  margin-bottom: 20px;
  margin-inline: auto;
  padding: 0;
  border: none;
  border-radius: 18px;
  overflow: hidden;
  background: var(--page-bg);
  color: var(--page-text);
}

.modal[open] {
  display: flex;
  flex-direction: column;
  animation: modal-pop-in 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.is-closing {
  animation: modal-pop-out 0.18s ease forwards;
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.5);
}

.modal[open]::backdrop {
  animation: backdrop-fade-in 0.28s ease;
}

.modal.is-closing::backdrop {
  animation: backdrop-fade-out 0.18s ease forwards;
}

@keyframes modal-pop-in {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(16px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes modal-pop-out {
  from {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  to {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
}

@keyframes backdrop-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes backdrop-fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.modal-visual {
  position: relative;
  flex-shrink: 0;
  height: 270px;
  background-color: var(--page-bg);
  background-image: url('../images/backgrounds/decoration_exhibitor.svg');
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: top center;
}

.modal-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(11, 49, 44, 0.85) 65%);
  pointer-events: none;
}

.close-modal {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 50%;
  border: none;
  transition: background 0.2s ease;
  cursor: pointer;
}

.close-modal:active {
  background: rgba(0, 0, 0, 0.5);
}

.close-modal svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.5;
}

.modal-photo {
  position: relative;
  flex-shrink: 0;
  width: calc(100% - 40px);
  height: 240px;
  margin: -210px 20px 0;
  border-radius: 28px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.modal-photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 28px;
}

.modal-flags {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 6px;
}

.modal-flags img {
  width: 46px;
  height: auto;
  display: block;
  border-radius: 4px;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.modal-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  gap: 12px;
  padding: 20px 25px 25px;
  overflow-y: auto;
}

/* Ningún hijo directo debe encogerse: el scroll de .modal-body es lo que
   absorbe el contenido que no cabe, no el colapso de sus elementos (los
   <hr> traen overflow:hidden del navegador y su min-height:auto se
   resuelve a 0 en flexbox, por lo que el divisor desaparecía). */
.modal-body > * {
  flex-shrink: 0;
}

.modal-name {
  font-weight: 500;
  font-size: 1.9em;
  letter-spacing: 0.5px;
  line-height: 1.15;
}

.modal-country {
  font-weight: 600;
  font-size: 1.2em;
  color: var(--page-accent);
  letter-spacing: 1px;
}

.modal-divider {
  width: 100%;
  height: 1px;
  margin: 4px 0;
  border: none;
  background-color: var(--page-accent);
}

.modal-bio {
  font-weight: 400;
  font-size: 1em;
  letter-spacing: 0.5px;
  line-height: 1.5;
}

.modal-session {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
}

.modal-session .expo-talk {
  width: auto;
  font-weight: 700;
  font-size: 1.3em;
  line-height: 1.3;
  letter-spacing: 0.3px;
  color: var(--page-text);
}

.modal-session .expo-chip {
  font-size: 0.75em;
  margin-top: 0;
}

.modal-session .expo-schedule {
  width: auto;
  font-weight: 600;
  font-size: 1.05em;
  line-height: 1.35;
  color: var(--page-text);
  opacity: 0.65;
}
