/* ---------------------------------------------------------------------------
   Public landing page, adapted from the legacy "landing-page" template.
   --------------------------------------------------------------------------- */

.landing {
  background: var(--surface);
}

/* --- Navigation ----------------------------------------------------------- */

.landing-nav {
  background: var(--light);
  border-block-end: 1px solid var(--border);
}

.landing-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.landing-brand {
  color: var(--dark);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.landing-brand:hover {
  color: var(--primary);
  text-decoration: none;
}

/* --- Masthead ------------------------------------------------------------- */

.masthead {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(28rem, 60vh, 40rem);
  padding: 4rem 1.25rem;
  background-image: url("/static/img/bg-masthead.jpg");
  background-position: center;
  background-size: cover;
  text-align: center;
  isolation: isolate;
}

.masthead-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(58, 59, 69, 0.35) 0%,
    rgba(58, 59, 69, 0.6) 100%
  );
}

.masthead-inner {
  display: grid;
  justify-items: center;
  gap: 2rem;
}

.masthead h1 {
  max-width: 46rem;
  color: #fff;
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.1rem);
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

/* --- Feature icons -------------------------------------------------------- */

.features {
  padding-block: 4.5rem;
  background: var(--light);
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2.5rem 2rem;
  list-style: none;
}

.feature {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 6.5rem;
  height: 6.5rem;
  margin-block-end: 0.75rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0.6rem 1.6rem rgba(78, 115, 223, 0.35);
}

.feature-icon svg {
  width: 2.5rem;
  height: 2.5rem;
}

.feature h2 {
  font-size: 1.25rem;
  color: var(--dark);
}

.feature p {
  max-width: 19rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* --- Showcases ------------------------------------------------------------ */

.showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  min-height: 24rem;
}

.showcase-media {
  min-height: 22rem;
  background-position: center;
  background-size: cover;
}

.showcase-media-1 {
  background-image: url("/static/img/bg-showcase-1.jpg");
}

.showcase-media-2 {
  background-image: url("/static/img/bg-showcase-2.jpg");
}

.showcase-text {
  display: grid;
  align-content: center;
  gap: 0.75rem;
  padding: 3rem clamp(1.5rem, 5vw, 4.5rem);
  background: var(--surface);
}

.showcase-text h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  color: var(--dark);
}

.showcase-text .lead {
  max-width: 30rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.showcase-reverse .showcase-media {
  order: 2;
}

/* --- Team ----------------------------------------------------------------- */

.team {
  padding-block: 4.5rem;
  background: var(--light);
  text-align: center;
}

.team > .container > h2 {
  margin-block-end: 2.75rem;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  color: var(--dark);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 2.5rem 1.5rem;
  max-width: 64rem;
  margin-inline: auto;
  list-style: none;
}

.team-member {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
}

.team-photo {
  width: 9.5rem;
  height: 9.5rem;
  margin-block-end: 0.75rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0.5rem 1.4rem rgba(58, 59, 69, 0.18);
}

.team-member h3 {
  font-size: 1.02rem;
  color: var(--dark);
}

.team-member p {
  max-width: 17rem;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

/* --- Call to action ------------------------------------------------------- */

.call-to-action {
  position: relative;
  padding-block: 4.5rem;
  background-image: url("/static/img/bg-showcase-3.jpg");
  background-position: center;
  background-size: cover;
  text-align: center;
  isolation: isolate;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(58, 59, 69, 0.62);
}

.cta-inner {
  display: grid;
  justify-items: center;
  gap: 1.75rem;
}

.call-to-action h2 {
  max-width: 40rem;
  color: #fff;
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem);
  text-wrap: balance;
}

/* --- Footer --------------------------------------------------------------- */

.landing-footer {
  padding-block: 3rem;
  background: var(--light);
}

.landing-footer-inner {
  display: grid;
  gap: 1rem;
  justify-items: center;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  list-style: none;
  color: var(--text-muted);
}

.footer-links a {
  color: var(--primary);
  font-size: 0.9rem;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 900px) {
  .showcase {
    grid-template-columns: minmax(0, 1fr);
  }

  .showcase-reverse .showcase-media {
    order: 0;
  }

  .showcase-media {
    min-height: 17rem;
  }

  .showcase-text {
    padding-block: 2.25rem;
  }
}

@media (max-width: 480px) {
  .masthead {
    min-height: 26rem;
    padding-block: 3rem;
  }

  .team-photo {
    width: 8rem;
    height: 8rem;
  }
}

/* Asegura que el texto y los botones estén por encima del overlay oscuro */
.masthead-inner,
.cta-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

/* Opcional: Caja semitransparente para que título y botón destaquen sobre cualquier fondo */
.masthead-box {
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  padding: 2.25rem 2.5rem;
  max-width: 780px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

/* Estilo de caja-botón destacada para "See map viewer" */
.masthead .btn-primary,
.call-to-action .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background-color: #0d6efd;        /* Azul intenso de alto contraste */
  color: #ffffff;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.95rem 2.1rem;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.85); /* Borde claro que lo separa del fondo */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45), 0 0 0 4px rgba(13, 110, 253, 0.35);
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.masthead .btn-primary:hover,
.call-to-action .btn-primary:hover {
  background-color: #0b5ed7;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55), 0 0 0 5px rgba(13, 110, 253, 0.5);
}

.masthead .btn-primary:focus-visible,
.call-to-action .btn-primary:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}