/* ====== RESET GENERAL ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0A1020;
  background: #f5f6fa;
  line-height: 1.5;
}

/* ====== LAYOUT BASE ====== */
.container {
  width: 90%;
  max-width: 1150px;
  margin: 0 auto;
}

/* ====== TOPBAR ====== */
.topbar {
  background: #0A1020;
  color: #fff;
  font-size: 13px;
  padding: 6px 0;
}

.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar__left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chip {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 999px;
}

.topbar__link {
  color: #fff;
  text-decoration: none;
}

.topbar__link:hover {
  text-decoration: underline;
}

.dot {
  opacity: 0.6;
}

.topbar__right {
  display: flex;
  gap: 6px;
}

.langbtn {
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  border: none;
  cursor: pointer;
  background: #FFD56A;
  color: #0A1020;
  font-weight: 600;
}

/* ====== NAVBAR ====== */
.nav {
  background: #fff;
  border-bottom: 1px solid #e1e3ea;
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

/* LOGO + TEXTO */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand__logo {
  width: 44px;
  height: 44px;
  max-width: 44px;
  max-height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 2px solid #0A1020;
  flex-shrink: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__text strong {
  font-size: 17px;
  font-weight: 700;
  color: #0A1020;
}

#navTagline {
  font-size: 12px;
  color: #6b6f7a;
}

/* LINKS NAV */
.nav__links {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.nav__links a {
  text-decoration: none;
  color: #303341;
  font-weight: 600;
}

.nav__links a:hover {
  color: #0A1020;
}

/* ACCIONES NAV */
.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menuBtn {
  display: none;
  background: transparent;
  border: none;
  font-size: 22px;
  cursor: pointer;
}

/* BOTONES GENERALES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn--primary {
  background: linear-gradient(135deg, #0A1020, #1b2a4a);
  color: #fff;
}

.btn--primary:hover {
  filter: brightness(1.08);
}

.btn--ghost {
  background: transparent;
  border: 1px solid #0A1020;
  color: #0A1020;
}

.btn--ghost:hover {
  background: #0A1020;
  color: #fff;
}

.w100 {
  width: 100%;
}

/* ====== HERO ====== */
.hero {
  padding: 60px 0 40px;
  background: radial-gradient(circle at top, #ffffff 0%, #f5f7fb 55%, #edf0f8 100%);
}

.hero__inner {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
}

.hero__left {
  flex: 1.2;
}

.hero__right {
  flex: 1;
}

.pill {
  display: inline-block;
  background: #FFD56A;
  color: #4b3a16;
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 10px;
  font-weight: 600;
}

.hero h1 {
  font-size: 28px;
  margin-bottom: 10px;
}

.hero p {
  font-size: 15px;
  color: #505466;
}

.hero__cta {
  margin-top: 18px;
  display: flex;
  gap: 10px;
}

.stats {
  margin-top: 22px;
  display: grid;
  gap: 8px;
}

.stat strong {
  font-size: 14px;
}

.stat span {
  font-size: 13px;
  color: #686c7b;
}

/* PANEL DERECHA */
.panel {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.06);
}

.panel__top h3 {
  margin-bottom: 4px;
}

.panel__top p {
  font-size: 13px;
  color: #606575;
}

.panel__grid {
  margin: 16px 0;
  display: grid;
  gap: 10px;
}

.panelLink {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f5f6fa;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.panelLink__title {
  font-weight: 600;
  font-size: 14px;
}

.panelLink__desc {
  font-size: 12px;
  color: #6b6f7a;
}

.note {
  font-size: 12px;
  color: #6b6f7a;
  margin-bottom: 14px;
}

.panel__actions {
  margin-top: 6px;
}

/* ====== TRUST ====== */
.trust {
  padding: 20px 0 10px;
}

.trust__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: #44495a;
}

.trust__item {
  background: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px dashed #dadde8;
}

/* ====== SECCIONES GENERALES ====== */
.section {
  padding: 40px 0;
}

.section--soft {
  background: #f5f6fa;
}

.head {
  text-align: left;
  margin-bottom: 18px;
}

.head h2 {
  font-size: 22px;
  margin-bottom: 4px;
}

.head p {
  font-size: 14px;
  color: #606575;
}

/* GRIDS */
.grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

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

/* CARD */
.card {
  background: #fff;
  border-radius: 16px;
  padding: 18px 18px 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.04);
}

.card h3 {
  margin-bottom: 10px;
  font-size: 15px;
}

.list {
  list-style: none;
  font-size: 13px;
  color: #555a68;
}

.list li {
  margin-bottom: 6px;
}

/* CTA ROW */
.ctaRow {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* STEPS */
.step {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.03);
}

.step__num {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #0A1020;
  color: #FFD56A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 8px;
}

.step h3 {
  font-size: 14px;
  margin-bottom: 4px;
}

.step p {
  font-size: 13px;
  color: #5f6473;
}

.center {
  text-align: center;
}

/* TEXTO FINO */
.fine {
  font-size: 12px;
  color: #6b6f7a;
}

/* ====== FORMULARIO CONTACTO ====== */
.form label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  display: block;
}

.form input,
.form textarea {
  width: 100%;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid #cfd3e1;
  font-size: 14px;
  margin-bottom: 10px;
  outline: none;
}

.form input:focus,
.form textarea:focus {
  border-color: #0A1020;
}

.form textarea {
  min-height: 110px;
  resize: vertical;
}

/* ====== FOOTER ====== */
.footer {
  background: #0A1020;
  color: #fff;
  padding: 18px 0;
  margin-top: 30px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

/* ====== IMÁGENES GENERALES ====== */
img {
  max-width: 100%;
  height: auto;
}

/* el logo sí debe respetar su tamaño pequeño */
.brand__logo {
  width: 44px;
  height: 44px;
  max-width: 44px;
  max-height: 44px;
}

/* ====== RESPONSIVE ====== */
.mobile {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 10px;
}

.mobile a {
  text-decoration: none;
  color: #0A1020;
}

/* breakpoint */
@media (max-width: 900px) {

  .nav__links,
  .nav__actions a.btn--ghost {
    display: none;
  }

  .menuBtn {
    display: inline-block;
  }

  .hero__inner {
    flex-direction: column;
  }

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

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

  .topbar__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .footer__inner {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }
}

/* menú móvil visible cuando app.js agrega la clase 'open' */
.mobile.open {
  display: flex;
}