/* TAM 2027 preview. Artwork exported from the supplied Illustrator/PDF.
   Keep these rules scoped: the published 2025/2026 pages share the base CSS. */
:root {
  --tam27-header-height: clamp(72px, 5.729167vw, 110px);
  /* Height of the 2025/2026 fixed header that page templates still leave room for. */
  --tam27-legacy-offset: 51px;
  --tam27-deck: "forma-djr-deck", Arial, sans-serif;
}

.header-fitam.tam27-header {
  height: var(--tam27-header-height);
  /* Pull content up by the room it already leaves, so it sits right under this taller header. */
  margin: 0 0 calc(-1 * var(--tam27-legacy-offset));
  padding: 0;
}
.tam27-fixed { z-index: 1030; }
.tam27-bar {
  position: relative;
  height: var(--tam27-header-height);
  color: #fff;
  background: #fd60e8 url("../img/chrome/header-gradient.webp") center / 100% 100% no-repeat;
}
.tam27-bar img { display: block; width: 100%; height: auto; }
.tam27-brands {
  position: absolute;
  inset: 0 auto 0 3.958333%;
  width: 21.875%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tam27-brands .tam27-foundation { width: 23.076923%; flex-shrink: 0; }
.tam27-brands .tam27-bhp { width: 36.842105%; }
.tam27-brands .tam27-bhp--teck { width: 14%; }
.tam27-brands .tam27-present { width: 14.37247%; }
.tam27-festival {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(28.645833%, 550px);
  transform: translate(-50%, -50%);
}
.tam27-actions {
  position: absolute;
  right: 2.1875%;
  inset-block: 0;
  display: flex;
  gap: 1.041667vw;
  align-items: center;
}
.tam27-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max(32px, 1.927083vw);
  height: max(44px, 2.291667vw);
  border: 0;
  padding: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
}
.tam27-icon svg {
  width: clamp(18px, 1.25vw, 24px);
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: square;
}
.tam27-languages {
  display: flex;
  align-items: center;
  gap: .625vw;
  font: 400 clamp(16px, 1.145833vw, 22px)/1 var(--tam27-deck);
}
.tam27-languages a { color: #fff; text-decoration: none; }
.tam27-languages a:hover { text-decoration: underline; text-underline-offset: .2em; }
.tam27-menu-mobile { display: none; }
.tam27-bar a:focus-visible,
.tam27-icon:focus-visible,
.tam27-footer a:focus-visible,
.tam27-footer button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
}
.tam27-mobile-socials { display: flex; flex-wrap: wrap; gap: 12px; padding: 20px; }
/* The homepage's old Bootstrap spacing assumed a shorter header. */
.tam27-header ~ #banner-obras { padding-top: 0 !important; margin-top: var(--tam27-legacy-offset) !important; }

.tam27-footer {
  position: relative;
  padding: 3.4375vw 0 0;
  color: #fff;
  background: #fc60e8 url("../img/chrome/footer-gradient.webp?v=2") center top / 100% 100% no-repeat;
  font-family: var(--tam27-deck);
  font-weight: 400;
}
.tam27-footer img { display: block; max-width: 100%; height: auto; }
.tam27-partners {
  position: relative;
  width: 91.40625%;
  aspect-ratio: 1755 / 149;
  margin-left: 3.958333%;
}
.tam27-partner { position: absolute; top: .729167vw; }
.tam27-partner p {
  margin: 0;
  color: #fff;
  font: 700 clamp(7.5px, .572917vw, 11px)/1.357 var(--tam27-deck);
  text-transform: uppercase;
}
.tam27-partner img { width: 100%; }
.tam27-partner--festival { left: 0; top: 0; width: 8.433048%; }
.tam27-partner--support { left: 11.851852%; width: 25.754986%; }
.tam27-partner--sponsor { left: 40%; width: 8.603989%; }
.tam27-partner--media { left: 50.940171%; width: 38.005698%; }
.tam27-partner--munis { left: 39.5%; width: 23%; }
.tam27-munis { display: flex; align-items: center; gap: .6vw; margin-top: 1.1vw; }
.tam27-munis img { width: auto; height: 3vw; }
.tam27-partners:has(.tam27-partner--munis) .tam27-partner--media { left: 63.5%; width: 26.5%; }
.tam27-partner--tickets { left: 91.282051%; width: 8.717949%; }
.tam27-partner--support img { margin-top: 1.302083vw; }
.tam27-partner--sponsor img { margin-top: 1.71875vw; }
.tam27-partner--media img { margin-top: 1.666667vw; }
.tam27-partner--tickets img { margin-top: 2.239583vw; }
.tam27-tagline {
  width: 69.166667%;
  margin: 1.145833vw auto 0;
  /* Keep the background lettering visible across the full gradient. */
  filter: brightness(0) invert(1);
  opacity: .18;
}
.tam27-footer-info {
  display: grid;
  grid-template-columns: 41.2% 41.2% 17.6%;
  width: 65.104167%;
  margin: 2.03125vw 0 0 18.125%;
  font-family: "owners-narrow", "Arial Narrow", sans-serif;
  font-size: clamp(15px, 1.041667vw, 20px);
  line-height: 1.8;
}
.tam27-footer-info p { margin: 0; }
.tam27-footer-info a { color: #fff; text-decoration: none; }
.tam27-footer-info a:hover { text-decoration: underline; }
.tam27-footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 2.083333vw; }
.tam27-footer-links div { display: flex; flex-direction: column; }
.tam27-socials ul { list-style: none; padding: .520833vw 0 0; margin: 0; }
.tam27-socials li { padding: 0; margin: 0; line-height: 2.025; }
.tam27-socials a { display: flex; align-items: center; gap: .625vw; }
.tam27-socials i,
.tam27-socials svg { width: 1.145833vw; height: 1.145833vw; font-size: 1.145833vw; text-align: center; }

/* Reuse the real three-step subscription form inside the same gradient. */
.tam27-footer .newsletter2024 {
  background: transparent;
  padding: 3.854167vw 0 4.895833vw !important;
}
.tam27-footer .newsletter2024 > .container-custom { width: 50%; padding: 0; }
.tam27-footer .newsletter2024 > .container-custom > .row { margin: 0; }
.tam27-footer .newsletter2024 .col-xl-8 { flex: 0 0 100%; max-width: 100%; margin: 0; padding: 0; }
.tam27-footer .news1 > .row { margin: 0; align-items: center; }
.tam27-footer .news1 > .row > .col-6 { flex: 0 0 50%; max-width: 50%; padding: 0; }
.tam27-footer .news1 > .row > .col-6:first-child { flex-basis: 51.5625%; max-width: 51.5625%; }
.tam27-footer .news1 > .row > .col-6:last-child { flex-basis: 48.4375%; max-width: 48.4375%; }
.tam27-footer .news1 .titulo-seccion { margin: 0 !important; padding: 0 !important; }
.tam27-footer .newsletter2024 .titulo-seccion p {
  font-family: var(--tam27-deck);
  font-size: clamp(18px, 1.25vw, 24px);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}
.tam27-footer .newsletter2024 .form-check { padding-left: clamp(18px, 1.145833vw, 22px); margin-top: .3125vw !important; }
.tam27-footer .newsletter2024 .form-check-input { width: clamp(12px, .729167vw, 14px); height: clamp(12px, .729167vw, 14px); margin: .2em 0 0 clamp(-22px, -1.145833vw, -18px); }
.tam27-footer .newsletter2024 .form-check label { display: block; font: 400 clamp(11px, .677083vw, 13px)/1.4 var(--tam27-deck); }
.tam27-footer .newsletter2024 .form-check small { font-size: inherit; }
.tam27-footer .newsletter2024 .input-group { margin: 0 !important; }
.tam27-footer .newsletter2024 .input-group input {
  height: 3.697917vw;
  padding: .520833vw 1.197917vw;
  border: 0;
  background: #fff;
  color: #333;
  font: 400 16px/1.5 var(--tam27-deck);
  border-radius: 4vw 0 0 4vw;
}
.tam27-footer .newsletter2024 .input-group input::placeholder { color: #757575; }
.tam27-footer .newsletter2024 .input-group button {
  width: 4.010417vw;
  padding: 0;
  background: #ffa0f1;
  border: 0;
  color: #fff;
  border-radius: 0 4vw 4vw 0;
}
.tam27-footer .newsletter2024 .input-group button:hover { background: #e742d3; }
.tam27-footer .newsletter2024 .news2,
.tam27-footer .newsletter2024 .news3 { font-family: var(--tam27-deck); }
.tam27-footer .newsletter2024 .news2 .form-check label { font-size: 14px; line-height: 1.5; }
.tam27-footer .newsletter2024 .news2 .form-check { padding-left: 20px; }
.tam27-footer .newsletter2024 .news2 .form-check-input { width: 13px; height: 13px; margin-left: -20px; }
.tam27-footer .newsletter2024 .guardar button { color: #fff; background: #b72d9e; border-color: #b72d9e; }

@media (max-width: 767.98px) {
  :root { --tam27-header-height: 96px; --tam27-legacy-offset: 65px; }
  .tam27-brands { left: 16px; top: 0; bottom: auto; width: 164px; height: 54px; gap: 16px; }
  .tam27-brands .tam27-foundation { width: 58px; }
  .tam27-brands .tam27-bhp { width: 79px; }
  .tam27-brands .tam27-bhp--teck { width: 34px; }
  .tam27-brands .tam27-present { position: absolute; right: 0; bottom: 5px; display: block; width: 30px; }
  .tam27-festival { left: 50%; top: 72px; width: min(76%, 380px); transform: translate(-50%, -50%); }
  .tam27-actions { right: 12px; bottom: auto; height: 54px; gap: 5px; }
  .tam27-icon { width: 32px; height: 44px; }
  .tam27-icon svg { width: 20px; }
  .tam27-languages { font-size: 14px; gap: 5px; }
  .tam27-menu-desktop { display: none; }
  .tam27-menu-mobile { display: inline-flex; }
  .tam27-footer { padding-top: 32px; background-size: auto 100%; }
  .tam27-partners {
    position: static;
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) minmax(0, .45fr);
    align-items: center;
    gap: 24px 18px;
    width: auto;
    margin: 0 20px;
    aspect-ratio: auto;
  }
  .tam27-partner { position: static; width: auto; }
  .tam27-partner p { font-size: 7.5px; line-height: 1.4; }
  .tam27-partner img { margin-top: 12px; }
  .tam27-partner--festival img { margin: 0; }
  .tam27-partner--media { grid-column: 1 / 3; }
  .tam27-partner--munis { grid-column: 1 / 3; }
  .tam27-munis { gap: 14px; margin-top: 12px; }
  .tam27-munis img { height: 30px; }
  .tam27-partner--tickets { align-self: start; }
  .tam27-tagline { width: 90%; margin-top: 32px; }
  .tam27-footer-info {
    width: auto;
    margin: 24px 28px 0;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px 24px;
    font-size: 16px;
    line-height: 1.8;
  }
  .tam27-address { grid-column: 1 / -1; }
  .tam27-footer-links { gap: 24px; }
  .tam27-socials ul { padding-top: 8px; }
  .tam27-socials a { gap: 10px; }
  .tam27-socials i, .tam27-socials svg { width: 16px; height: 16px; font-size: 16px; }
  .tam27-footer .newsletter2024 { padding: 40px 28px !important; }
  .tam27-footer .newsletter2024 > .container-custom { width: 100%; }
  .tam27-footer .news1 > .row { gap: 20px; }
  .tam27-footer .news1 > .row > .col-6:first-child,
  .tam27-footer .news1 > .row > .col-6:last-child { flex-basis: 100%; max-width: 100%; }
  .tam27-footer .newsletter2024 .titulo-seccion p { font-size: 18px; }
  .tam27-footer .newsletter2024 .form-check { padding-left: 20px; margin-top: 8px !important; }
  .tam27-footer .newsletter2024 .form-check-input { width: 12px; height: 12px; margin-left: -20px; }
  .tam27-footer .newsletter2024 .form-check label { font-size: 12px; }
  .tam27-footer .newsletter2024 .input-group input { height: 48px; padding: 12px 20px; font-size: 16px; border-radius: 30px 0 0 30px; }
  .tam27-footer .newsletter2024 .input-group button { width: 54px; border-radius: 0 30px 30px 0; }
}
@media (max-width: 359.98px) {
  .tam27-brands { left: 12px; width: 154px; gap: 12px; }
  .tam27-brands .tam27-foundation { width: 54px; }
  .tam27-brands .tam27-bhp { width: 77px; }
  .tam27-brands .tam27-bhp--teck { width: 33px; }
  .tam27-actions { right: 8px; gap: 2px; }
  .tam27-icon { width: 28px; }
  .tam27-languages { font-size: 12px; gap: 3px; }
}


/* ---- UX / accessibility pass ---- */
.tam27-sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.tam27-skip {
  position: fixed;
  top: 8px; left: 8px;
  z-index: 10000;
  padding: 10px 16px;
  background: #000;
  color: #fff;
  font: 700 16px/1 var(--tam27-deck);
  transform: translateY(-200%);
}
.tam27-skip:focus { transform: none; color: #fff; }
#main:focus { outline: none; }

/* Visible keyboard focus everywhere (header/footer keep their white ring) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #000;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px #fff;
}

/* Language switch: bigger hit area, clear active state */
.tam27-languages a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 44px;
  padding: 0 4px;
}
.tam27-languages a[aria-current="page"] { font-weight: 700; text-decoration: underline; text-underline-offset: .25em; }

/* Mobile menu: dim the page behind it, lock scroll, readable links */
body.show-menu { overflow: hidden; }
body.show-menu::after {
  content: "";
  position: fixed; inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, .5);
}
.tam27-mobile-lang { display: flex; gap: 8px; padding: 16px 20px 0; }
.tam27-mobile-lang a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px;
  border: 1px solid #000;
  color: #000;
  font: 700 16px/1 var(--tam27-deck);
  text-decoration: none;
}
.tam27-mobile-lang a[aria-current="page"] { background: #000; color: #fff; }
.menu-wrap .tam27-mobile-socials a {
  color: #000;
  font: 400 16px/1 var(--tam27-deck);
  padding: 14px 6px;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.menu-wrap .tam27-mobile-socials a:hover { color: #b72d9e; }

/* Desktop menu: same type and colour as the 2027 header */
.nuevo-menu { font-family: var(--tam27-deck); }
.nuevo-menu .accordion h2 button,
.nuevo-menu .accordion h2 button:hover,
.nuevo-menu .accordion h2 button:focus,
.nuevo-menu .accordion h2 .menu-top-title {
  color: #000;
  font: 700 clamp(22px, 1.6vw, 30px)/1.2 var(--tam27-deck);
  text-decoration: none;
}
.nuevo-menu .accordion h2 button:hover { color: #b72d9e !important; }
.nuevo-menu .accordion h2 .menu-top-title { cursor: default; padding-left: 0; }
.nuevo-menu .accordion h2 .menu-top-title:hover { padding-left: 0; color: #000 !important; }
.nuevo-menu .accordion .card-header { border-bottom: 3px solid #000; }
.nuevo-menu .navContainer nav li > a.level-0 {
  font: 400 clamp(20px, 1.5vw, 28px)/1.4 var(--tam27-deck);
  padding-top: 8px; padding-bottom: 8px;
}
.nuevo-menu .navContainer nav li > a.level-0:hover { background: transparent; color: #b72d9e; }
.layoutMenubtn { line-height: 1; padding: 0 10px; }

/* Footer legibility on the pink/orange gradient */
.tam27-footer-info { font-size: clamp(17px, 1.15vw, 22px); text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.tam27-partner p { font-size: clamp(10px, .65vw, 12px); text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.tam27-footer .newsletter2024 .form-check label { font-size: clamp(13px, .8vw, 15px); }
.tam27-footer .newsletter2024 .form-check label a { color: #fff; text-decoration: underline; }
.tam27-socials a, .tam27-footer-info a { min-height: 32px; }

@media (max-width: 767.98px) {
  .tam27-languages a { min-width: 36px; }
  .tam27-socials a, .tam27-footer-info a { min-height: 44px; display: inline-flex; align-items: center; }
  .tam27-partner p { font-size: 10px; }
  .tam27-footer .newsletter2024 .form-check label { font-size: 13px; }
  /* Full-bleed hero and logo strip on phones */
  #banner-obras > .container-fluid,
  #logos-programas > .container-fluid { padding-left: 0; padding-right: 0; }
}

/* Desktop menu: submenu links match the top level, chevron on items that open one */
.nuevo-menu .navContainer nav ul.levelOne a,
.nuevo-menu .navContainer nav ul ul a {
  font: 400 clamp(20px, 1.5vw, 28px)/1.4 var(--tam27-deck);
  color: #000;
  text-decoration: none;
}
.nuevo-menu .navContainer nav ul.levelOne a:hover { color: #b72d9e; }
.nuevo-menu .level-0.show-arrow,
.nuevo-menu .level-0.drop-menu { display: flex; align-items: center; }
.nuevo-menu .level-0.show-arrow::after,
.nuevo-menu .level-0.drop-menu::after,
.nuevo-menu .level-0.drop-menu:hover::after,
.nuevo-menu .level-0.drop-menu.active::after {
  content: "" !important;
  position: static !important;
  display: inline-block;
  width: .4em; height: .4em;
  margin: 0 0 0 .7em;
  border-right: 3px solid currentColor;
  border-top: 3px solid currentColor;
  transform: rotate(45deg);
  opacity: 1 !important;
  transition: none;
}
.nuevo-menu .level-0.drop-menu.active { color: #b72d9e; }
