: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;
}

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: 8px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0;
}
.logo-wrap img {
  height: 40px;
  width: auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
}
nav a {
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--gray-mid);
  text-decoration: none;
  transition: color 0.2s;
  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-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* LANG SWITCHER */
.lang-bar {
  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;
  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);
}

/* ── 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);
}

/* ── 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;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .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;
  }
}
@media (max-width: 640px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 12px;
  }
  nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  nav ul {
    gap: 12px;
    font-size: 12px;
    white-space: nowrap;
  }
  .nav-right {
    order: 4;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  .lang-bar {
    width: auto;
  }
  .lang-bar button {
    font-size: 10px;
    padding: 4px 8px;
  }
  .cta-btn-sm {
    font-size: 11px;
    padding: 7px 14px;
    white-space: nowrap;
  }
  .hero-text h1 {
    font-size: 32px;
  }
  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
}
