:root {
  --header-height: 86px;
  --green: #0f5f46;
  --green-dark: #0b4f3a;
  --blue-btn: #214f9d;
  --text-light: #f5f7fa;
  --card-bg: rgba(11, 38, 56, 0.64);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Montserrat", sans-serif;
  background: #07131c;
  color: var(--text-light);
  overflow: hidden;
}

.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-height);
  background: linear-gradient(90deg, var(--green-dark), var(--green));
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.header-left {
  min-width: 170px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 4vw, 60px);
}

.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-link {
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.4px;
  font-size: 1rem;
  padding: 8px 14px;
  border-radius: 10px;
  transition: box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #d3f6e9;
}

.nav-link.active-link {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(2px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    0 0 10px rgba(255, 255, 255, 0.14);
}

.btn-login {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border: 2px solid rgba(214, 226, 255, 0.9);
  border-radius: 10px;
  background: var(--blue-btn);
  padding: 10px 22px;
  min-width: 170px;
  text-align: center;
}

.horizontal-scroll {
  height: 100vh;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.horizontal-scroll::-webkit-scrollbar {
  height: 10px;
}

.horizontal-scroll::-webkit-scrollbar-thumb {
  background: #2a5a4c;
  border-radius: 100px;
}

.panel {
  flex: 0 0 100vw;
  height: 100vh;
  padding-top: var(--header-height);
  position: relative;
  scroll-snap-align: start;
  overflow: hidden;
}

.panel-inicio {
  background-image: url("./assets/inicio-bg.png");
  background-size: cover;
  background-position: center;
}

.overlay {
  position: absolute;
  inset: var(--header-height) 0 0 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.36) 42%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

.inicio-content {
  position: relative;
  z-index: 2;
  height: calc(100vh - var(--header-height));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 5vw, 56px);
}

.brand h1 {
  margin: 0;
  font-size: clamp(2.3rem, 8vw, 6.2rem);
  line-height: 0.98;
}

.brand p {
  margin: 4px 0;
  font-size: clamp(1rem, 2.5vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 1px;
}

.frase {
  margin: 0 0 18px;
  max-width: 550px;
  font-weight: 700;
  font-size: clamp(1rem, 2.4vw, 2rem);
  line-height: 1.25;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.46);
}

.panel-mision {
  background: radial-gradient(circle at 8% 15%, #184331 0%, #0d1f2a 45%, #070d16 100%);
}

.section-content {
  width: min(1260px, 92vw);
  margin: 0 auto;
  padding: 44px 0 36px;
}

.section-content h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  margin: 0 0 14px;
}

.section-subtitle {
  max-width: 920px;
  margin: 0 0 30px;
  font-size: clamp(0.95rem, 1.3vw, 1.2rem);
  line-height: 1.58;
  opacity: 0.92;
}

.islas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.isla {
  background: var(--card-bg);
  border: 1px solid rgba(164, 218, 195, 0.25);
  border-radius: 18px;
  padding: 24px;
  backdrop-filter: blur(4px);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.28s ease, border-color 0.28s ease, transform 0.28s ease;
}

.isla:hover {
  border-color: rgba(161, 240, 196, 0.8);
  box-shadow:
    0 10px 35px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(165, 239, 199, 0.35),
    0 0 26px rgba(91, 201, 148, 0.5),
    0 0 44px rgba(77, 170, 135, 0.26);
  transform: translateY(-2px);
}

.isla-mark {
  width: 48px;
  height: 4px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 12px;
  background: linear-gradient(90deg, #8fd7ac 0%, #44b48b 100%);
  box-shadow: 0 0 18px rgba(143, 215, 172, 0.35);
}

.isla h3 {
  margin-top: 0;
  margin-bottom: 12px;
  color: #9de5b8;
  opacity: 0;
  transform: translateY(8px);
  animation: riseIn 0.55s ease forwards;
  animation-delay: 0.3s;
}

.isla p {
  margin: 0 0 12px;
  line-height: 1.55;
  font-size: 0.97rem;
  opacity: 0;
  transform: translateY(8px);
  animation: riseIn 0.5s ease forwards;
  animation-delay: 0.08s;
}

.isla:nth-child(2) h3,
.isla:nth-child(2) p {
  animation-delay: 0.42s;
}

.isla:nth-child(2) p {
  animation-delay: 0.2s;
}

.isla:nth-child(3) h3,
.isla:nth-child(3) p {
  animation-delay: 0.54s;
}

.isla:nth-child(3) p {
  animation-delay: 0.32s;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel-proceso {
  background: radial-gradient(circle at 8% 15%, #184331 0%, #0d1f2a 45%, #070d16 100%);
}

.panel-contacto {
  background: linear-gradient(145deg, #112735, #0a1520 60%, #050c13);
}

.section-metodo {
  padding-top: 44px;
}

.metodo-islas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  position: relative;
}

.metodo-isla {
  overflow: visible;
  min-height: 320px;
}

.metodo-mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  margin-bottom: 10px;
  background: linear-gradient(145deg, #9de5b8, #56b98e);
  color: #0a2b1f;
  font-weight: 800;
  font-size: 0.82rem;
  box-shadow: 0 0 18px rgba(106, 197, 151, 0.35);
}

.metodo-isla h3 {
  margin: 0 0 8px;
  letter-spacing: 0.6px;
  opacity: 0;
  transform: translateY(8px);
  animation: riseIn 0.5s ease forwards;
  animation-delay: 0.12s;
}

.metodo-isla h4 {
  margin: 0 0 12px;
  color: #c2f4db;
  font-size: 0.98rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  animation: riseIn 0.5s ease forwards;
  animation-delay: 0.26s;
}

.metodo-isla p {
  margin-bottom: 0;
  opacity: 0;
  transform: translateY(8px);
  animation: riseIn 0.55s ease forwards;
  animation-delay: 0.38s;
}

.metodo-isla:nth-child(2) h3 {
  animation-delay: 0.24s;
}

.metodo-isla:nth-child(2) h4 {
  animation-delay: 0.38s;
}

.metodo-isla:nth-child(2) p {
  animation-delay: 0.5s;
}

.metodo-isla:nth-child(3) h3 {
  animation-delay: 0.36s;
}

.metodo-isla:nth-child(3) h4 {
  animation-delay: 0.5s;
}

.metodo-isla:nth-child(3) p {
  animation-delay: 0.62s;
}

.metodo-isla:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -16px;
  top: 50%;
  width: 14px;
  border-top: 2px dashed rgba(170, 235, 202, 0.8);
}

.metodo-isla:not(:last-child)::before {
  content: "";
  position: absolute;
  right: -22px;
  top: calc(50% - 4px);
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 7px solid rgba(170, 235, 202, 0.9);
}

.section-content.simple {
  display: grid;
  place-content: center;
  text-align: center;
  height: calc(100vh - var(--header-height));
}

.section-content.simple p {
  max-width: 760px;
  line-height: 1.6;
  opacity: 0.92;
}

.cta {
  display: inline-block;
  margin-top: 8px;
  color: #b5f0cb;
  font-weight: 700;
}

@media (max-width: 900px) {
  .header {
    padding: 0 14px;
    gap: 10px;
  }

  .header-left {
    min-width: auto;
  }

  .nav-center {
    position: static;
    transform: none;
  }

  .nav {
    gap: 14px;
    flex-wrap: wrap;
  }

  .nav-link {
    font-size: 0.85rem;
  }

  .btn-login {
    min-width: auto;
    font-size: 0.85rem;
    padding: 8px 14px;
  }

  .islas {
    grid-template-columns: 1fr;
  }

  .metodo-islas {
    grid-template-columns: 1fr;
  }

  .metodo-isla:not(:last-child)::after,
  .metodo-isla:not(:last-child)::before {
    display: none;
  }
}
