*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(180deg, #6DD2FF 0%, #00477A 100%);
  min-height: 100vh;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  overflow-x: hidden;
}

/* ==============================
   NAV
============================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 110px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav img {
  height: 63.7px;
  width: auto;
}

/* ==============================
   MAIN WRAPPER
============================== */
main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 35px;
}

/* ==============================
   HERO
============================== */
.hero {
  padding-top: 80px;
  text-align: center;
  color: #fff;
  margin-bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero h1 {
  font-size: 50px;
  font-weight: 800;
  line-height: 1.2;
}

.hero p {
  font-size: 24px;
  font-weight: 400;
}

/* ==============================
   DESTINATIONS GRID
============================== */
.destinations {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 80px;
}

.dest-row {
  display: flex;
  align-items: flex-start;
}

.dest-row-1 {
  justify-content: space-between;
}

.dest-row-2 {
  justify-content: center;
  gap: 100px;
}

/* ==============================
   DESTINATION CARD
============================== */
.dest-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 205px;
  cursor: pointer;
}

.dest-card:hover .card-img {
  transform: translateY(-5px) scale(1.025);
}

.card-img {
  width: 192px;
  max-width: 100%;
  display: block;
  transition: transform 0.25s ease;
}

/* Label below the card */
.card-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 5px 10px;
  border-radius: 0 10px 0 10px;
}

.card-texts {
  text-align: center;
}

.card-city {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.card-country {
  font-size: 18px;
  font-weight: 300;
  color: #fff;
  line-height: 1.3;
}

/* Radio button */
.radio-btn {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.dest-card:hover .radio-btn {
  border-color: rgba(255, 255, 255, 0.85);
  transform: scale(1.1);
}

.dest-card.voted .radio-btn {
  background: #fff;
  border-color: #fff;
}

/* ==============================
   VOTAR BUTTON
============================== */
.votar-section {
  display: flex;
  justify-content: center;
  margin-bottom: 80px;
}

.btn-votar {
  width: 474px;
  height: 55px;
  background: #FFB81C;
  border: none;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #003865;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
}

.btn-votar:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* ==============================
   INFO CARDS
============================== */
.info-section {
  display: flex;
  gap: 20px;
  margin-bottom: 80px;
  padding-left: 65px; /* 35px main padding + 65px = 100px from left edge (Figma x=100) */
}

.info-card {
  width: 400px;
  flex-shrink: 0;
  background: #003865;
  border-radius: 5px;
  padding: 10px;
}

.info-card-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
}

.info-card p {
  font-size: 12px;
  font-weight: 400;
  color: #fff;
  line-height: 1.55;
  text-align: left;
}

.info-card a {
  color: #6DD2FF;
  text-decoration: underline;
}

/* ==============================
   FOOTER
============================== */
footer {
  background: #003865;
  padding: 20px 100px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.footer-top {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 333px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 0;
}

.footer-logo {
  height: 76px;
  width: auto;
  flex-shrink: 0;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 20px 0;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 40px;
}

.footer-links a {
  color: #fff;
  font-size: 12px;
  font-weight: 300;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.footer-sep {
  width: 1px;
  height: 16px;
  background: #fff;
  flex-shrink: 0;
}

.footer-note {
  color: #FFAE20;
  font-size: 12px;
  font-weight: 400;
  text-align: center;
  padding-bottom: 4px;
}

/* ==============================
   RESPONSIVE — 1200px
============================== */
@media (max-width: 1199px) {
  .dest-row-1 {
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
  }

  .dest-row-2 {
    flex-wrap: wrap;
    gap: 40px;
  }

  .footer-top {
    gap: 60px;
  }

  .info-section {
    padding-left: 0;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ==============================
   RESPONSIVE — 900px (tablet)
============================== */
@media (max-width: 900px) {
  main {
    padding: 0 24px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 18px;
  }

  footer {
    padding: 20px 40px;
  }

  .footer-top {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .footer-links-col {
    align-items: center;
    padding: 8px 0;
  }

  .footer-links {
    justify-content: center;
  }
}

/* ==============================
   RESPONSIVE — 600px (mobile)
============================== */
@media (max-width: 600px) {
  .nav {
    height: 72px;
  }

  .nav img {
    height: 44px;
  }

  .hero {
    padding-top: 40px;
    margin-bottom: 48px;
  }

  .hero h1 {
    font-size: 22px;
  }

  .hero p {
    font-size: 14px;
  }

  .destinations {
    gap: 24px;
    margin-bottom: 48px;
  }

  /* Todos los cards en un único grid de 2 columnas */
  .destinations {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .dest-row-1,
  .dest-row-2 {
    display: contents; /* las filas desaparecen; los cards fluyen al grid padre */
  }

  .dest-card {
    width: 100%;
  }

  .card-img {
    width: 100%;
    height: auto;
  }

  .card-city {
    font-size: 15px;
  }

  .card-country {
    font-size: 11px;
  }

  .btn-votar {
    width: 100%;
    max-width: 340px;
    font-size: 18px;
    height: 48px;
  }

  .votar-section {
    margin-bottom: 48px;
  }

  .info-section {
    flex-direction: column;
    align-items: center;
    margin-bottom: 48px;
  }

  .info-card {
    width: 100%;
    max-width: 400px;
  }

  footer {
    padding: 20px 24px;
  }

  .footer-top {
    gap: 12px;
  }

  .footer-links {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .footer-sep {
    display: none;
  }
}
