:root {
  --page-background:
    radial-gradient(circle at top left, rgba(21, 85, 145, 0.12), transparent 32%),
    radial-gradient(circle at right 15% bottom 10%, rgba(118, 84, 48, 0.14), transparent 28%),
    linear-gradient(145deg, #f3f6f9 0%, #eef2ed 45%, #f8f1e8 100%);
  --surface: rgba(255, 255, 255, 0.8);
  --surface-border: rgba(255, 255, 255, 0.45);
  --text-primary: #17324c;
  --text-secondary: rgba(23, 50, 76, 0.78);
  --text-inverse: #f7fbff;
  --green-base: #1b6b46;
  --green-strong: rgba(14, 77, 48, 0.78);
  --green-soft: rgba(63, 162, 103, 0.2);
  --brown-base: #7b4d2d;
  --brown-strong: rgba(104, 62, 34, 0.74);
  --brown-soft: rgba(157, 104, 66, 0.22);
  --blue-base: #1f5e92;
  --blue-strong: rgba(21, 57, 91, 0.78);
  --blue-soft: rgba(96, 155, 206, 0.22);
  --shadow-soft: 0 18px 42px rgba(32, 54, 74, 0.12);
  --shadow-card: 0 24px 56px rgba(11, 25, 37, 0.22);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  background: var(--page-background);
  color: var(--text-primary);
  font-family: "Outfit", "Segoe UI", sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.landing-shell {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(0.75rem, 2.4vh, 1.5rem);
  padding:
    max(0.9rem, env(safe-area-inset-top))
    clamp(0.95rem, 3vw, 2rem)
    max(0.9rem, env(safe-area-inset-bottom));
  overflow: hidden;
  isolation: isolate;
}

.landing-shell::before,
.landing-shell::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 999px;
  filter: blur(0);
  z-index: -1;
}

.landing-shell::before {
  top: -8vh;
  right: -5vw;
  width: clamp(10rem, 20vw, 18rem);
  height: clamp(10rem, 20vw, 18rem);
  background: rgba(29, 108, 74, 0.08);
}

.landing-shell::after {
  bottom: -10vh;
  left: -6vw;
  width: clamp(11rem, 24vw, 19rem);
  height: clamp(11rem, 24vw, 19rem);
  background: rgba(123, 77, 45, 0.08);
}

.hero-header,
.hero-footer {
  width: min(100%, 1120px);
  margin: 0 auto;
}

.hero-header {
  display: grid;
  justify-items: center;
  gap: clamp(0.55rem, 1.8vh, 1rem);
  text-align: center;
}

.brand-logo {
  width: min(100%, clamp(9rem, 18vw, 18rem));
  object-fit: contain;
}

.hero-copy {
  display: grid;
  gap: 0.35rem;
  max-width: min(100%, 42rem);
}

.hero-kicker {
  margin: 0;
  color: rgba(27, 107, 70, 0.88);
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: clamp(0.75rem, 1.8vw, 0.92rem);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: clamp(1.35rem, 3vw, 2.45rem);
  font-weight: 800;
  line-height: 1.05;
}

.hero-support {
  margin: 0;
  color: var(--text-secondary);
  font-size: clamp(0.88rem, 1.8vw, 1.03rem);
  line-height: 1.45;
}

.hero-main {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cards-grid {
  --visible-cards: 2;
  width: min(100%, 1120px);
  height: min(100%, clamp(20rem, 54vh, 31rem));
  min-height: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(var(--visible-cards), minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: clamp(0.9rem, 2.5vw, 1.7rem);
  align-items: stretch;
}

.app-card {
  position: relative;
  height: 100%;
  min-height: 0;
  border-radius: clamp(1.2rem, 2.2vw, 1.8rem);
  overflow: hidden;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: var(--shadow-card);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.app-card[hidden] {
  display: none;
}

.app-card::before,
.app-card::after {
  content: "";
  position: absolute;
  inset: 0;
}

.app-card::before {
  background:
    linear-gradient(180deg, rgba(10, 18, 28, 0.12) 0%, rgba(10, 18, 28, 0.66) 100%);
}

.app-card::after {
  backdrop-filter: saturate(1.15);
}

.app-card:hover,
.app-card:focus-visible {
  transform: translateY(-4px);
  filter: brightness(1.02);
}

.app-card:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}

.app-card--agro {
  background-image:
    linear-gradient(180deg, rgba(27, 107, 70, 0.18) 0%, rgba(27, 107, 70, 0.18) 100%),
    url("./assets/image/card-agro.png");
}

.app-card--agro::after {
  background:
    linear-gradient(135deg, rgba(80, 170, 114, 0.18), transparent 40%),
    linear-gradient(180deg, rgba(27, 107, 70, 0.22), var(--green-strong));
}

.app-card--clima {
  background-image:
    linear-gradient(180deg, rgba(123, 77, 45, 0.18) 0%, rgba(123, 77, 45, 0.18) 100%),
    url("./assets/image/card-clima.png");
}

.app-card--clima::after {
  background:
    linear-gradient(135deg, rgba(210, 152, 106, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(123, 77, 45, 0.2), var(--brown-strong));
}

.app-card--urbano {
  background-image:
    linear-gradient(180deg, rgba(31, 94, 146, 0.18) 0%, rgba(31, 94, 146, 0.18) 100%),
    url("./assets/image/card-urbano.png");
}

.app-card--urbano::after {
  background:
    linear-gradient(135deg, rgba(132, 187, 235, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(31, 94, 146, 0.2), var(--blue-strong));
}

.card-content {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(0.45rem, 1.5vh, 0.75rem);
  padding: clamp(0.9rem, 2.4vw, 1.45rem);
  color: var(--text-inverse);
}

.card-pill {
  width: fit-content;
  max-width: 100%;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  font-size: clamp(0.74rem, 1.5vw, 0.88rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.card-content h2 {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800;
  line-height: 1.05;
}

.card-content p {
  margin: 0;
  max-width: 30ch;
  color: rgba(247, 251, 255, 0.92);
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  line-height: 1.45;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.card-cta {
  width: fit-content;
  margin-top: auto;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  background: rgba(247, 251, 255, 0.14);
  border: 1px solid rgba(247, 251, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: clamp(0.88rem, 1.4vw, 0.94rem);
  font-weight: 700;
}

.hero-footer {
  display: flex;
  justify-content: center;
  align-items: center;
}

.partners-logo {
  width: min(100%, clamp(14rem, 32vw, 35rem));
  max-height: clamp(1.7rem, 6vh, 3.25rem);
  object-fit: contain;
}

@media (max-width: 860px) {
  .cards-grid {
    width: min(100%, 34rem);
    height: 100%;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(var(--visible-cards), minmax(0, 1fr));
  }

  .card-content p {
    max-width: none;
  }
}

@media (max-height: 780px) {
  .landing-shell {
    gap: 0.75rem;
  }

  .hero-copy {
    gap: 0.28rem;
  }

  .hero-footer {
    min-height: 0;
  }
}

@media (max-width: 540px), (max-height: 680px) {
  .landing-shell {
    padding-inline: 0.85rem;
  }

  .brand-logo {
    width: min(100%, 8.6rem);
  }

  .hero-kicker {
    font-size: 0.72rem;
  }

  .hero-copy h1 {
    font-size: clamp(1.18rem, 6vw, 1.55rem);
  }

  .hero-support {
    font-size: 0.85rem;
  }

  .card-content {
    padding: 0.85rem;
  }

  .card-content h2 {
    font-size: clamp(1.2rem, 5vw, 1.5rem);
  }

  .card-content p {
    font-size: 0.84rem;
  }

  .card-pill,
  .card-cta {
    font-size: 0.78rem;
  }

  .partners-logo {
    width: min(100%, 16rem);
  }
}

@media (max-height: 680px) {
  .landing-shell {
    gap: 0.55rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .hero-header {
    gap: 0.35rem;
  }

  .hero-support {
    display: none;
  }

  .cards-grid {
    gap: 0.7rem;
  }

  .card-content {
    padding: 0.78rem;
  }

  .card-content p {
    font-size: 0.78rem;
    line-height: 1.3;
    -webkit-line-clamp: 2;
  }

  .card-pill,
  .card-cta {
    padding: 0.38rem 0.7rem;
  }

  .partners-logo {
    max-height: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-card {
    transition: none;
  }
}

.maintenance-main {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
}

.maintenance-main .brand-logo {
  width: clamp(11rem, 28vw, 18rem);
  height: auto;
}

.maintenance-text {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 5vw, 3rem);
  letter-spacing: 0.01em;
  color: var(--color-text, #1b1b1b);
}
