/* ================= RESET ================= */
* {
  box-sizing: border-box;
}

:root {
  --navbar-h: 60px;
  --menu-width: 260px;
  --accent: #ffffff;
  --menu-bg: rgba(120, 120, 120, 0.85);
  --overlay-bg: rgba(0, 0, 0, 0.5);
  --blur-level: 6px;
}

body {
  height: 100vh;
  background-repeat: no-repeat;
  background-position: center;
  margin: 0;
  font-family: Inter, sans-serif;
  background: black;
  color: white;
  overflow-x: hidden;
}

/* ================= NAVBAR ================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--navbar-h);
  padding: 0 30px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: linear-gradient(to bottom, black, transparent);
  z-index: 1000;
}

.menu-desktop.oculta {
  transform: translateY(-200%);
}

.logo {
  display: flex;
  width: 100px;
  transform: translateY(0);
  opacity: 1;

  transition:
    transform 0.45s ease,
    opacity 0.3s ease;
}

.logo.oculta {
  transform: translateY(-200%);
}

/* ================= CONTAINER ================= */
.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 4rem 4rem;

    font-size: 1.05rem;
    font-weight: 200;
    line-height: 1.7;

    color: #e2e2e2;

    hyphens: none;
    word-break: normal;
    overflow-wrap: break-word;
}

.container h1,
.container h2,
.container h3 {
    line-height: 1.3;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.container p {
    margin-bottom: 1.2rem;
}

.container a {
    color: #0057b8;
    text-decoration: underline;
}

.container blockquote {
    margin: 2rem 0;
    padding-left: 1.2rem;
    border-left: 4px solid #ccc;
    font-style: italic;
    color: #444;
}


/* ================= DESKTOP MENU ================= */
.menu-desktop {
  display: flex;
  gap: 20px;
  transform: translateY(0);
  opacity: 1;

  transition:
    transform 0.45s ease,
    opacity 0.3s ease;
}

.menu-desktop a {
  color: var(--accent);
  text-decoration: none;
  position: relative;
}

.menu-desktop a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.menu-desktop a:hover::after {
  width: 100%;
}

.menu-mobile a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.menu-mobile a:hover::after {
  width: 100%;
}

/* ================= LINKS AJUSTADOS AL TEXTO ================= */
.menu-desktop a,
.menu-mobile a {
  display: inline-block;
  width: auto;
  align-self: flex-start;
  white-space: nowrap;
  position: relative;
  text-decoration: none;
  padding: 4px 8px;
  color: var(--accent);
}

/* ================= ANIMACIÓN DE LÍNEA INFERIOR ================= */
.menu-desktop a::after,
.menu-mobile a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.menu-desktop a:hover::after,
.menu-mobile a:hover::after {
  width: 100%;
}

/* ================= PADDING Y BACKGROUND ================= */
.menu-desktop a,
.menu-mobile a {
  padding: 4px 8px;
  background: transparent;
}

.menu-desktop a:hover,
.menu-mobile a:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ================= UI ROOT ================= */
#ui-root {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  pointer-events: none;
  isolation: isolate;
}

#ui-root .menu-btn {
  position: fixed;
  top: 10px;
  right: 30px;
  height: 40px;

  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;

  pointer-events: auto;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

#ui-root .menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--accent);
  transform: translateY(0);
  border-radius: 2px;
  transition:
    transform 0.32s ease,
    opacity 0.22s linear;
}

/* ================= MOBILE MENU ================= */
.menu-mobile {
  position: fixed;
  top: 0;
  right: 0;
  width: var(--menu-width);
  height: 100vh;
  padding: calc(var(--navbar-h) + 20px) 20px;

  display: flex;
  flex-direction: column;
  gap: 20px;

  background: var(--menu-bg);
  backdrop-filter: blur(6px);

  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.2, 0.9, 0.3, 1);

  z-index: 2000;
}

.menu-mobile a {
  color: var(--accent);
  text-decoration: none;
  font-size: 18px;

  opacity: 0;
  transform: translateX(-8px);
  transition:
    opacity 0.28s ease,
    transform 0.28s ease;
}

body.menu-open .menu-mobile {
  transform: translateX(0);
}

body.menu-open .menu-mobile a {
  opacity: 1;
  transform: translateX(0);
}

/* ================= OVERLAY ================= */
.overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay-bg);
  backdrop-filter: blur(var(--blur-level));

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: opacity 0.25s ease;
  z-index: 1500;
}

body.menu-open .overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ================= CONTENT ================= */
.content {
  padding-top: var(--navbar-h);
}

body.menu-open .content {
  filter: blur(var(--blur-level));
}

/* ================= HAMBURGER → X ================= */
body.menu-open #ui-root .menu-btn span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

body.menu-open #ui-root .menu-btn span:nth-child(2) {
  opacity: 0;
}

body.menu-open #ui-root .menu-btn span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ================= RESPONSIVE ================= */
@media (max-aspect-ratio: 4/3) {
  .menu-desktop {
    display: none;
  }
  #ui-root .menu-btn {
    display: flex;
  }
}

/* ================= ACCESSIBILITY ================= */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* ================= FADING ================= */
.nl {
  width: auto;
  position: absolute;
  height: auto;
  bottom: 10%;
  left: 10%;
  padding: 1%;
  color: #fff;
  font-size: 29px;

  text-align: auto;

  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease-out forwards;
}

.btn-vaso {
  position: relative;
  padding: 10px 50px;
  background: transparent;
  color: white;
  border: 2px solid white;
  font-size: 16px;
  letter-spacing: 1px;
  cursor: pointer;
  overflow: hidden;
  z-index: 0;
}

.btn-vaso::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0%;
  background: white;
  transition: height 0.6s ease;
  z-index: -1;
}

.btn-vaso:hover::before {
  height: 100%;
}

.btn-vaso:hover {
  color: #000;
}

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