/* Variables CSS para colores y estilos principales */
:root {
  /* Colores principales */
  --color-primary: #8B5CF6;
  --color-primary-light: #A78BFA;
  --color-primary-dark: #7C3AED;
  --color-secondary: #EC4899;
  --color-secondary-light: #F472B6;
  --color-neutral-dark: #1F2937;
  --color-neutral-light: #F9FAFB;
  
  /* Espaciado */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  
  /* Bordes */
  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 1rem;
  --border-radius-full: 9999px;
  
  /* Sombras */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  
  /* Transiciones */
  --transition-fast: 150ms;
  --transition-normal: 300ms;
  --transition-slow: 500ms;
}

/* Estilos generales */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #111111;
  background-color: #000000;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Preloader */
#preloader {
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

/* Estilos para el desplazamiento horizontal */
.horizontal-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.horizontal-container {
  display: flex;
  height: 100%;
  width: fit-content;
  transition: transform 1.2s cubic-bezier(0.645, 0.045, 0.355, 1.000);
  will-change: transform;
}

.horizontal-section {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* Capas parallax */
.parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  will-change: transform;
  transition: transform 1.5s cubic-bezier(0.645, 0.045, 0.355, 1.000);
}

/* Contenido de secciones */
.section-content {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  padding: 0 2rem;
}

/* Navegación minimalista */
.minimal-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 40;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.minimal-nav > div {
  pointer-events: auto;
}

.header-logo {
  transition: opacity 0.8s cubic-bezier(0.645, 0.045, 0.355, 1), transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
  opacity: 1;
  transform: translateY(0);
}

.header-logo.hidden {
  opacity: 0;
  transform: translateY(-15px);
  pointer-events: none;
  transition: opacity 1s cubic-bezier(0.645, 0.045, 0.355, 1), transform 1s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.nav-link {
  position: relative;
  font-size: 0.875rem;
  letter-spacing: 1px;
  text-decoration: none;
  padding: 0.5rem 0;
  margin: 0 1rem;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  opacity: 1;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: currentColor;
  transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Menú móvil */
#mobile-menu {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Indicador de scroll horizontal */
.scroll-indicator {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 3px;
  background-color: rgba(31, 41, 55, 0.2);
  z-index: 30;
  border-radius: 2px;
  overflow: hidden;
}

.scroll-indicator-progress {
  height: 100%;
  width: 20%;
  background-color: #8B5CF6;
  border-radius: 2px;
  transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
  transform-origin: left;
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.5);
}

/* Botones de navegación entre secciones */
.next-section {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(139, 92, 246, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.next-section:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

/* Tipografía minimalista estilo Zara */
.serif-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.minimal-text {
  font-weight: 300;
  letter-spacing: 0.01em;
}

/* Animaciones */
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-in-right {
  animation: fadeInRight 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  opacity: 0;
}

/* Media queries para responsividad */
@media (max-width: 768px) {
  .section-content {
    padding: 0 1.5rem;
  }
  
  .next-section {
    right: 1rem;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 640px) {
  .serif-title {
    font-size: 2.5rem !important;
  }
  
  .minimal-text {
    font-size: 1rem !important;
  }
}

/* Estilos adicionales para formularios */
input, textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  color: inherit;
  padding: 0.75rem 0;
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
