/**
 * ═══════════════════════════════════════════════════════════
 * MENU.CSS - Estilos del menú principal
 * ═══════════════════════════════════════════════════════════
 */

body {
  background: var(--gray-50);
}

.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ═══════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════ */

.header {
  background: linear-gradient(135deg, var(--primary) 0%, #2a3f5f 100%);
  color: white;
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-md);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.logo h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.subtitle {
  font-size: 0.875rem;
  opacity: 0.9;
}

/* ═══════════════════════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════════════════════ */

.main-content {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
}

.welcome-section {
  text-align: center;
  margin-bottom: 3rem;
}

.welcome-section h2 {
  font-size: 2rem;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.welcome-section p {
  color: var(--gray-600);
  font-size: 1.125rem;
}

/* ═══════════════════════════════════════════════════════════
   CARDS GRID
   ═══════════════════════════════════════════════════════════ */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.card {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--gray-200);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.card-description {
  color: var(--gray-600);
  font-size: 0.9375rem;
  flex: 1;
}

.card-footer {
  display: flex;
  justify-content: flex-start;
  margin-top: 0.5rem;
}

.card-badge {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background: var(--accent);
  color: white;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-success { background: var(--success); }
.badge-warning { background: var(--warning); }
.badge-info { background: var(--info); }

.card-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.card-disabled:hover {
  transform: none;
  border-color: var(--gray-200);
}

/* ═══════════════════════════════════════════════════════════
   CONFIRMACIÓN BANNER
   ═══════════════════════════════════════════════════════════ */

.confirmacion-section {
  margin-top: 3rem;
  animation: slideIn 0.5s ease;
}

.confirmacion-box {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  border: 2px solid #0ea5e9;
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  gap: 15px;
  align-items: center;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

.confirmacion-icon {
  font-size: 48px;
  flex-shrink: 0;
}

.confirmacion-content {
  flex: 1;
}

.confirmacion-content h4 {
  margin: 0 0 8px 0;
  color: #075985;
  font-size: 18px;
  font-weight: 700;
}

.confirmacion-content p {
  margin: 0 0 15px 0;
  color: #0c4a6e;
  font-size: 14px;
}

.btn-confirmacion {
  display: inline-block;
  padding: 10px 20px;
  background: #0ea5e9;
  color: white;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.btn-confirmacion:hover {
  background: #0284c7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}

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

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */

.footer {
  background: var(--gray-100);
  text-align: center;
  padding: 1.5rem;
  color: var(--gray-600);
  font-size: 0.875rem;
  border-top: 1px solid var(--gray-200);
}

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════ */

.card {
  animation: fadeIn 0.5s ease backwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }

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

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .welcome-section h2 {
    font-size: 1.5rem;
  }

  .main-content {
    padding: 1rem;
  }

  .confirmacion-box {
    flex-direction: column;
    text-align: center;
  }

  .confirmacion-icon {
    font-size: 36px;
  }
}
