:root {
  --navy-950: #050b12;
  --navy-900: #081725;
  --navy-800: #0d2d45;
  --navy-700: #123f60;
  --blue-600: #168fc5;
  --blue-500: #25aee4;
  --blue-100: #dff3fb;
  --blue-050: #f2faff;
  --ink: #101820;
  --text: #536473;
  --muted: #71808d;
  --white: #ffffff;
  --surface: #f6f9fc;
  --border: #d8e7ef;
  --shadow: 0 18px 45px rgba(8, 35, 53, 0.14);
  --radius: 18px;
  --container: min(1180px, calc(100% - 40px));
  --font-body: "Nunito Sans", Arial, Helvetica, sans-serif;
  --font-heading: "Lora", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 108px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body,
button,
input,
textarea,
select {
  font-family: var(--font-body);
}

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

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

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
}

p {
  margin-bottom: 0.9rem;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 10px 14px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.skip-link:focus {
  top: 16px;
}

.demo-bar {
  padding: 6px 16px;
  color: #dff4ff;
  background: var(--navy-950);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: center;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(22, 143, 197, 0.16);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 108px;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  width: min(330px, 30vw);
  min-width: 235px;
}

.brand img {
  width: 100%;
  max-height: 76px;
  object-fit: contain;
  object-position: left center;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.93rem;
  font-weight: 800;
}

.main-nav a {
  position: relative;
  padding: 10px 0;
}

.main-nav a:not(.nav-cta)::after {
  position: absolute;
  right: 100%;
  bottom: 3px;
  left: 0;
  height: 2px;
  background: var(--blue-500);
  content: "";
  transition: right 0.22s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  right: 0;
}

.main-nav .nav-cta {
  padding: 11px 18px;
  color: var(--white);
  background: var(--navy-800);
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.main-nav .nav-cta:hover {
  background: var(--blue-600);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 9px;
  background: transparent;
  border: 0;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 5px 0;
  background: var(--navy-900);
  transition: 0.2s ease;
}

.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* HERO */
.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 590px;
  overflow: hidden;
  color: var(--white);
  background: url("img/banner1.png") center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 16, 28, 0.97) 0%, rgba(7, 31, 49, 0.91) 37%, rgba(8, 42, 65, 0.58) 62%, rgba(8, 42, 65, 0.08) 100%);
}

.hero-content {
  position: relative;
  padding: 60px 0 54px;
}

.eyebrow,
.section-kicker {
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 10px;
  color: #8fdfff;
}

.hero h1 {
  max-width: 830px;
  margin-bottom: 18px;
  font-size: clamp(2.25rem, 4.6vw, 4.4rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.hero-lead {
  max-width: 690px;
  margin-bottom: 0;
  color: #e8f6fc;
  font-size: 1.15rem;
  font-weight: 600;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 22px;
  font-weight: 900;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  color: var(--white);
  background: var(--blue-600);
  box-shadow: 0 10px 28px rgba(10, 95, 135, 0.28);
}

.btn-primary:hover {
  background: var(--blue-500);
}

.btn-light {
  color: var(--navy-900);
  background: var(--white);
}

.btn-outline {
  color: var(--navy-800);
  background: var(--white);
  border-color: var(--blue-600);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 175px));
  gap: 12px;
  margin-top: 38px;
}

.hero-stats div {
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--blue-500);
  backdrop-filter: blur(7px);
}

.hero-stats strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.9rem;
}

.hero-stats span {
  color: #d8f2fc;
  font-size: 0.82rem;
  font-weight: 700;
}

/* CONTACT STRIP */
.contact-strip-wrap {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.contact-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 20px;
}

.contact-strip p {
  margin: 0;
  color: var(--navy-900);
  font-weight: 800;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 9px;
}

.social-link {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 6px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(8, 35, 53, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.social-link:hover {
  border-color: var(--blue-500);
  transform: translateY(-2px);
}

.social-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.is-demo-link {
  cursor: pointer;
}

/* SECTION BANNERS */
.page-section {
  background: var(--white);
}

.alt-section {
  background: var(--blue-050);
}

.section-banner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 235px;
  overflow: hidden;
  color: var(--white);
  background-color: var(--navy-900);
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 100%;
}

.section-banner::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--navy-900) 0%, var(--navy-900) 45%, rgba(8, 23, 37, 0.90) 58%, rgba(8, 23, 37, 0.20) 82%, rgba(8, 23, 37, 0) 100%);
  content: "";
}

.section-banner-content {
  position: relative;
}

.section-banner p {
  margin: 0;
  color: #84d8f8;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-banner h2 {
  max-width: 650px;
  margin: 5px 0 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.banner-nosotros { background-image: url("img/banner2.png"); }
.banner-servicios { background-image: url("img/banner3.png"); }
.banner-equipo { background-image: url("img/banner4.png"); }
.banner-comap { background-image: url("img/banner5.png"); }
.banner-clientes { background-image: url("img/banner6.png"); }
.banner-contacto { background-image: url("img/banner7.png"); }

.section-body {
  padding: 60px 0;
}

.two-column {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: start;
  gap: 46px;
}

.section-kicker {
  color: var(--blue-600);
}

.section-body h3 {
  margin: 6px 0 15px;
  color: var(--navy-950);
  font-size: clamp(1.55rem, 2.7vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.section-body p {
  color: var(--text);
}

.section-intro {
  max-width: 800px;
  margin-bottom: 28px;
}

/* VALUES */
.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.value-card {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(8, 35, 53, 0.06);
}

.value-card span {
  color: var(--blue-500);
  font-family: var(--font-heading);
  font-size: 1.6rem;
}

.value-card h4 {
  margin: 5px 0 5px;
  font-size: 1.3rem;
}

.value-card p {
  margin: 0;
  font-size: 0.93rem;
}

/* SERVICES */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  position: relative;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(8, 35, 53, 0.06);
}

.service-card.featured {
  border-top: 5px solid var(--blue-600);
}

.service-number {
  color: #7dbdd8;
  font-family: var(--font-heading);
  font-size: 1.2rem;
}

.service-card h4 {
  margin: 4px 0 7px;
  color: var(--navy-950);
  font-size: 1.48rem;
  line-height: 1.24;
}

.service-card p {
  margin-bottom: 13px;
  color: var(--text);
  font-size: 0.95rem;
}

.service-card .tag {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 5px 9px;
  color: var(--navy-900);
  background: var(--blue-100);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
}

.service-card details {
  padding-top: 11px;
  border-top: 1px solid var(--border);
}

.service-card summary {
  color: var(--navy-700);
  font-weight: 900;
  cursor: pointer;
}

.service-card ul {
  margin-bottom: 0;
  padding-left: 19px;
  color: var(--text);
  font-size: 0.91rem;
}

/* TEAM */
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.team-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(8, 35, 53, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.team-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  background: #eaf4f8;
}

.team-card div {
  padding: 14px;
}

.team-card h4 {
  margin: 0 0 4px;
  color: var(--navy-950);
  font-size: 1.14rem;
}

.team-card p {
  margin: 0;
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.42;
}

/* COMAP */
.comap-layout {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  align-items: start;
  gap: 46px;
}

.process-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.process-list li {
  position: relative;
  margin-left: 25px;
  padding: 0 0 22px 68px;
  border-left: 1px solid #b9dce9;
  counter-increment: steps;
}

.process-list li:last-child {
  padding-bottom: 0;
}

.process-list li::before {
  position: absolute;
  top: 0;
  left: -24px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--white);
  background: var(--navy-700);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  border-radius: 50%;
  content: counter(steps);
}

.process-list strong,
.process-list span {
  display: block;
}

.process-list strong {
  color: var(--navy-950);
  font-family: var(--font-heading);
  font-size: 1.13rem;
}

.process-list span {
  margin-top: 2px;
  color: var(--text);
}

/* CLIENTS */
.clients-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 42px;
}

.client-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.client-types div {
  padding: 17px 13px;
  color: var(--navy-900);
  background: var(--blue-050);
  font-weight: 900;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 14px;
}

/* CONTACT */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 30px;
}

.contact-panel,
.contact-demo-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 13px 32px rgba(8, 35, 53, 0.08);
}

.contact-panel {
  padding: 30px;
  background: var(--white);
}

.contact-list {
  margin: 20px 0 0;
}

.contact-list div {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}

.contact-list dt {
  color: var(--navy-900);
  font-weight: 900;
}

.contact-list dd {
  margin: 0;
  color: var(--text);
}

.contact-demo-card {
  position: relative;
  overflow: hidden;
  padding: 38px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(5, 11, 18, 0.97), rgba(13, 45, 69, 0.93)),
    url("img/banner7.png") right center / auto 100% no-repeat;
}

.contact-demo-card::after {
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 300px;
  height: 300px;
  background: rgba(37, 174, 228, 0.10);
  border: 1px solid rgba(143, 223, 255, 0.18);
  border-radius: 50%;
  content: "";
}

.contact-demo-mark {
  position: relative;
  z-index: 1;
  color: #7edcff;
  font-family: var(--font-heading);
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1;
}

.contact-demo-kicker {
  position: relative;
  z-index: 1;
  margin: 7px 0 2px;
  color: #94def9;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.contact-demo-card h3 {
  position: relative;
  z-index: 1;
  margin: 3px 0 15px;
  color: var(--white);
}

.contact-demo-card > p:not(.contact-demo-kicker) {
  position: relative;
  z-index: 1;
  max-width: 540px;
  color: #d9edf5;
}

.contact-demo-points {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 24px;
}

.contact-demo-points span {
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
}

.contact-demo-card small {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 26px;
  color: #a9cbd8;
}

/* FOOTER */
.site-footer {
  padding: 46px 0 18px;
  color: #eaf6fb;
  background: var(--navy-950);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.8fr 0.8fr;
  gap: 42px;
}

.footer-logo {
  width: 360px;
  max-width: 100%;
  padding: 8px;
  background: var(--white);
  border-radius: 10px;
}

.footer-grid p {
  max-width: 430px;
  color: #b8dce9;
}

.footer-grid h2 {
  margin: 0 0 9px;
  font-size: 1.15rem;
}

.footer-grid a {
  display: block;
  margin: 5px 0;
  color: #c7e5f0;
}

.footer-grid a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 30px;
  padding-top: 15px;
  color: #8ebbc9;
  font-size: 0.82rem;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

/* FLOATING WHATSAPP */
.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 999;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: var(--white);
  background: #25d366;
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.23);
}

.floating-whatsapp svg {
  width: 31px;
  height: 31px;
  fill: currentColor;
}

/* TABLET */
@media (max-width: 1060px) {
  .brand {
    width: 280px;
    min-width: 220px;
  }

  .main-nav {
    gap: 15px;
    font-size: 0.88rem;
  }

  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 88px;
  }

  .header-inner {
    min-height: 78px;
  }

  .brand {
    width: min(300px, calc(100vw - 100px));
  }

  .brand img {
    max-height: 64px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 106px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 18px 24px 24px;
    background: var(--white);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.12);
  }

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

  .main-nav a {
    padding: 11px 6px;
  }

  .main-nav .nav-cta {
    margin-top: 5px;
    text-align: center;
  }

  .two-column,
  .comap-layout,
  .clients-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

/* MOBILE */
@media (max-width: 700px) {
  :root {
    --container: min(100% - 28px, 1180px);
  }

  .demo-bar {
    font-size: 0.68rem;
  }

  .main-nav {
    top: 99px;
  }

  .hero {
    min-height: 560px;
    background-position: 66% center;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(5, 16, 28, 0.97) 0%, rgba(7, 31, 49, 0.90) 62%, rgba(7, 31, 49, 0.55) 100%);
  }

  .hero-content {
    padding: 48px 0 42px;
  }

  .hero h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero-lead {
    font-size: 1.03rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn,
  .contact-actions .btn {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .hero-stats div {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .contact-strip {
    flex-direction: column;
    padding: 16px 0;
    text-align: center;
  }

  .section-banner {
    min-height: 190px;
    background-size: auto 100%;
  }

  .section-banner::before {
    background: linear-gradient(90deg, var(--navy-900) 0%, var(--navy-900) 58%, rgba(8, 23, 37, 0.88) 76%, rgba(8, 23, 37, 0.45) 100%);
  }

  .section-banner h2 {
    max-width: 70%;
    font-size: 2rem;
  }

  .section-body {
    padding: 44px 0;
  }

  .values-grid,
  .client-types {
    grid-template-columns: 1fr 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-demo-points {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .brand {
    width: min(250px, calc(100vw - 90px));
    min-width: 0;
  }

  .values-grid,
  .team-grid,
  .client-types {
    grid-template-columns: 1fr;
  }

  .team-card {
    display: grid;
    grid-template-columns: 120px 1fr;
  }

  .team-card img {
    height: 100%;
    aspect-ratio: auto;
  }

  .team-card div {
    align-self: center;
  }

  .contact-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .contact-demo-card,
  .contact-panel {
    padding: 24px;
  }
}


/* =========================================================
   AJUSTE RESPONSIVE 2026-08-11
   Corrige navegación, logos, grillas y espaciados en tablet/móvil.
   ========================================================= */

/* Evita desplazamiento lateral por elementos anchos o fondos. */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Logos independientes para escritorio y móvil. */
.brand {
  width: auto;
  min-width: 0;
  flex: 0 0 auto;
}

.brand-logo {
  display: block;
  object-fit: contain;
  object-position: left center;
}

.brand-logo-desktop {
  width: 390px;
  max-width: 38vw;
  height: 100px;
}

.brand-logo-mobile {
  display: none;
}

/* Los hijos de grids/flex pueden encogerse sin provocar overflow. */
.header-inner > *,
.two-column > *,
.comap-layout > *,
.clients-layout > *,
.contact-layout > *,
.services-grid > *,
.team-grid > *,
.footer-grid > * {
  min-width: 0;
}

.contact-list dd,
.contact-list a,
.team-card p,
.service-card p,
.section-body p {
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 78px;
  }

  .site-header {
    box-shadow: 0 7px 18px rgba(8, 35, 53, 0.08);
  }

  .header-inner {
    min-height: 84px;
    gap: 12px;
  }

  .brand {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }

  .brand-logo-desktop {
    display: none;
  }

  .brand-logo-mobile {
    display: block;
    width: min(315px, calc(100vw - 82px));
    max-width: 100%;
    height: 70px;
  }

  .menu-toggle {
    display: flex;
    flex: 0 0 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  /* El menú se posiciona respecto al header, no con un top fijo. */
  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 1002;
    display: flex;
    max-height: calc(100dvh - 74px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 18px 18px;
    background: rgba(255, 255, 255, 0.99);
    border-top: 1px solid var(--border);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav a {
    width: 100%;
    padding: 13px 10px;
    border-bottom: 1px solid #edf3f6;
  }

  .main-nav a:not(.nav-cta)::after {
    display: none;
  }

  .main-nav .nav-cta {
    margin-top: 10px;
    padding: 13px 16px;
    text-align: center;
    border-bottom: 0;
  }

  body.menu-open {
    overflow: hidden;
  }

  .two-column,
  .comap-layout,
  .clients-layout,
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .services-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  :root {
    --container: calc(100% - 28px);
  }

  body {
    font-size: 15px;
  }

  .demo-bar {
    padding: 5px 10px;
    font-size: 0.64rem;
    line-height: 1.3;
  }

  .header-inner {
    min-height: 80px;
  }

  .brand-logo-mobile {
    width: min(300px, calc(100vw - 78px));
    height: 66px;
  }

  .hero {
    min-height: auto;
    background-position: 68% center;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(5, 16, 28, 0.97) 0%, rgba(7, 31, 49, 0.93) 60%, rgba(7, 31, 49, 0.76) 100%);
  }

  .hero-content {
    padding: 42px 0 38px;
  }

  .eyebrow,
  .section-kicker {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
  }

  .hero h1 {
    max-width: 100%;
    margin-bottom: 14px;
    font-size: clamp(2rem, 9.5vw, 2.75rem);
    line-height: 1.07;
  }

  .hero-lead {
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.48;
  }

  .hero-actions,
  .contact-actions {
    gap: 10px;
    margin-top: 20px;
  }

  .hero-actions .btn,
  .contact-actions .btn {
    width: 100%;
  }

  .btn {
    min-height: 48px;
    padding: 11px 17px;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-top: 26px;
  }

  .hero-stats div {
    display: block;
    padding: 11px 8px;
    text-align: center;
    border-left: 0;
    border-top: 3px solid var(--blue-500);
  }

  .hero-stats strong {
    font-size: 1.45rem;
  }

  .hero-stats span {
    display: block;
    margin-top: 2px;
    font-size: 0.69rem;
    line-height: 1.25;
  }

  .contact-strip {
    min-height: 0;
    padding: 15px 0;
    gap: 12px;
  }

  .contact-strip p {
    max-width: 320px;
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .social-link {
    width: 42px;
    height: 42px;
  }

  .section-banner {
    min-height: 155px;
    background-position: right center;
    background-size: auto 100%;
  }

  .section-banner::before {
    background: linear-gradient(
      90deg,
      rgba(8, 23, 37, 0.48) 0%,
      rgba(22, 143, 197, 0.30) 58%,
      rgba(37, 174, 228, 0.12) 100%
    );
  }

  .section-banner-content {
    padding: 26px 0;
  }

  .section-banner h2 {
    max-width: 92%;
    font-size: 1.85rem;
    line-height: 1.08;
  }

  .section-banner p {
    font-size: 0.67rem;
    letter-spacing: 0.13em;
  }

  .section-body {
    padding: 38px 0;
  }

  .section-body h3 {
    font-size: 1.65rem;
    line-height: 1.15;
  }

  .section-intro {
    margin-bottom: 22px;
  }

  .values-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .value-card,
  .service-card {
    padding: 20px;
  }

  .service-card h4 {
    padding-right: 0;
    font-size: 1.35rem;
  }

  .service-card .tag {
    position: static;
    display: inline-block;
    margin: 0 0 8px 8px;
  }

  /* En móvil cada integrante se muestra en una tarjeta horizontal. */
  .team-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .team-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: stretch;
  }

  .team-card img {
    width: 100%;
    height: 100%;
    min-height: 145px;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center top;
  }

  .team-card div {
    align-self: center;
    padding: 16px;
  }

  .team-card h4 {
    font-size: 1.08rem;
  }

  .team-card p {
    font-size: 0.8rem;
  }

  .process-list li {
    margin-left: 18px;
    padding: 0 0 20px 54px;
  }

  .process-list li::before {
    left: -20px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .client-types {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .client-types div {
    padding: 14px 8px;
    font-size: 0.88rem;
  }

  .contact-panel,
  .contact-demo-card {
    padding: 22px;
  }

  .contact-list div {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 10px 0;
  }

  .contact-demo-card {
    background: linear-gradient(135deg, #050b12, #0d2d45);
  }

  .contact-demo-mark {
    font-size: 3.6rem;
  }

  .contact-demo-points {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .footer-logo {
    width: min(310px, 100%);
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }

  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
    width: 52px;
    height: 52px;
  }

  .floating-whatsapp svg {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 420px) {
  :root {
    --container: calc(100% - 22px);
  }

  .brand-logo-mobile {
    width: min(275px, calc(100vw - 72px));
    height: 60px;
  }

  .hero h1 {
    font-size: 1.95rem;
  }

  .hero-stats {
    gap: 5px;
  }

  .hero-stats div {
    padding: 9px 4px;
  }

  .hero-stats strong {
    font-size: 1.3rem;
  }

  .hero-stats span {
    font-size: 0.64rem;
  }

  .section-banner {
    min-height: 145px;
  }

  .section-banner h2 {
    font-size: 1.65rem;
  }

  .team-card {
    grid-template-columns: 98px minmax(0, 1fr);
  }

  .team-card img {
    min-height: 135px;
  }

  .team-card div {
    padding: 13px;
  }

  .client-types {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* =========================================================
   HEADER FIJO + LOGOS AMPLIADOS
   ========================================================= */

.top-fixed {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2000;
  width: 100%;
}

.site-header {
  position: relative;
  top: auto;
  right: auto;
  left: auto;
  z-index: 1;
}

body {
  padding-top: var(--top-fixed-height, 188px);
}

html {
  scroll-padding-top: calc(var(--top-fixed-height, 188px) + 12px);
}

.header-inner {
  min-height: 168px;
}

.brand {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
}

.brand img {
  width: auto;
  max-width: none;
  max-height: none !important;
}

.brand-logo-desktop {
  display: block;
  width: auto;
  height: 140px;
  max-width: 35vw;
}

.brand-logo-mobile {
  display: none;
}

@media (max-width: 1060px) and (min-width: 901px) {
  .brand-logo-desktop {
    width: 300px;
    max-width: 31vw;
  }

  .header-inner {
    min-height: 150px;
  }
}

@media (max-width: 900px) {
  .header-inner {
    min-height: 88px;
  }

  .brand {
    flex: 1 1 auto;
  }

  .brand-logo-desktop {
    display: none;
  }

  .brand-logo-mobile {
    display: block;
    width: auto;
    height: 100px;
    max-width: 100%;
  }

  .main-nav {
    position: absolute;
    top: 100%;
  }
}

@media (max-width: 420px) {
  .header-inner {
    min-height: 84px;
  }

  .brand-logo-mobile {
    width: min(315px, calc(100vw - 68px));
  }
}
