:root {
  --color-bg-alt-h: #a3d9c1;
  --color-bg: #ebf2f2;
  --color-bg-alt: #96c9b1;
  --color-acento-1: #bcebdf;
  --color-acento-2: #ade0db;
  --color-texto-principal: #1a3a2e;
  --color-texto-secundario: #555555;
  --color-footer-bg: #d9dbdb;
}

/* ====== HEADER ====== */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, var(--color-bg-alt-h), var(--color-bg));
  padding: 1rem 2rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background 0.3s ease;
}

.logo {
  display: flex;
  align-items: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-texto-principal);
  gap: 6px;
}

.logo-img {
  height: 70px;
  display: block;
}

.tm-badge {
  font-size: 0.6em;
  vertical-align: baseline;
  margin-left: 3px;
  opacity: 0.3;
  color: #333;
  font-weight: 500;
  user-select: none;
  pointer-events: none;
  line-height: 1;
  position: relative;
  top: 1px;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  transition: max-height 0.3s ease;
}

.nav-list.active {
  display: flex;
  max-height: 500px; /* suficiente para mostrar todo */
}

.nav-list li a:focus-visible {
  outline: 2px solid var(--color-btn-bg);
  outline-offset: 2px;
}

.hamburguesa:focus-visible {
  outline: 2px solid var(--color-btn-bg);
  outline-offset: 2px;
}

.nav-list li a {
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  position: relative;
  padding: 0.5rem 0;
  font-weight: 500;
  color: var(--color-texto-principal);
  transition: color 0.3s ease;
}

.nav-list li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background-color: var(--color-btn-bg);
  transition: width 0.3s ease;
}

.nav-list li a:hover::after,
.nav-list li a.active::after {
  width: 100%;
}

.nav-list li a:hover {
  color: var(--color-btn-hover);
}

/* ====== MENU HAMBURGUESA ====== */
.hamburguesa {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.3s ease;
  color: var(--color-texto-principal);
}

.hamburguesa:hover {
  transform: scale(1.1);
}

@media screen and (max-width: 768px) {
  .nav {
    position: relative;
    display: flex;
    align-items: center;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    background: var(--color-bg);
    position: absolute;
    top: 3.5rem;
    left: 0;
    width: 220px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 8px 8px;
    z-index: 10;
    text-align: left;
  }

  .nav-list.active {
    display: flex;
  }

  .hamburguesa {
    display: block;
    margin-left: auto;
  }
}

@media screen and (max-width: 480px) {
  .site-header {
    padding: 1rem 1rem; /* Reduce el padding lateral */
  }

  .hamburguesa {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
  }
  .hamburguesa:hover,
  .hamburguesa:focus {
    background-color: var(--color-acento-1);
    outline: none;
  }
}

/* ====== SCROLL PROGRESS BAR ====== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(
    to right,
    #4d9489,   /* inicio fuerte */
    #66b2a5,   /* punto medio principal */
    #b6ded8,   /* más claro */
    #e0f7f4,   /* casi blanco pero con tinte */
    #66b2a5,   /* retoma el verde medio */
    #4d9489    /* reafirma cierre */
  );
  background-size: 300% 100%;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  width: 0%;
  z-index: 1001;
}

/* ====== FOOTER ====== */
.site-footer {
  padding: 2rem;
  text-align: center;
  background: var(--color-footer-bg);
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  color: var(--color-texto-secundario);
  border-top: 1px solid rgba(0,0,0,0.01);
}