/* ======== Reset general ======== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #111;
  color: #eaeaea;
}

a {
  text-decoration: none;
  color: #f43f5e;
  transition: color 0.2s ease;
}

a:hover {
  text-decoration: underline;
  color: #ff758f;
}

/* ======== Estructura general ======== */
body {
  display: grid;
  grid-template-areas:
    "header"
    "main"
    "aside"
    "footer";
  grid-template-columns: 1fr;
  max-width: 1200px;
  margin: auto;
  padding: 20px;
  padding-top: 0;
}

/* ======== HEADER ======== */
.site-header {
  grid-area: header;
  background-color: #1a1a1a;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  top: 0;
  z-index: 999;
}

.header-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: #f43f5e;
}

.logo span {
  color: #fff;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

.main-nav a {
  color: #ccc;
  font-weight: 500;
  font-size: 16px;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: #f43f5e;
  text-decoration: underline;
}

/* ======== MAIN ======== */
main {
  grid-area: main;
  margin-top: 30px;
  background-color: #1e1e1e;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

main .intro {
  margin-bottom: 30px;
}

main .intro h1 {
  font-size: 26px;
  color: #f43f5e;
  margin-bottom: 10px;
}

main .intro p {
  font-size: 16px;
  color: #ccc;
}

/* ======== LISTING ======== */
.listing {
  display: flex;
  flex-direction: column;
  background-color: #2a2a2a;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  padding: 15px;
  margin-bottom: 30px;
  margin-top: 5%;
}

.listing-top {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.listing-image {
  width: 400px;
  height: auto;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 6px;
}

.listing-content {
  flex: 60%;
  display: flex;
  flex-direction: column;
}

.listing-content h2 {
  margin-bottom: 10px;
  color: #f43f5e;
  font-size: 22px;
}

.listing-content p {
  margin-bottom: 6px;
  font-size: 15px;
  color: #eaeaea;
}

.listing-description {
  margin-top: 10px;
  padding: 10px;
  background-color: #333;
  border-left: 3px solid #f43f5e;
  border-radius: 4px;
  color: #ccc;
  line-height: 1.5;
  flex-grow: 1;
}

/* Botón abajo de todo, centrado */
.listing-button {
  margin-top: 40px;
  text-align: center;
  display: inline;
}

.center {
  text-align: center;
}

.btn-action {
  display: inline-block;
  background-color: #f43f5e;
  color: #fff;
  padding: 10px 25px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 16px;
  transition: background-color 0.3s ease;
  text-decoration: none;
  padding-left: 15%;
  padding-right: 15%;
  margin-top: 5%;
}

.btn-action:hover {
  background-color: #d9344f;
}

/* ======== ASIDE (vacío por ahora) ======== */
.sidebar {
  grid-area: aside;
  margin-top: 30px;
  background-color: #1e1e1e;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #333;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.03);
  min-height: 80px;
}

/* ======== FOOTER ======== */
footer {
  grid-area: footer;
  margin-top: 40px;
  text-align: center;
  font-size: 14px;
  padding: 20px 0;
  color: #888;
  border-top: 1px solid #333;
  background-color: #1a1a1a;
}

footer a {
  margin: 0 10px;
  color: #aaa;
}

footer a:hover {
  color: #f43f5e;
}

/* ======== RESPONSIVE ======== */
@media (min-width: 768px) {
  body {
    grid-template-areas:
      "header header"
      "main aside"
      "footer footer";
  }

  .header-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (max-width: 600px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .listing-top {
    flex-direction: column;
    align-items: center;
  }

  .listing-image {
    width: 100%;
    height: 200px;
    border-radius: 6px;
  }

  .listing-content {
    width: 100%;
  }

  .listing-button {
    margin-top: 15px;
  }
}

/* ======== CIUDADES ======== */
.city-listing {
  margin-top: 40px;
}

.city-listing h2 {
  font-size: 22px;
  color: #f43f5e;
  margin-bottom: 20px;
  text-align: center;
}

.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
}

.city-grid a {
  display: block;
  padding: 12px 15px;
  background-color: #292929;
  color: #fafafa;
  text-align: center;
  border-radius: 6px;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: 1px solid #444;
  box-shadow: 0 2px 6px rgba(255, 255, 255, 0.02);
}

.city-grid a:hover {
  background-color: #f43f5e;
  color: #fff;
  transform: translateY(-2px);
}
