:root {
  --green: #00843d;
  --green-dark: #006d36;
  --green-soft: #e6f5ec;
  --blue: #005aa9;
  --cyan: #00a7c8;
  --ink: #14323f;
  --muted: #5f7480;
  --line: #d9e4e8;
  --surface: #ffffff;
  --bg: #f4f8f9;
  --shadow: 0 20px 50px rgba(15, 49, 61, 0.18);
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(20, 50, 63, 0.08);
}

.topbar {
  background: var(--green);
  color: #fff;
  font-size: 0.82rem;
}

.topbar__inner,
.navbar,
.hero__content,
.section,
.digital,
.footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar__inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0;
}

.topbar nav,
.main-nav,
.footer nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.navbar {
  min-height: 74px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.42rem;
  color: var(--green);
}

.brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 65% 35%, #fff 0 14%, transparent 15%),
    conic-gradient(from 40deg, var(--green), var(--cyan), var(--blue), var(--green));
  box-shadow: inset 0 0 0 5px #fff, 0 0 0 2px var(--green);
}

.main-nav {
  justify-content: center;
  color: #2b4d5b;
  font-weight: 700;
  font-size: 0.94rem;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
}

.nav-cta,
.button--primary {
  color: #fff;
  background: var(--green);
}

.button--primary:hover,
.nav-cta:hover {
  background: var(--green-dark);
}

.button--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
}

.button--full {
  width: 100%;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
}

.menu-button span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  background:
    linear-gradient(90deg, rgba(0, 74, 55, 0.88), rgba(0, 132, 61, 0.7) 45%, rgba(0, 90, 169, 0.62)),
    url("https://s3capt.s3.amazonaws.com/FondoBancamiga1920x1080.png") center / cover;
}

.hero__overlay {
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(0deg, var(--bg), rgba(244, 248, 249, 0));
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 48px;
  align-items: center;
  min-height: 650px;
  padding: 64px 0 96px;
}

.hero__copy {
  color: #fff;
  max-width: 660px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.78rem;
}

.hero .eyebrow,
.office-band .eyebrow {
  color: #d9fff0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.45rem, 5vw, 4.8rem);
  line-height: 1.02;
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.12;
  margin-bottom: 14px;
}

h3 {
  font-size: 1.35rem;
}

.hero__lead {
  max-width: 560px;
  font-size: 1.2rem;
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.login-panel {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 8px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.login-panel__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #edf5f7;
  border-radius: 6px;
  padding: 4px;
  margin-bottom: 22px;
}

.login-panel__tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.login-panel__tabs .active {
  background: #fff;
  color: var(--green);
  box-shadow: 0 6px 14px rgba(20, 50, 63, 0.1);
}

.login-panel label {
  display: block;
  margin: 14px 0 7px;
  font-weight: 800;
  font-size: 0.9rem;
}

.login-panel input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 14px;
  font: inherit;
}

.login-panel form .button {
  margin-top: 18px;
}

.login-panel__links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  color: var(--blue);
  font-weight: 800;
  font-size: 0.9rem;
}

.quick-actions {
  position: relative;
  z-index: 2;
  width: min(1060px, calc(100% - 40px));
  margin: -58px auto 70px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.quick-actions a {
  min-height: 116px;
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 22px 16px;
  font-weight: 900;
  color: #214654;
  border-right: 1px solid var(--line);
}

.quick-actions a:last-child {
  border-right: 0;
}

.icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: block;
  background: var(--green-soft);
  position: relative;
}

.icon::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 2px solid var(--green);
  border-radius: 4px;
}

.icon-phone::after {
  inset: 6px 10px;
  border-radius: 7px;
}

.icon-location::after {
  width: 12px;
  height: 12px;
  inset: 8px auto auto 11px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.icon-lock::after {
  inset: 13px 8px 7px;
}

.section {
  padding: 26px 0 80px;
}

.section__heading {
  max-width: 650px;
  margin-bottom: 32px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  min-height: 240px;
  box-shadow: 0 12px 34px rgba(20, 50, 63, 0.08);
}

.product-card__accent {
  display: block;
  width: 56px;
  height: 6px;
  border-radius: 20px;
  background: var(--green);
  margin-bottom: 24px;
}

.product-card__accent--blue {
  background: var(--blue);
}

.product-card__accent--cyan {
  background: var(--cyan);
}

.product-card p,
.digital p,
.office-band p,
.security p,
.footer p {
  color: var(--muted);
  line-height: 1.55;
}

.product-card a {
  color: var(--green);
  font-weight: 900;
}

.digital {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  padding: 80px 0;
}

.phone-card {
  min-height: 520px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e6f5ec, #dff6fb);
  display: grid;
  place-items: center;
}

.phone-card__screen {
  width: 230px;
  min-height: 420px;
  border: 10px solid #102b3a;
  border-radius: 30px;
  background: #fff;
  padding: 28px 20px;
  box-shadow: var(--shadow);
}

.phone-card__logo {
  display: block;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  margin-bottom: 34px;
  background: conic-gradient(var(--green), var(--cyan), var(--blue), var(--green));
}

.phone-card strong {
  display: block;
  font-size: 1.6rem;
  margin-bottom: 30px;
  color: var(--green);
}

.phone-card__rows {
  display: grid;
  gap: 12px;
}

.phone-card__rows span {
  height: 44px;
  border-radius: 6px;
  background: #eef5f7;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.feature-list span {
  padding: 10px 14px;
  border-radius: 6px;
  color: var(--green);
  background: var(--green-soft);
  font-weight: 900;
}

.office-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: 42px;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--blue));
  border-radius: 8px;
  margin-bottom: 80px;
}

.office-band p {
  color: #dff7ef;
}

.security {
  background: #fff;
  border-block: 1px solid var(--line);
}

.security__content {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0;
  text-align: center;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 36px 0;
}

.footer strong {
  color: var(--green);
  font-size: 1.3rem;
}

@media (max-width: 920px) {
  .topbar__inner {
    flex-direction: column;
    gap: 8px;
  }

  .navbar {
    grid-template-columns: auto auto;
  }

  .menu-button {
    display: block;
    justify-self: end;
  }

  .main-nav {
    display: none;
    grid-column: 1 / -1;
    justify-content: start;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 0 20px;
  }

  .main-nav.open {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .hero__content,
  .digital {
    grid-template-columns: 1fr;
  }

  .quick-actions,
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .office-band,
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .topbar nav {
    flex-wrap: wrap;
    gap: 14px;
  }

  .hero__content,
  .section,
  .digital,
  .footer,
  .topbar__inner,
  .navbar {
    width: min(100% - 28px, 1180px);
  }

  .quick-actions,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .quick-actions a {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .login-panel {
    padding: 20px;
  }
}
