:root {
  --navy: #0a1628;
  --navy-mid: #0f2744;
  --navy-soft: #152a52;
  --purple: #5b3d9e;
  --orange: #d4620e;
  --amber: #f0a04d;
  --blue: #1e5fbf;
  --blue-bright: #3b82f6;
  --ice: #e8eef8;
  --ice-deep: #d4dff0;
  --white: #ffffff;
  --muted: #5c6b86;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(10, 22, 40, 0.14);
  --shadow-soft: 0 12px 40px rgba(10, 22, 40, 0.08);
  --header-h: clamp(8.25rem, 22vw, 11rem);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
}

html {
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--navy);
  background: #fafbfd;
  line-height: 1.65;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  width: min(1140px, 92vw);
  margin-inline: auto;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(10, 22, 40, 0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0.35rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
  z-index: 102;
}
.brand:hover {
  text-decoration: none;
}

.brand-logo {
  width: min(152px, 38vw);
  height: min(152px, 38vw);
  flex-shrink: 0;
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}

@media (max-width: 480px) {
  .brand-logo {
    width: min(120px, 36vw);
    height: min(120px, 36vw);
  }
}

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

.brand-name {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.brand-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: rgba(10, 22, 40, 0.06);
  cursor: pointer;
  z-index: 102;
}
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--navy);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
body.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
body.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
body.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 40, 0.45);
  z-index: 99;
}
body.nav-open .nav-backdrop {
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.15rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a:not(.nav-cta) {
  color: var(--navy-soft);
  padding: 0.35rem 0.2rem;
  text-decoration: none;
  border-radius: 6px;
}
.nav a:not(.nav-cta):hover {
  color: var(--blue);
  text-decoration: none;
  background: rgba(30, 95, 191, 0.06);
}

.nav-cta {
  background: linear-gradient(135deg, var(--navy-mid), var(--blue));
  color: var(--white) !important;
  padding: 0.62rem 1.28rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(30, 95, 191, 0.28);
  margin-left: 0.25rem;
}
.nav-cta:hover {
  filter: brightness(1.06);
  text-decoration: none !important;
}

@media (max-width: 880px) {
  .nav-toggle {
    display: flex;
  }
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 88vw);
    height: 100vh;
    margin: 0;
    padding: calc(var(--header-h) + 1.25rem) 1.5rem 2rem;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.15rem;
    background: var(--white);
    box-shadow: -12px 0 40px rgba(10, 22, 40, 0.12);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    z-index: 101;
  }
  body.nav-open .nav {
    transform: translateX(0);
  }
  .nav a:not(.nav-cta) {
    padding: 0.85rem 0.75rem;
    border-radius: 10px;
    font-size: 1.05rem;
  }
  .nav-cta {
    text-align: center;
    margin-left: 0;
    margin-top: 0.75rem;
  }
}

/* ——— Hero ——— */
.hero-commercial {
  position: relative;
  padding: 3.25rem 0 3.5rem;
  scroll-margin-top: var(--header-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 70% at 10% -10%, rgba(240, 160, 77, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 50% at 95% 20%, rgba(91, 61, 158, 0.18), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(30, 95, 191, 0.12), transparent 45%),
    linear-gradient(180deg, #ffffff 0%, #f4f7fc 100%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--blue);
  margin: 0 0 0.65rem;
}

.hero h1 {
  font-size: clamp(2.05rem, 4.5vw, 3rem);
  line-height: 1.12;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero-persona {
  margin: 0 0 0.85rem;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--navy-soft);
  max-width: 38rem;
  line-height: 1.4;
}

.lead {
  font-size: 1.12rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
  max-width: 38rem;
}

.hero-bullets {
  margin: 0 0 1.75rem;
  padding-left: 1.15rem;
  color: var(--navy-soft);
  font-size: 0.98rem;
}
.hero-bullets li {
  margin-bottom: 0.4rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-trust {
  margin: 1.35rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.hero-trust strong {
  color: var(--navy-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.45rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, #3d2668 0%, var(--purple) 42%, #8f72d8 100%);
  color: var(--white);
  box-shadow: 0 12px 32px rgba(75, 45, 130, 0.4);
}
.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-ghost {
  background: var(--white);
  border-color: rgba(10, 22, 40, 0.12);
  color: var(--navy);
  box-shadow: var(--shadow-soft);
}
.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn-light {
  background: var(--white);
  color: var(--navy) !important;
  flex-shrink: 0;
  text-decoration: none !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}
.btn-light:hover {
  filter: brightness(1.05);
  text-decoration: none !important;
}

.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-card {
  background: var(--white);
  border-radius: calc(var(--radius) + 8px);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(10, 22, 40, 0.06);
  position: relative;
  overflow: hidden;
}

.hero-card-main::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, rgba(30, 95, 191, 0.08), transparent 70%);
  pointer-events: none;
}

.hero-partner-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.hero-partner-logo {
  max-height: 104px;
  width: auto;
  max-width: min(235px, 44vw);
  height: auto;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 4px 12px rgba(15, 39, 68, 0.12));
}

@media (min-width: 901px) {
  .hero-partner-logo {
    max-height: 122px;
    max-width: 255px;
  }
}

.hero-quote {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--navy-soft);
  line-height: 1.45;
}

.hero-badges {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
}

.hero-badges .badge {
  flex: 0 1 auto;
  white-space: nowrap;
  text-align: center;
}

.badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(30, 95, 191, 0.08);
  color: var(--navy-soft);
  border: 1px solid rgba(30, 95, 191, 0.12);
}

@media (max-width: 520px) {
  .hero-badges {
    gap: 0.3rem;
  }
  .hero-badges .badge {
    font-size: 0.62rem;
    padding: 0.32rem 0.45rem;
    letter-spacing: -0.01em;
  }
}

/* ——— Métricas ——— */
.section-metrics {
  padding: 0 0 2.5rem;
  margin-top: -0.5rem;
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: var(--white);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(10, 22, 40, 0.06);
}

@media (max-width: 900px) {
  .metrics-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .metrics-row {
    grid-template-columns: 1fr;
  }
}

.metric {
  text-align: center;
  padding: 0.5rem;
}
.metric-valor {
  display: block;
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.metric-etiqueta {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.35rem;
  line-height: 1.35;
}

/* ——— Secciones genéricas ——— */
.section {
  padding: 3.75rem 0;
  scroll-margin-top: calc(var(--header-h) + 0.5rem);
}

.section-alt {
  background: linear-gradient(180deg, var(--ice) 0%, #eef3fb 100%);
}

.section-head {
  max-width: 720px;
  margin-bottom: 2.25rem;
}

.section-head-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head-tight {
  margin-top: 3rem;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--blue);
  margin: 0 0 0.5rem;
}

.section-head h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.65rem, 3.2vw, 2.15rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-sub {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ——— Nosotros ——— */
.diferenciadores-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 720px) {
  .diferenciadores-grid {
    grid-template-columns: 1fr;
  }
}

.diferenciador {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  border: 1px solid rgba(10, 22, 40, 0.06);
  box-shadow: var(--shadow-soft);
}
.diferenciador h3 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
}
.diferenciador p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.cards-pilares {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .cards-pilares {
    grid-template-columns: 1fr;
  }
}

.card {
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  background: var(--white);
  border: 1px solid rgba(10, 22, 40, 0.06);
  box-shadow: var(--shadow-soft);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.card-resumen {
  margin: 0 0 0.75rem;
  font-weight: 600;
  color: var(--navy-soft);
}

.card-detalle {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.card-orange {
  border-top: 4px solid var(--orange);
}
.card-purple {
  border-top: 4px solid var(--purple);
}
.card-blue {
  border-top: 4px solid var(--blue);
}

/* ——— Servicios ——— */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 720px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: var(--white);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.5rem 1.4rem 1.35rem;
  border: 1px solid rgba(10, 22, 40, 0.07);
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--purple), var(--blue));
  opacity: 0.85;
}

.service-card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(30, 95, 191, 0.15);
}

.service-icon {
  display: block;
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  margin-bottom: 1rem;
}

.service-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

/* ——— CTA strip ——— */
.section-cta-strip {
  padding: 2.75rem 0;
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-mid) 45%, #1a3a6e 100%);
  color: var(--ice);
  scroll-margin-top: var(--header-h);
}

.cta-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.section-cta-strip h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  color: var(--white);
  max-width: 36rem;
  line-height: 1.25;
}

.cta-strip-text {
  margin: 0;
  opacity: 0.92;
  max-width: 40rem;
  font-size: 1rem;
}

/* ——— FAQ (SEO + usuarios) ——— */
.section-faq {
  padding: 3rem 0;
  background: var(--white);
  scroll-margin-top: calc(var(--header-h) + 0.5rem);
}

.faq-list {
  max-width: 48rem;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid rgba(10, 22, 40, 0.08);
  border-radius: var(--radius);
  margin-bottom: 0.65rem;
  background: #fafbfd;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  padding: 1rem 1.15rem;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--blue);
  font-weight: 800;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0;
  padding: 0 1.15rem 1.1rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ——— Contacto ——— */
.section-contact {
  padding-bottom: 4.5rem;
  background: linear-gradient(180deg, #ffffff 0%, #f3f6fb 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-details {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  font-size: 1.05rem;
}

.contact-details li {
  margin-bottom: 0.4rem;
}

.contact-badges {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.contact-badges li {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  background: rgba(30, 95, 191, 0.09);
  color: var(--navy-soft);
}

.form-flash {
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.form-flash-ok {
  background: rgba(34, 139, 34, 0.12);
  color: #1b5e20;
  border: 1px solid rgba(34, 139, 34, 0.25);
}

.form-flash-err {
  background: rgba(180, 40, 40, 0.1);
  color: #7f1d1d;
  border: 1px solid rgba(180, 40, 40, 0.22);
}

.contact-form {
  background: var(--white);
  padding: 1.65rem;
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
  border: 1px solid rgba(10, 22, 40, 0.07);
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy-soft);
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 0.62rem 0.72rem;
  border-radius: 10px;
  border: 1px solid rgba(10, 22, 40, 0.14);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(30, 95, 191, 0.25);
  border-color: var(--blue);
}

.form-captcha input {
  max-width: 8rem;
  margin-top: 0.35rem;
}

/* ——— Footer ——— */
.site-footer {
  border-top: 1px solid rgba(10, 22, 40, 0.08);
  padding: 2.75rem 0 1.5rem;
  background: #f0f3f9;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(10, 22, 40, 0.07);
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-name {
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.footer-slogan {
  margin: 0;
  font-weight: 600;
  color: var(--navy-soft);
  max-width: 22rem;
  line-height: 1.45;
}

.footer-heading {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.92rem;
}
.footer-links li {
  margin-bottom: 0.4rem;
}
.footer-links a {
  color: var(--navy-soft);
}

.footer-bottom {
  padding-top: 1.25rem;
}

.footer-copy {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
  text-align: center;
}
