@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ── Brand Tokens (Brandbook 2026) ── */
:root {
  /* Corporativos */
  --ap-green:       #00975E;   /* Verde APRIES · Primario */
  --ap-green-dark:  #007a4d;
  --ap-green-light: #e0f5ec;
  --ap-blue:        #0C458D;   /* Azul APRIES · Secundario */
  --ap-blue-dark:   #0a3b78;
  --ap-blue-light:  #e8f0fa;

  /* Neutros */
  --ap-ink:         #101826;   /* Tinta */
  --ap-ink-dark:    #090f18;
  --ap-carbon:      #3a3f47;   /* Carbón */
  --ap-grey:        #5A5C62;   /* Gris wordmark */
  --ap-grey-mid:    #9aa0a8;
  --ap-paper:       #F6F4EE;   /* Papel */
  --ap-warm:        #f0eee9;   /* Canvas cálido */
  --ap-border:      #ECECEC;

  /* Bootstrap overrides */
  --bs-primary:           #00975E;
  --bs-primary-rgb:       0, 151, 94;
  --bs-body-font-family:  'Sora', system-ui, -apple-system, sans-serif;
  --bs-body-color:        #101826;
  --bs-body-bg:           #ffffff;
  --bs-link-color:        #00975E;
  --bs-link-hover-color:  #007a4d;
  --bs-border-color:      #ECECEC;
  --bs-border-radius:     .5rem;
  --bs-border-radius-lg:  .75rem;
  --bs-border-radius-xl:  1rem;
  --bs-border-radius-2xl: 1.5rem;
}

/* ── Base ── */
html { scroll-behavior: smooth; }

body {
  font-family: var(--bs-body-font-family);
  background-color: #fff;
  color: var(--ap-ink);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.2;
}

.display-1, .display-2, .display-3,
.display-4, .display-5, .display-6 {
  font-weight: 800;
  letter-spacing: -.035em;
}

.font-mono { font-family: 'JetBrains Mono', 'Courier New', monospace; }
.fw-600    { font-weight: 600; }

/* ── Buttons ── */
.btn {
  font-weight: 600;
  letter-spacing: -.01em;
  transition: all .2s ease;
}

.btn-primary {
  --bs-btn-bg:               #00975E;
  --bs-btn-border-color:     #00975E;
  --bs-btn-hover-bg:         #007a4d;
  --bs-btn-hover-border-color: #007a4d;
  --bs-btn-active-bg:        #007a4d;
  --bs-btn-color:            #fff;
  --bs-btn-hover-color:      #fff;
}

.btn-outline-primary {
  --bs-btn-color:            #00975E;
  --bs-btn-border-color:     #00975E;
  --bs-btn-hover-bg:         #00975E;
  --bs-btn-hover-border-color: #00975E;
  --bs-btn-hover-color:      #fff;
  --bs-btn-active-bg:        #007a4d;
  --bs-btn-active-color:     #fff;
}

.btn-lg  { padding: .75rem 2rem;  font-size: 1rem;    border-radius: .625rem; }
.btn-sm  { padding: .375rem 1rem; font-size: .875rem; }

/* ── Blue button (Azul APRIES) ── */
.btn-blue {
  --bs-btn-bg:               #0C458D;
  --bs-btn-border-color:     #0C458D;
  --bs-btn-hover-bg:         #0a3b78;
  --bs-btn-hover-border-color: #0a3b78;
  --bs-btn-active-bg:        #0a3b78;
  --bs-btn-color:            #fff;
  --bs-btn-hover-color:      #fff;
}

.btn-outline-blue {
  --bs-btn-color:              #0C458D;
  --bs-btn-border-color:       #0C458D;
  --bs-btn-hover-bg:           #0C458D;
  --bs-btn-hover-border-color: #0C458D;
  --bs-btn-hover-color:        #fff;
  --bs-btn-active-bg:          #0a3b78;
  --bs-btn-active-color:       #fff;
}

/* ── Navbar ── */
.navbar {
  transition: background-color .3s ease, box-shadow .3s ease, padding .3s ease;
}

.navbar-hero {
  background-color: transparent !important;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.navbar-scrolled {
  background-color: #fff !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 1px 16px rgba(0,0,0,.10);
  padding-top: .75rem;
  padding-bottom: .75rem;
}
.navbar-scrolled .nav-link {
  color: var(--ap-ink) !important;
  opacity: 1;
}
.navbar-scrolled .nav-link:hover,
.navbar-scrolled .nav-link:focus,
.navbar-scrolled .nav-link.active {
  color: var(--ap-green) !important;
}
.navbar-scrolled .btn-outline-light {
  color: var(--ap-ink);
  border-color: #c8d0da;
  background-color: transparent;
}
.navbar-scrolled .btn-outline-light:hover {
  background-color: var(--ap-ink);
  border-color: var(--ap-ink);
  color: #fff;
}
.navbar-scrolled .navbar-toggler {
  border-color: rgba(0,0,0,.18);
}
.navbar-scrolled .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2816%2C24%2C38%2C0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Burger → X al abrir el menú móvil */
.navbar-toggler-icon {
  transition: transform .25s ease;
}
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2C255%2C255%2C0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M6 6L24 24M24 6L6 24'/%3e%3c/svg%3e");
  transform: rotate(90deg);
}
.navbar-scrolled .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2816%2C24%2C38%2C0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M6 6L24 24M24 6L6 24'/%3e%3c/svg%3e");
}

/* Logo: blanco sobre navbar oscuro, color original sobre navbar blanco */
.navbar-logo {
  height: 60px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  transition: filter .3s ease, opacity .2s;
}
.navbar-scrolled .navbar-logo {
  filter: none;
}

.navbar-logo:hover { opacity: .85; }

.nav-link {
  font-size: .9375rem;
  font-weight: 500;
  transition: color .2s;
}

/* ── Inner page hero ── */
.page-hero {
  background:
    radial-gradient(ellipse 55% 70% at 95% 5%,  rgba(0,151,94,.28) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 0%  100%, rgba(12,69,141,.35) 0%, transparent 55%),
    radial-gradient(ellipse 35% 45% at 45% 55%,  rgba(12,69,141,.1)  0%, transparent 50%),
    linear-gradient(135deg, #090f18 0%, #0d1520 100%);
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: none; /* grid removed — replaced by video background */
}

.page-hero__label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .375rem .875rem;
  background: rgba(0,151,94,.15);
  border: 1px solid rgba(0,151,94,.3);
  border-radius: 2rem;
  font-size: .8rem;
  font-weight: 600;
  color: #4dd49a;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

/* ── Hero (home) ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background-color: var(--ap-ink-dark);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 60% at 80% 25%, rgba(0,151,94,.3) 0%, transparent 55%),
    radial-gradient(ellipse 60% 55% at 5% 80%, rgba(12,69,141,.32) 0%, transparent 55%),
    radial-gradient(ellipse 45% 35% at 45% 105%, rgba(12,69,141,.18) 0%, transparent 50%),
    radial-gradient(ellipse 30% 25% at 12% 12%, rgba(0,151,94,.1) 0%, transparent 50%),
    linear-gradient(135deg, #090f18 0%, #0d1520 100%);
}

/* Animated color orbs */
.hero__orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}

.hero__orb--green {
  width: clamp(280px, 42vw, 700px);
  height: clamp(280px, 42vw, 700px);
  background: radial-gradient(circle, rgba(0,151,94,.38) 0%, transparent 70%);
  top: -8%;
  right: -4%;
  animation: hero-orb-1 20s ease-in-out infinite;
}

.hero__orb--blue {
  width: clamp(240px, 38vw, 640px);
  height: clamp(240px, 38vw, 640px);
  background: radial-gradient(circle, rgba(12,69,141,.40) 0%, transparent 70%);
  bottom: -12%;
  left: -4%;
  animation: hero-orb-2 26s ease-in-out infinite;
}

.hero__orb--blue-sm {
  width: clamp(160px, 22vw, 360px);
  height: clamp(160px, 22vw, 360px);
  background: radial-gradient(circle, rgba(12,69,141,.22) 0%, transparent 70%);
  top: 25%;
  left: 28%;
  animation: hero-orb-3 32s ease-in-out infinite;
}

@keyframes hero-orb-1 {
  0%,100% { transform: translate(0, 0) scale(1); }
  30%      { transform: translate(-45px, 35px) scale(1.07); }
  65%      { transform: translate(30px, -22px) scale(.95); }
}

@keyframes hero-orb-2 {
  0%,100% { transform: translate(0, 0) scale(1); }
  38%      { transform: translate(40px, -30px) scale(1.09); }
  72%      { transform: translate(-25px, 18px) scale(.93); }
}

@keyframes hero-orb-3 {
  0%,100% { transform: translate(0, 0) scale(1); }
  45%      { transform: translate(-35px, -25px) scale(1.12); }
  80%      { transform: translate(22px, 32px) scale(.88); }
}

.hero__grid { display: none; }

/* ── Hero video background ── */
.hero__video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Dark directional overlay: heavier on the left (protects text), lighter on the right */
.hero__video-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,
      rgba(9,15,24,.92) 0%,
      rgba(9,15,24,.70) 40%,
      rgba(9,15,24,.40) 100%),
    linear-gradient(to bottom,
      rgba(9,15,24,.45) 0%,
      transparent 25%,
      transparent 75%,
      rgba(9,15,24,.55) 100%);
  pointer-events: none;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .5;
}

.hero__content { position: relative; z-index: 2; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .375rem .875rem;
  background: rgba(0,151,94,.12);
  border: 1px solid rgba(0,151,94,.3);
  border-radius: 2rem;
  font-size: .8125rem;
  font-weight: 600;
  color: #4dd49a;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.04em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero__title .highlight {
  background: linear-gradient(120deg, #00975E 0%, #4dd49a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(.9375rem, 2vw, 1.1875rem);
  color: #9aa0a8;
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: #9aa0a8;
  font-size: .875rem;
}

.trust-badge i { color: #4dd49a; font-size: 1rem; }

/* ── Dashboard mockup ── */
.hero__visual { position: relative; z-index: 2; }

.hero__dashboard {
  background: rgba(16,24,38,.85);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.04),
    0 32px 80px rgba(0,0,0,.55);
}

.db-topbar {
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: .625rem 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.dot { width: .5rem; height: .5rem; border-radius: 50%; }
.dot-r { background: #ef4444; }
.dot-y { background: #f59e0b; }
.dot-g { background: #22c55e; }

.db-body { padding: 1.25rem; }

.db-stat {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: .625rem;
  padding: .75rem .875rem;
}

.db-stat__label {
  font-size: .625rem;
  color: #57534e;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: .2rem;
}

.db-stat__val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
}

.db-badge {
  font-size: .5625rem;
  padding: .1rem .35rem;
  border-radius: .25rem;
  font-weight: 700;
}

.db-bar {
  height: .3rem;
  border-radius: 1rem;
  background: rgba(255,255,255,.08);
  overflow: hidden;
  margin-top: .5rem;
}

.db-bar__fill { height: 100%; border-radius: 1rem; }

.db-row {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .4375rem 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
  font-size: .75rem;
  color: #d6d3d1;
}

.db-row:last-child { border-bottom: none; }

.db-pill {
  font-size: .5625rem;
  padding: .1rem .4rem;
  border-radius: 1rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ── Blue section label variant ── */
.section-label-blue {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--ap-blue);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1rem;
}

.section-label-blue::before {
  content: '';
  display: inline-block;
  width: 1.5rem;
  height: 2px;
  background: var(--ap-blue);
  border-radius: 1px;
  flex-shrink: 0;
}

/* ── Section helpers ── */
.section    { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-lg { padding: 7rem 0; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--ap-green);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 1.5rem;
  height: 2px;
  background: var(--ap-green);
  border-radius: 1px;
  flex-shrink: 0;
}

/* Variante luminosa para fondos oscuros */
.section-label--bright        { color: #4dd49a; }
.section-label--bright::before { background: #4dd49a; }

/* ── Stats bar ── */
.stats-bar {
  background: var(--ap-ink);
  padding: 3.5rem 0;
}

.stat-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.75rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: .375rem;
}

.stat-number .unit { color: #4dd49a; }

.stat-label { font-size: .875rem; color: var(--ap-grey); }
.stat-divider { width: 1px; background: rgba(255,255,255,.08); align-self: stretch; }

/* ── Service cards ── */
.service-card {
  background: #fff;
  border: 1px solid var(--ap-border);
  border-radius: 1rem;
  padding: 2rem;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,151,94,.1);
  border-color: var(--ap-green);
  color: inherit;
  text-decoration: none;
}

.service-card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: .75rem;
  background: var(--ap-green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  color: var(--ap-green);
  margin-bottom: 1.25rem;
}

.service-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ap-ink);
  margin-bottom: .5rem;
}

.service-card__desc {
  font-size: .9375rem;
  color: var(--ap-grey);
  line-height: 1.6;
  margin: 0;
}

.service-card__arrow {
  margin-top: 1.25rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--ap-green);
  display: flex;
  align-items: center;
  gap: .375rem;
  transition: gap .2s;
}

.service-card:hover .service-card__arrow { gap: .625rem; }

/* Variante azul de service-card */
.service-card--blue .service-card__icon {
  background: var(--ap-blue-light);
  color: var(--ap-blue);
}

.service-card--blue:hover {
  box-shadow: 0 16px 48px rgba(12,69,141,.1);
  border-color: var(--ap-blue);
}

.service-card--blue .service-card__arrow { color: var(--ap-blue); }

/* ── Platform section ── */
.platform-section {
  background: linear-gradient(160deg, var(--ap-ink-dark) 0%, #0d1e3a 100%);
  position: relative;
  overflow: hidden;
}

.platform-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 70% at 0%   50%, rgba(12,69,141,.28) 0%, transparent 55%),
    radial-gradient(ellipse 45% 55% at 100% 15%, rgba(0,151,94,.22)  0%, transparent 55%),
    radial-gradient(ellipse 30% 40% at 60%  90%, rgba(0,151,94,.1)   0%, transparent 50%);
}

.platform-section::after { content: none; }

.platform-section .container { position: relative; z-index: 1; }

/* ── Feature list (dark bg) ── */
.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.125rem 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.feature-item:last-child { border-bottom: none; }

.feature-item__icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(0,151,94,.15);
  border-radius: .625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4dd49a;
  font-size: 1.125rem;
}

.feature-item__title {
  font-size: .9375rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: .25rem;
}

.feature-item__desc {
  font-size: .875rem;
  color: #78716c;
  margin: 0;
}

/* Variante azul de feature-item__icon */
.feature-item__icon--blue {
  background: rgba(12,69,141,.18);
  color: #7aadee;
}

/* ── Industry badges ── */
.industry-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5625rem 1.125rem;
  background: #fff;
  border: 1px solid var(--ap-border);
  border-radius: 2rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--ap-ink);
  transition: all .2s;
  text-decoration: none;
}

.industry-badge:hover {
  background: var(--ap-green-light);
  border-color: var(--ap-green);
  color: var(--ap-green-dark);
  text-decoration: none;
}

/* ── Testimonials ── */
.testimonial-card {
  background: #fff;
  border: 1px solid var(--ap-border);
  border-radius: 1rem;
  padding: 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.08);
}

.testimonial-card__quote {
  font-size: 2.5rem;
  line-height: .8;
  color: var(--ap-green);
  font-family: Georgia, 'Times New Roman', serif;
  margin-bottom: .875rem;
}

.testimonial-card__text {
  font-size: .9375rem;
  color: var(--ap-ink);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.25rem;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ap-border);
}

.testimonial-card__avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  flex-shrink: 0;
  letter-spacing: .03em;
  background: var(--ap-green-light);
  color: var(--ap-green-dark);
}

.testimonial-card__avatar--blue {
  background: var(--ap-blue-light);
  color: var(--ap-blue-dark);
}

.testimonial-card__name {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--ap-ink);
  line-height: 1.25;
}

.testimonial-card__role {
  font-size: .8125rem;
  color: var(--ap-grey-mid);
  line-height: 1.3;
  margin-top: .125rem;
}

/* ── Industry item (grid sobre fondo oscuro) ── */
.industry-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 1.125rem .75rem;
  background: #fff;
  border: 1px solid var(--ap-border);
  border-radius: .75rem;
  color: var(--ap-ink);
  font-size: .8rem;
  font-weight: 500;
  text-align: center;
  height: 100%;
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
}

.industry-item i {
  font-size: 1.5rem;
  color: var(--ap-green);
  transition: color .2s;
}

.industry-item:hover {
  background: var(--ap-green-light);
  border-color: var(--ap-green);
  color: var(--ap-green-dark);
  box-shadow: 0 4px 16px rgba(0,151,94,.12);
}

.industry-item:hover i { color: var(--ap-green-dark); }

/* ── Testimonial card: variante dark ── */
.testimonial-card--dark {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.09);
}

.testimonial-card--dark:hover {
  background: rgba(255,255,255,.08);
  box-shadow: 0 20px 48px rgba(0,0,0,.35);
}

.testimonial-card--dark .testimonial-card__text {
  color: rgba(255,255,255,.75);
}

.testimonial-card--dark .testimonial-card__author {
  border-top-color: rgba(255,255,255,.1);
}

.testimonial-card--dark .testimonial-card__name { color: #fff; }
.testimonial-card--dark .testimonial-card__role  { color: rgba(255,255,255,.4); }

/* ── Testimonials carousel ── */
.tcard-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tcard-track::-webkit-scrollbar { display: none; }

.tcard-slide {
  flex: 0 0 calc(33.333% - .84rem);
  scroll-snap-align: start;
  min-width: 0;
}

.tcard-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin-top: 2rem;
}

.tcard-btn {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--ap-border);
  color: var(--ap-ink);
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(0,0,0,.07);
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
}

.tcard-btn:hover:not(:disabled) {
  background: var(--ap-green);
  border-color: var(--ap-green);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,151,94,.25);
}

.tcard-btn:disabled { opacity: .35; cursor: not-allowed; box-shadow: none; }

/* ── CTA section (verde → azul) ── */
.cta-section {
  background: linear-gradient(130deg, var(--ap-green-dark) 0%, var(--ap-green) 40%, #0a6aad 75%, var(--ap-blue) 100%);
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
}

.cta-section::before { content: none; }

.cta-section .container { position: relative; z-index: 1; }

/* ── CTA section variante azul ── */
.cta-section-blue {
  background: linear-gradient(130deg, #0a3b78 0%, var(--ap-blue) 50%, #1a5c9e 100%);
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
}

.cta-section-blue::before { content: none; }

.cta-section-blue::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 100% 50%, rgba(0,151,94,.2) 0%, transparent 60%);
}

.cta-section-blue .container { position: relative; z-index: 1; }

/* ── Service detail (servicios page) ── */
.service-detail {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--ap-border);
}

.service-detail:last-child { border-bottom: none; }

.service-detail__icon {
  width: 4rem;
  height: 4rem;
  background: var(--ap-green-light);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--ap-green);
  margin-bottom: 1.5rem;
}

.check-list { list-style: none; padding: 0; margin: 0; }

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  padding: .375rem 0;
  font-size: .9375rem;
  color: var(--ap-grey);
}

.check-list li::before {
  content: '';
  display: inline-block;
  width: 1.125rem;
  height: 1.125rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%23e0f5ec'/%3E%3Cpath d='M5 8l2 2 4-4' stroke='%2300975E' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
  flex-shrink: 0;
  margin-top: .125rem;
}

/* ── Platform modules ── */
.module-card {
  background: #fff;
  border: 1px solid var(--ap-border);
  border-radius: 1rem;
  padding: 1.75rem;
  height: 100%;
  transition: border-color .25s, box-shadow .25s;
}

.module-card:hover {
  border-color: var(--ap-green);
  box-shadow: 0 8px 32px rgba(0,151,94,.08);
}

.module-card--blue .module-card__num { color: var(--ap-blue); }
.module-card--blue:hover {
  border-color: var(--ap-blue);
  box-shadow: 0 8px 32px rgba(12,69,141,.08);
}

.module-card__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: .6875rem;
  font-weight: 600;
  color: var(--ap-green);
  letter-spacing: .05em;
  margin-bottom: .625rem;
}

.module-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ap-ink);
  margin-bottom: .5rem;
}

.module-card__desc {
  font-size: .9375rem;
  color: var(--ap-grey);
  line-height: 1.6;
  margin: 0;
}

/* ── Team card ── */
.team-card { text-align: center; }

.team-card__avatar {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: var(--ap-green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--ap-green);
  margin: 0 auto 1rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

/* ── Value card ── */
.value-card {
  padding: 2rem;
  border-radius: 1rem;
  background: var(--ap-warm);
  border: 1px solid var(--ap-border);
  height: 100%;
}

.value-card__icon {
  font-size: 2rem;
  color: var(--ap-green);
  margin-bottom: 1rem;
}

.value-card--blue .value-card__icon { color: var(--ap-blue); }
.value-card--blue {
  border-color: var(--ap-blue-light);
  background: var(--ap-blue-light);
}

/* ── Contact form ── */
.form-control, .form-select {
  border-color: var(--ap-border);
  font-size: .9375rem;
  padding: .625rem .875rem;
  border-radius: .5rem;
  transition: border-color .2s, box-shadow .2s;
}

.form-control:focus, .form-select:focus {
  border-color: var(--ap-green);
  box-shadow: 0 0 0 3px rgba(0,151,94,.12);
}

.form-label {
  font-weight: 600;
  font-size: .875rem;
  color: var(--ap-ink);
  margin-bottom: .375rem;
}

.contact-info-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--ap-warm);
  border-radius: 1rem;
  border: 1px solid var(--ap-border);
  height: 100%;
}

.contact-info-card__icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--ap-green-light);
  border-radius: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--ap-green);
}

/* ── Footer ── */
.site-footer {
  background: #090f18;
  color: #9aa0a8;
  padding: 4.5rem 0 2rem;
  position: relative;
  overflow: hidden;
}

/* Brandbook dual-color accent bar: verde → azul (ref. SpiderBanner) */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ap-green) 0%, var(--ap-green) 50%, var(--ap-blue) 100%);
}

/* Large circular logo as faint watermark (ref. social post mockup) */
.footer-emblem {
  position: absolute;
  right: -5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 28rem;
  height: 28rem;
  opacity: .035;
  pointer-events: none;
  user-select: none;
}

.footer-emblem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-logo {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .9;
  display: block;
  margin-bottom: .125rem;
}

/* JetBrains Mono institutional sub-label (ref. brandbook section labels) */
.footer-mono-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: .5625rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(0,151,94,.55);
  margin-top: .375rem;
  margin-bottom: .25rem;
}

.footer-tagline {
  font-size: .875rem;
  color: #78716c;
  margin-top: .625rem;
  max-width: 280px;
  line-height: 1.55;
}

/* JetBrains Mono heading style (ref. brandbook section tags) */
.footer-heading {
  font-family: 'JetBrains Mono', monospace;
  font-size: .5625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: rgba(0,151,94,.5);
  margin-bottom: 1rem;
}

.footer-links { list-style: none; padding: 0; margin: 0; }

.footer-links a {
  color: #9aa0a8;
  text-decoration: none;
  font-size: .9375rem;
  display: block;
  padding: .25rem 0;
  transition: color .2s;
}

.footer-links a:hover { color: #fff; }

/* Green tint on divider (ref. brand color usage) */
.footer-divider {
  border-color: rgba(0,151,94,.14);
  margin: 2.5rem 0 1.5rem;
}

.footer-bottom {
  font-family: 'JetBrains Mono', monospace;
  font-size: .75rem;
  color: #57534e;
  letter-spacing: .04em;
}

/* Brand tag (mono, very subtle) */
.footer-brand-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: .5625rem;
  letter-spacing: .18em;
  color: rgba(255,255,255,.12);
  text-transform: uppercase;
}

/* Social buttons: circular, brand-specific hover colors */
.social-btn {
  width: 2.25rem;
  height: 2.25rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9aa0a8;
  text-decoration: none;
  font-size: 1rem;
  transition: background .2s, color .2s, border-color .2s;
}

.social-btn:hover { background: var(--ap-green); color: #fff; border-color: var(--ap-green); }
.social-btn--li:hover { background: #0a66c2; border-color: #0a66c2; color: #fff; }
.social-btn--ig:hover { background: #e1306c; border-color: #e1306c; color: #fff; }
.social-btn--yt:hover { background: #ff0000; border-color: #ff0000; color: #fff; }

/* ── FAQ accordion (custom, sin Bootstrap collapse) ── */
.faq-item {
  border: 1px solid var(--ap-border);
  border-radius: .75rem;
  margin-bottom: .75rem;
  background: #fff;
}
.faq-item:last-child { margin-bottom: 0; }

.faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  background: #fff;
  border: none;
  border-radius: .75rem;
  font-family: inherit;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--ap-ink);
  text-align: left;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.faq-btn::after {
  content: '';
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2300975E'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-size: contain;
  transition: transform .3s ease;
}
.faq-btn:not(.faq-btn--closed) {
  color: var(--ap-green);
  background: var(--ap-green-light);
  border-radius: .75rem .75rem 0 0;
}
.faq-btn:not(.faq-btn--closed)::after {
  transform: rotate(-180deg);
}
.faq-btn:focus-visible {
  outline: 3px solid rgba(0,151,94,.35);
  outline-offset: 2px;
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.faq-panel--open {
  max-height: 600px;
}

.faq-body {
  padding: .875rem 1.25rem 1.25rem;
  font-size: .9375rem;
  color: var(--ap-grey);
  line-height: 1.65;
}

/* ── Badge override ── */
.text-primary { color: var(--ap-green) !important; }

/* ── Animations ── */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: none;
}

[data-animate-delay="100"] { transition-delay: .1s; }
[data-animate-delay="200"] { transition-delay: .2s; }
[data-animate-delay="300"] { transition-delay: .3s; }
[data-animate-delay="400"] { transition-delay: .4s; }
[data-animate-delay="500"] { transition-delay: .5s; }
[data-animate-delay="600"] { transition-delay: .6s; }

/* ── Responsive ── */

/* Tablet / collapsed navbar */
@media (max-width: 991.98px) {
  .navbar-logo { height: 52px; }

  .navbar-collapse {
    background: rgba(9,15,24,.97);
    padding: 1.25rem 1rem;
    border-radius: .75rem;
    margin-top: .5rem;
    border: 1px solid rgba(255,255,255,.07);
  }

  /* Al hacer scroll en móvil: mantener tipografía clara sobre fondo oscuro del menú */
  .navbar-scrolled .nav-link {
    color: rgba(255,255,255,.85) !important;
  }
  .navbar-scrolled .nav-link:hover,
  .navbar-scrolled .nav-link:focus,
  .navbar-scrolled .nav-link.active {
    color: #4dd49a !important;
  }
  .navbar-scrolled .btn-outline-light {
    color: rgba(255,255,255,.9);
    border-color: rgba(255,255,255,.3);
    background-color: transparent;
  }
  .navbar-scrolled .btn-outline-light:hover {
    background-color: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.5);
    color: #fff;
  }

  /* Hero: more breathing room when stacked */
  .hero { padding: 7rem 0 4rem; min-height: auto; }
  .hero__content { text-align: center; }
  .hero__eyebrow { margin-left: auto; margin-right: auto; }
  .hero__subtitle { max-width: 100%; }
  .hero__actions { justify-content: center; }
  .hero__trust { justify-content: center; }

  /* Platform dark section: drop horizontal padding on tables */
  .platform-section .col-lg-7 > div { border-radius: .75rem !important; }

  /* Page hero compact */
  .page-hero { padding: 7rem 0 3rem; }

  /* Carousel: 2 cards visible */
  .tcard-slide { flex: 0 0 calc(50% - .625rem); }
}

/* Mobile (< 768 px) */
@media (max-width: 767.98px) {
  .navbar-logo { height: 46px; }

  .section    { padding: 3rem 0; }
  .section-lg { padding: 4rem 0; }
  .section-sm { padding: 2.5rem 0; }

  .hero__title { font-size: 1.625rem; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__trust { gap: 1rem; }

  /* Orbs smaller on mobile */
  .hero__orb--green  { width: 280px; height: 280px; }
  .hero__orb--blue   { width: 240px; height: 240px; }
  .hero__orb--blue-sm { display: none; }

  /* Platform section table: horizontal scroll */
  .platform-section .col-lg-7 > div,
  .section .col-lg-6 > div[style*="border-radius:1.25rem"],
  .section .col-lg-7 > div[style*="border-radius:1.25rem"] {
    overflow-x: auto !important;
  }

  /* Feature items tighter */
  .feature-item { gap: .75rem; }
  .feature-item__icon { width: 2.5rem; height: 2.5rem; font-size: 1.125rem; }

  /* Service / module cards */
  .service-card, .module-card { padding: 1.25rem; }

  /* Stats bar (fallback if still present) */
  .stat-number { font-size: 2rem; }

  /* CTA section */
  .cta-section, .cta-section-blue { padding: 3.5rem 0; }
  .cta-section .d-flex.flex-wrap { flex-direction: column; align-items: stretch; }
  .cta-section .btn, .cta-section-blue .btn { width: 100%; justify-content: center; }

  /* Page hero */
  .page-hero { padding: 6.5rem 0 2.5rem; }
  .page-hero__label { font-size: .6875rem; }

  /* Footer: hide watermark emblem, tighten spacing */
  .footer-emblem { display: none; }
  .site-footer { padding: 3rem 0 1.5rem; }
  .footer-brand-tag { display: none !important; }
}

/* Small phones (< 576 px) */
@media (max-width: 575.98px) {
  .navbar-logo { height: 40px; }

  .hero__title { font-size: 1.375rem; letter-spacing: -.03em; }
  .hero__subtitle { font-size: .9375rem; }
  .hero__eyebrow { font-size: .6875rem; }

  /* Pricing cards full-width */
  .row.g-4 > [class*="col-md-6"] { flex: 0 0 100%; max-width: 100%; }

  /* Value / team / cert cards: 2-col on small phones */
  .col-md-6.col-lg-3 { flex: 0 0 50%; max-width: 50%; }

  /* Service cards */
  .col-md-6.col-lg-4 { flex: 0 0 100%; max-width: 100%; }

  /* Footer columns: 2-col */
  .col-6.col-lg-2 { flex: 0 0 50%; max-width: 50%; }

  /* Carousel: 1 card visible */
  .tcard-slide { flex: 0 0 100%; }

  /* DB mockup inner table: min-width so it scrolls */
  .db-topbar + div, .p-4 > div[style*="overflow:hidden"] { min-width: 480px; }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .hero__orb { animation: none; }
  [data-animate] { opacity: 1; transform: none; transition: none; }
  [data-counter] { transition: none; }
}
