/* RESET GLOBAL */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #ecf0f1;

}

/* SECCIÓN COMPARACIÓN */
.comparison {
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #1c1c1c, #2c2c2c);
}

/* TITULO */
.comparison h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: #ecf0f1;
  margin-bottom: 2rem;
  margin-top: 4rem;
  letter-spacing: 1px;
}

/* SELECTORES */
.selectors {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

select {
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(30, 30, 30, 0.85);
  color: #ecf0f1;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  cursor: pointer;
}

select:hover {
  border-color: #3498db;
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.25);
}

/* WRAPPER TABLA */
.table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease;
  background-color: #1e1e1e;
}

.table-wrapper:hover {
  transform: translateY(-5px);
}

/* TABLA */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 800px;
  background-color: #1e1e1e;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* ENCABEZADO */
thead {
  background: linear-gradient(135deg, #2c3e50, #34495e);
  color: #ecf0f1;
}

thead th {
  padding: 1rem 1.2rem;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
}

/* BORDES REDONDEADOS EN TABLA */
thead th:first-child {
  border-top-left-radius: 12px;
}

thead th:last-child {
  border-top-right-radius: 12px;
}

tbody tr:last-child td:first-child {
  border-bottom-left-radius: 12px;
}

tbody tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}

/* CUERPO DE LA TABLA */
tbody td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid #333;
  color: #ecf0f1;
  transition: background 0.3s ease, transform 0.2s ease;
  position: relative;
}

tbody tr:nth-child(even) {
  background-color: #252525;
}

tbody tr:hover td {
  background-color: #2a3b4d;
  transform: translateY(-2px);
}

/* MICROINTERACCIONES */
tbody td:hover::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(52, 152, 219, 0.05);
  border-radius: 8px;
  pointer-events: none;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .comparison h2 {
    font-size: 1.8rem;
  }

  select {
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
  }

  .selectors {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }

  table {
    min-width: 600px;
  }

  .menu-icon {
    background-color: #2c3e50;
  }
}
