/* Maintenance lock for top tabs:
   0 = off, 1 = on */
:root {
  --nav-lock-enabled: 0;
}

body {
  margin: 0;
  font-family: Arial;
  background: #ffffff;
  color: #000000;
  filter: grayscale(100%);
  -webkit-filter: grayscale(100%);
}

/* Navbar */
.navbar {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Overlay that blocks access to navbar links during maintenance */
.navbar::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: calc(var(--nav-lock-enabled) * 100%);
  background: rgba(0, 0, 0, 0.84);
  z-index: 1100;
  cursor: not-allowed;
}

.navbar::before {
  content: "Navegacion temporalmente bloqueada por mantenimiento";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: var(--nav-lock-enabled);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  z-index: 1101;
  pointer-events: none;
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.navbar-logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.navbar-logo:hover {
  color: #494949;
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  background: rgba(49, 49, 49, 0.719);
  border-bottom-color: #464646;
}

.nav-link.active {
  border-bottom-color: #cfcfcf;
  color: #ffffff;
}

/* Added page-button styling without changing other elements */
.nav-link {
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(0, 198, 255, 0.12));
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.nav-link:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(80, 79, 79, 0.22), rgba(0, 198, 255, 0.22));
  border-color: rgba(255, 255, 255, 0.671);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.24),
    0 0 20px rgba(51, 51, 51, 0.18),
    inset 0 1px 0 rgba(0, 0, 0, 0.16);
}

.nav-link.active {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(162, 0, 255, 0.24));
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.22),
    0 0 18px rgba(56, 56, 56, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.nav-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}

@media (max-width: 840px) {
  .nav-link {
    border-radius: 999px;
  }
}

.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Animación de entrada */
h1 {
  font-size: 6rem;
  text-align: center;
  color: #000000;
}

p {
  opacity: 100;
  color: #000000;
  animation: aparecer 1s 0.5s forwards;
}

/* Botón con hover */
button {
  margin-top: 20px;
  padding: 10px 20px;
  border: none;
  background: #000000;
  color: white;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 2s, background 0.3s;
}

button:hover {
  transform: scale(1.1);
  background: #646464;
}

.normal-text {
  margin-top: 1.25rem;
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
  max-width: 28rem;
}

.reveal-text {
  margin-top: 1.5rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: #000000;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(18px) scale(0.96);
}

.reveal-text.is-visible {
  animation: revealText 650ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.no-scroll {
  overflow: hidden;
  height: 100vh;
}
/* Content section */
.content {
  min-height: 100vh;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.content h3 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.content ul {
  list-style: none;
  padding-left: 0;
}

.content li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.content li:before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #00c6ff;
}

.project-card {
  background: rgba(0, 0, 0, 0.2);
  border-left: 4px solid #2b2b2b;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 5px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateX(10px);
  box-shadow: 0 5px 15px rgba(39, 39, 39, 0.3);
}

.project-card h3 {
  margin-top: 0;
  color: #242424;
}

.contact-item {
  background: rgba(0, 0, 0, 0.2);
  padding: 1.5rem;
  margin: 1rem 0;
  border-radius: 5px;
  border-left: 4px solid #181818;
}

.contact-item h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.contact-item a:hover {
  text-decoration: underline;
}

/* Keyframes */
@keyframes aparecer {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes revealText {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
    filter: blur(4px);
  }
  70% {
    opacity: 1;
    transform: translateY(-4px) scale(1.02);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* Added visual layer without replacing existing layout */
.navbar::after {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-link,
.navbar-logo,
.gallery-info,
.floating img {
  transform-origin: center;
}

.nav-link:hover,
.nav-link.active {
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.18);
}

@media (max-width: 840px) {
  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
  }
}
