:root {
  --color-text: #f0f0f0;
  --font-serif: 'Fraunces', serif;
}

body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background-color: #050505;
  color: var(--color-text);
  overflow: hidden;
  font-family: var(--font-serif);
}

.texture-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
}

.texture {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: grayscale(100%) contrast(120%) brightness(30%);
  transition: opacity 1s ease-in-out;
  opacity: 0;
}

.texture.loaded {
  opacity: 1;
  animation: bg-pan 15s infinite alternate cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

@keyframes bg-pan {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-3%, -3%) scale(1.05); }
}

#texture-offset-green {
  filter: grayscale(100%) sepia(100%) hue-rotate(90deg) saturate(300%) contrast(150%) brightness(40%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

#texture-offset-green.loaded {
  opacity: 0.35;
  animation: bg-pan-offset 10s infinite alternate cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

@keyframes bg-pan-offset {
  0% { transform: translate(-1%, -1%) scale(1.02); }
  100% { transform: translate(-4%, 2%) scale(1.06); }
}

.overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle 400px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(5,5,5,0) 0%, rgba(5,5,5,0.9) 100%);
  z-index: 2;
  pointer-events: none;
}

.noise {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 3;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.15;
  mix-blend-mode: overlay;
}

.content {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.title-container {
  position: relative;
  transform: translateY(-4vh); /* Corrección óptica vertical */
}

.title {
  margin: 0;
  display: flex;
  flex-direction: column;
  color: #fff;
  cursor: default;
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 100;
  text-transform: uppercase;
  mix-blend-mode: exclusion;
  opacity: 0.9;
  line-height: 1; /* Normalizada para no cortar */
  width: 155px; /* Ancho fijo para cuadrar todo */
}

.title .line {
  display: flex;
  justify-content: space-between; /* Distribuye las letras uniformemente (tracking dinámico cuadradito) */
  width: 100%;
  margin-bottom: 8px; /* Un poco de margen inferior como pediste */
  padding-bottom: 0;
}

.title .line:last-child {
  margin-bottom: 0;
}

.side-text {
  position: absolute;
  font-size: 14px;
  font-weight: 100;
  color: rgba(255, 255, 255, 0.5);
  z-index: 20;
  text-transform: lowercase;
  pointer-events: auto;
  mix-blend-mode: exclusion;
}

.side-text a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.side-text a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.tag-creative {
  bottom: 40px;
  left: 30px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.1em;
}

.tag-email {
  top: 40px;
  right: 30px;
  writing-mode: vertical-rl;
  letter-spacing: 0.1em;
}
