:root {
  --color-primary: #9C27B0;       /* Morado principal */
  --color-primary-light: #8E3D75; /* Morado claro */
  --color-primary-dark: #9C27B0;  /* Morado oscuro */
  --color-accent: #FFD700;        /* Amarillo dorado */
  --color-danger: #E53E3E;        /* Rojo para acciones peligrosas */
  --color-text: #333333;          /* Texto principal */
  --color-text-light: #666666;    /* Texto secundario */
  --color-bg: #FFFFFF;            /* Fondo claro */
  --color-bg-alt: #F5F5F5;        /* Fondo alternativo */
}

/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.4s ease-out;
}
.animate-fade-in-up {
  animation: fadeInUp 0.5s ease-out;
}
.slide-in {
  animation: slideIn 0.3s ease-out;
}

/* Estilos base */
body {
  font-family: 'Poppins', sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
}

/* Contenedor principal */
.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Sombras personalizadas */
.shadow-xl {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}
.shadow-2xl {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Botones y elementos interactivos */
.btn-primary {
  background-color: var(--color-primary);
  color: white;
  border: none;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-text);
  border: none;
  transition: all 0.3s ease;
}

.btn-accent:hover {
  background-color: #FFC600;
  transform: translateY(-2px);
}

.btn-danger {
  background-color: var(--color-danger);
  color: white;
  border: none;
  transition: all 0.3s ease;
}

.btn-danger:hover {
  background-color: #C53030;
  transform: translateY(-2px);
}

/* Formularios */
input, textarea, select {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0.75rem;
  transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(107, 45, 92, 0.2);
}

/* Estilos para PC */
@media (min-width: 641px) {
  body {
    font-size: 16px;
  }
  
  .container {
    padding: 1rem;
  }
  
  nav {
    padding: 1rem;
    background-color: var(--color-primary);
    color: white;
  }
  
  nav h1 {
    font-size: 2rem;
  }
  
  header {
    padding: 2rem 0;
    min-height: 200px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
  }
  
  header h1 {
    font-size: 3rem;
    line-height: 1.2;
  }
  
  header p {
    font-size: 1.125rem;
    opacity: 0.9;
  }
  
  section {
    padding: 2rem 0;
  }
  
  section h2 {
    font-size: 1.5rem;
    color: var(--color-primary);
  }
  
  button, .btn-primary, .btn-accent {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    min-height: 48px;
    border-radius: 8px;
  }
  
  .btn-danger {
    padding: 0.5rem 1rem;
  }
  
  .modal-content {
    border-radius: 1rem;
  }
}

/* Estilos para móviles */
@media (max-width: 640px) {
  body {
    font-size: 14px;
  }
  
  .container {
    padding: 0.5rem;
  }
  
  nav {
    padding: 0.75rem;
    background-color: var(--color-primary);
    color: white;
  }
  
  nav h1 {
    font-size: 1.25rem;
  }
  
  header {
    padding: 1.5rem 0;
    min-height: 150px;
  }
  
  header h1 {
    font-size: 1.5rem;
  }
  
  header p {
    font-size: 0.875rem;
  }
  
  section {
    padding: 1rem 0;
  }
  
  section h2 {
    font-size: 1.25rem;
  }
  
  button, .btn-primary, .btn-accent {
    padding: 0.6rem 1.2rem;
    font-size: 0.875rem;
    min-height: 42px;
    border-radius: 6px;
  }
  
  .btn-danger {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }
  
  .modal-content {
    border-radius: 0.75rem;
  }
  
  /* Mejoras de usabilidad táctil */
  button, a[role="button"] {
    touch-action: manipulation;
    min-width: 44px;
    min-height: 44px;
  }
}

/* Ajustes adicionales para móviles pequeños */
@media (max-width: 360px) {
  body {
    font-size: 13px;
  }
  
  nav h1 {
    font-size: 1.1rem;
  }
  
  header h1 {
    font-size: 1.25rem;
  }
  
  button, .btn-primary, .btn-accent {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
}