/* ============================================================
   PopUp CMS — GALANA EPK Theme
   Sephardic jazz · vintage glamour · mobile-first
   ============================================================ */

/* ----- Self-hosted fonts (OFL via @fontsource) are at /assets/fonts/popup-fonts.css----- */


/* ----- CSS Variables: Dark Mode (EPK default — intimate jazz-club mood) ----- */
:root,
:root[data-force-color-mode="dark"] {
  --c-text:           #F2F2F2;
  --c-bg:             #000000dd;
  --c-surface:        #17121D;
  --c-surface-2:      #1F1828;
  --c-link:           #BBBBFF;
  --c-title:          #E8DFD0;
  --c-accent:         #BBBBFF;
  --c-accent-soft:    #BBBBFF;
  --c-gold:           #BBBBFF;
  --c-muted:          #BBBBFF;
  --c-instruments:    #78b4a0;
  --c-border:         #BBBBFF;
  --c-border-strong:  #BBBBFF;
  --header-bg:        #000000;
  --header-border:    #BBBBFF;
  --menu-bg:          #00000000;
  --menu-border:      #BBBBFF;
  --menu-sub-bg:      #000000;
  --menu-sub-border:  #BBBBFF;
  --menu-arrow-color: #0088cc;
  --toggle-color:     #eeffee;
  --card-portrait-bg: #1F1828;
  --shadow-card:      0 10px 40px rgba(0,0,0,0.45);
  --c-bg-veil:        rgba(0, 0, 0, 0.86);
}

/* ----- CSS Variables: Light Mode (warm parchment — Sephardic manuscript) ----- */
:root[data-force-color-mode="light"] {
  --c-text:           #2A1F1A;
  --c-bg:             #ffffff;
  --c-surface:        #ffffff;
  --c-surface-2:      #ffffff;
  --c-link:           #8B1A1A;
  --c-title:          #2A1F1A;
  --c-accent:         #8B1A1A;
  --c-accent-soft:    #A52A2A;
  --c-gold:           #A87C2C;
  --c-muted:          #7A6A5A;
  --c-instruments:    #78b4a0;
  --c-border:         rgba(168, 124, 44, 0.22);
  --c-border-strong:  rgba(139, 26, 26, 0.30);
  --header-bg:        #ffffff;
  --header-border:    rgba(168, 124, 44, 0.20);
  --menu-bg:          #FFFFFF;
  --menu-border:      rgba(139, 26, 26, 0.20);
  --menu-sub-bg:      #FFFFFF;
  --menu-sub-border:  rgba(168, 124, 44, 0.14);
  --menu-arrow-color: #8B1A1A;
  --toggle-color:     #8B1A1A;
  --card-portrait-bg: #F0E6D2;
  --shadow-card:      0 8px 28px rgba(139, 26, 26, 0.10);
  --c-bg-veil:        rgba(255, 255, 255, 0.9);
}

/* ----- Icon Base ----- */
.popup-icon {
  /*--popup-icon-url: none;*/
  --popup-icon-color: var(--c-icons);
  display: inline-flex;
  flex-shrink: 0;
  width: 1em;
  height: 1em;
  background-color: var(--popup-icon-color);
  mask-image: var(--popup-icon-url);
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-image: var(--popup-icon-url);
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  vertical-align: middle;
}


/* ----- Base ----- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background-color: #000;
}

/* ----- Cover background (the company photo from the old WP site) -------
   Fixed layer under everything (njra-layout trick): the opaque article
   column rides over it, the photo shows in the side gutters and fills the
   article's 100vh bottom margin — the reveal you get by scrolling to the
   end of any page. Hardcoded /deploy/barataria/ path: CSS files are not
   compile-substituted (deploy-stage.sh rewrites it for the deploy). */
html::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -100000;
  background: #000 url("/deploy/barataria/media/grupoOpt.jpg") no-repeat center center;
  background-size: cover;
}
header,nav,article{background: var(--header-bg);
  padding-left:1rem;
  padding-right:1rem;}
body {
  font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
  margin: 0;
  padding: 0;
  background-color: transparent;
  color: var(--c-text);
  line-height: 1.7;
  font-size: 18px;
  transition: color 0.4s ease;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.005em;
}

a {
  color: var(--c-link);
  text-decoration: none;
  transition: color 0.2s;
}
/*a:hover {   }*/
/*text-decoration: underline;text-underline-offset: 3px;*/

/*
Might consider this for almost all links (not menu, not images...)
a::after {
    content: "";
    width: 5px;
    height: 5px;
    margin-top: -2.5px;
    margin-left: 5px;
    border-radius: 50%;
    background: #c9c4b4;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.25);
    transition: background 0.25s ease, box-shadow 0.25s ease;
  	display: none;
}
a:hover:after {
  	display: inline-flex;
    background: #ffb64d;
    box-shadow: 0 0 6px 1px rgba(255,182,77,.75);
}*/




p { margin: 0 0 1.1em; }

.valignM {vertical-align: middle;}

/* ----- Layout container ----- */
.site-container {
  /*max-width: 1100px;*/
  /*max-width:80%;*/
  margin: 0 auto;
  padding: 0 12px;
}
@media (min-width: 680px) {
  .site-container {
    max-width:80%;
  }
}







/* ----- Site header / brand ----- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 18px;
  /*border-bottom: 1px solid var(--header-border);*/
  background: var(--header-bg);
  position: relative;
  transition: background-color 0.4s, border-color 0.4s;
  z-index:700;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--c-title);
}
.brand img {
  /*width: 46px;
  height: 46px;*/
  display: block;
  filter: drop-shadow(0 0 6px rgba(178, 58, 72, 0.25));
}
.brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
  line-height: 1;
}
.brand-tag {
  display: block;
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--c-muted);
  text-transform: none;
  margin-top: 2px;
}
/* Barataria wordmark (compiled shell markup — styles live in the base layer
   so they survive front-end theme switches) */
.brand-wordmark {
  font-family: 'ColabThi-webfont', Georgia, serif;
  font-size: 30px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-title);
  line-height: 1;
}
.brand-wordmark em {
  font-style: normal;
  color: var(--c-accent);
}
@media (max-width: 640px) {
  .brand-wordmark { font-size: 21px; letter-spacing: 0.1em; }
  .brand img { height: 46px !important; }
}

/* ----- Barataria content blocks (base layer: styled identically under every
   theme — persona site.css copies never define these selectors) ----- */
.hero {
  text-align: center;
  padding: 42px 0 30px;
}
.hero-kicker {
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin: 0 0 14px;
}
.hero h1 {
  font-size: clamp(36px, 7vw, 68px);
  line-height: 1.05;
  margin: 0 0 18px;
  color: var(--c-title);
}
.hero-lead {
  max-width: 620px;
  margin: 0 auto 24px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--c-text);
}
.hero-cta a {
  display: inline-block;
  margin: 0 10px;
  padding: 10px 22px;
  border: 1px solid var(--c-border-strong);
  border-radius: 999px;
  text-decoration: none;
  color: var(--c-text);
  transition: border-color .2s, color .2s, transform .2s;
}
.hero-cta a:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
  transform: translateY(-1px);
}

.event-kicker {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin: 34px 0 6px;
}
.event-date-line {
  color: var(--c-muted);
  font-style: italic;
  margin: 4px 0 22px;
}
.event-hero { margin: 0 0 26px; }
.event-hero img {
  max-width: min(440px, 100%);
  display: block;
  border-radius: 6px;
  box-shadow: var(--shadow-card);
}
.event-back {
  display: inline-block;
  margin-top: 30px;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--c-muted);
  text-decoration: none;
  border-bottom: 1px dotted var(--c-border-strong);
}
.event-back:hover { color: var(--c-accent); }





/* ----- Footer ----- */
/*footer {
  padding: 28px 0 36px;
  border-top: 1px solid var(--c-border);
  color: var(--c-muted);
  font-size: 1rem;
  text-align:center;
  transition: border-color 0.4s;
}*/
footer {
  padding: 28px 0 36px;
  border-top: 1px dotted var(--c-border);
  color: var(--c-text);
  font-size: 1rem;
  display: flex;
  flex-direction:column;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.4rem;
  padding: 1.5rem 1rem;
  font-size: 1rem;
  z-index:100;
  /* The footer sits after the article's 100vh photo reveal, directly on
     the cover image — a translucent veil keeps it readable without hiding
     the photo completely. */
  background: var(--c-bg-veil);
}

footer > imprint{ display:flex; flex-direction:column-reverse;
  align-items: center;
  justify-content: center;}

youtube a,
instagram a {
  display: flex;
}

contact a,contact a:hover {
  text-decoration: none;
}
footer a { color: var(--c-text); }
footer .popup-icon{height:1.2rem;width:1.2rem;}

.popup-icon--youtube {
  --popup-icon-url: url('/deploy/barataria/media/icons/youtube-line.svg');
  --popup-icon-color:var(--c-text);
  display: inline-block;
  /*--popup-icon-color:#729fcfff;*/
}

.popup-icon--instagram {
  --popup-icon-url: url('/deploy/barataria/media/icons/instagram-line.svg');
  --popup-icon-color:var(--c-text);
  display: inline-block;
  /*--popup-icon-color:#729fcfff;*/
}

.popup-icon--facebook {
  --popup-icon-url: url('/deploy/barataria/media/icons/facebook-line.svg');
  --popup-icon-color:var(--c-text);
  display: inline-block;
}


@media (min-width: 480px) {
  footer {
    flex-direction:row;
	}
  footer > :not(:first-child)::before {content:'-';
  padding:0 1rem 0 0;}
  footer >* ,footer>imprint{ display:flex; flex-direction:row;
  align-items: center;
  justify-content: center;}
}



/* ----- Content ----------------------------------------------------------------------- */
article {
  position: relative;
  padding-left:1rem;
  padding-right:1rem;
  min-height: 50vh;
  overflow: hidden;
  z-index:500;
  /* The opaque shell of the site: a column riding over the fixed cover
     photo (visible in the side gutters). The 100vh bottom margin is the
     reveal: scrolling past the content uncovers the photo full width
     before the footer. */
  background: var(--c-bg);
  margin-bottom: 100vh;
}

/* Home: the shell starts pushed above the viewport so the cover photo is
   the first thing you see; after a couple of seconds it slides down from
   the top and covers the photo. */
@keyframes article-slide-from-top {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}
body.home article {
  animation: article-slide-from-top 1.2s cubic-bezier(0.4, 0, 0.2, 1) 2s both;
}

/* ----- Cover loader (juggler balls) --------------------------------------------------
   Shown only when the cover photo is slow (the inline script in view_main
   flips the classes); three balls cascade over the black backdrop. */
.bg-loader {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  background: #000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.bg-loader.bg-loader--show { opacity: 1; visibility: visible; }
.bg-loader.bg-loader--done { opacity: 0; visibility: hidden; pointer-events: none; transition-duration: 0.6s; }

.bg-loader-balls {
  position: relative;
  width: 130px;
  height: 92px;
}
.bg-loader-balls span {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  border-radius: 50%;
  animation: juggle 1.35s linear infinite;
}
.bg-loader-balls span:nth-child(1) { background: var(--c-accent); }
.bg-loader-balls span:nth-child(2) { background: var(--c-gold); animation-delay: -0.45s; }
.bg-loader-balls span:nth-child(3) { background: var(--c-title); animation-delay: -0.9s; }

/* One ball: lobbed from the left hand to the right, then skipped back
   along the ground to close the loop. The three spans share it, offset by
   -0.45s each, so at any moment one is flying and two are low. */
@keyframes juggle {
  0%   { transform: translate(-40px, 0) scale(1); }
  30%  { transform: translate(0, -58px) scale(1.06); }
  60%  { transform: translate(40px, 0) scale(1); }
  62%  { transform: translate(40px, 0) scale(1, 0.82); }
  100% { transform: translate(-40px, 0) scale(1); }
}

.bg-loader-word {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--c-title);
}

@media (prefers-reduced-motion: reduce) {
  body.home article { animation: none; }
  .bg-loader-balls span { animation: none; transform: none; }
  .bg-loader-balls span:nth-child(1) { transform: translateX(-38px); }
  .bg-loader-balls span:nth-child(2) { transform: translateY(4px); }
  .bg-loader-balls span:nth-child(3) { transform: translateX(38px); }
}

article::after {
  content: "";
  display: table;
  clear: both;
}
article h1 {
  color: var(--c-title);
  font-size: clamp(2rem, 6vw, 3.2rem);
  margin: 0.2em 0 0.5em;
}
article h2 {
  color: var(--c-title);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 1.6em 0 0.5em;
  position: relative;
}
article h3 {
  color: var(--c-accent);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  margin: 1.4em 0 0.4em;
}
article img {
  max-width: 100%;
  height: auto;
}
article code {
  background: var(--c-border);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
  font-family: 'Courier New', monospace;
}




/* ----- Hero (home opening) ----- */
.hero {
  position: relative;
  overflow: hidden;
}
.hero img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 78vh;
  object-fit: cover;
}
.hero-caption {
  position: relative;
  text-align: center;
  padding: 28px 20px 8px;
  background: var(--c-bg);
}
.hero-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.3rem, 4vw, 1.9rem);
  color: var(--c-title);
  margin: 0;
  letter-spacing: 0.02em;
}
.hero-kicker {
  font-family: 'EB Garamond', serif;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 11px;
  color: var(--c-gold);
  margin-bottom: 14px;
}
/* Lead paragraph (italic, larger) */
.lead {
  font-size: 1.18rem;
  /*font-style: italic;*/
  color: var(--c-text);
  margin-bottom: 1.4em;
  max-width: 60ch;
}


/* ================================================================
   THEME TOGGLE BUTTON (sun / moon)
   ================================================================ */

.switchModeButton {
  position: relative;
  /*top:12px;*/
  right:-12px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: none;
  border: 1px solid var(--c-border);
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: border-color 0.3s, color 0.3s;
}
.switchModeButton:hover { border-color: var(--toggle-color); }

/* Sun */
.switchSun {
  width: 50%;
  height: 50%;
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.6) rotate(0deg);
  transition: transform 0.3s ease-in, opacity 0.2s ease-in 0.1s;
  background: radial-gradient(circle, rgba(0,0,0,0) 50%, var(--toggle-color) 50%);
}
.switchSun::before {
  content: "";
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, var(--toggle-color) 30%, rgba(0,0,0,0) 30%,
    rgba(0,0,0,0) 50%, var(--toggle-color) 50%);
  transform: rotate(45deg);
}
:root[data-force-color-mode="light"] .switchSun {
  pointer-events: auto;
  opacity: 1;
  transform: scale(1) rotate(180deg);
}

/* Moon */
.switchMoon {
  width: 50%;
  height: 50%;
  pointer-events: none;
  position: absolute;
  left: 12.5%;
  top: 18.75%;
  background-color: transparent;
  border-radius: 50%;
  box-shadow: 9px 3px 0 0 var(--toggle-color);
  opacity: 0;
  transform: scale(0.3) rotate(65deg);
  transition: transform 0.3s ease-in, opacity 0.2s ease-in 0.1s;
}
:root[data-force-color-mode="dark"] .switchMoon {
  pointer-events: auto;
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* Stars */
.switchStar {
  position: absolute;
  top: 25%;
  left: 5%;
  display: block;
  width: 0;
  height: 0;
  border-right: 7px solid transparent;
  border-bottom: 5px solid var(--toggle-color);
  border-left: 7px solid transparent;
  transform: scale(0.55) rotate(35deg);
  opacity: 0;
  transition: all 0.2s ease-in 0.4s;
}
.switchStar::before {
  border-bottom: 5px solid var(--toggle-color);
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  position: absolute;
  height: 0;
  width: 0;
  top: -3px;
  left: -5px;
  display: block;
  content: "";
  transform: rotate(-35deg);
}
.switchStar::after {
  position: absolute;
  display: block;
  top: 0;
  left: -7px;
  width: 0;
  height: 0;
  border-right: 7px solid transparent;
  border-bottom: 5px solid var(--toggle-color);
  border-left: 7px solid transparent;
  transform: rotate(-70deg);
  content: "";
}
:root[data-force-color-mode="dark"] .switchMoon .switchStar { opacity: 0.8; }

.switchStar.small {
  transform: scale(0.35) rotate(35deg);
  position: relative;
  top: 50%;
  left: 37.5%;
  opacity: 0;
  transition: all 0.2s ease-in 0.45s;
}
:root[data-force-color-mode="dark"] .switchMoon .switchStar.small {
  opacity: 0.7;
  transform: scale(0.45) rotate(35deg);
}










/* ================================================================
   RESPONSIVE MENU — CSS checkbox trick + grid submenus
   ================================================================ */

/* Hide the real checkbox */
#show-menu-input-checkbox { display: none; }

/* Hamburger toggler — fixed top-right on mobile so it's visible & expected.
   Kept as a sibling of .mainMenu so the :checked ~ selector still works. */
#main-menu-toggler {
  width: 24px;
  height: 24px;
  position: absolute;
  /*top: -30px;*/
  right: 9px;
  /*padding: 14px 10px;*/
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1010;
}
#main-menu-toggler-icon {
  filter: drop-shadow(0 0 2px var(--header-bg));
}

/* Three-line hamburger icon */
#main-menu-toggler-icon, #main-menu-toggler-icon::before,
#main-menu-toggler-icon::after{
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--c-muted);
  transition: all 0.3s;
  border-radius: 2px;
}
#main-menu-toggler-icon {
  position: relative;
}
#main-menu-toggler-icon::before,
#main-menu-toggler-icon::after {
  content: "";
  position: absolute;
  left: 0;
}
#main-menu-toggler-icon::before { top: -7px; }
#main-menu-toggler-icon::after  { top: 7px; }

/* Animate to X when checked */
#show-menu-input-checkbox:checked ~ #main-menu-toggler > #main-menu-toggler-icon {
  background-color: transparent;
}
#show-menu-input-checkbox:checked ~ #main-menu-toggler > #main-menu-toggler-icon::before {
  transform: rotate(45deg) translate(4px, 3px);/*(5px, 2px*/
}
#show-menu-input-checkbox:checked ~ #main-menu-toggler > #main-menu-toggler-icon::after {
  transform: rotate(-45deg) translate(6px, -7px);/*7px, -5px*/
}

/* ----- Menu list reset (scoped to .mainMenu) ----- */
.mainMenu,
.mainMenu ul,
.mainMenu li {
  list-style: none;
  margin: 0;
  padding: 0;
}
nav { position: relative;margin-top:0;
  z-index: 1000;}

/* ----- Main menu container — hidden by default on mobile ----- */
.mainMenu {
  display: none;
  z-index: 1000;
  position: relative;
  background: var(--menu-bg);
  transition: background-color 0.4s;
  border:1px dotted rgba(255,255,255,.2);
}

/* Show on mobile when checkbox is checked */
@media only screen and (max-width: 1279px) {
  #show-menu-input-checkbox:checked ~ .mainMenu {
    display: block;
  }
}

/* ----- Menu links ----- */
.mainMenu a {
  color: var(--c-text);
  display: flex;
  align-items: center;
  padding: 0.85rem 1rem;
  /*border-bottom: 1px dotted var(--menu-border);*/
  text-decoration: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  transition: background-color 0.2s, color 0.2s;
}
.mainMenu a:hover {
  /*background: var(--menu-sub-bg);color: var(--c-accent);*/
  
  text-decoration: none;
}
.mainMenu > li > a { white-space: nowrap; }
.mainMenu li { position: relative; }

/* ----- Down-arrow indicator for items with submenus ----- */
.mainMenu li.has-sub-menu > a::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 8px;
  /*border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--menu-arrow-color);*/
  transition: transform 0.3s, border-color 0.3s;
}
.mainMenu li.has-sub-menu.sub-menu-open > a::after {
  transform: rotate(180deg);
}

/* ----- Submenu: grid transition for smooth open/close ----- */
.mainMenu li > div {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease;
}
.mainMenu li > div.sub-menu-open {
  grid-template-rows: 1fr;
}
.mainMenu li > div > ul {
  overflow: hidden;
}

/* ----- Submenu links (mobile) ----- */
@media only screen and (max-width: 1279px) {
  .mainMenu li > div > ul > li > a {
    padding: 0.6rem 1rem 0.6rem 2rem;
    background: var(--menu-sub-bg);
    border-bottom-color: var(--menu-sub-border);
    font-size: 0.95em;
  }
  /* 3rd level: extra indent */
  .mainMenu li > div > ul > li > div > ul > li > a {
    padding: 0.5rem 1rem 0.5rem 3rem;
    font-size: 0.9em;
  }
  .mainMenu a {padding: 0.85rem 0;}
  /* Move the dark-mode toggle left on mobile so it doesn't collide with the
     fixed hamburger at the top-right corner. */
  /*.switchModeButton {
    margin-right: 56px;
  }*/
}




/* ----- Desktop: horizontal bar with dropdown submenus ----- */
@media only screen and (min-width: 1280px) {
  .mainMenu {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    margin-top: 10px;
    /*border-bottom: 1px solid var(--menu-border);*/
  }

  .mainMenu a {
    border-bottom: none;
    padding: 0.7rem 1.4rem;
  }

  /* All dropdown levels: hidden by default, shown on hover */
  .mainMenu li > div {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--menu-bg);
    /*border: 1px solid var(--menu-border);*/
    border-radius: 0 0 6px 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    z-index: 1001;
    animation: popupDropIn 0.15s ease-out;
  }
  .mainMenu li:hover > div {
    display: block;
  }

  /* Allow nested submenus to overflow their parent <ul> */
  .mainMenu li > div > ul {
    overflow: visible;
  }

  .mainMenu li > div > ul > li > a {
    border-bottom: 1px dotted var(--menu-sub-border);
    padding: 0.6rem 1rem;
  }
  .mainMenu li > div > ul > li:last-child > a {
    border-bottom: none;
  }

  /* Hover bridge — prevents dropdown from closing during diagonal mouse movement */
  .mainMenu li > div::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
  }

  /* 3rd level (and deeper): fly out to the right */
  .mainMenu li > div > ul > li > div {
    top: 0;
    left: 100%;
    border-radius: 0 6px 6px 0;
    z-index: 1002;
  }
  .mainMenu li > div > ul > li > div::before {
    top: 0;
    left: -10px;
    right: auto;
    bottom: 0;
    width: 10px;
    height: auto;
  }

  /* Hide hamburger on desktop */
  #main-menu-toggler {
    display: none;
  }
}

@keyframes popupDropIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ----- no-js fallback ----- */
html.no-js .mainMenu {
  display: block;
}


/* ------ BKg experiment (superseded 2026-09-26 by the cover photo reveal:
   the fixed grupoOpt.jpg layer + the article's 100vh bottom margin now do
   what the olive-branch bottom image and the 380px footer padding tried to
   do. media/olive-branch-bkg.png kept in media/ for a future use.) ------ */


.flex-row{display:flex; flex-flow:row wrap;}

.flex-justify-space-around{
  justify-content:space-around;
}

.flex-wrap{flex-wrap:wrap;}