/* Reset y variables CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  :root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --accent-primary: #c1272d;
    --accent-secondary: #ff3b3b;
    --success: #00ff88;
    --warning: #ffaa00;
    --error: #ff4444;
    --border: #333333;
    --shadow: rgba(0, 212, 255, 0.1);
  }
  
  :root {
    --background: #0f172a;
    --foreground: #f1f5f9;
    --card: #1e293b;
    --card-foreground: #f1f5f9;
    --primary: #0f172a;
    --primary-foreground: #ffffff;
    --secondary: #3b82f6;
    --secondary-foreground: #ffffff;
    --accent: #3b82f6;
    --accent-foreground: #ffffff;
    --destructive: #ef4444;
    --border: #334155;
    --muted: #1e293b;
    --muted-foreground: #94a3b8;
    --radius: 0.5rem;
  
    --font-heading: "Playfair Display", serif;
    --font-body: "Source Sans Pro", sans-serif;
  }
  
  body {
    font-family: var(--font-body);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
  }

  .container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><circle cx="50" cy="50" r="1" fill="white" opacity="0.3"/><circle cx="200" cy="200" r="1" fill="white" opacity="0.2"/><circle cx="400" cy="600" r="1" fill="white" opacity="0.3"/><circle cx="700" cy="800" r="1" fill="white" opacity="0.2"/><circle cx="900" cy="300" r="1" fill="white" opacity="0.3"/></svg>') repeat;
    z-index: 1;
    pointer-events: none;
}
  
  /* Header */
  .header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: var(--primary-foreground);
    padding: 3rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
  }
  
  .header-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
  }
  
  .header-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    text-align: center;
    margin-bottom: 25px;
  }
  
  /* Main content */
  .main {
    padding: 2rem 0;
  }
  
  /* Filters */
  .filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
  }
  
  .btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid var(--accent-primary);
  }
  
  .btn-secondary:hover, .filter-btn.active  {
    background: var(--accent-primary);
  }
  
  .search-box {
    padding: 8px 12px;
    margin-left: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    flex: 1;
  }
  
  /* Boosters grid */
  .boosters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
  }
  
  .booster-card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--accent-secondary);
    transition: all 0.3s ease;
    cursor: pointer;
    animation: fadeIn 0.5s ease-out;
    display: flex;
    flex-direction: column;
  }
  
  .booster-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-primary);
  }
  
  .booster-image {
    width: 100%;
    height: 200px;
    background: var(--card);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius) var(--radius) 0 0;
    flex-shrink: 0;
    overflow: hidden;
  }
  
  .booster-image img {
    width: 100%;
    height: 100%;
    /* Cambiando de object-fit: contain a cover para que ocupe todo el ancho y se recorte */
    object-fit: cover;
    object-position: center;
  }
  
  .booster-content {
    padding: 1.5rem;
    flex: 1;
  }
  
  .booster-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
  }
  
  .booster-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
  }
  
  .status-activo {
    background: #166534;
    color: #dcfce7;
  }
  
  .status-retirado {
    background: #92400e;
    color: #fef3c7;
  }
  
  .status-destruido{
    background: #991b1b;
    color: #fee2e2;
  }
  
  .status-Desechado {
    background: #991b1b;
    color: #fee2e2;
  }
  
  .status-testing {
    background: #1e40af;
    color: #dbeafe;
  }
  
  .booster-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
  }
  
  .type-falcon-heavy, .type-falcon-heavy-side, .type-falcon-heavy-antes-f9 {
    background: #1e3a8a;
    color: #c7d2fe;
  }
  
  .type-falcon-9 {
    background: #92400e;
    color: #c7d2fe;
  }
  
  .type-null {
    display: none;
  }
  
  .booster-flights {
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
  }
  
  .booster-first-flight {
    color: var(--muted-foreground);
    font-size: 0.875rem;
  }
  
  /* Modal */
  .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
  }
  
  .modal-content {
    background-color: var(--background);
    margin: 5% auto;
    padding: 0;
    border-radius: var(--radius);
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
  }
  
  .modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    color: var(--muted-foreground);
    transition: all 0.3s ease;
  }
  
  .modal-close:hover {
    color: #991b1b;
  }
  
  .modal-body {
    padding: 2rem;
  }
  
  .modal-header {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .modal-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
  }
  
  .modal-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius);
    margin: 0 auto 1rem;
    display: block;
    background: linear-gradient(45deg, #334155, #475569);
    min-height: 150px;
    max-height: 400px;
  }
  
  .flight-history {
    margin-top: 2rem;
  }
  
  .flight-history h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
  }
  
  .flight-history #mission-failure {
    border-left: 2px solid #991b1b;
    border-right: 2px solid #991b1b;
  }
  
  .flight-history #mission-success {
    border-left: 2px solid #166534;
    border-right: 2px solid #166534;
  }
  
  .flight-item {
    background: var(--muted);
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .flight-mission {
    font-weight: 600;
  }
  
  .flight-date {
    color: var(--muted-foreground);
    font-size: 0.875rem;
  }
  
  /* Nuevos estilos para la lista detallada de vuelos */
  .flight-details-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
  }
  
  .flight-details-table th,
  .flight-details-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
  }
  
  .flight-details-table th {
    background: var(--muted);
    font-weight: 600;
    color: var(--accent);
  }
  
  .flight-details-table tr:hover {
    background: var(--muted);
  }
  
  /* Agregando estilos para vuelos programados */
  .scheduled-indicator {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 0.5rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
    animation: pulse 2s infinite;
  }
  
  .scheduled-flight {
    background: rgba(245, 158, 11, 0.1) !important;
    border-left: 4px solid #f59e0b;
  }
  
  .scheduled-badge {
    background: #f59e0b;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
    animation: pulse 2s infinite;
  }
  
  @keyframes pulse {
    0%,
    100% {
      opacity: 1;
    }
    50% {
      opacity: 0.7;
    }
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .header-title {
      font-size: 2rem;
    }
  
    .filters {
      justify-content: flex-start;
      overflow-x: auto;
      padding-bottom: 0.5rem;
    }
  
    .filter-btn {
      white-space: nowrap;
    }
  
    .boosters-grid {
      grid-template-columns: 1fr;
    }
  
    .modal-content {
      width: 95%;
      margin: 2% auto;
    }
  }
  
  /* Animaciones */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Estados de carga */
  .loading {
    text-align: center;
    padding: 3rem;
    color: var(--muted-foreground);
  }
  
  .hidden {
    display: none !important;
  }
  