:root {
  --bg: #DDD8D5;
  --text: #2B2725;
  --footer-bg: #252D23;
  --link-color: #FFFFFF;
  --font-default: helvetica, sans-serif;
  --font-titles: "Syncopate", sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-default);
  background-color: var(--bg);
  color: var(--text);
  height: 100%;
  display: flex;
  flex-direction: column;
}

p{
  line-height: 1.4;
}

img{
  max-width: 100%;
}

h1{
  text-transform: uppercase;
}

h1{
  font-size: 48px;
  @media (width < 768px){
    font-size: 36px;
  }
}

h1, h2, h3, h4, h5, h6, button{
  font-family: var(--font-titles);
}

button{
  text-transform: uppercase;
}

main {
  flex: 1;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  background: none;
  /* backdrop-filter: blur(8px); */
}



.logo {
  font-size: 28px;
  font-weight: bold;
  color: white;
}

.cta{
  text-decoration: none;
  font-family: var(--font-titles);
  background-color: transparent;
  color: white;
  border: solid 1px white;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 300ms, color 300ms, border 300ms;
  &:hover{
    background-color: rgba(255, 255, 255, 0.65);
    color: black;
    border-color: transparent;
  }
}

.navbar a {
  color: white;
  text-decoration: none;
  margin-left: 20px;
  font-weight: bold;
}

.dark-header .navbar a {
  color: white !important;
  img{
    filter: invert(10) drop-shadow(0 0 0.2px black);
    mix-blend-mode: difference;
    background-blend-mode: difference;
  }
}

.dark-header .logo {
  color: white !important;
}

.hero-section {
  height: 100dvh;
  background-image: url('../assets/images/hero.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
	opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1.0s ease-out forwards;
  p{
    padding-left: 15px;
    padding-right: 15px;
  }
}

.hero-options{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 0 15px;
  margin-top: 30px;
  @media (width < 540px){
    grid-template-columns: 1fr;
    flex-direction: column;
  }
}

.hero-section h1 {
	opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1.0s ease-out forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* filtro oscuro */
  z-index: 1;
}

.hero-section * {
  position: relative;
  z-index: 2;
}

.hero-section h1 {
  font-size: 62px;
  margin-bottom: 10px;
  color: white;
}

.hero-section p {
  font-size: 22px;
  color: white;
  letter-spacing: 1px;
  font-family: var(--font-titles);
}

.artist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0;
  width: 80%;
  margin: auto;
  @media (width < 768px){
    grid-template-columns: repeat(2, 1fr);
    margin: 0 15px;
    width: auto;
  }
}

.artist-card {
  position: relative;
  overflow: hidden;
}

.artist-card img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.artist-card{
  &::after {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0,0,0,0.6);
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 12px;
    font-family: var(--font-titles);
    content: attr(data-name);
  }
  
  @media (width > 1024px){
    &::after {
      font-size: 18px;
      display: none;
    }
    &:hover{
      &::after {
        display: block !important;
      }
    }
  }
}

/* artist page template */

.artist-hero {
  background-size: cover;
  background-position: center;
  position: relative;
  height: 80vh;
  display: flex;
  align-items: flex-end;
  padding: 40px;
  color: white;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
  a{
    display: flex;
    justify-content: center;
    gap: 5px;
    align-items: center;
    padding: 15px;
    text-transform: uppercase;
    color: white;
    background-color: #00000087;
    text-decoration: none;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    line-height: 1;
    font-family: var(--font-titles);
    transition: background 300ms;
    &::after{
      content: "";
      width: 10px;
      height: 10px;
      position: rel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QuMTk0LDE1LjE4LDBsODEuOTM0LDgxLjkzNCBjNC4xOTQsNC4xOTQsNC4xOTQsMTAuOTg3LDAsMTUuMTc1bC04MS45MzQsODEuOTM5QzU3LjIwMSwxODQuMjkzLDU0LjQ1NCwxODUuMzQzLDUxLjcwNywxODUuMzQzeiIvPiA8L2c+IDwvZz4gPC9nPgoNPC9zdmc+);
      background-position: center;
      background-repeat: no-repeat;
      background-size: cover;
      display: block;
      animation: hoverito 500ms infinite alternate linear paused;
      @media (width < 1024px){
          animation-play-state: running;
      }
    }
    &:hover{
      background-color: #000000ae;
      &::after{
        animation-play-state: running;
      }
    }
  }
}

@keyframes hoverito {
  0%{
    translate: 5px 0;
  }
  100%{
    translate: 0 0;
  }
}


.artist-content {
  max-width: 1000px;
  margin: auto;
  padding: 40px;

  @media (width < 768px){
    padding: 10px 15px;
  }

  

  iframe {
    width: 100%;
    height: 100%; /* 400px; */
    position: absolute;
    margin-bottom: 40px;
  }
}
.artist-meta {
  font-size: 14px;
  text-transform: uppercase;
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.artist-bio {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 40px;
}
.artist-links a {
  margin-right: 15px;
  text-decoration: none;
  font-weight: bold;
  color: #2B2725;
}
.artist-buttons a {
  display: inline-block;
  background-color: #252D23;
  color: white;
  padding: 12px 20px;
  margin-right: 10px;
  text-decoration: none;
}
.artist-gallery {
  display: flex;
  gap: 10px;
  margin: 40px 0;
}
.artist-gallery img {
  width: 33.3%;
  object-fit: cover;
}

/* ==================== */

.about-section p {
  margin-bottom: 100px;
}

.about-section, .contact-section {
  width: 50%;
  margin: auto;
  padding: 180px 0;
  @media (width < 1024px){
    width: 80%;
  }
  @media (width < 768px) {
    width: auto;
    padding: 80px 15px;
  }
}

.contact-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-start;
  @media (width < 768px) {
    align-items: stretch;
    flex-direction: column;
  }
}

.contact-info {
  font-size: 16px;
  line-height: 2;
  letter-spacing: 1px;
}

.full-contact {
	  padding: 10px 0;
}

.contact-section h1 {
  font-weight: bold;
  text-align: left;
}

form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

input, textarea {
  background: white;
  border: none;
  padding: 15px;
  font-size: 16px;
}

button {
  background: var(--footer-bg);
  color: white;
  padding: 15px;
  border: none;
  font-weight: bold;
  cursor: pointer;
}

footer {
  background-color: var(--footer-bg);
  color: var(--link-color);
  display: flex;
  justify-content: space-between;
  padding: 80px 60px 40px 60px;
  flex-wrap: wrap;
  @media (width < 768px){
    padding: 30px 15px;
    text-align: center;
    flex-direction: column;
    div + div {
      margin-top: 10px;
    }
  }
}

footer a {
  color: var(--link-color);
  text-decoration: none;
  margin-right: 15px;
}

footer .built {
  width: 100%;
  text-align: right;
  color: rgba(255,255,255,0.3);
  margin-top: 20px;
  font-size: 12px;
  margin-right: 15px;
  letter-spacing: 2px;
  @media (width < 768px){
    text-align: center;
    margin-right: 0;
  }
}


.gallery-section {
  padding: 140px 0 80px;
  @media (width < 768px){
    padding: 60px 0 80px;
  }
}


.artist-grid img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}


.nav-links {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
  align-items: center;
}


.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  padding: 0 60px;
  height: 80px;
  @media (width < 1024px){
    padding: 0 15px;
    height: 60px;
  }
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;

  a{
    text-transform: uppercase;
    font-family: var(--font-titles);
  }

  @media (width < 1024px){
    /*display: flex; /* Mantiene flexbox para alinear los elementos */
    flex-direction: column;
    position: absolute;
    top: 60px; /* Posiciona el menú debajo del header */
    right: 10px;
    width: 150px;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateX(110%);
    opacity: 0;
    transition: all 0.4s ease-in-out;
    pointer-events: none;
    a{
      margin-left: 0;
    }
    &.active {
      transform: translateX(0);
      opacity: 1;
      pointer-events: initial;
      a{
        color: var(--text) !important;
      }
    }
  }
}


.logo {
  color: black !important;
  max-width: 200px;
  white-space: nowrap;
  margin: 0 !important;
}

.navbar{
  a {
    color: black;
  }
  .burger-button {
    display: none;
    /* filter: drop-shadow(0 0 2px #00000070); */
    @media (width < 1024px) {
      margin: 0;
      display: block;
      background: none;
      border: none;
      padding: 0;
      cursor: pointer;
      z-index: 1001; /* Asegura que esté encima del menú */

      /* */
      &.active{
        .burger-line:nth-child(1) {
          transform: translateY(8px) rotate(45deg);
        }
        .burger-line:nth-child(2) {
          opacity: 0; /* La línea del medio se oculta */
        }
        .burger-line:nth-child(3) {
          transform: translateY(-8px) rotate(-45deg);
        }
      }


      /* */
    }
    .burger-line {
      display: block;
      width: 25px;
      border-radius: 4px;
      height: 3px;
      background-color: var(--text);
      margin: 5px 0;
      transition: all 0.3s ease;
    }
    /**/
  }

}

.home-page .navbar .burger-button .burger-line,
.dark-header .navbar .burger-button .burger-line{
  background-color: #fff;
}



.gallery-section h1 {
  color: black !important;
}
/* Solo en index.html: logo y navbar blancos */
.home-page .logo {
  color: white !important;
}

.home-page .navbar a {
  color: white;
}

.about-page .logo {
  color: white !important;
}

.about-page .navbar a {
  color: white !important;
}
/* Estilos para logo en hero */
.hero-logo {
  margin-bottom: 10px;
}
.hero-logo img {
  /* max-width: 300px; */
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Estilo para que el splash cubra toda la pantalla */
#splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 1s ease, visibility 1s ease;
  img{
    filter: invert(10);
    animation: palpi 1s infinite ease-in-out alternate both;
  }
}

@keyframes palpi {
  0%{
    scale: 0.7;
  }
  100%{
    scale: 0.8;
  }
}
#splash.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
/* Opcional: quita scroll mientras está el splash */
body.loading {
  overflow: hidden;
}
body.loaded {
  overflow: auto;
}
