:root {
  --impact-grad: linear-gradient(105deg, #ff3d00 0%, #ff7a1a 18%, #ffb703 38%, #fff176 58%, #7ef0d2 78%, #36a2ff 100%);
}

.hero-impact-word {
  display: inline-block;
  background: var(--impact-grad);
  background-size: 160% 100%;
  background-position: center;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0;
  border-bottom: 1px solid #dde4ef;
  background: #fff;
  box-shadow: 0 1px 3px rgba(11, 37, 69, 0.04);
  color: #0b2545;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  width: min(100% - clamp(1rem, 3vw, 2.5rem), 1200px);
  min-height: clamp(60px, 7vh, 72px);
  margin: 0 auto;
}

.logo-area {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.logo-area .logo {
  width: auto;
  height: clamp(38px, 5vh, 46px);
  border-radius: 6px;
  background: #fff;
}

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

.brand-text .lema {
  color: #083079;
  font-size: clamp(0.95rem, 1.2vw + 0.5rem, 1.15rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.sub-lema {
  max-width: 12rem;
  margin-top: 2px;
  color: #c2410c;
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  flex: 1 1 100%;
  order: 3;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
  overflow-x: auto;
  padding: 0.2rem 0;
  scrollbar-width: thin;
}

.nav-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0.55rem;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #0b3d91;
}

.nav-link.active {
  font-weight: 700;
}

.nav-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.5rem;
}

.lang-switch {
  display: flex;
  align-items: center;
  padding: 3px;
  border: 1px solid #dde4ef;
  border-radius: 8px;
  background: #f1f5f9;
}

.lang-switch .lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
}

.lang-switch .lang-btn:hover {
  color: #0b2545;
}

.lang-switch .lang-btn.active {
  background: #0b3d91;
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-navbar-cta {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, #ffb703, #ff7a1a);
  color: #081a31;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-navbar-cta:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.site-header :focus-visible {
  outline-color: #0b3d91;
}

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

.section-with-image > figure,
.content-image-big,
.content-image-entrevista,
.figure-scope {
  justify-self: center;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.section-with-image > figure img,
.content-image-big img,
.content-image-entrevista img,
.figure-scope img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

.content-image-big {
  width: min(100%, clamp(320px, 40vw, 520px));
}

.section-with-image > figure img,
.content-image-big img {
  border: 1px solid #dde4ef;
  background: #fff;
  box-shadow: 0 1px 2px rgba(11, 37, 69, 0.08);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) {
  .section-with-image > figure img:hover,
  .content-image-big img:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 14px 34px rgba(11, 61, 145, 0.18);
  }
}

@media (min-width: 1081px) {
  .section-with-image.half.founder-intro {
    grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  }
}

.reveal-on-scroll {
  transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.4s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-ready .reveal-on-scroll:not(.is-revealed) {
  opacity: 0;
  will-change: transform, opacity, filter;
}

.reveal-fade-up {
  transform: translateY(28px);
  filter: blur(3px);
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translate(0, 0);
  filter: blur(0);
}

@media (min-width: 640px) {
  .btn-navbar-cta {
    display: inline-flex;
  }
}

@media (min-width: 1024px) {
  .header-inner {
    flex-wrap: nowrap;
    gap: 0.65rem;
  }

  .nav-links {
    flex: 0 1 auto;
    order: 0;
    gap: clamp(0.25rem, 0.8vw, 0.8rem);
    overflow: visible;
  }

  .nav-link {
    padding: 0.4rem 0.35rem;
    font-size: 0.76rem;
  }

  .nav-actions {
    gap: 0.4rem;
  }
}

@media (max-width: 480px) {
  .header-inner {
    width: calc(100% - 1rem);
    gap: 0.25rem 0.5rem;
  }

  .brand-text .lema {
    font-size: 0.95rem;
  }

  .sub-lema {
    max-width: 9rem;
    font-size: 0.58rem;
  }

  .nav-links {
    gap: 0.1rem;
  }

  .nav-link {
    padding: 0.4rem 0.45rem;
    font-size: 0.8rem;
  }

  .lang-switch .lang-btn {
    padding: 4px 7px;
  }
}

/* Shared page styling aligned with the homepage design. */
:root {
  --cta: #ff7a1a;
  --cta-2: #ffb703;
  --ink: #050f24;
  --cta-grad: linear-gradient(135deg, #ff6a00, #ffb703);
  --site-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --site-shadow-sm: 0 1px 2px rgba(11, 37, 69, 0.08);
  --site-shadow-md: 0 14px 34px rgba(11, 61, 145, 0.18);
}

body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.main.container.full-width {
  margin-block: clamp(1rem, 3vw, 2rem);
}

.content.card {
  padding: clamp(14px, 2vw, 22px);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(11, 37, 69, 0.07);
}

main > .content.card > .content.card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.content h1,
.content h2,
.content h3 {
  text-wrap: balance;
}

.content h1 {
  margin: 0 0 1.2rem;
  color: var(--primary-700);
  font-size: clamp(2rem, 3vw + 0.6rem, 3.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.content h2 {
  margin: 1.8rem 0 0.75rem;
  color: var(--primary-700);
  font-size: clamp(1.45rem, 1.3vw + 1rem, 2.1rem);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.content h3 {
  color: var(--primary-700);
  font-size: clamp(1.1rem, 1vw + 0.85rem, 1.45rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.content p {
  text-wrap: pretty;
}

.content .section-label {
  color: #c2410c;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.content .section-label::before {
  width: 2rem;
  height: 3px;
  border-radius: 2px;
  background: var(--cta-grad);
}

.breadcrumb {
  color: var(--muted);
}

.breadcrumb a,
.content a:not(.nav-link):not(.lang-btn):not(.btn-cta):not(.btn-ghost) {
  text-underline-offset: 0.18em;
}

.content .section-with-image {
  gap: clamp(1rem, 2.5vw, 2rem);
}

.content .clients-list {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.content .clients-list li {
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--cta);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--site-shadow-sm);
}

.content .clients-list h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.content .clients-list p {
  margin: 0;
}

.content .servicio-card,
.content .valor-item,
.content .cliente-tipo,
.content .blog-card {
  border-radius: 14px;
  box-shadow: var(--site-shadow-sm);
  transition: transform 0.35s var(--site-ease), box-shadow 0.35s var(--site-ease);
}

.content .servicio-card.destacado {
  background: linear-gradient(160deg, #0f4fc0 0%, #0a2a68 55%, var(--ink) 100%);
  border-top-color: var(--cta);
  box-shadow: 0 10px 30px rgba(8, 48, 121, 0.3);
  color: #fff;
}

.content .servicio-card.destacado h3 {
  color: #fff;
}

.content .servicio-card.destacado p {
  color: rgba(255, 255, 255, 0.8);
}

.content .blog-card {
  background: #fff;
}

.content .blog-card-body h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  line-height: 1.35;
}

.content .post-category {
  background: #fff4d6;
  color: #7a3d00;
}

.content .post-content blockquote {
  border-left-color: var(--cta);
  background: #fff8e6;
}

.content .post-cta,
.content .cta-band {
  border-radius: 16px;
  background: var(--cta-grad);
  box-shadow: 0 16px 40px rgba(255, 106, 0, 0.24);
  color: var(--ink);
}

.content .post-cta p,
.content .cta-band p {
  color: var(--ink);
}

.content .btn-cta {
  border-radius: 8px;
  background: var(--cta-grad);
  box-shadow: 0 8px 24px rgba(255, 106, 0, 0.3);
  color: var(--ink);
  font-weight: 800;
  transition: transform 0.25s var(--site-ease), box-shadow 0.25s var(--site-ease);
}

.content .use-cases li {
  border: 1px solid var(--border);
  border-left: 4px solid var(--cta);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--site-shadow-sm);
  padding: 0.9rem 1rem;
}

@media (hover: hover) {
  .content .servicio-card:hover,
  .content .valor-item:hover,
  .content .cliente-tipo:hover,
  .content .blog-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--site-shadow-md);
  }

  .content .btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(255, 106, 0, 0.38);
  }

  .content .use-cases li:hover {
    transform: translateY(-2px);
    box-shadow: var(--site-shadow-md);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    transition: none;
  }

  .reveal-ready .reveal-on-scroll:not(.is-revealed) {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
