/* =========== GLOBAL =========== */
:root {
  --ph: #1E40AF;
  --nav: #ffffff;
  --nav-hover: rgba(255, 255, 255, 0.75);
  --bg: #ffffff;
  --fg: #111111;
  --muted: #6b7280;
  --hover: #4b5563;
  --maxw: 1200px;
  --logo-h: 72px;
  --spacer-top: 96px;
  --col-cover: 320px;
  --nav-size: 14px;
  --line: #e5e5e5;
}

@media (max-width: 860px) {
  :root {
    --spacer-top: 56px;
    --col-cover: 48vw;
  }
}

/* =========== RESET / HTML / BODY =========== */
html {
  overflow-y: scroll; /* siempre muestra la barra vertical */
  overflow-x: hidden;
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  overflow: hidden;  /* evita scroll interno duplicado */
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Especial para home con fondo imagen */
body.index-home {
  background: url('/assets/images/photos/background2.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #fff;
}

body.light {
  background: var(--bg);
  color: var(--fg);
}
body.light .menu a,
body.light .hamb {
  color: var(--fg);
}
body.light .menu a:hover {
  color: var(--hover);
}
body.light #mobileMenu {
  background: #fff;
  border: none;
}
body.light #mobileMenu a {
  color: #111;
  border-bottom: none;
}
body.light .social img {
  filter: none;
}

/* =========== HERO FULLSCREEN CENTERED =========== */
.hero-full {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  height: 100vh;
  padding: 0;
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-section {
  text-align: center;
  color: #fff;
  max-width: 720px;
  margin: 0 auto;
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.hero-section p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
}

/* =========== HEADER =========== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: none;
  transition: transform 0.3s ease-in-out;
}
header.hide-on-scroll {
  transform: translateY(-100%);
}

.bar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-right: 16px;
}
.brand img {
  height: var(--logo-h);
  width: auto;
  display: block;
}

.menu {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}
.menu a {
  color: var(--nav);
  text-decoration: none;
  font-weight: 400;
  font-size: var(--nav-size);
  letter-spacing: 0.01em;
}
.menu a:hover {
  color: var(--nav-hover);
}

.divider {
  opacity: 0.45;
  user-select: none;
}

.hamb {
  position: relative;
  display: none;
  background: none;
  border: none;
  color: var(--nav);
  font-size: 26px;
  line-height: 1;
}
@media (max-width: 860px) {
  .menu {
    display: none;
  }
  .hamb {
    display: inline-block;
    margin-left: auto;
  }
}

/* =========== MOBILE MENU =========== */
#mobileMenu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 100vw;
  max-width: 100vw;
  background: #fff;
  color: #111;
  transform: translateX(100%);
  transition: transform 0.35s ease-out;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
  z-index: 9999;
  overflow: hidden;
}
@media (min-width: 450px) {
  #mobileMenu {
    width: 450px;
    max-width: 450px;
  }
}
body.menu-open {
  height: 100vh;
  overflow-x: hidden;
}
#mobileMenu.open {
  transform: translateX(0);
  overflow-y: auto;
  overflow-x: hidden;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 9998;
}
body.menu-open .menu-overlay {
  opacity: 1;
  visibility: visible;
}

#mobileMenu .menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 32px;
  padding-right: 8px;
  position: relative;
}
#mobileMenu .logo {
  width: 90px;
  height: auto;
  display: block;
  padding-top: 5px;
}
#mobileMenu .close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
#mobileMenu .close-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.3);
}
#mobileMenu .close-btn:hover img {
  filter: grayscale(0%) brightness(0.1);
}

#mobileMenu a {
  font-size: 1.4rem;
  font-weight: 500;
  text-decoration: none;
  color: #111;
  padding: 8px 0;
}
#mobileMenu a.lang[style*="opacity: 0.5"] {
  color: #999 !important;
  pointer-events: none !important;
  cursor: default !important;
}

/* =========== FOOTER / RRSS =========== */
main {
  flex: 1 0 auto;
}
.site-footer {
  flex-shrink: 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
  padding: 24px;
  background-color: transparent;
}
.site-footer .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-top: 18px;
}
.social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
}
.social a {
  display: inline-flex;
  line-height: 0;
  opacity: 0.9;
  transition: opacity 0.15s ease;
  text-decoration: none;
}
.social a:hover {
  opacity: 1;
}
.social img {
  height: 22px;
  width: auto;
  display: block;
}
body.index-home .social img {
  filter: invert(1) brightness(1.2);
}
@media (max-width: 860px) {
  .social {
    gap: 18px;
  }
  .social img {
    height: 20px;
  }
}

/* =========== UTILITY =========== */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--spacer-top) 24px 60px;
  box-sizing: border-box;
}

/* =========== CONCERTS =========== */
.concerts-page {
  min-height: calc(100vh - 100px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem 2rem;
}
.concerts-page .wrap {
  max-width: 800px;
  width: 100%;
  margin-top: 2rem;
  font-family: 'Inter', sans-serif;
}
.list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.info {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 4px;
}
.date {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  letter-spacing: 0.01em;
}
.city,
.venue {
  font-size: 14px;
  font-weight: 400;
  color: var(--fg);
}
.tickets {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
  white-space: nowrap;
}
.tickets:hover {
  color: var(--hover);
}
@media (max-width: 600px) {
  .list .row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    position: relative;
  }
  .tickets {
    position: absolute;
    right: 0;
    top: 0;
  }
}

/* =========== NO SHOWS =========== */
.concerts-empty {
  height: calc(100vh - var(--spacer-top));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  text-align: center;
  box-sizing: border-box;
  overflow: hidden;
}
.concerts-empty .wrap {
  max-width: 720px;
  margin: 0;
}
.concerts-empty h1 {
  margin: 0 0 16px 0;
  font-size: 24px;
  font-weight: 700;
}
.concerts-empty p {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
}
@media (max-height: 500px) {
  .concerts-empty {
    padding-top: 20px;
    padding-bottom: 20px;
  }
}

/* =========== STORE =========== */
.coming-soon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: calc(100vh - var(--spacer-top));
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  max-width: 720px;
  box-sizing: border-box;
  /*overflow: hidden;*/
}
.coming-soon h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}
.coming-soon p {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 32px;
}

/* =========== CONTACT =========== */
.contact-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--spacer-top));
  margin: 0;
  padding: 0 24px;
  text-align: center;
  box-sizing: border-box;
}
.contact-section .wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}
.contact-section h1 {
  margin-top: 0;
  margin-bottom: 24px;
}
.contact-section p {
  font-size: 16px;
  color: var(--fg);
  margin-bottom: 16px;
}
.contact-section p:last-child {
  margin-bottom: 0;
}
.contact-section p a {
  color: var(--fg);
  text-decoration: underline;
}
.contact-section .social {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
}
.contact-section .social img {
  height: 22px;
  width: auto;
  display: block;
}

/* =========== PUBLICATIONS =========== */
.pub-list {
  max-width: 1200px;
  margin: 6rem auto;
  padding: 0 2rem;
  font-family: 'Inter', sans-serif;
}
.pub-item {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4rem;
  margin-bottom: 3rem;
}
.pub-meta {
  flex: 1 1 50%;
}
.pub-cover {
  flex: 1 1 50%;
  display: flex;
  justify-content: flex-end;
  align-self: flex-start;
  margin: 0;
}
.pub-cover img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}
.pub-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-top: 0;
}
.pub-desc {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  text-align: justify;
}
.expand-btn {
  background: none;
  border: none;
  padding: 0;
  font-weight: bold;
  font-size: 1rem;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
}
.expand-btn .arrow {
  width: 1rem;
  transition: transform 0.3s ease;
}
.expand-btn.rotated .arrow {
  transform: rotate(180deg);
}
.extra-content {
  width: 100%;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.4s ease;
  margin-bottom: 3rem;
}
.extra-content.expanded {
  max-height: 5000px;
  opacity: 1;
}
.extra-content h2,
.extra-content h3 {
  margin-top: 2rem;
  font-weight: bold;
}
.extra-content p {
  margin-bottom: 1rem;
  text-align: justify;
  line-height: 1.7;
}
@media (max-width: 860px) {
  .pub-item {
    flex-direction: column;
    align-items: center;
  }
  .pub-meta, .pub-cover {
    width: 100%;
    max-width: 100%;
  }
  .pub-cover {
    order: -1;
    margin-bottom: 1.5rem;
  }
  .expand-btn {
    margin-bottom: 1rem;
  }
}
