*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  color: #fff;
  font-family: 'Roboto', sans-serif;
  overflow: hidden;
  background-color: #0b0b0b;
  background-image:
    linear-gradient(rgba(0,0,0,.6), rgba(0,0,0,.6)),
    url("../img/fondo.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Menú flotando encima del carrusel */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}
.nav-principal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
}
.nav-principal a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nav-logo { height: 36px; width: auto; display: block; }

/* Carrusel */
main { height: 100vh; height: 100dvh; }

.carousel {
  height: 100%;
  display: flex;
  align-items: center;
  perspective: 1200px;
  overflow: hidden;
}
.track {
  display: flex;
  gap: 40px;
  will-change: transform;
  transform-style: preserve-3d;
}

/* Foto: crece al pasar el cursor */
.card {
  flex: 0 0 340px;
  height: 480px;
  margin: 0;
  background: #1a1a1a;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: scale .35s ease;
}
.card:hover { scale: 1.06; }
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Tarjeta glass: oculta hasta que la foto se enfoca */
.glass {
  position: fixed;
  bottom: 40px;
  left: 50%;
  z-index: 10;
  width: min(420px, 90vw);
  padding: 18px 22px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.35);

  opacity: 0;
  transform: translateX(-50%) translateY(24px);
  transition: opacity .45s ease, transform .45s ease;
  pointer-events: none;
}
.glass.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.glass h2 { margin: 0 0 6px; font-size: 18px; font-weight: 500; }
.glass p  { margin: 0; font-size: 14px; opacity: .8; line-height: 1.4; }

/* Capa de efecto encima de todo, sin bloquear el mouse */
.filtro {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}