:root {
  --blue: #1a5f9a;
  --blue-dark: #0d3256;
  --blue-mid: #1e73be;
  --green: #28a745;
  --green-dark: #1e8035;
  --green-light: #4cca6e;
  --gray-dark: #2c3340;
  --gray-mid: #4a5568;
  --gray-light: #f0f5f2;
  --white: #ffffff;
  --border: #e2ece8;
  --shadow: 0 4px 24px rgba(26, 95, 154, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

/* Sticky-navbar offset for in-page anchors */
section[id],
[id="cta"],
[id="contact"] {
  scroll-margin-top: 96px;
}
@media (max-width: 768px) {
  section[id],
  [id="cta"],
  [id="contact"] {
    scroll-margin-top: 64px;
  }
}

body {
  font-family: "DM Sans", sans-serif;
  color: var(--gray-dark);
  background: var(--white);
  overflow-x: hidden;
}

/* LANG CONTROL */
[data-lang] {
  display: none;
}
body.lang-es [data-lang="es"],
body.lang-en [data-lang="en"],
body.lang-pt [data-lang="pt"] {
  display: revert;
}
body.lang-es span[data-lang="es"],
body.lang-en span[data-lang="en"],
body.lang-pt span[data-lang="pt"] {
  display: inline;
}
body.lang-es a[data-lang="es"],
body.lang-en a[data-lang="en"],
body.lang-pt a[data-lang="pt"] {
  display: inline;
}
body.lang-es li[data-lang="es"],
body.lang-en li[data-lang="en"],
body.lang-pt li[data-lang="pt"] {
  display: list-item;
}

/* ── HEADER ── */
header {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 32px;
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  grid-template-areas:
    "logo .    lang contact market"
    "nav  nav  nav  nav     nav";
  align-items: center;
  column-gap: 14px;
  row-gap: 8px;
}
.logo-wrap {
  grid-area: logo;
  display: flex;
  align-items: center;
  gap: 0;
}
.logo-wrap img {
  height: 40px;
  width: auto;
}

nav {
  grid-area: nav;
  width: 100%;
  border-top: 1px solid var(--border);
  padding-top: 8px;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 36px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}
nav a {
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--gray-mid);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition:
    color 0.2s,
    border-color 0.2s;
}
nav a:hover {
  color: var(--blue);
  border-color: var(--green);
}

.nav-toggle {
  display: none;
  grid-area: toggle;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--blue-dark);
  border-radius: 2px;
  transition:
    transform 0.2s,
    opacity 0.2s;
}
header.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
header.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
header.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* LANG SWITCHER */
.lang-bar {
  grid-area: lang;
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--gray-light);
  border-radius: 100px;
  padding: 4px;
}
.lang-bar button {
  background: none;
  border: none;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gray-mid);
  padding: 5px 12px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-bar button.active {
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: var(--white);
  box-shadow: 0 2px 8px rgba(26, 95, 154, 0.25);
}

.cta-btn-sm {
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: var(--white);
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  padding: 9px 22px;
  border-radius: 100px;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 3px 14px rgba(26, 95, 154, 0.25);
}
.cta-btn-sm:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 95, 154, 0.35);
}
.cta-contact {
  grid-area: contact;
}
.cta-market {
  grid-area: market;
}

/* ── HERO ── */
#hero {
  position: relative;
  min-height: 55vh;
  background: linear-gradient(
    135deg,
    var(--blue-dark) 0%,
    var(--blue) 55%,
    #1a7a4a 100%
  );
  display: flex;
  align-items: center;
  overflow: hidden;
}
#hero::before {
  content: "";
  position: absolute;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  width: 700px;
  height: 700px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  animation: ringPulse 4s ease-in-out infinite;
}
#hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(40, 167, 69, 0.15);
  animation: ringPulse 4s ease-in-out infinite 1s;
}
@keyframes ringPulse {
  0%,
  100% {
    opacity: 0.4;
    transform: translateY(-50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateY(-50%) scale(1.04);
  }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 52px 52px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  padding: 7px 18px;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}
.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-light);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.4);
  }
}
.hero-badge span {
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.hero-text h1 {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 4.5vw, 58px);
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 22px;
}
.hero-text h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--green-light), #7eefb2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text p {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(40, 167, 69, 0.4);
}
.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(40, 167, 69, 0.45);
}
.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-card-stack {
  position: relative;
  width: 380px;
  height: 340px;
}
.hcard {
  position: absolute;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  padding: 22px 26px;
  color: var(--white);
}
.hcard-main {
  bottom: 0;
  left: 0;
  right: 0;
  animation: floatCard 5s ease-in-out infinite;
}
@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
.hcard-mini {
  top: 0;
  right: 0;
  width: 58%;
  animation: floatCard 5s ease-in-out infinite 1.5s;
}
.hcard-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 8px;
}
.hcard-val {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 32px;
  color: var(--white);
}
.hcard-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 4px;
}
.hcard-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.hcard-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue-mid), var(--green));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}
.signal-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
}
.signal-bars span {
  width: 6px;
  border-radius: 2px;
  background: var(--green-light);
  animation: barAnim 1.4s ease-in-out infinite;
}
.signal-bars span:nth-child(1) {
  height: 10px;
  animation-delay: 0s;
}
.signal-bars span:nth-child(2) {
  height: 16px;
  animation-delay: 0.15s;
}
.signal-bars span:nth-child(3) {
  height: 22px;
  animation-delay: 0.3s;
}
.signal-bars span:nth-child(4) {
  height: 14px;
  animation-delay: 0.45s;
}
@keyframes barAnim {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

/* ── STATS STRIP ── */
.stats-strip {
  background: var(--blue-dark);
  padding: 36px 0;
}
.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-item {
  text-align: center;
}
.stat-num {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 36px;
  background: linear-gradient(135deg, #fff, var(--green-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-lbl {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 4px;
  font-weight: 500;
}

/* ── ABOUT ── */
#about {
  padding: 100px 0;
  background: var(--white);
}
.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.section-tag {
  display: inline-block;
  background: rgba(40, 167, 69, 0.1);
  border: 1px solid rgba(40, 167, 69, 0.25);
  color: var(--green-dark);
  font-family: "Outfit", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 4px;
  margin-bottom: 18px;
}
.section-h2 {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  color: var(--blue-dark);
  margin-bottom: 20px;
}
.section-h2 span {
  color: var(--green);
}
.section-p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray-mid);
  margin-bottom: 16px;
}

.about-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.pill {
  background: var(--gray-light);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 6px;
}
.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.about-visual {
  position: relative;
}
.about-img-wrap {
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    var(--blue-dark),
    var(--blue) 50%,
    #1a7a4a
  );
  padding: 48px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.about-img-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.05) 1px,
    transparent 1px
  );
  background-size: 24px 24px;
}
.about-icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  position: relative;
  z-index: 1;
}
.aig-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 18px 12px;
  color: var(--white);
  font-size: 28px;
  transition:
    transform 0.3s,
    background 0.3s;
}
.aig-item:hover {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.14);
}
.aig-item p {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 6px;
}

/* ── EXPERTISE ── */
#expertise {
  padding: 100px 0;
  background: var(--gray-light);
}
.expertise-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.section-center {
  text-align: center;
  margin-bottom: 60px;
}
.section-center .section-h2 {
  margin: 12px auto 0;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.exp-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 28px;
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.exp-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s;
}
.exp-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(26, 95, 154, 0.12);
  border-color: rgba(26, 95, 154, 0.2);
}
.exp-card:hover::before {
  transform: scaleX(1);
}

.exp-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(
    135deg,
    rgba(26, 95, 154, 0.1),
    rgba(40, 167, 69, 0.1)
  );
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}
.exp-card h3 {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: var(--blue-dark);
  margin-bottom: 12px;
}
.exp-card p {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--gray-mid);
}

/* ── CONTACT FORM ── */
.contact-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  max-width: 880px;
  margin: 32px auto 0;
  box-shadow: 0 8px 32px rgba(13, 50, 86, 0.06);
}
.cf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.cf-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cf-input-group.full {
  grid-column: 1 / -1;
}
.cf-input-group label {
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-mid);
}
.cf-input-group label .req {
  color: var(--green);
  margin-left: 2px;
}
.cf-input,
.cf-textarea {
  background: var(--gray-light);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--gray-dark);
  font-family: "DM Sans", sans-serif;
  font-size: 14.5px;
  padding: 12px 16px;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
  width: 100%;
}
.cf-textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.55;
}
.cf-input:focus,
.cf-textarea:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(26, 95, 154, 0.12);
}
.cf-input.error,
.cf-textarea.error {
  border-color: #dc2626;
  background: rgba(220, 38, 38, 0.04);
}
.cf-hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.cf-error-msg {
  display: none;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: #dc2626;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13.5px;
  margin: 8px 0 16px;
}
.cf-error-msg.visible {
  display: block;
}
.cf-success-msg {
  display: none;
  background: rgba(40, 167, 69, 0.08);
  border: 1px solid rgba(40, 167, 69, 0.3);
  color: var(--green-dark);
  border-radius: 10px;
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  margin: 8px 0 16px;
}
.cf-success-msg.visible {
  display: block;
}
.cf-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--blue), var(--green));
  border: none;
  border-radius: 100px;
  color: var(--white);
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  padding: 16px;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    opacity 0.2s;
  box-shadow: 0 3px 14px rgba(26, 95, 154, 0.25);
}
.cf-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 95, 154, 0.35);
}
.cf-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.cf-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: cfSpin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: -2px;
}
.cf-submit.loading .cf-spinner {
  display: inline-block;
}
@keyframes cfSpin {
  to { transform: rotate(360deg); }
}
.cf-privacy {
  text-align: center;
  font-size: 12px;
  color: var(--gray-mid);
  margin-top: 16px;
  line-height: 1.6;
}
.cf-privacy a {
  color: var(--gray-mid);
  text-decoration: underline;
}
@media (max-width: 768px) {
  .contact-form-card {
    padding: 24px 18px;
  }
  .cf-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* ── USE-CASE SCENARIO LINK ── */
.uc-scenario-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--blue);
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  cursor: pointer;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  padding: 0;
}
.uc-scenario-link:hover,
.uc-scenario-link:focus-visible {
  color: var(--blue-dark);
  border-bottom-color: var(--green);
  outline: none;
}

/* ── USE-CASE MODAL ── */
.uc-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(13, 50, 86, 0.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.uc-modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.uc-modal {
  position: relative;
  width: 100%;
  max-width: 600px;
  max-height: 88vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  padding: 40px 44px 36px;
  box-shadow: 0 24px 60px rgba(13, 50, 86, 0.35);
  transform: translateY(12px) scale(0.97);
  transition: transform 0.22s ease;
}
.uc-modal-overlay.is-open .uc-modal {
  transform: translateY(0) scale(1);
}
.uc-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(13, 50, 86, 0.06);
  color: var(--blue-dark);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}
.uc-modal-close:hover,
.uc-modal-close:focus-visible {
  background: rgba(13, 50, 86, 0.14);
  outline: none;
}
.uc-modal-image {
  display: block;
  width: calc(100% + 88px);
  height: 220px;
  object-fit: cover;
  object-position: center;
  margin: -40px -44px 24px;
  border-radius: 16px 16px 0 0;
  background: var(--gray-light);
}
.uc-modal-title {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--blue-dark);
  margin: 0 0 18px;
  line-height: 1.25;
}
.uc-modal-body {
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-mid);
  margin: 0 0 18px;
  white-space: pre-line;
}
.uc-modal-closing {
  font-family: "DM Sans", sans-serif;
  font-style: italic;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(74, 85, 104, 0.85);
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin: 0;
}
.uc-modal-closing:empty {
  display: none;
}
.uc-modal-reference {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(74, 85, 104, 0.75);
  word-break: break-word;
}
.uc-modal-reference a {
  color: var(--blue);
  text-decoration: underline;
}
.uc-modal-reference a:hover {
  color: var(--blue-dark);
}
.uc-modal[data-no-image="true"] .uc-modal-image {
  display: none;
}
@media (max-width: 600px) {
  .uc-modal-overlay {
    padding: 12px;
  }
  .uc-modal {
    padding: 32px 24px 26px;
    max-height: 92vh;
  }
  .uc-modal-image {
    width: calc(100% + 48px);
    height: 170px;
    margin: -32px -24px 20px;
  }
  .uc-modal-title {
    font-size: 19px;
  }
  .uc-modal-body {
    font-size: 14.5px;
  }
}
body.uc-modal-open {
  overflow: hidden;
}

/* ── CTA BANNER ── */
.cta-banner {
  background: linear-gradient(
    135deg,
    var(--blue-dark),
    var(--blue) 60%,
    #1a7a4a
  );
  padding: 80px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}
.cta-banner-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}
.cta-banner h2 {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 42px);
  color: var(--white);
  margin-bottom: 16px;
}
.cta-banner p {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
}
.btn-cta-big {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 17px;
  padding: 16px 42px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 6px 24px rgba(40, 167, 69, 0.5);
}
.btn-cta-big:hover {
  background: var(--green-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(40, 167, 69, 0.55);
}

/* ── FOOTER ── */
footer {
  background: var(--gray-dark);
  padding: 60px 0 28px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand img {
  height: 48px;
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.7;
  max-width: 300px;
}
.footer-col h4 {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul li a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul li a:hover {
  color: var(--green-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 32px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    display: none;
  }
  .about-inner {
    grid-template-columns: 1fr;
  }
  /* Force single column on mobile/tablet, overriding any inline grid-template-columns
     (used by Cómo Aporta Valor with repeat(2, 1fr) and El Equipo with 1fr 1fr). */
  .cards-grid {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
  }
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid::before {
    display: none;
  }
  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
/* ── NAVBAR · TABLET ── */
@media (max-width: 1024px) {
  .header-inner {
    padding: 10px 20px;
    column-gap: 10px;
  }
  nav ul {
    gap: 18px;
    row-gap: 6px;
  }
  nav a {
    font-size: 12.5px;
  }
  .cta-btn-sm {
    padding: 8px 16px;
    font-size: 12px;
    letter-spacing: 0.04em;
  }
}

/* ── NAVBAR · MOBILE ── */
@media (max-width: 768px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "logo . toggle";
    column-gap: 10px;
    padding: 8px 14px;
  }
  .logo-wrap img {
    height: 34px;
  }
  /* On mobile, hide lang-bar from top row — it lives inside the hamburger panel. */
  .lang-bar {
    display: none;
  }
  .lang-bar button {
    font-size: 11px;
    padding: 5px 12px;
    letter-spacing: 0.06em;
  }
  .nav-toggle {
    display: flex;
    grid-area: toggle;
  }
  nav,
  .cta-contact,
  .cta-market {
    display: none;
  }

  header.is-open .header-inner {
    grid-template-areas:
      "logo    .       toggle"
      "lang    lang    lang"
      "nav     nav     nav"
      "contact contact contact"
      "market  market  market";
    row-gap: 10px;
    padding-bottom: 16px;
  }
  header.is-open .lang-bar {
    display: flex;
    grid-area: lang;
    justify-self: center;
    margin-top: 6px;
    padding: 5px;
  }
  header.is-open .lang-bar button {
    font-size: 12px;
    padding: 9px 16px;
    letter-spacing: 0.08em;
  }
  header.is-open nav {
    display: block;
    border-top: 1px solid var(--border);
    padding-top: 10px;
    margin-top: 4px;
  }
  header.is-open nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  header.is-open nav li {
    text-align: center;
    padding: 0;
  }
  /* Show only the active-language anchor in the open mobile menu, with
     block layout. Inactive-language anchors stay display: none from the
     global [data-lang] rules. */
  body.lang-es header.is-open nav a[data-lang="es"],
  body.lang-en header.is-open nav a[data-lang="en"],
  body.lang-pt header.is-open nav a[data-lang="pt"] {
    display: block;
    padding: 12px 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }
  header.is-open nav li:last-child a {
    border-bottom: none;
  }
  header.is-open .cta-contact,
  header.is-open .cta-market {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 18px;
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  .hero-text h1 {
    font-size: 32px;
  }
  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  /* Collapse CTA banner target-facility list to 1 column on narrow phones,
     overriding the inline grid-template-columns: 1fr 1fr. */
  .cta-banner-inner ul {
    grid-template-columns: 1fr !important;
  }
  /* Tighten CTA banner padding on narrow phones */
  .cta-banner {
    padding: 60px 18px;
  }
}
