:root {
  /* --primary-color: #8e44ad; */
  --primary-color: rgba(237, 221, 83, 1);
  /* --secondary-color: #9b59b6; */
  --secondary-color: rgba(0, 48, 85, 1);
  --light-color: #f5eef8;
  --dark-color: #2c3e50;
  --accent-color: #e74c3c;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

header {
  /* background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); */
  background: #EDDD53;
  background: linear-gradient(90deg, rgba(237, 221, 83, 1) 0%, rgba(0, 48, 85, 1) 50%, rgba(237, 221, 83, 1) 100%);
  color: white;
  text-align: center;
  padding: 2rem 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

header h2 {
  font-size: 1.5rem;
  font-weight: 400;
}

main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.filters {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filter-group {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 200px;
}

.filter-group label {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--dark-color);
}

.filter-group select {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  background-color: white;
}

.comparison-section {
  margin-bottom: 3rem;
}

.comparison-section h3, .hotels-section h3 {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
  color: var(--dark-color);
}

.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  overflow: hidden;
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

th {
  background-color: var(--primary-color);
  color: black;
  font-weight: 600;
}

tr:nth-child(even) {
  background-color: #fafafa;
}

tr:hover {
  background-color: var(--light-color);
}

.hotels-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.hotel-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.hotel-card:hover {
  transform: translateY(-5px);
}

.hotel-header {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: black;
  padding: 1.5rem;
}

.hotel-header h4 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.hotel-address, .hotel-phone {
  display: flex;
  align-items: center;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.hotel-rooms {
  padding: 1.5rem;
}

.room-item {
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}

.room-item:last-child {
  border-bottom: none;
}

.room-type {
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

.room-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  font-size: 0.9rem;
}

.room-detail {
  display: flex;
}

.detail-label {
  font-weight: 600;
  min-width: 100px;
  color: #555;
}

.special-notes {
  background-color: #f8f9fa;
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  border-left: 3px solid var(--primary-color);
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  background-color: var(--dark-color);
  color: white;
  margin-top: 3rem;
}

@media (max-width: 768px) {
  .filters {
    flex-direction: column;
  }
  
  .hotels-container {
    grid-template-columns: 1fr;
  }
  
  .room-details {
    grid-template-columns: 1fr;
  }
}

/* Estilos anteriores... */

/* Nuevos estilos para funcionalidades */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.compare-button {
  /* background: linear-gradient(135deg, #8e44ad, #9b59b6); */
  background: linear-gradient(90deg, rgba(237, 221, 83, 1) 0%, rgba(0, 48, 85, 1) 50%, rgba(237, 221, 83, 1) 100%);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.compare-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.compare-button:active {
  transform: translateY(0);
}

th[data-column] {
  cursor: pointer;
  position: relative;
}

th[data-column]:hover {
  background-color: #7d3c98;
}

th[data-column] i {
  margin-left: 5px;
  font-size: 0.8rem;
}

/* Estilos para el modal de comparación */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  overflow: auto;
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 2rem;
  border-radius: 8px;
  width: 90%;
  max-width: 1000px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #8e44ad;
  padding-bottom: 1rem;
}

.close-btn {
  font-size: 2rem;
  cursor: pointer;
  color: #7f8c8d;
  transition: color 0.2s;
}

.close-btn:hover {
  color: #e74c3c;
}

/* Estilos para la tabla de comparación */
.comparison-grid {
  display: grid;
  grid-template-columns: 200px repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  overflow-x: auto;
}

.comparison-header {
  font-weight: bold;
  background-color: #f8f9fa;
  padding: 0.75rem;
  border-bottom: 1px solid #eee;
}

.comparison-item {
  padding: 0.75rem;
  border-bottom: 1px solid #eee;
}

.comparison-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.comparison-card-header {
  background: linear-gradient(135deg, #8e44ad, #9b59b6);
  color: white;
  padding: 1rem;
  font-weight: bold;
}

.comparison-card-body {
  padding: 1rem;
}

/* Estilos para checkboxes */
input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

/* Estilos para la columna de selección */
td:first-child {
  text-align: center;
}

/* ... estilos anteriores ... */

/* Modal de comparación */
.modal-body {
  overflow-x: auto; /* Permite desplazamiento horizontal */
  padding: 1rem 0;
}

.comparison-container {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  min-width: max-content;
  padding: 0.5rem;
}

.comparison-card {
  min-width: 280px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background: white;
  flex-shrink: 0;
}

.comparison-card-header {
  background: linear-gradient(135deg, #8e44ad, #9b59b6);
  color: white;
  padding: 1rem;
  text-align: center;
}

.comparison-hotel {
  font-weight: bold;
  font-size: 1.1rem;
}

.comparison-room {
  font-size: 0.9rem;
  opacity: 0.9;
}

.comparison-card-body {
  padding: 1rem;
}

.comparison-feature {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.comparison-feature:last-child {
  border-bottom: none;
}

.feature-name {
  font-weight: 600;
  color: #555;
}

.feature-value {
  text-align: right;
  max-width: 60%;
  word-break: break-word;
}

/* ... estilos anteriores ... */

/* Estilos para recomendaciones */
.recommendations-section {
  margin-top: 3rem;
  padding: 2rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.recommendations-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.recommendation-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-top: 4px solid #8e44ad;
  transition: transform 0.3s ease;
}

.recommendation-card:hover {
  transform: translateY(-5px);
}

.recommendation-card h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.recommendation-card:nth-child(1) {
  border-top-color: #27ae60;
}

.recommendation-card:nth-child(2) {
  border-top-color: #e74c3c;
}

.recommendation-card:nth-child(3) {
  border-top-color: #f39c12;
}

.recommendation-content {
  padding: 0.5rem 0;
}

.recommendation-hotel {
  font-weight: bold;
  font-size: 1.1rem;
  color: #2c3e50;
}

.recommendation-room {
  font-weight: 500;
  color: #555;
}

.recommendation-price {
  font-weight: bold;
  color: #27ae60;
  margin: 0.5rem 0;
}

.recommendation-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.feature-tag {
  background-color: #e0e7ff;
  color: #4f46e5;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

.recommendation-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: #8e44ad;
  font-weight: 500;
  text-decoration: none;
}

.recommendation-link:hover {
  text-decoration: underline;
}

/* Estilos para scroll suave */
html {
  scroll-behavior: smooth;
}