* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: #222;
  background: #9bb7d6;
  position: relative;
  padding-top: 110px; /* espacio para header fijo */
}

/* Fondo fijo real, independiente del scroll del contenido */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: #9bb7d6;
  background-image: url("/assets/img/ui/fondo3azul.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}

/* LINKS GENERALES */

a {
  color: #1f3a5f;
  text-decoration: none;
  transition: opacity .2s ease;
}

a:hover {
  opacity: 0.7;
  text-decoration: underline;
}

a:visited {
  color: #1f3a5f;
}

.container {
  width: min(1200px, 90%);
  margin: auto;
}

/* =========================
   HEADER
========================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  padding: 14px 16px;
  pointer-events: none;
}

.site-header .header-left,
.site-header .header-right,
.site-header .menu-toggle {
  pointer-events: auto;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}

.logo {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;
}

.site-logo {
  display: block;
  width: 340px;
  max-width: 70vw;
  height: auto;
  transform: scale(1.7);
  transform-origin: top left;
}

/* LOGO más grande */
.site-header .logo-img img {
  height: 109px !important;
  width: auto !important;
}

@media (max-width: 640px) {
  .site-header .logo-img img {
    height: 70px !important;
  }
}

/* =========================
   NAV GENERAL
========================= */

.main-nav {
  width: auto;
}

.main-nav ul {
  display: flex;
  gap: 1rem;
  list-style: none;
}

.main-nav ul li {
  position: relative;
}

.main-nav a {
  color: #222 !important;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
}

.main-nav a:hover {
  color: #000 !important;
  text-decoration: none;
}

.main-nav a.active {
  color: #fff;
  font-weight: 700;
}

/* =========================
   SUBMENÚ
========================= */

.has-submenu > a::after {
  content: " ▾";
  font-size: 0.8em;
}

.main-nav ul.submenu,
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0;
  margin: 0;
  list-style: none;
  min-width: 160px;
  z-index: 9999;
}

.submenu li a,
.main-nav .submenu a {
  display: block;
  padding: 10px 15px;
  white-space: nowrap;
  background: transparent !important;
  color: #222 !important;
  font-size: 1.05rem;
}

.main-nav li.has-submenu:hover > ul.submenu,
.main-nav li.has-submenu:focus-within > ul.submenu {
  display: block;
}

/* =========================
   LANGUAGE SWITCH
========================= */

.lang-switch {
  margin-left: 140px;
  display: flex;
  gap: .5rem;
  justify-content: center;
  padding-top: .75rem;
}

.lang-switch a {
  color: #888;
  text-decoration: none;
  font-size: .9rem;
}

.lang-switch a.active {
  color: #fff;
  font-weight: 700;
}

.lang-switch.flags {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: flex-start;
  margin-top: 12px;
}

.lang-switch.flags a.lang {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.1;
  gap: 6px;
  opacity: .85;
}

.lang-switch.flags a.lang.active {
  opacity: 1;
}

.lang-switch.flags a.lang img {
  width: 46px;
  height: auto;
  display: block;
}

@media (min-width: 769px) {
  .lang-switch {
    padding-top: 0;
    margin-left: 2rem;
  }

  .main-nav {
    display: flex;
    align-items: center;
    gap: 1rem;

    position: fixed !important;
    top: 140px !important;
    right: 6vw !important;
    left: auto !important;
    transform: none !important;
    width: auto !important;
  }
}

/* =========================
   BOTÓN MENÚ
========================= */

.menu-toggle {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #222;
  cursor: pointer;
  line-height: 1;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {
  body {
    padding-top: 95px;
  }

  .site-header {
    align-items: flex-start;
  }

  .header-inner {
    align-items: flex-start;
  }

  .main-nav {
    display: none;
    position: fixed !important;
    top: 86px !important;
    right: 16px !important;
    left: 16px !important;
    transform: none !important;
    width: auto !important;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 14px;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
    z-index: 1200;
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    text-align: left;
  }

  .main-nav li {
    width: 100%;
  }

  .main-nav a {
    display: block;
    padding: 10px 0;
  }

  .submenu,
  .main-nav ul.submenu {
    position: static;
    display: block;
    min-width: 0;
    margin-left: 12px;
    padding-top: 4px;
  }

  .has-submenu > a::after {
    content: "";
  }

  .menu-toggle {
    display: block;
  }

  .lang-switch {
    margin-left: 0;
    padding-top: .5rem;
    justify-content: flex-start;
  }
}

/* =========================
   FOOTER
========================= */

.site-footer {
  margin-top: 4rem;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: #888;
  border-top: none !important;
  box-shadow: none !important;
}

footer,
.site-footer {
  border-top: none !important;
  box-shadow: none !important;
}

footer hr {
  display: none !important;
}

/* =========================
   TEXTOS
========================= */

.home-text {
  text-align: justify;
  text-justify: inter-word;
}

@media (max-width: 768px) {
  .home-text {
    text-align: left;
  }
}

.longtext {
  text-align: justify;
  hyphens: auto;
}

/* ===============================
   GALERÍAS VISUAL
================================ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(220px,1fr));
  gap: 18px;
  margin-top: 20px;
}

.gallery-thumb {
  width: 100%;
  height: 220px;
  object-fit: cover;
  cursor: pointer;
  transition: transform .25s ease;
}

.gallery-thumb:hover {
  transform: scale(1.04);
}

/* ===== Intro artista ===== */

.artist-intro {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 40px;
}

.artist-intro img {
  width: 50%;
  max-width: 350px;
  height: auto;
}

.artist-intro-text {
  flex: 1;
  text-align: justify;
}

@media (max-width: 768px) {
  .artist-intro {
    flex-direction: column;
  }

  .artist-intro img {
    width: 100%;
    max-width: 280px;
  }
}

.tech-buttons {
  margin: 20px 0 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tech-buttons a {
  text-decoration: none;
  padding: 8px 18px;
  border: 1px solid #222;
  color: #222;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all .25s ease;
}

.tech-buttons a:hover {
  background: #222;
  color: #fff;
}

/* =========================
   MUSIC: sliders
========================= */

.slider {
  position: relative;
  width: 100%;
  margin: 30px 0;
}

.slider-viewport {
  position: relative;
  overflow: hidden;
  background: transparent;
}

.slider-slide {
  width: 100%;
  height: 360px;
  object-fit: contain;
  display: none;
}

.slider-slide.active {
  display: block;
}

.slider.is-top .slider-slide {
  height: 720px;
}

@media (max-width: 900px) {
  .slider-slide {
    height: 260px;
  }

  .slider.is-top .slider-slide {
    height: 520px;
  }
}

.slider button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.5);
  border: none;
  color: white;
  font-size: 22px;
  padding: 8px 12px;
  cursor: pointer;
  z-index: 5;
}

.slider-prev {
  left: 10px;
}

.slider-next {
  right: 10px;
}

.slider button:hover {
  background: rgba(0,0,0,.8);
}

.slider-dots {
  display: none !important;
}

/* =========================
   MUSIC: track info
========================= */

.track summary {
  cursor: pointer;
  padding: .45rem .6rem;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 10px;
  list-style: none;
}

.track summary::-webkit-details-marker {
  display: none;
}

.track[open] summary {
  border-color: rgba(255,255,255,.6);
}

.track-info {
  margin: 10px 0 12px;
  padding: .6rem .7rem;
  border-left: 3px solid rgba(255,255,255,.35);
  background: rgba(0,0,0,.18);
  border-radius: 10px;
}

.track-info p {
  margin: 0;
}

/* =========================
   MUSIC: YouTube embed
========================= */

.yt {
  margin-top: 12px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0,0,0,.2);
}

.yt iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
}

/* =========================
   ENVIVO — botones navegación
========================= */

.music-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.music-jump a {
  padding: 8px 14px;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(4px);
  color: #fff !important;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all .25s ease;
}

.music-jump a:hover {
  background: rgba(0,0,0,0.65);
  transform: translateY(-1px);
}

/* =========================
   BLOG LAYOUT
========================= */

.blog-layout {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}

.blog-side {
  flex: 0 0 auto;
}

.blog-side img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.blog-list {
  flex: 1;
  max-width: 900px;
}

@media (max-width: 900px) {
  .blog-layout {
    flex-direction: column;
  }

  .blog-side {
    display: none;
  }
}