* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #0d0d0d;
  color: #ffffff;
  font-family: 'Arial', sans-serif;
  overflow-x: hidden;
}

/* Pantalla del Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-content {
  text-align: center;
}

/* SVG del Logo y Animaci¨®n */
.fenix-logo-svg {
  width: 320px;
  height: auto;
  filter: drop-shadow(0px 0px 8px rgba(255, 255, 255, 0.2));
}

.trace-path {
  fill: transparent;
  stroke: #ffffff;
  stroke-width: 15px;
  stroke-dasharray: 40000;
  stroke-dashoffset: 40000;
  animation: drawInk 2.5s ease-in-out forwards;
}

@keyframes drawInk {
  0% {
    stroke-dashoffset: 40000;
    fill: transparent;
  }
  75% {
    stroke-dashoffset: 0;
    fill: transparent;
  }
  100% {
    stroke-dashoffset: 0;
    fill: #ffffff;
    stroke: transparent;
  }
}

/* Texto e Interfaz */
.logo-text {
  margin-top: 15px;
  font-size: 1.2rem;
  letter-spacing: 4px;
  opacity: 0;
  animation: fadeIn 1s ease forwards 2s;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* Estado al ocultar Preloader */
#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.hidden {
  opacity: 0;
  transition: opacity 1s ease;
}

.visible {
  opacity: 1;
}