:root {
  --primary-green: #265C2C;
  --primary-pink: #C9137E;
  --neutral-light: #F6F4F0;
  --soft-green: #A5C7B3;
  --soft-pink: #eca2c6;
  --dark-text: #2D2D2D;
  --soft-gray: #DADAD9;
  --soft-pink-transparent: #eca2c6fb;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  max-width: 100vw;
  background: #F6F4F0;
  /* Supporting Neutral */
  color: #2D2D2D;
  /* Dark Neutral for text */
  font-family: 'Montserrat', sans-serif;

}


.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 0.5rem 1rem;
  width: 100%;
  background: var(--neutral-light);
  border-bottom: 1px solid var(--soft-gray);
  color: #F6F4F0;
  min-width: 0;
  box-sizing: border-box;
}

.logo-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
}

.logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.cont-title {
  flex: 1;
  text-align: center;
}

.site-title {
  flex: 1;
  text-align: center;
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 12px;
  margin-left: -48px;
  color: var(--primary-green);
}


nav {
  position: sticky;
  top: 20px;
  z-index: 1000;
  /* Para que quede por encima de otros elementos */
}

nav.scrolled {
  background-color: var(--soft-pink-transparent);
  height: 60px;
  align-content: center;
  border-radius: 10px;
}

nav.scrolled li a{

  color: var(--neutral-light);
}

.nav-links {
  margin-top: 5px;
  list-style: none;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.nav-links li a {
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.2s;
  color: var(--dark-text);
  padding-right: 20px;
  border-right: 1px solid var(--primary-pink);

}

.nav-links li a:hover {
  color: var(--primary-pink);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  cursor: pointer;
  z-index: 1001;
  margin-left: auto;
}

.bar {
  width: 28px;
  height: 3px;
  background: var(--dark-text);
  border-radius: 2px;
  margin: 3px 0;
  transition: all 0.3s;
}

.subTitles {
  margin-top: 5px;
  margin-left: 15px;
  color: var(--primary-green);
}

/* Responsive styles */
@media (max-width: 700px) {
  .nav-links {
    position: fixed;
    right: -100%;
    top: 0;
    flex-direction: column;
    justify-content: flex-start;
    background: var(--primary-green);
    width: 200px;
    max-width: 90vw;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    padding-top: 90px;
    transition: right 0.35s cubic-bezier(.77, 0, .18, 1);
    z-index: 999;
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
  }

  nav.scrolled {
    display: none;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    margin: 0;
    padding: 18px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links li a {
    color: #fff;
    font-size: 1.18rem;
    letter-spacing: 0.5px;
    transition: color 0.2s, background 0.2s;
    display: block;
    border-radius: 4px;
    padding: 4px 0;
  }

  .nav-links li a:hover,
  .nav-links li a:focus {
    color: var(--primary-pink);
    background: rgba(255, 255, 255, 0.08);
    outline: none;
  }

  .site-title {
    font-size: 1.1rem;
  }

  .logo {
    width: 40px;
    height: 40px;
  }

  .header {
    padding: 0.5rem 1rem;
  }

  .hamburger {
    display: flex;
    margin-left: auto;
    z-index: 1001;
  }
}

/* Hamburger to X animation */
.hamburger.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}