/* ===== Base ===== */
body {
  margin: 0;
  font-family: "Helvetica", sans-serif;
  background-color: #4a4948 !important;
  color: #333;
  overflow-y: auto;
}

/* ===== Navbar ===== */

.custom-navbar {
  background-color: #4a4948 !important;
  padding: 14px 40px;
}

.custom-navbar .navbar-brand {
  color: #ffffff !important;
  font-weight: 600;
  letter-spacing: 1px;
}

.custom-navbar .navbar-brand:hover {
  color: #ffd6cc !important;
}

.custom-navbar .nav-link {
  color: #ffffff !important;
  margin-left: 20px;
  font-family: "Zalando Sans", sans-serif;
  font-weight: 500;
  transition: color 0.3s ease;
}

.custom-navbar .nav-link:hover {
  color: #ffd6cc !important;
}

/* ===== HERO (desktop por defecto) ===== */
.hero {
  background-image: url("img/intro.png");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: contain;
  background-color: #ffe8e5;

  height: 90vh;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 200px;
  margin-bottom: 0;
}

/* ===== CTA opcional dentro del hero ===== */
.hero-btn {
  background-color: #4a4948;
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.hero-btn:hover {
  background-color: transparent;
  border: 2px solid #4a4948;
  color: #4a4948;
}

/* ===== BRIEF ===== */
.brief {
  background-color: #ffe4cd;
  padding: 100px 0;
  margin-top: 0 !important;
}

/* Cards */
.card-img-top {
  width: 100%;
  height: auto;
  display: block;
}

.brief .card {
  border: 5px solid #4a4948;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
}

.card a {
  display: inline-block;
  background-color: #4a4948;
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.card a:hover {
  background-color: transparent;
  color: #4a4948;
  border: 2px solid #4a4948;
}

/* Tipografía extra */
.title {
  font-family: "Playfair Display", serif;
}

/* ===== Globe (si lo usas en otra página) ===== */

/* ===== Footer ===== */
footer {
  background-color: #474644;
}

/* ===== Fix: quitar hueco bajo el hero en desktop ===== */
.hero {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* ===== HERO móvil con imagen vertical ===== */
@media (max-width: 768px) {
  body {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .navbar {
    margin-bottom: 0 !important;
  }

  /* Proporción de la imagen vertical (ej. 768x1152 → 150%) */
  :root {
    --hero-ratio: 150%;
  }

  .hero {
    position: relative;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;

    background-color: #ffe8e5;
    background-image: url("/img/back2.png") !important;
    background-size: contain !important;
    background-position: top center !important;
    background-repeat: no-repeat !important;
  }

  .hero::before {
    content: "";
    display: block;
    width: 100%;
    padding-top: var(--hero-ratio);
  }

  .brief {
    margin-top: 0 !important;
    padding-top: 80px;
  }
}

/* ===== Cards más grandes (2 por fila y tercera centrada en móvil) ===== */
@media (max-width: 768px) {
  .brief {
    padding: 50px 0; /* un poco más de espacio vertical */
  }

  .brief .row {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    justify-items: center;
  }

  /* Centrar la tercera card si hay número impar */
  .brief .row > div:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .brief .card {
    max-width: 13.5rem !important;
    border-width: 3px;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  }

  .brief .card img {
    width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
  }

  .brief .card-body {
    padding: 10px;
  }

  .brief .card-text {
    font-size: 0.8rem;
    margin-bottom: 8px;
  }

  .brief .card a {
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 16px;
  }
}

.travel-avatar {
  width: 200px;
}

.footer {
  background-color: #4a4948;
  color: #fff;
  padding: 35px 20px 15px;
  font-family: "Zalando Sans", sans-serif !important;
  text-align: center;
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr 0.5fr 1fr;
  justify-content: center;
  align-items: start;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto 15px;
}

.footer-left,
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Columna central vacía */
.footer-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-left h4,
.footer-right h4 {
  font-family: "Zalando Sans", sans-serif !important;
  font-size: 1.2rem;
  margin-bottom: 6px;
  color: #ffe9e6;
}

.footer-left p {
  font-size: 0.85rem;
  line-height: 1.4;
  color: #f2f2f2;
  max-width: 340px;
  margin: 0;
}

.footer-right ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-right li {
  margin-bottom: 4px;
}

.footer-right a {
  color: #ffe9e6;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.footer-right a:hover {
  color: #ffd6cc;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 8px;
  font-size: 0.8rem;
  color: #ccc;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer {
    padding: 25px 16px 12px;
  }

  .footer-left p {
    font-size: 0.8rem;
  }

  .footer-right a {
    font-size: 0.8rem;
  }
}
