:root {
  --primary: #2e0968;
  --secondary: #f82323;
  --ink: #23202b;
  --muted: #687178;
  --paper: #ffffff;
  --soft: #f7f5fb;
  --line: #ebe6f3;
  --shadow: 0 16px 42px rgba(41, 54, 69, 0.12);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  font-family: Rubik, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  background: var(--paper);
}

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

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

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--primary);
  line-height: 1.08;
}

.icon {
  display: inline-flex;
  width: 1em;
  height: 1em;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  vertical-align: -0.14em;
}

.icon i {
  display: block;
  font-size: 1em;
  line-height: 1;
}

.media .icon i {
  font-size: 1em;
}

.topbar {
  background: var(--primary);
  color: #fff;
}

.topbar-inner {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px clamp(18px, 5vw, 72px);
  font-size: 0.86rem;
  font-weight: 600;
}

.topbar-contact,
.topbar-social,
.topbar a,
.topbar-social span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.topbar-contact,
.topbar-social {
  gap: 18px;
}

.topbar a:hover {
  color: var(--secondary);
}

.topbar-social a {
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(220px, 330px) 1fr auto;
  min-height: 92px;
  align-items: center;
  gap: 28px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 3px 14px rgba(41, 54, 69, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: min(330px, 100%);
}

.brand img {
  width: 100%;
  height: auto;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--primary);
  background: #fff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 28px);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav a:hover {
  color: var(--secondary);
}

.nav a.is-active {
  color: var(--secondary);
}

.header-action,
.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 4px;
  padding: 0 28px;
  font: inherit;
  font-weight: 800;
  color: #fff;
  background: var(--secondary);
  box-shadow: 0 14px 32px rgba(248, 35, 35, 0.22);
  cursor: pointer;
}

.button.light {
  color: var(--primary);
  background: #fff;
  box-shadow: none;
}

.hero-2026 {
  position: relative;
  display: grid;
  min-height: clamp(560px, 42vw, 720px);
  align-items: center;
  justify-items: center;
  padding: clamp(72px, 8vw, 118px) clamp(18px, 5vw, 72px);
  overflow: hidden;
  text-align: center;
  background: url("assets/herobg-1600.jpg") center/cover no-repeat;
}

.hero-copy {
  max-width: 760px;
  margin: 0 auto;
  animation: heroReveal 850ms ease-out both;
}

.hero-overline,
.hero-subtitle,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--secondary);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-overline::before,
.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: currentColor;
}

.hero-2026 h1 {
  max-width: 900px;
  margin: 0 auto;
  color: #fff;
  font-size: clamp(2.45rem, 4.4vw, 4.35rem);
  font-weight: 800;
  line-height: 1.08;
  text-transform: uppercase;
  text-shadow: 0 18px 44px rgba(5, 0, 20, 0.36);
}

.hero-2026 h1 span {
  display: block;
  animation: heroLine 900ms ease-out both;
}

.hero-2026 h1 em {
  color: var(--secondary);
  font-style: normal;
}

.hero-subtitle {
  max-width: 680px;
  width: fit-content;
  margin: 24px auto 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  font-weight: 800;
  line-height: 1.58;
  text-transform: none;
  background: transparent;
  box-shadow: none;
  text-shadow: 0 12px 30px rgba(5, 0, 20, 0.32);
  backdrop-filter: none;
}

.inline-button {
  width: max-content;
  margin-top: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.featured-services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  padding: clamp(58px, 7vw, 88px) clamp(18px, 5vw, 72px);
  background: #fff;
}

.featured-services article {
  min-width: 0;
  padding: 8px 8px 24px;
}

.featured-icon {
  display: inline-flex;
  width: 66px;
  height: 66px;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--secondary);
  font-size: 3rem;
}

.featured-services h2 {
  margin-bottom: 14px;
  font-size: clamp(1.25rem, 1.7vw, 1.5rem);
  font-weight: 700;
  line-height: 1.25;
  text-transform: none;
}

.featured-services p {
  max-width: 310px;
  font-size: 1rem;
}

.process-section {
  padding-top: clamp(54px, 7vw, 86px);
  padding-bottom: clamp(42px, 5vw, 68px);
  background: linear-gradient(180deg, #fff 0%, #fbfbfd 100%);
}

.process-heading {
  max-width: 920px;
  margin: 0 auto clamp(34px, 5vw, 58px);
  text-align: center;
}

.process-heading .eyebrow {
  justify-content: center;
}

.process-heading h2 {
  max-width: 820px;
  margin: 0 auto;
  color: var(--primary);
  font-size: clamp(2rem, 3.4vw, 3.35rem);
  font-weight: 800;
  line-height: 1.04;
  text-transform: uppercase;
}

.process-cards {
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: clamp(18px, 2vw, 32px);
  padding: 0;
  background: transparent;
}

.process-cards article {
  display: grid;
  min-height: 420px;
  align-content: start;
  justify-items: center;
  padding: clamp(34px, 4vw, 54px) clamp(22px, 3vw, 38px);
  border-radius: 20px;
  text-align: center;
  background: #fff;
  box-shadow: 0 22px 70px rgba(41, 54, 69, 0.1);
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 700ms ease, transform 700ms ease, box-shadow 220ms ease;
}

.process-cards article:nth-child(2) {
  transition-delay: 120ms;
}

.process-cards article:nth-child(3) {
  transition-delay: 240ms;
}

.process-cards article:nth-child(4) {
  transition-delay: 360ms;
}

.process-section.is-visible .process-cards article {
  opacity: 1;
  transform: translateY(0);
}

.process-cards article:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 80px rgba(41, 54, 69, 0.16);
}

.process-cards .featured-icon {
  width: 118px;
  height: 118px;
  margin: 0 0 34px;
  border-radius: 34px;
  color: var(--secondary);
  font-size: 3.2rem;
  background: linear-gradient(135deg, rgba(248, 35, 35, 0.1), rgba(46, 9, 104, 0.08));
}

.process-section.is-visible .featured-icon i {
  animation: processIconPop 900ms ease both;
}

.process-section.is-visible .process-cards article:nth-child(2) .featured-icon i {
  animation-delay: 120ms;
}

.process-section.is-visible .process-cards article:nth-child(3) .featured-icon i {
  animation-delay: 240ms;
}

.process-section.is-visible .process-cards article:nth-child(4) .featured-icon i {
  animation-delay: 360ms;
}

.process-section + .split-section {
  padding-top: clamp(46px, 6vw, 74px);
}

.process-cards h2 {
  max-width: 260px;
  margin-bottom: 20px;
  color: #343b40;
  font-size: clamp(1.45rem, 1.9vw, 2rem);
  font-weight: 900;
  line-height: 1.18;
  text-transform: uppercase;
}

.process-cards p {
  max-width: 320px;
  margin: 0 auto;
  color: #5f686f;
  font-size: 1rem;
  line-height: 1.75;
}

.split-section,
.section {
  padding: clamp(70px, 9vw, 122px) clamp(18px, 5vw, 72px);
}

.page-hero {
  padding: clamp(72px, 9vw, 118px) clamp(18px, 5vw, 72px);
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 245, 251, 0.86)),
    url("assets/hero-programmer-1800.jpg") center/cover no-repeat;
}

.page-hero .eyebrow {
  justify-content: center;
}

.page-hero h1 {
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
  color: var(--primary);
  font-size: clamp(2.15rem, 3.7vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  text-transform: uppercase;
  animation: heroLine 850ms ease-out both;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.48fr) minmax(0, 0.52fr);
  column-gap: clamp(34px, 6vw, 86px);
  row-gap: 24px;
  align-items: stretch;
  background: #fff;
}

.split-section::before {
  content: "";
  grid-column: 1;
  grid-row: 1 / span 2;
  min-height: 520px;
  border-radius: 20px;
  background: url("assets/hero-programmer-1800.jpg") center/cover no-repeat;
  box-shadow: var(--shadow);
}

.split-section > div:first-child,
.split-section .copy-block {
  grid-column: 2;
}

.split-section > div:first-child {
  grid-row: 1;
  align-self: start;
  padding-top: clamp(18px, 4vw, 54px);
}

.copy-block {
  grid-row: 2;
  align-self: start;
}

.copy-block p + p {
  margin-top: 18px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.tag-list li {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--primary);
  font-weight: 700;
  background: var(--soft);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(210px, 0.36fr) minmax(0, 0.64fr);
  align-items: start;
  gap: clamp(24px, 6vw, 80px);
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section-heading h2,
.split-section h2,
.cta-band h2,
.subscribe-section h2 {
  font-size: clamp(2.3rem, 5.2vw, 4.8rem);
  font-weight: 800;
  line-height: 1.02;
  text-transform: uppercase;
}

.page-inicio .section-heading {
  display: block;
  max-width: 920px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.page-inicio .section-heading .eyebrow {
  justify-content: center;
}

.page-inicio .section-heading h2,
.page-inicio .cta-band h2 {
  max-width: 820px;
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(2rem, 3.4vw, 3.35rem);
  text-align: center;
}

.page-inicio .split-section h2 {
  max-width: 620px;
  margin-right: 0;
  margin-left: 0;
  font-size: clamp(2rem, 3.4vw, 3.35rem);
  text-align: left;
}

.page-inicio .portfolio-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.services-section {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(5, 2, 12, 0.96), rgba(46, 9, 104, 0.98)),
    var(--primary);
}

.page-services {
  padding-top: clamp(70px, 9vw, 122px);
}

.services-section h2,
.services-section h3,
.services-section .eyebrow {
  color: #fff;
}

.services-section .eyebrow {
  color: var(--secondary);
}

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

.services-list article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  min-height: 210px;
  padding: 34px clamp(24px, 4vw, 46px);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.services-list article:nth-child(odd) {
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.services-list .icon {
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  color: var(--secondary);
  font-size: 2rem;
}

.services-list h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
  font-weight: 700;
}

.services-list p {
  max-width: 470px;
  color: rgba(255, 255, 255, 0.75);
}

.services-list strong {
  align-self: start;
  color: rgba(255, 255, 255, 0.18);
  font-size: clamp(3.4rem, 6vw, 5.6rem);
  line-height: 0.9;
}

.service-guarantee {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
  align-items: center;
  gap: clamp(48px, 8vw, 140px);
  padding: clamp(80px, 10vw, 142px) clamp(18px, 10vw, 210px);
  background: #fff;
}

.service-guarantee .eyebrow { color: var(--secondary); }

.service-guarantee h2 {
  max-width: 760px;
  margin-top: 18px;
  color: var(--primary);
  font-size: clamp(2.55rem, 4.8vw, 5.15rem);
  font-weight: 900;
  line-height: 1.08;
  text-transform: uppercase;
}

.service-guarantee h2 span {
  display: block;
  color: var(--secondary);
}

.service-guarantee-copy p {
  max-width: 760px;
  color: #707176;
  font-size: clamp(1.02rem, 1.4vw, 1.25rem);
  line-height: 1.55;
}

/* Las secciones revelan su contenido una vez que entran al viewport. */
.reveal-section > div,
.services-reveal .section-heading,
.portfolio-reveal .section-heading,
.portfolio-reveal .portfolio-filters,
.testimonials-reveal .testimonial-heading,
.blog-reveal .section-heading {
  transition: opacity 600ms ease, transform 600ms ease;
}

.split-section.reveal-section:not(.is-visible) > div,
.services-reveal:not(.is-visible) .section-heading,
.portfolio-reveal:not(.is-visible) .section-heading,
.portfolio-reveal:not(.is-visible) .portfolio-filters,
.testimonials-reveal:not(.is-visible) .testimonial-heading,
.blog-reveal:not(.is-visible) .section-heading {
  opacity: 0;
  transform: translateY(24px);
}

.services-reveal .services-list article,
.portfolio-reveal .portfolio-card,
.testimonials-reveal .testimonial-card,
.blog-reveal .blog-card {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 650ms ease, transform 650ms ease, box-shadow 220ms ease;
}

.services-reveal.is-visible .services-list article,
.portfolio-reveal.is-visible .portfolio-card,
.testimonials-reveal.is-visible .testimonial-card,
.blog-reveal.is-visible .blog-card {
  opacity: 1;
  transform: translateY(0);
}

.services-reveal .services-list article:nth-child(2),
.portfolio-reveal .portfolio-card:nth-child(2),
.testimonials-reveal .testimonial-card:nth-child(2),
.blog-reveal .blog-card:nth-child(2) {
  transition-delay: 100ms;
}

.services-reveal .services-list article:nth-child(3),
.portfolio-reveal .portfolio-card:nth-child(3),
.testimonials-reveal .testimonial-card:nth-child(3),
.blog-reveal .blog-card:nth-child(3) {
  transition-delay: 200ms;
}

.services-reveal .services-list article:nth-child(4),
.portfolio-reveal .portfolio-card:nth-child(4) {
  transition-delay: 300ms;
}

.services-reveal .services-list article:nth-child(5) { transition-delay: 400ms; }
.services-reveal .services-list article:nth-child(6) { transition-delay: 500ms; }
.services-reveal .services-list article:nth-child(7) { transition-delay: 600ms; }
.services-reveal .services-list article:nth-child(8) { transition-delay: 700ms; }

.muted {
  background: var(--soft);
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: -18px 0 42px;
}

.portfolio-filters button {
  min-height: 44px;
  border: 1px solid rgba(46, 9, 104, 0.22);
  border-radius: 3px;
  padding: 10px 16px;
  color: var(--primary);
  background: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.portfolio-filters button.is-active {
  border-color: var(--primary);
  color: #fff;
  background: var(--primary);
}

.portfolio-filters button:hover,
.portfolio-filters button:focus-visible {
  border-color: var(--secondary);
  color: #fff;
  background: var(--secondary);
  outline: 0;
}

.portfolio-grid > [data-portfolio-category][hidden] {
  display: none;
}

.portfolio-grid,
.blog-grid,
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.portfolio-card,
.blog-card,
.testimonial-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.media {
  display: grid;
  min-height: 250px;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: #fff;
  background:
    radial-gradient(circle at 20% 18%, rgba(248, 35, 35, 0.78), transparent 28%),
    linear-gradient(135deg, #100018, var(--primary));
}

.media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.blog-card .media {
  position: relative;
  min-height: 0;
  height: auto;
  aspect-ratio: 1200 / 700;
  overflow: hidden;
}

.blog-card .media img {
  position: absolute;
  inset: 0;
  object-position: center top;
}

.portfolio-card .media {
  position: relative;
  min-height: 0;
  height: auto;
  aspect-ratio: 1200 / 700;
  overflow: hidden;
}

.portfolio-card .media img {
  position: absolute;
  inset: 0;
  object-position: center top;
}

.media .icon {
  width: 48px;
  height: 48px;
  color: var(--secondary);
}

.media span {
  font-size: 3.2rem;
  font-weight: 800;
}

.card-body {
  padding: 26px;
}

.category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 0.75rem;
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
}

.portfolio-card h3,
.blog-card h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 42px;
}

.clients-section {
  position: relative;
  overflow: hidden;
  padding: clamp(78px, 9vw, 124px) 0 clamp(88px, 10vw, 138px);
  color: #fff;
  background-color: #1e0750;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  text-align: center;
}

.clients-section::before {
  content: "";
  position: absolute;
  top: -42px;
  left: 50%;
  width: 92px;
  height: 92px;
  transform: translateX(-50%) rotate(45deg);
  background: #fff;
  border-radius: 8px;
}

.clients-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.clients-section h2 {
  max-width: 920px;
  margin: 0 auto 18px;
  color: #fff;
  font-size: clamp(2.1rem, 4.4vw, 4.1rem);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}

.clients-section p {
  max-width: 780px;
  margin: 0 auto;
  color: #f82323;
  font-size: clamp(1.15rem, 2vw, 1.75rem);
  font-weight: 700;
}

.why-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  gap: clamp(48px, 9vw, 160px);
  padding: clamp(80px, 10vw, 142px) clamp(18px, 10vw, 210px);
  background: #fff;
}

.why-copy .eyebrow {
  color: var(--secondary);
}

.why-copy h2 {
  max-width: 620px;
  margin: 16px 0 34px;
  color: var(--primary);
  font-size: clamp(2.55rem, 4.8vw, 5.15rem);
  font-weight: 900;
  line-height: 1.08;
  text-transform: uppercase;
}

.why-copy h2 span {
  display: block;
  color: var(--secondary);
}

.why-copy p:not(.eyebrow) {
  max-width: 720px;
  color: #707176;
  font-size: clamp(1.02rem, 1.4vw, 1.25rem);
  line-height: 1.55;
}

.why-copy p + p:not(.eyebrow) {
  margin-top: 1rem;
}

.why-stat {
  display: grid;
  justify-items: center;
  color: var(--primary);
  text-align: center;
}

.why-number {
  position: relative;
  color: var(--secondary);
  font-size: clamp(10rem, 20vw, 22rem);
  font-weight: 900;
  line-height: 0.72;
  letter-spacing: 0;
}

.why-number sup {
  position: absolute;
  right: -0.06em;
  bottom: 0.03em;
  color: var(--primary);
  font-size: 0.39em;
  line-height: 1;
}

.why-stat strong {
  margin-top: 30px;
  font-size: clamp(2rem, 4vw, 4.2rem);
  font-weight: 900;
  line-height: 1.03;
  text-transform: uppercase;
}

.about-experience {
  background: linear-gradient(135deg, #fff 0%, #f8f6fc 100%);
}

.about-timeline {
  padding: clamp(80px, 10vw, 142px) clamp(18px, 7vw, 120px);
  color: #fff;
  background: var(--primary);
}

.about-section-heading {
  max-width: 880px;
  margin: 0 auto clamp(48px, 7vw, 82px);
  text-align: center;
}

.about-section-heading .eyebrow {
  justify-content: center;
  color: var(--secondary);
}

.about-section-heading h2 {
  margin-top: 18px;
  color: #fff;
  font-size: clamp(2.3rem, 4.7vw, 4.8rem);
  font-weight: 900;
  line-height: 1.04;
  text-transform: uppercase;
}

.about-timeline-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 38px);
}

.about-timeline-grid::before {
  content: "";
  position: absolute;
  top: 42px;
  right: 10%;
  left: 10%;
  height: 2px;
  background: rgba(255, 255, 255, 0.18);
}

.about-timeline-grid article {
  position: relative;
  z-index: 1;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
}

.about-timeline-grid article > span {
  display: inline-block;
  margin-bottom: 30px;
  padding: 9px 14px;
  border-radius: 999px;
  color: #fff;
  background: var(--secondary);
  font-size: 1.1rem;
  font-weight: 900;
}

.about-timeline-grid h3 {
  margin-bottom: 16px;
  color: #fff;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.about-timeline-grid p {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.7;
}

.about-present {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 54px);
  padding: clamp(80px, 10vw, 142px) clamp(18px, 7vw, 120px);
  background: var(--soft);
}

.about-present article {
  padding: clamp(30px, 4vw, 52px);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.about-present .eyebrow { color: var(--secondary); }

.about-present h2 {
  margin: 18px 0 24px;
  color: var(--primary);
  font-size: clamp(2rem, 3.6vw, 3.6rem);
  font-weight: 900;
  line-height: 1.06;
  text-transform: uppercase;
}

.about-present article > p:last-child {
  color: #707176;
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.7;
}

.clients-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: clamp(44px, 6vw, 76px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.clients-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: clamp(34px, 5vw, 78px);
  animation: clientsMarquee 30s linear infinite;
  will-change: transform;
}

.clients-carousel:hover .clients-track {
  animation-play-state: paused;
}

.client-logo {
  display: inline-flex;
  min-width: clamp(150px, 13vw, 220px);
  min-height: 78px;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: clamp(1.2rem, 2vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  white-space: nowrap;
  opacity: 0.92;
}

.client-logo img {
  display: block;
  width: min(190px, 100%);
  max-height: 78px;
  object-fit: contain;
  filter: grayscale(1) brightness(0) invert(1);
}

.client-logo:nth-child(4n + 2) {
  font-size: clamp(1.55rem, 2.7vw, 2.55rem);
}

.client-logo:nth-child(4n + 4) {
  font-weight: 600;
  letter-spacing: 0.04em;
}

@keyframes clientsMarquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .clients-track {
    animation: none;
    transform: none;
  }
}

.testimonials {
  position: relative;
  color: #fff;
  background: var(--secondary);
  overflow: hidden;
}

.testimonial-heading {
  max-width: 920px;
  margin: 0 auto clamp(46px, 6vw, 78px);
  text-align: center;
}

.testimonial-heading p {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  font-weight: 800;
}

.testimonial-heading h2 {
  color: #fff;
  font-size: clamp(2.6rem, 5.4vw, 5.5rem);
  font-weight: 500;
  line-height: 1.08;
  text-transform: none;
}

.testimonial-heading span {
  display: block;
  max-width: 780px;
  margin: 28px auto 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.1rem, 1.9vw, 1.65rem);
  line-height: 1.55;
}

.testimonial-heading::after {
  content: "";
  display: block;
  width: 90px;
  height: 4px;
  margin: 34px auto 0;
  background: rgba(255, 255, 255, 0.72);
}

.testimonial-carousel {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(14px, 2vw, 24px);
  align-items: center;
}

.testimonial-viewport {
  overflow: hidden;
}

.testimonial-grid {
  display: flex;
  gap: clamp(22px, 3vw, 36px);
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.testimonial-grid::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  flex: 0 0 calc((100% - (clamp(22px, 3vw, 36px) * 2)) / 3);
  scroll-snap-align: start;
  display: grid;
  align-content: start;
  min-height: 390px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 18px;
  color: #2b2633;
  text-align: left;
  background: #fff;
  box-shadow: 0 22px 70px rgba(46, 9, 104, 0.14);
}

.testimonial-control {
  display: inline-flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  color: var(--primary);
  background: #fff;
  box-shadow: 0 14px 38px rgba(46, 9, 104, 0.16);
  cursor: pointer;
}

.testimonial-control:hover {
  color: #fff;
  background: var(--primary);
}

.testimonial-dots {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.testimonial-dots button {
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.testimonial-dots button::before {
  content: "";
  position: absolute;
  inset: 17px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
}

.testimonial-dots button.is-active::before {
  background: #fff;
}

.testimonial-person {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.testimonial-avatar {
  display: inline-grid;
  width: 62px;
  height: 62px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
  font-size: 1.65rem;
  font-weight: 900;
}

.testimonial-card:nth-child(2) .testimonial-avatar {
  background: #9b7b5e;
}

.testimonial-person h3 {
  color: #25212c;
  font-size: 1.35rem;
  font-weight: 900;
}

.testimonial-person p {
  color: #968f93;
  font-size: 1rem;
  line-height: 1.25;
}

.testimonial-stars {
  margin-bottom: 28px;
  color: #eba900;
  font-size: 1.1rem;
  letter-spacing: 0.18em;
}

.testimonial-copy,
.testimonial-copy p {
  margin: 0;
  color: #302b31;
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
  line-height: 1.8;
}

.testimonial-copy p + p { margin-top: 0.8em; }

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  min-height: 360px;
  padding: clamp(72px, 8vw, 112px) clamp(18px, 9vw, 180px);
  color: #fff;
  background-color: var(--primary);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.cta-band h2 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  line-height: 1.08;
}

.cta-band-copy p {
  margin: 14px 0 0;
  color: #f62323;
  font-size: clamp(1.05rem, 1.7vw, 1.55rem);
  font-weight: 800;
  text-align: center;
}

.cta-band .cta-button {
  flex: 0 0 auto;
  width: auto;
  min-width: 174px;
  background: #f62323;
  border-color: #f62323;
  color: #fff;
}

.cta-band .cta-button:hover,
.cta-band .cta-button:focus-visible {
  background: #2e0968;
  border-color: #2e0968;
}

.subscribe-section {
  display: grid;
  grid-template-columns: minmax(0, 0.6fr) minmax(280px, 0.4fr);
  gap: 36px;
  align-items: center;
  padding: clamp(70px, 9vw, 112px) clamp(18px, 5vw, 72px);
  background: #fff;
}

.subscribe-section h2 {
  max-width: 820px;
}

.subscribe-section p {
  max-width: 680px;
}

.subscribe-section form {
  display: grid;
  gap: 12px;
}

.subscribe-section label span {
  display: block;
  margin-bottom: 8px;
  color: var(--primary);
  font-weight: 700;
}

.subscribe-section input {
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0 16px;
  color: var(--ink);
  font: inherit;
}

.contact-map {
  position: relative;
  height: clamp(320px, 38vw, 470px);
  overflow: hidden;
  background: #eee;
}

.article-hero p:not(.eyebrow) {
  max-width: 820px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  text-align: center;
}

.article-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 18px;
}

.article-meta-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  padding: 16px 20px;
  border-radius: 6px;
  color: #fff;
  background: #f62323;
  box-shadow: 0 12px 26px rgba(248, 35, 35, 0.18);
}

.article-date {
  gap: 12px;
}

.article-date > i {
  font-size: 1.45rem;
}

.article-date > span {
  display: grid;
  gap: 2px;
  font-size: 0.84rem;
  font-weight: 800;
}

.article-date strong {
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 0.95;
}

.article-category {
  gap: 12px;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 800;
}

.article-category i {
  font-size: 1.3rem;
}

.article-share {
  display: grid;
  gap: 10px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 800;
}

.article-share > div {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.article-share a {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: #f62323;
  background: #fff;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.article-share a:hover {
  color: #fff;
  background: var(--primary);
  transform: translateY(-2px);
}

.article-reading {
  margin: 0 0 24px;
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.article-reading i {
  margin-right: 7px;
  color: #f62323;
}

.article-body {
  max-width: 980px;
  position: relative;
  z-index: 1;
  margin: -28px auto 0;
  padding-top: 0;
  padding-bottom: clamp(70px, 9vw, 122px);
}

.article-content {
  max-width: 880px;
  margin: 34px auto 0;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.8;
}

.article-content > :first-child { margin-top: 0; }
.article-content h2,
.article-content h3,
.article-content h4 { margin: 1.65em 0 0.55em; color: var(--primary); line-height: 1.2; }
.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote { margin: 0 0 1.2em; }
.article-content ul,
.article-content ol { padding-left: 1.35em; }
.article-content blockquote { padding: 4px 0 4px 22px; border-left: 4px solid var(--secondary); color: #584f62; font-style: italic; }
.article-content a { color: var(--secondary); font-weight: 700; text-decoration: underline; }

.article-body img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  margin-bottom: 34px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.article-body p {
  color: #3e4550;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.9;
}

.project-detail {
  display: grid;
  gap: 34px;
}

.project-detail > img {
  height: auto;
  max-height: none;
  object-fit: contain;
}

.article-content a.inline-button,
.article-content a.inline-button:hover,
.article-content a.inline-button:focus-visible {
  color: #fff;
  text-decoration: none;
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.contact-map-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 7px;
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  transform: translate(-50%, -50%);
  transition: color 180ms ease, transform 180ms ease;
  filter: drop-shadow(0 4px 8px rgba(28, 9, 53, 0.24));
}

.contact-map-marker img {
  width: clamp(48px, 5vw, 68px);
  height: auto;
}

.contact-map-marker span {
  padding: 7px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 3px 12px rgba(28, 9, 53, 0.18);
}

.contact-map-marker:hover,
.contact-map-marker:focus-visible {
  color: var(--secondary);
  transform: translate(-50%, -50%) scale(1.05);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(320px, 0.42fr);
  gap: clamp(42px, 7vw, 96px);
  align-items: start;
  position: relative;
  background: #fff;
}

.contact-section h2 {
  margin-bottom: 34px;
  color: #53545a;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  line-height: 1;
  text-transform: none;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  color: var(--primary);
  font-weight: 800;
}

.contact-list a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.contact-form {
  display: grid;
  gap: 24px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.antispam-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-turnstile {
  min-height: 65px;
}

.form-turnstile .cf-turnstile {
  min-height: 65px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 34px;
}

.contact-form label span {
  display: block;
  margin-bottom: 10px;
  color: #5b6068;
  font-size: 1rem;
  font-weight: 500;
}

.contact-form em {
  color: var(--secondary);
  font-style: normal;
}

.contact-form small {
  display: block;
  margin-top: 8px;
  color: #c9c9ce;
  font-size: 0.86rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 2px solid #dedee3;
  border-radius: 8px;
  padding: 15px 16px;
  color: var(--ink);
  font: inherit;
  background: #fff;
}

.contact-form select {
  min-height: 58px;
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--primary) 50%) calc(100% - 22px) 50% / 7px 7px no-repeat,
    linear-gradient(135deg, var(--primary) 50%, transparent 50%) calc(100% - 15px) 50% / 7px 7px no-repeat,
    #fff;
}

.contact-form textarea {
  resize: vertical;
}

.contact-info {
  display: grid;
  gap: 28px;
  padding-top: clamp(14px, 3vw, 48px);
  color: #5a5c62;
}

.contact-info a,
.contact-address {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-style: normal;
}

.contact-info .icon {
  margin-top: 0.22em;
  color: #d5d5da;
}

.quote-hero h1 {
  max-width: 900px;
}

.quote-section {
  align-items: center;
}

.quote-info .eyebrow {
  color: var(--secondary);
}

.quote-info h2 {
  max-width: 560px;
  margin-bottom: 28px;
  color: var(--primary);
  font-size: clamp(1.45rem, 2vw, 2.05rem);
  font-weight: 800;
  line-height: 1.25;
  text-transform: none;
}

.quote-info h2::after {
  content: "";
  display: block;
  width: min(100%, 360px);
  height: 4px;
  margin-top: 28px;
  background: rgba(46, 9, 104, 0.16);
}

.quote-info,
.quote-info a,
.quote-info .contact-address,
.quote-info .contact-info,
.quote-info .icon,
.quote-info h2,
.quote-info p,
.quote-info strong,
.quote-info span {
  color: var(--primary);
}

.quote-contact-list {
  display: grid;
  gap: 18px;
  max-width: 620px;
}

.quote-contact-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  color: var(--primary);
  font-size: clamp(1.08rem, 1.35vw, 1.28rem);
  font-weight: 700;
  line-height: 1.45;
}

.quote-contact-row .icon {
  width: 34px;
  height: 34px;
  margin-top: 0;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 1.05em;
}

.quote-contact-row .icon i {
  font-size: 1em;
}

.quote-phone strong {
  display: block;
  color: var(--primary);
  font-size: inherit;
  font-weight: 700;
  line-height: inherit;
  white-space: nowrap;
}

.quote-hours {
  font-size: clamp(1.08rem, 1.35vw, 1.28rem);
  font-weight: 700;
}

.quote-info .contact-address {
  display: grid;
  margin-top: 0;
  font-size: clamp(1.08rem, 1.35vw, 1.28rem);
}

.quote-social {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 10px;
  padding-top: 24px;
  border-top: 3px solid var(--secondary);
}

.quote-social a {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
  font-size: 1.1rem;
  transition: background-color 180ms ease, transform 180ms ease;
}

.quote-social a:hover {
  color: #fff;
  background: var(--secondary);
  transform: translateY(-2px);
}

.contact-phone {
  color: #4d4f55;
}

.contact-phone strong {
  display: block;
  color: #4d4f55;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
}

.contact-phone span {
  display: block;
  margin-top: 10px;
  color: #cdced4;
  font-weight: 700;
}

.contact-line {
  font-size: 1.45rem;
}

.contact-email {
  color: #a86cf7;
}

.contact-address {
  margin-top: 18px;
  font-size: 1.25rem;
  line-height: 1.55;
}

.contact-address small {
  display: block;
  margin-top: 12px;
  color: #c9c9ce;
  font-size: 1rem;
  font-weight: 700;
}

.footer {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  background: var(--primary);
}

.footer-red {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.6fr) minmax(360px, 0.4fr);
  gap: clamp(42px, 7vw, 96px);
  align-items: start;
  padding: clamp(72px, 8vw, 118px) clamp(18px, 10vw, 220px) clamp(120px, 12vw, 190px);
  color: #fff;
  background: var(--secondary);
  overflow: hidden;
}

.footer-red::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -74px;
  left: -8%;
  height: 150px;
  background: var(--primary);
  transform: rotate(1.8deg);
  transform-origin: center;
}

.footer-red > * {
  position: relative;
  z-index: 1;
}

.footer-red p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.18rem, 1.55vw, 1.8rem);
  line-height: 1.72;
}

.footer-contact {
  display: grid;
  align-content: start;
  gap: 22px;
  justify-items: start;
  width: min(100%, 560px);
  color: #fff;
}

.footer-phone {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 6px 18px;
  align-items: center;
  justify-self: start;
  width: 100%;
}

.footer-phone i,
.footer-mail i {
  width: 40px;
  color: #fff;
  font-size: 1.72rem;
  line-height: 1;
  text-align: center;
}

.footer-phone i {
  grid-row: 1 / span 2;
}

.footer-phone strong {
  color: #fff;
  font-size: clamp(2rem, 2.8vw, 3.15rem);
  line-height: 1;
  letter-spacing: 0;
}

.footer-phone span {
  font-size: 0.88rem;
  font-weight: 800;
}

.footer-mail {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  justify-self: start;
  width: 100%;
}

.footer-mail i {
  align-self: center;
}

.footer-mail strong {
  min-width: 0;
  color: #fff;
  font-size: clamp(1.28rem, 1.75vw, 2rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-self: start;
  padding-left: 58px;
  font-size: 1.3rem;
  font-weight: 800;
}

.footer-social a {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.62);
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.footer-social a:hover {
  color: #fff;
  background: var(--primary);
  transform: translateY(-2px);
}

.footer-social i {
  font-size: 1.25rem;
  line-height: 1;
}

.footer-purple {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: center;
  padding: 42px clamp(18px, 10vw, 220px);
  background: var(--primary);
}

.footer-logo {
  display: inline-flex;
  width: min(300px, 72vw);
  justify-self: center;
}

.footer-logo img {
  width: 100%;
  height: auto;
  aspect-ratio: 1000 / 217;
  object-fit: contain;
}

.footer-purple p {
  color: rgba(255, 255, 255, 0.68);
}

.footer-purple p:last-child {
  justify-self: end;
  text-align: right;
}

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

@keyframes heroReveal {
  from {
    transform: translateY(26px);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes processCardRise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes processIconPop {
  0% {
    transform: scale(0.72) rotate(-8deg);
  }
  55% {
    transform: scale(1.14) rotate(5deg);
  }
  100% {
    transform: scale(1) rotate(0);
  }
}

@keyframes heroLine {
  from {
    transform: translateY(34px);
  }
  to {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .process-cards article {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .split-section.reveal-section > div,
  .services-reveal .section-heading,
  .portfolio-reveal .section-heading,
  .portfolio-reveal .portfolio-filters,
  .testimonials-reveal .testimonial-heading,
  .blog-reveal .section-heading,
  .services-reveal .services-list article,
  .portfolio-reveal .portfolio-card,
  .testimonials-reveal .testimonial-card,
  .blog-reveal .blog-card {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .process-section.is-visible .featured-icon i {
    animation: none;
  }
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: minmax(200px, 270px) 1fr auto;
    gap: 18px;
  }

  .nav {
    gap: 14px;
    font-size: 0.76rem;
  }

  .featured-services,
  .portfolio-grid,
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 920px) {
  .topbar {
    display: none;
  }

  .site-header {
    grid-template-columns: 44px 1fr 44px;
    min-height: 78px;
    padding: 12px 18px;
  }

  .brand {
    grid-column: 2;
    justify-self: center;
    width: min(270px, 64vw);
  }

  .menu-toggle {
    display: inline-flex;
    grid-column: 3;
    justify-self: end;
  }

  .nav {
    grid-column: 1 / -1;
    display: none;
    width: 100%;
    gap: 0;
    margin-top: 8px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--primary);
    box-shadow: 0 18px 48px rgba(46, 9, 104, 0.24);
  }

  .site-header.menu-open .nav {
    display: grid;
  }

  .nav a {
    position: relative;
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    color: #fff;
    border-radius: 0;
  }

  .nav a::after {
    content: "";
    position: absolute;
    bottom: 5px;
    left: 12px;
    width: 0;
    height: 2px;
    background: #f82323;
    transition: width 180ms ease;
  }

  .nav a:hover {
    color: #f82323;
    background: transparent;
  }

  .nav a.is-active {
    color: #fff;
    background: transparent;
  }

  .nav a.is-active::after {
    width: 34px;
  }

  .header-action {
    display: none;
  }

  .hero-2026 {
    min-height: 520px;
  }

  .hero-copy,
  .hero-2026 h1 {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .section-heading,
  .split-section,
  .why-section,
  .service-guarantee,
  .subscribe-section,
  .contact-section,
  .footer-red,
  .footer-purple {
    grid-template-columns: 1fr;
  }

  .split-section > div:first-child,
  .split-section .copy-block {
    grid-column: auto;
    grid-row: auto;
  }

  .split-section::before {
    grid-column: auto;
    grid-row: auto;
  }

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

  .footer-purple p,
  .footer-purple p:last-child {
    justify-self: center;
    text-align: center;
  }

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

  .services-list article:nth-child(odd) {
    border-right: 0;
  }
}

@media (max-width: 640px) {
  .hero-2026 {
    background-image: url("assets/herobg-960.jpg");
  }

  .page-hero {
    background-image:
      linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 245, 251, 0.86)),
      url("assets/hero-programmer-768.webp");
  }

  .split-section::before {
    background-image: url("assets/hero-programmer-768.webp");
  }

  .hero-2026 {
    min-height: 520px;
    padding-top: 76px;
    padding-bottom: 76px;
  }

  .hero-2026 h1,
  .section-heading h2,
  .split-section h2,
  .cta-band h2,
  .subscribe-section h2 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .featured-services,
  .portfolio-grid,
  .page-inicio .portfolio-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .article-meta {
    grid-template-columns: 1fr;
  }

  .article-body {
    margin-top: -18px;
  }

  .clients-section {
    padding: 68px 0 78px;
  }

  .clients-section::before {
    top: -34px;
    width: 72px;
    height: 72px;
  }

  .clients-inner {
    width: min(100% - 28px, 540px);
  }

  .clients-section h2 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .clients-section p {
    font-size: 1.05rem;
  }

  .why-number {
    font-size: clamp(9rem, 41vw, 14rem);
  }

  .why-stat strong {
    margin-top: 22px;
    font-size: clamp(1.85rem, 9vw, 2.75rem);
  }

  .why-section {
    gap: 56px;
    padding-top: 82px;
    padding-bottom: 88px;
    text-align: center;
  }

  .service-guarantee {
    gap: 36px;
    padding-top: 82px;
    padding-bottom: 88px;
    text-align: center;
  }

  .service-guarantee .eyebrow { justify-content: center; }

  .why-copy .eyebrow {
    justify-content: center;
  }

  .why-copy h2 {
    margin-right: auto;
    margin-left: auto;
  }

  .about-timeline-grid,
  .about-present { grid-template-columns: 1fr; }

  .about-timeline-grid::before { display: none; }

  .about-timeline-grid article,
  .about-present article { text-align: center; }

  .about-present .eyebrow { justify-content: center; }

  .clients-carousel {
    margin-top: 36px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  }

  .clients-track {
    gap: 32px;
    animation-duration: 24s;
  }

  .client-logo {
    min-width: 148px;
    min-height: 64px;
    font-size: 1.05rem;
  }

  .testimonial-carousel {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
  }

  .testimonial-control {
    position: static;
    grid-row: 2;
    width: 46px;
    height: 46px;
    transform: none;
  }

  .testimonial-control.prev {
    grid-column: 1;
  }

  .testimonial-control.next {
    grid-column: 3;
  }

  .testimonial-viewport {
    grid-row: 1;
    grid-column: 1 / -1;
  }

  .testimonial-dots {
    grid-row: 2;
    grid-column: 2;
    margin-top: 0;
  }

  .testimonial-card {
    flex-basis: 100%;
  }

  .cta-band {
    display: grid;
    min-height: 0;
    justify-items: center;
    text-align: center;
    padding: 72px 24px;
  }

  .cta-band .cta-button {
    width: 100%;
    max-width: 260px;
  }

  .button,
  .header-action {
    width: 100%;
  }
}
