:root {
    --primary-color: #e4002b;
    --primary-dark: #c4002b;
    --text-dark: #4a4a4a;
    --background-light: #f5f5f5;
  }
  
  body {
    background-color: var(--background-light);
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }

  
  .navbar {
    background-color: var(--primary-color) !important;
    padding: 0.4rem 0; /* antes 1rem */
    margin-bottom: 0;
  }
  
  .navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: white !important;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
  }
  
  .navbar-brand:hover {
    transform: scale(1.05);
  }
  

  .container {
    max-width: 1024px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
  }
  
  .card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    background: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  }
  
  .card-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--background-light);
  }
  
  .form-label {
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 0.5rem;
  }
  
  .form-control, .form-select {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
  }
  
  .form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(228, 0, 43, 0.25);
  }
  
  .btn-primary {
    background-color: var(--primary-color);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
  }
  
  .btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(228, 0, 43, 0.3);
  }
  
  .btn-secondary {
    background-color: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
  }
  
  .btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
  }
  
  .btn-danger {
    background-color: var(--primary-dark);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
  }
  
  .btn-danger:hover {
    background-color: #a10022;
    transform: translateY(-2px);
  }
  
  #resultados {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    min-height: 100px;
  }
  
  .resultado-item {
    background-color: var(--background-light);
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 0 8px 8px 0;
    transition: all 0.3s ease;
  }
  
  .resultado-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  .alert {
    border: none;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    font-weight: 500;
  }
  
  .alert-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
  }
  
  .alert-danger {
    background-color: #ffebee;
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
  }
  
  .alert-warning {
    background-color: #fff3e0;
    color: #ef6c00;
    border-left: 4px solid #ef6c00;
  }
  
  .alert-info {
    background-color: #e3f2fd;
    color: #1976d2;
    border-left: 4px solid #1976d2;
  }
  
  @keyframes slideIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .card-body {
    animation: slideIn 0.5s ease-out;
  }
  
  .form-select {
    background-image: linear-gradient(45deg, transparent 50%, var(--primary-color) 50%),
                      linear-gradient(135deg, var(--primary-color) 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(1em + 2px),
                         calc(100% - 15px) calc(1em + 2px);
    background-size: 5px 5px,
                    5px 5px;
    background-repeat: no-repeat;
    cursor: pointer;
  }
  
  @media (max-width: 768px) {
    .container {
      padding: 0 1rem;
    }
  
    .card {
      margin: 1rem 0;
    }
  
    .btn {
      width: 100%;
      margin: 0.5rem 0;
    }
  
    .row {
      flex-direction: column;
    }
  
    .col-md-4, .col-md-8 {
      max-width: 100%;
      flex: 0 0 100%;
    }
  }
