/* ===================================
   Variables CSS - Colores del ERP
   =================================== */
:root {
  --color-primary: #603000;
  --color-primary-light: #8b4513;
  --color-primary-dark: #4a2500;
  --color-secondary: #00ab02;
  --color-accent: #FFC107;
  --color-background: #faf8f5;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-white: #ffffff;
  
  --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --transition-default: all 0.3s ease;
}

/* ===================================
   Reset y Base
   =================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background: linear-gradient(135deg, var(--color-background) 0%, #f5f0eb 50%, #ebe3d9 100%);
  color: var(--color-text);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===================================
   Layout Principal
   =================================== */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1rem;
  text-align: center;
  animation: fadeIn 1s ease-out;
}

/* ===================================
   Logo
   =================================== */
.logo-wrapper {
  margin-bottom: 2.5rem;
  animation: slideDown 0.8s ease-out;
}

.logo {
  max-width: 280px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(96, 48, 0, 0.15));
  transition: var(--transition-default);
}

.logo:hover {
  transform: scale(1.02);
  filter: drop-shadow(0 6px 20px rgba(96, 48, 0, 0.25));
}

/* ===================================
   Content
   =================================== */
.content {
  max-width: 600px;
  width: 100%;
  animation: slideUp 0.8s ease-out 0.2s both;
}

.title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
}

.subtitle {
  font-size: 1.25rem;
  color: var(--color-text-light);
  margin-bottom: 2.5rem;
  font-weight: 400;
}

/* ===================================
   Progress Indicator
   =================================== */
.progress-container {
  margin-bottom: 3rem;
}

.progress-bar {
  width: 100%;
  max-width: 300px;
  height: 6px;
  background-color: rgba(96, 48, 0, 0.1);
  border-radius: 3px;
  margin: 0 auto 1rem;
  overflow: hidden;
}

.progress-fill {
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 3px;
  animation: progressPulse 2s ease-in-out infinite;
}

.progress-text {
  font-size: 0.875rem;
  color: var(--color-text-light);
  font-style: italic;
}

/* ===================================
   Icons Row
   =================================== */
.icons-row {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: fadeInUp 0.6s ease-out both;
}

.icon-item:nth-child(1) { animation-delay: 0.4s; }
.icon-item:nth-child(2) { animation-delay: 0.6s; }
.icon-item:nth-child(3) { animation-delay: 0.8s; }

.icon {
  width: 48px;
  height: 48px;
  color: var(--color-primary);
  opacity: 0.8;
  transition: var(--transition-default);
}

.icon-item:hover .icon {
  color: var(--color-secondary);
  opacity: 1;
  transform: translateY(-4px);
}

.icon-item span {
  font-size: 0.875rem;
  color: var(--color-text-light);
  font-weight: 500;
  transition: var(--transition-default);
}

.icon-item:hover span {
  color: var(--color-primary);
}

/* ===================================
   Footer
   =================================== */
.footer {
  margin-top: auto;
  padding-top: 3rem;
  animation: fadeIn 1s ease-out 1s both;
}

.footer p {
  font-size: 0.875rem;
  color: var(--color-text-light);
  opacity: 0.7;
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes progressPulse {
  0% {
    width: 20%;
    opacity: 0.8;
  }
  50% {
    width: 70%;
    opacity: 1;
  }
  100% {
    width: 20%;
    opacity: 0.8;
  }
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
  .title {
    font-size: 2rem;
  }
  
  .subtitle {
    font-size: 1.1rem;
  }
  
  .logo {
    max-width: 220px;
  }
  
  .icons-row {
    gap: 1.5rem;
  }
  
  .icon {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 1.5rem 1rem;
  }
  
  .title {
    font-size: 1.75rem;
  }
  
  .subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .logo {
    max-width: 180px;
  }
  
  .logo-wrapper {
    margin-bottom: 2rem;
  }
  
  .progress-bar {
    max-width: 250px;
  }
  
  .icons-row {
    gap: 1.25rem;
  }
  
  .icon {
    width: 36px;
    height: 36px;
  }
  
  .icon-item span {
    font-size: 0.75rem;
  }
}

/* ===================================
   Accesibilidad
   =================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
