/* Keep the same header space on the home page and every public section. */
.av-site .av-hero {
  height: 343px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding: 0 12px 16px;
}
.av-site .av-hero h1 { display: none; }
.av-site .av-hero .av-tagline {
  position: static;
  top: auto;
  bottom: auto;
  left: auto;
  width: 100%;
  margin: 0;
  transform: none;
  font-size: 15px;
  line-height: 1.55;
  overflow-wrap: break-word;
}
.av-site .av-hero .av-hero-actions {
  position: static;
  top: auto;
  bottom: auto;
  left: auto;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 18px;
  max-width: 100%;
  margin: 0;
  transform: none;
}
.av-site .av-hero .av-hero-actions .av-button {
  width: 174px;
  min-height: 44px;
  padding: 9px 18px;
  gap: 9px;
  font-size: 13px;
  line-height: 1.55;
  letter-spacing: .45px;
  white-space: normal;
  overflow-wrap: break-word;
}
.av-site .av-hero .av-hero-actions .av-icon {
  width: 18px;
  height: 18px;
}
/* Let longer translated labels wrap without spilling outside the navigation. */
.av-site .av-nav { flex-wrap: wrap; }
.av-site .av-nav a { text-align: center; }
.av-site .av-language { flex-wrap: wrap; padding: 0 12px; }
.av-site .av-info-grid > *,
.av-site .av-info-highlights > * { min-width: 0; }
.av-site .av-info-highlights dd,
.av-site .av-info-card h3,
.av-site .av-info-facts dt,
.av-site .av-info-facts dd { overflow-wrap: break-word; }
@media (min-width: 1001px) {
  .av-site .av-hero { height: clamp(455px, 26vw, 520px); }
}
@media (max-width: 760px) {
  .av-site .av-hero { height: 305px; }
  .av-site .av-hero .av-tagline {
    font-size: 11px;
    letter-spacing: 3px;
    padding: 0;
  }
  .av-site .av-hero .av-hero-actions { gap: 12px; }
  .av-site .av-hero .av-hero-actions .av-button {
    width: 145px;
    min-height: 42px;
    padding: 8px 12px;
    font-size: 11px;
  }
}
@media (max-width: 540px) {
  .av-site .av-hero { height: 292px; }
  .av-site .av-hero .av-tagline { font-size: 10px; letter-spacing: 2.2px; }
  .av-site .av-info-highlights dd { font-size: 18px; line-height: 1.35; }
  .av-site .av-hero .av-hero-actions { gap: 9px; }
  .av-site .av-hero .av-hero-actions .av-button {
    width: 132px;
    min-height: 40px;
    padding: 8px 10px;
    font-size: 10px;
  }
}

/* Fill the entire side margins with the original rock artwork. */
body.av-site {
  position: relative;
  min-height: 100vh;
}
@media (min-width: 1181px) {
  body.av-site::before,
  body.av-site::after {
    content: '';
    display: block;
    position: absolute;
    top: 440px;
    bottom: 0;
    width: calc(50% - 572px);
    height: auto;
    pointer-events: none;
    z-index: 1;
    opacity: 1;
    background-repeat: repeat-y;
    background-size: max(100%, 245px) auto;
    filter: saturate(.95) brightness(2.4);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 160px);
    mask-image: linear-gradient(to bottom, transparent, #000 160px);
  }
  body.av-site::before {
    left: 0;
    right: auto;
    background-position: right top;
    background-image: url('../img/aevix/decor/rocks-left.png');
  }
  body.av-site::after {
    right: 0;
    left: auto;
    background-position: left top;
    background-image: url('../img/aevix/decor/rocks-right.png');
  }
}
@media (max-width: 1180px) {
  body.av-site::before,
  body.av-site::after { display: none; }
}

/* Ajustes aprobados: fondo continuo, barra, idioma y miniatura de Chaos Castle. */
html body.av-site .av-event[data-event="chaoscastle"] .av-event-art {
  background-image: url('../img/aevix/events/chaos-castle-personalizada.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
html body.av-site .av-nav {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: stretch;
  width: min(1120px, calc(100% - 32px));
  min-height: 44px;
  padding: 0 6px;
}
html body.av-site .av-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 12px 8px;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .6px;
  white-space: nowrap;
}
html body.av-site .av-language {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 10px;
  width: max-content;
  max-width: calc(100% - 24px);
  min-height: 46px;
  margin: 10px auto;
  padding: 7px 14px;
  border: 1px solid #8b7244;
  background: linear-gradient(120deg, rgba(17,20,21,.97), rgba(5,8,10,.98));
  box-shadow: inset 0 0 0 3px #080b0c, inset 0 0 0 4px #30291c, 0 5px 22px #0008;
  color: #f4e4c7;
  font: 13px/1.4 Georgia, 'Times New Roman', serif;
}
html body.av-site .av-language::before,
html body.av-site .av-language::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  pointer-events: none;
  transform: skew(-14deg);
}
html body.av-site .av-language::before {
  top: 3px;
  left: 3px;
  border-top: 2px solid #d8b66f;
  border-left: 2px solid #d8b66f;
}
html body.av-site .av-language::after {
  right: 3px;
  bottom: 3px;
  border-right: 2px solid #d8b66f;
  border-bottom: 2px solid #d8b66f;
}
html body.av-site .av-language label {
  margin: 0;
  color: #f4d89f;
  font-weight: 700;
  white-space: nowrap;
}
html body.av-site .av-language select,
html body.av-site .av-language button {
  height: 30px;
  margin: 0;
  padding: 4px 9px;
  border: 1px solid #9c814b;
  background: #0d1214;
  color: #f4e4c7;
  font: inherit;
  line-height: normal;
}
html body.av-site .av-language select {
  min-width: 108px;
  color-scheme: dark;
}
html body.av-site .av-language button {
  flex-shrink: 0;
  white-space: nowrap;
  cursor: pointer;
}
@media (min-width: 1181px) {
  html body.av-site {
    --av-art-height: max(576px, 40vw);
  }
  html body.av-site .av-backdrop {
    height: var(--av-art-height);
    background-image:
      linear-gradient(to bottom, transparent 55%, rgba(6,9,11,.25) 72%, #06090b 100%),
      url('../img/aevix/hero.jpg');
    background-position: center top;
    background-repeat: no-repeat;
    background-size: 100% 100%, max(1440px,100%) auto;
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  }
  html body.av-site::before,
  html body.av-site::after {
    top: calc(var(--av-art-height) * .58);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 calc(var(--av-art-height) * .42));
    mask-image: linear-gradient(to bottom, transparent, #000 calc(var(--av-art-height) * .42));
  }
}
@media (max-width: 760px) {
  html body.av-site .av-nav {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: calc(100% - 24px);
    overflow-x: auto;
  }
  html body.av-site .av-nav a {
    flex: 0 0 auto;
    padding: 12px 14px;
    font-size: 11px;
  }
}

/* Menú e idioma en una barra compartida. */
html body.av-site .av-header-bar {
  position:relative;
  z-index:5;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  width:min(1120px,calc(100% - 32px));
  min-height:46px;
  margin:0 auto 64px;
  padding:0 4px;
}
html body.av-site .av-header-bar .av-nav {
  width:100%;
  min-width:0;
  min-height:44px;
  margin:0;
  padding:0;
  border:0;
  background:none;
  box-shadow:none;
}
html body.av-site .av-header-bar .av-nav a {
  padding:10px 6px;
  font-size:12px;
  letter-spacing:.4px;
}
html body.av-site .av-header-bar .av-language {
  gap:6px;
  width:max-content;
  max-width:100%;
  min-height:32px;
  margin:0 3px 0 6px;
  padding:3px 6px;
  font-size:11px;
  line-height:1.35;
  border-color:#75613a;
  box-shadow:inset 0 0 0 2px #080b0c,inset 0 0 0 3px #30291c;
}
html body.av-site .av-header-bar .av-language::before,
html body.av-site .av-header-bar .av-language::after {width:6px;height:6px;border-width:1px}
html body.av-site .av-header-bar .av-language select,
html body.av-site .av-header-bar .av-language button {height:24px;padding:2px 6px;font-size:11px}
html body.av-site .av-header-bar .av-language select {width:94px;min-width:0}
html body.av-site .av-header-bar .av-nav a:focus-visible {outline-offset:-3px}
@media(min-width:901px) and (max-width:1100px) {
  html body.av-site .av-header-bar .av-nav a {font-size:11px}
}
@media(max-width:900px) {
  html body.av-site .av-header-bar {grid-template-columns:minmax(0,1fr);width:calc(100% - 24px);margin-bottom:20px}
  html body.av-site .av-header-bar .av-nav {display:flex;flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto}
  html body.av-site .av-header-bar .av-nav a {flex:1 0 auto;padding:11px 13px;font-size:11px}
  html body.av-site .av-header-bar .av-language {justify-self:end;margin:0 4px 7px 0}
}
