:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --primary: #0f3d3e;
  --secondary: #d8cfc4;
  --soft-gray: #f2f2f2;
}

[data-theme="dark"] {
  --bg: #111111;
  --text: #f5f5f5;
  --primary: #1b5e5e;
  --secondary: #333333;
  --soft-gray: #1c1c1c;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Degradado elegante */
.intro-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3),
    rgba(0, 0, 0, 0.5)
  );
}

/* Contenido */
.intro-content {
  position: relative;
  text-align: center;
  color: #f5f1eb;
  max-width: 90%;
  z-index: 2;
  animation: fadeUp 1.2s ease forwards;
}

.intro-pretitle {
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 1.2rem;
  color: #fff; /* Color del texto principal */
  text-shadow:
    0 0 5px #fff,
    0 0 10px #fff,
    0 0 20px #1c8181,
    0 0 40px #1d6a6b,
    0 0 80px #1d6a6b;
  margin-bottom: 20px;
  opacity: 0.8;
}

.intro-title {
  margin-top: 40px;
  font-family: "Playfair Display", serif;
  font-size: 2.1rem;
  line-height: 1.4;
  font-weight: 500;
}

/* Línea decorativa */
.intro-divider {
  width: 60px;
  height: 2px;
  background: #d8cfc4;
  margin: 30px auto;
  opacity: 0.8;
}

@keyframes slowZoom {
  from {
    transform: scale(1.1);
  }
  to {
    transform: scale(1.15);
  }
}

.intro-bg {
  animation: slowZoom 20s ease-in-out infinite alternate;
}

/* Boton */
.open-btn {
  background: #f2f2f24e;
  border: 1px solid #f5f1eb;
  padding: 14px 35px;
  border-radius: 40px;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff; /* Color del texto principal */
  text-shadow:
    0 0 5px #ffffff,
    0 0 10px #ffffff,
    0 0 20px #1c8181,
    0 0 40px #1d6a6b,
    0 0 80px #1d6a6b;
  opacity: 0.8;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.open-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}

.open-btn:hover::before {
  transform: translateX(0);
}

.open-btn:hover {
  transform: translateY(-3px);
}

/* LOGIN */

.login {
  position: fixed;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.login.active {
  opacity: 1;
  pointer-events: all;
}

.login-box {
  text-align: center;
  width: 85%;
  max-width: 400px;
}

.login-box input {
  width: 100%;
  padding: 15px;
  margin-top: 20px;
  border-radius: 30px;
  border: 1px solid #ccc;
}

.login-box button {
  background: #f2f2f24e;
  margin-top: 20px;
  padding: 15px;
  width: 100%;
  border-radius: 30px;
  border: none;
  background: var(--primary);
  color: white;
  cursor: pointer;
}

/* Theme Toggle */

.theme-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  border: none;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
}

/* HERO GENERAL */

.hero {
  position: fixed;
  inset: 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Fondo con zoom cinematográfico */

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../img/cover.jpg") -120px center / cover no-repeat;
  animation: slowZoom 20s ease-in-out infinite alternate;
  filter: brightness(0.85);
  transform: scale(1.05);
  transition: transform 1.2s ease;
}

.hero-bg.zoomed {
  transform: scale(1.15);
}

/* Zoom suave */
@keyframes slowZoom {
  from {
    transform: scale(1.05);
  }
  to {
    transform: scale(1.12);
  }
}

/* Degradado leve en esquinas */

.hero-corner-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(15, 61, 62, 0.4), transparent 40%),
    radial-gradient(
      circle at bottom right,
      rgba(15, 61, 62, 0.4),
      transparent 40%
    );
}

/* Partículas canvas */
#goldParticles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Contenido */
.hero-content {
  position: relative;
  text-align: center;
  color: #f5f1eb;
  z-index: 2;
  width: 90%;
  max-width: 420px;
}

/* Estados */
.state {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(8px);
  transition:
    opacity 0.8s cubic-bezier(0.77, 0, 0.18, 1),
    transform 0.8s cubic-bezier(0.77, 0, 0.18, 1),
    filter 0.8s cubic-bezier(0.77, 0, 0.18, 1);
  position: absolute;
  width: 100%;
}

.state.active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  position: relative;
}

/* Login estilizado */

.login-title {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.login-subtitle {
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  margin-bottom: 30px;
  opacity: 0.85;
}

.login-form input {
  width: 100%;
  padding: 15px;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: #f2f2f24e;
  color: white;
  text-align: center;
  backdrop-filter: blur(5px);
  margin-bottom: 10px;
}

.login-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.login-form input:hover {
  border-color: #0f3d3e;
}

.login-form button {
  width: 100%;
  padding: 14px;
  border-radius: 40px;
  border: 1px solid #f5f1eb;
  background: #f2f2f236;
  color: #f5f1eb;
  letter-spacing: 2px;
  font-weight: 500;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.4s ease;
}

.login-form button:hover {
  background: rgba(255, 255, 255, 0.15);
}

.login-error {
  margin-bottom: 15px;
  color: #06cf93;
  font-family: "Montserrat";
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1px;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeError 0.6s ease forwards;
}

@keyframes fadeError {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-transition {
  position: fixed;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
  z-index: 9999;
}

.page-transition.active {
  opacity: 1;
}
