:root {
  --bg-color: #f5f5f5;
  --text-color: #212529;
  --primary: #4C1F0F;
  --header-bg: rgba(255, 255, 255, 0.8);
  --header-blur: 8px;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== HEADER STICKY ===== */
header {
  container-type: scroll-state;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Nav base */
nav.navbar {
  padding: 0.8rem 1.5rem;
  display: flex;
  justify-content: center;
  transition: all 0.3s ease;
  background: transparent;
}

/* Menu list */
.navbar-menu {
  list-style: none;
  display: flex;
  gap: 1.8rem;
  margin: 0;
  padding: 0;
}

/* Link style */
.menu {
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
}

/* Underline hover effect */
.menu::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.menu:hover::after {
  width: 100%;
}

/* When header is stuck */
@container scroll-state(stuck) {
  nav.navbar {
    background: var(--header-bg);
    backdrop-filter: blur(var(--header-blur));
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
  }

  .menu {
    color: var(--primary);
  }
}


    /* ========== SECCIONES ========== */
    section {
   margin-top: auto;
    }

    /* ========== FOOTER ========== */
    footer {
      background: #333;
      color: #fff;
      text-align: center;
      padding: 1rem;

}
    