:root {
  --pink: #EC0A55;
  --blue: #2F72C9;
  --blue-dark: #1E5BB8;
  --link: #2F6FC4;
  --text: #333;
  --muted: #666;
  --border: #E2E2E2;
  --container: 920px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Nunito Sans", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Chevron */
.chev {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  transition: transform .2s;
}
.has-dropdown.is-open .chev { transform: translateY(0) rotate(-135deg); }

/* ---------- Barra institucional ---------- */
.gov-bar__inner {
  max-width: 1024px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gov-brand { display: flex; align-items: center; gap: 6px; }
.gov-brand__flag { display: flex; flex-direction: column; align-items: center; }
.gov-brand__flag svg { width: 20px; height: 13px; }
.gov-brand__flag span { font-size: 4px; font-weight: 800; color: #00247D; letter-spacing: .2px; }
.gov-brand__divider { width: 1px; height: 22px; background: #bbb; }
.gov-brand__text { display: flex; flex-direction: column; line-height: 1; }
.gov-brand__text small { font-size: 4.5px; color: #555; margin-bottom: 1px; }
.gov-brand__text strong { font-size: 8.5px; font-weight: 800; color: #1B2A5B; line-height: 1.05; }

.gov-badge { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.gov-badge__num { font-size: 15px; font-weight: 800; color: #E30613; letter-spacing: -1px; }
.gov-badge__o { color: #F7B500; }
.gov-badge__sub { font-size: 4.5px; color: #777; }

/* ---------- Header ---------- */
.site-header { background: #fff; position: relative; z-index: 20; }
.site-header__inner {
  max-width: 820px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { display: flex; align-items: center; color: #222; }
.logo__mark { width: 26px; height: 24px; margin-right: 2px; }
.logo__bdv { font-size: 27px; font-weight: 800; letter-spacing: -1px; color: #222; }
.logo__name {
  font-size: 11px;
  line-height: 1.05;
  margin-left: 8px;
  padding-left: 7px;
  border-left: 1px solid #999;
  color: #333;
}
.logo__name strong { font-weight: 700; }

.main-nav { display: flex; align-items: center; gap: 96px; }
.main-nav__list { display: flex; gap: 32px; }
.main-nav__item, .online-banking { position: relative; }
.main-nav__link {
  font-size: 13.5px;
  font-weight: 700;
  color: #111;
  padding: 8px 0;
  transition: color .2s;
}
.main-nav__link:hover { color: var(--blue); }
.main-nav__link.is-active { color: #6F8FC6; font-weight: 600; }

.btn-primary {
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  width: 162px;
  height: 30px;
  border-radius: 2px;
  transition: background .2s;
}
.btn-primary:hover { background: var(--blue-dark); }

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 210px;
  background: #fff;
  border-top: 3px solid var(--blue);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.dropdown--right { left: auto; right: 0; }
.has-dropdown.is-open > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 9px 18px;
  font-size: 13px;
  color: var(--text);
}
.dropdown a:hover, .dropdown a.is-current { background: #F1F5FC; color: var(--blue); }

.nav-toggle { display: none; flex-direction: column; gap: 4px; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: #222; transition: transform .2s, opacity .2s; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 155px;
  overflow: hidden;
}
.hero__title {
  background: var(--pink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__title h1 {
  color: #fff;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: .2px;
}
.hero__art svg { width: 100%; height: 100%; display: block; }

/* ---------- Contenido ---------- */
.content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 55px;
  padding-bottom: 80px;
}
.content__intro p {
  font-size: 12.5px;
  line-height: 1.75;
  text-align: justify;
  color: #333;
  padding-right: 4px;
}

.accordion { border-top: 1px solid var(--border); }
.accordion__item { border-bottom: 1px solid var(--border); }
.accordion__header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  padding: 11px 16px 11px 21px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--blue);
  transition: background .2s;
}
.accordion__header:hover { background: #F7F9FD; }
.accordion__icon {
  font-size: 11px;
  font-weight: 400;
  color: #555;
  transition: transform .25s;
}
.accordion__item.is-open .accordion__icon { transform: rotate(45deg); }

.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.accordion__panel > * {
  padding: 0 21px 16px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}
.accordion__panel ul, .accordion__panel ol { padding-left: 38px; }
.accordion__panel ul { list-style: disc; }
.accordion__panel ol { list-style: decimal; }

/* ---------- Login ---------- */
.login-page { background: #F4F6FA; min-height: 100vh; }
.back-link { font-size: 13px; font-weight: 700; color: var(--blue); }
.back-link:hover { color: var(--blue-dark); }

.login {
  display: flex;
  justify-content: center;
  padding: 48px 20px 80px;
}
.login__card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(30, 60, 120, .10);
  padding: 34px 34px 26px;
}
.login__brand { text-align: center; margin-bottom: 26px; }
.login__brand h1 {
  font-size: 23px;
  font-weight: 400;
  color: var(--pink);
}
.login__brand h1 strong { font-weight: 800; }
.login__brand p { font-size: 13px; color: var(--muted); margin-top: 6px; }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #444;
  margin-bottom: 6px;
}
.field input,
.field select {
  width: 100%;
  height: 44px;
  border: 1px solid #D5DBE6;
  border-radius: 6px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: #AAB2C0; }
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 114, 201, .15);
}
.field__rif { display: flex; gap: 8px; }
.field__rif select { width: 64px; flex: none; text-align: center; font-weight: 700; }

.field__pass { position: relative; }
.field__pass input { padding-right: 46px; }
.toggle-pass {
  position: absolute;
  top: 0;
  right: 0;
  height: 44px;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8A93A3;
}
.toggle-pass:hover { color: var(--blue); }

.field.has-error input,
.field.has-error select { border-color: var(--pink); }
.field__error {
  display: block;
  min-height: 0;
  font-size: 11.5px;
  color: var(--pink);
  margin-top: 5px;
}

.login__submit {
  width: 100%;
  height: 46px;
  font-size: 15px;
  border-radius: 6px;
  margin-top: 4px;
}

.login__links {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  font-size: 12.5px;
  font-weight: 600;
}

.login__note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: #6B7482;
}
.login__note svg { flex: none; color: #1FAA3A; margin-top: 1px; }
.login__note p { font-size: 11.5px; line-height: 1.55; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .1);
    padding: 8px 20px 20px;
    display: none;
  }
  .site-header.nav-open .main-nav { display: flex; }
  .site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .main-nav__list { flex-direction: column; gap: 0; }
  .main-nav__link { width: 100%; text-align: left; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .dropdown {
    position: static;
    box-shadow: none;
    border-top: 0;
    transform: none;
    display: none;
    opacity: 1;
    visibility: visible;
  }
  .has-dropdown.is-open > .dropdown { display: block; }
  .online-banking { margin-top: 14px; }
  .btn-primary { width: 100%; height: 38px; }

  .hero { grid-template-columns: 1fr; height: auto; }
  .hero__title { padding: 40px 20px; }
  .hero__art { height: 150px; }

  .content { grid-template-columns: 1fr; gap: 30px; padding-top: 36px; }
}
