:root {
  --navy: #0a2240;
  --blue: #134f8c;
  --cyan: #dff3ff;
  --mint: #e9fbf4;
  --white: #ffffff;
  --text: #142237;
  --muted: #5e6b7c;
  --line: #d9e4ef;
  --accent: #27b082;
  --green: #087552;
  --green-soft: #e9fbf4;
  --green-line: #bfeedd;
  --shadow: 0 22px 55px rgba(10,34,64,.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: #f7fafc;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 8px 6%;
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-placeholder {
  width: 84px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 2px dashed var(--blue);
  color: var(--blue);
  font-weight: 900;
  background: var(--cyan);
}

.brand-mark {
  width: auto;
  height: clamp(56px, 9vw, 100px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--green-line);
  box-shadow: 0 8px 18px rgba(8,117,82,.10);
  padding: 4px 10px;
}

.brand-logo {
  width: auto;
  height: 100%;
  max-height: 100px;
  object-fit: contain;
}

.brand-copy {
  min-width: 165px;
}

.identity strong,
.identity small {
  display: block;
}

.identity small {
  color: var(--muted);
}

nav {
  display: flex;
  gap: 8px;
  font-weight: 900;
}

nav a {
  padding: 10px 14px;
  border-radius: 8px;
}

nav a:hover {
  background: var(--green-soft);
  color: var(--green);
}

.menu {
  display: none;
  border: 0;
  background: var(--green);
  color: white;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 900;
}

.section {
  padding: 68px 6%;
}

.hero {
  padding: 74px 6% 50px;
  display: grid;
  grid-template-columns: 1.35fr .92fr;
  gap: 24px;
  align-items: center;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: .88rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

h2 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 900;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: linear-gradient(135deg, var(--green), var(--accent));
  color: white;
  box-shadow: 0 14px 34px rgba(8,117,82,.24);
}

.btn.ghost {
  background: white;
  color: var(--green);
  border: 2px solid var(--green);
}

.response-widget,
.service-grid article,
.sim-card,
.requirements div,
.lead-form,
.logo-card,
.strong-message {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.response-widget {
  padding: 28px;
  border-top: 5px solid var(--green);
}

.response-widget span {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

.response-widget strong {
  display: block;
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 10px 0;
  color: var(--navy);
}

.heading-row {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 24px;
  align-items: end;
  margin-bottom: 18px;
}

.center-col {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
}

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

.service-grid article {
  padding: 24px;
}

.service-grid article:hover,
.requirements div:hover,
.audience-grid span:hover {
  border-color: var(--green-line);
  box-shadow: 0 18px 38px rgba(8,117,82,.13);
}

.simulator {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 22px;
  align-items: center;
}

.sim-card {
  padding: 26px;
  display: grid;
  gap: 14px;
}

.sim-card input {
  min-height: 56px;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 0 16px;
  font-size: 1rem;
}

#checkAmount {
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  background: var(--green);
  color: white;
  font-weight: 900;
}

#creditResult {
  font-size: clamp(2rem, 4vw, 2.7rem);
  color: var(--navy);
}

.requirement-band {
  background: linear-gradient(180deg, #edf7ff 0%, #dff3ff 100%);
}

.heading-row.light p {
  color: var(--muted);
}

.requirements {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.requirements div {
  padding: 20px;
  text-align: center;
}

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

.audience h2 {
  margin-top: 12px;
}

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

.audience-grid span {
  padding: 16px 18px;
  border-radius: 18px;
  background: white;
  border: 1px solid var(--line);
  font-weight: 800;
  text-align: center;
}

.audience-grid span:last-child {
  grid-column: 2 / 3;
}

.contact {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 24px;
  align-items: start;
}

.lead-form {
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.lead-form input,
.lead-form select {
  min-height: 54px;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 0 16px;
  font-size: 1rem;
}

.lead-form input:focus,
.lead-form select:focus {
  outline: 3px solid rgba(39,176,130,.18);
  border-color: var(--green);
}

.lead-form .btn,
#leadStatus {
  grid-column: 1 / -1;
}

#leadStatus {
  margin: 0;
  color: var(--green);
  font-weight: 700;
}

.footer {
  text-align: center;
  padding: 28px 6% 38px;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.institutional-band {
  padding-top: 36px;
  padding-bottom: 48px;
  background: linear-gradient(180deg, #f5fbff 0%, #e8f6ff 100%);
}

.logo-orbit {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  min-height: 455px;
}

.title-arc {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  color: var(--navy);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.logo-card {
  position: absolute;
  display: grid;
  place-items: center;
  padding: 18px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.logo-card img {
  max-height: 92px;
  object-fit: contain;
}

.logo-card.active,
.logo-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: #bdefff;
  box-shadow: 0 18px 34px rgba(19,79,140,.16);
}

.center-imss {
  width: 320px;
  height: 300px;
  left: 50%;
  top: 35px;
  transform: translateX(-50%);
  z-index: 2;
}

.center-imss img {
  max-height: 220px;
}

.center-imss.active,
.center-imss:hover {
  transform: translateX(-50%) translateY(-4px) scale(1.01);
}

.ipejal {
  width: 250px;
  height: 190px;
  left: 90px;
  top: 20px;
}

.cfe {
  width: 250px;
  height: 180px;
  right: 160px;
  top: 240px;
}

.pemex {
  width: 250px;
  height: 180px;
  left: 160px;
  top: 240px;
}

.issste {
  width: 250px;
  height: 190px;
  right: 90px;
  top: 20px;
}

.strong-message {
  margin-top: 18px;
  padding: 24px;
  text-align: center;
  border-top: 5px solid var(--green);
}

.strong-message span {
  display: block;
  margin-bottom: 10px;
  color: var(--green);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .16em;
}

.strong-message h3 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  text-transform: uppercase;
  color: var(--navy);
}

@media (max-width: 1080px) {
  .service-grid,
  .requirements,
  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .audience-grid span:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 7px);
  }
}

@media (max-width: 900px) {
  .menu {
    display: inline-flex;
  }

  nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 6%;
    left: 6%;
    flex-direction: column;
    padding: 14px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  nav.open {
    display: flex;
  }

  .hero,
  .simulator,
  .contact,
  .heading-row {
    grid-template-columns: 1fr;
  }

  .logo-orbit {
    min-height: auto;
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .title-arc,
  .logo-card {
    position: static;
    transform: none !important;
  }

  .title-arc {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 12px;
  }

  .center-imss {
    order: -1;
    grid-column: 1 / -1;
    width: 100%;
    height: auto;
    min-height: 220px;
  }

  .logo-card {
    width: 100%;
    height: auto;
    min-height: 160px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 17px;
  }

  .brand-mark {
    height: 52px;
    padding: 3px 8px;
  }

  .brand-logo {
    max-height: 52px;
  }

  .brand-copy {
    min-width: auto;
  }

  .site-header,
  .hero,
  .section,
  .footer {
    padding-left: 5%;
    padding-right: 5%;
  }

  .service-grid,
  .requirements,
  .audience-grid,
  .logo-orbit,
  .lead-form {
    grid-template-columns: 1fr;
  }

  .audience-grid span:last-child {
    grid-column: auto;
    justify-self: stretch;
    width: auto;
  }
}

/* WhatsApp advisor actions */
.lead-form #pensionType {
  grid-column: 1 / -1;
}

.whatsapp-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.whatsapp-actions .btn {
  width: 100%;
  min-height: 54px;
  gap: 10px;
  font-family: inherit;
  font-size: .95rem;
  line-height: 1.1;
  white-space: nowrap;
}

.advisor-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
}

.advisor-icon svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: currentColor;
}

@media (max-width: 640px) {
  .whatsapp-actions {
    grid-template-columns: 1fr;
  }

  .whatsapp-actions .btn {
    white-space: normal;
  }
}


.video-showcase {
  max-width: 980px;
  margin: 0 auto 42px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--navy);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.promo-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: var(--navy);
}

@media (max-width: 640px) {
  .video-showcase {
    margin-bottom: 30px;
    border-radius: 18px;
  }
}