/* =========================================================
   QuiruNet Solutions — Main Stylesheet
   Design inspired by Trajectory Web Design
   ========================================================= */

/* Google Fonts loaded via <link> in header.php — no @import needed here */

/* ── Accessibility: focus-visible ── */
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Remove outline for mouse users; keep for keyboard */
:focus:not(:focus-visible) { outline: none; }

/* ── CSS Custom Properties ── */
:root {
  --bg:       #FFFFFF;
  --surface:  #F7F8FA;
  --ink:      #0D1521;
  --ink-2:    #3B444F;
  --mute:     #6B7280;
  --line:     #E5E7EB;
  --brand:    #E63946;
  --brand-h:  #C12838;
  --dark-bg:  #0A0E1A;
  --dark-ink: #F7F8FA;

  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:  0 4px 16px rgba(0,0,0,.09), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.08);

  --nav-h:    64px;
  --max-w:    1200px;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;

  --ease-out: cubic-bezier(.22,.68,0,1.2);
  --transition: 200ms ease;
  --border: #E5E7EB; /* alias for --line — used by service-card */
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  padding-top: var(--nav-h);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1.125rem; font-weight: 600; }

p { color: var(--ink-2); line-height: 1.7; }

/* ── Layout ── */
.wrap {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.section {
  padding-block: 80px;
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}

.section--surface { background: var(--surface); }

.section--dark {
  background: var(--dark-bg);
  color: var(--dark-ink);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark p {
  color: var(--dark-ink);
}

.section--dark p { color: rgba(247,248,250,.75); }

/* ── Grid ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .section { padding-block: 56px; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .section { padding-block: 40px; }
}

/* ── Section header ── */
.section-header { margin-bottom: 48px; }
.section-header.centered { text-align: center; }
.section-header p { margin-top: 12px; max-width: 60ch; }
.section-header.centered p { margin-inline: auto; }

/* ── Tag pill ── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(230,57,70,.1);
  color: var(--brand);
  margin-bottom: 12px;
}

.tag--muted {
  background: var(--surface);
  color: var(--mute);
}

.tag--color {
  color: #fff;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: .875rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 2px 8px rgba(230,57,70,.35);
}
.btn-primary:hover {
  background: var(--brand-h);
  box-shadow: 0 4px 16px rgba(230,57,70,.45);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-outline:hover {
  border-color: var(--ink);
  background: var(--surface);
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid rgba(13,21,33,.15);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.88);
  border-color: rgba(13,21,33,.35);
}

.btn-ghost-light {
  background: transparent;
  color: var(--dark-ink);
  border: 1.5px solid rgba(247,248,250,.25);
}
.btn-ghost-light:hover {
  background: rgba(247,248,250,.1);
}

.btn-lg { padding: 16px 32px; font-size: 1rem; border-radius: var(--radius-sm); }
.btn-sm { padding: 8px 16px; font-size: .8125rem; }

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.03em;
}

.nav__logo span { color: var(--brand); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__links a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink-2);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--ink);
  background: var(--surface);
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__lang {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: .8125rem;
  font-weight: 500;
}

.nav__lang a {
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--mute);
  transition: color var(--transition);
}

.nav__lang a:hover { color: var(--ink); }
.nav__lang a.active { color: var(--ink); font-weight: 600; }
.nav__lang span { color: var(--line); }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 6px;
  transition: background var(--transition);
}
.nav__hamburger:hover { background: var(--surface); }
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

/* Mobile menu */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 16px;
  z-index: 999;
  box-shadow: var(--shadow-lg);
}

.nav__mobile.open { display: block; }

.nav__mobile a {
  display: block;
  padding: 12px 16px;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.nav__mobile a:hover { background: var(--surface); color: var(--ink); }

.nav__mobile-bottom {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Client area link — mobile: separador visual antes del CTA */
.nav__mobile-client-area {
  margin-top: 4px;
  padding-top: 16px !important;
  border-top: 1px solid var(--line) !important;
  color: var(--mute) !important;
  font-size: .875rem !important;
  font-weight: 500 !important;
}
.nav__mobile-client-area:hover {
  color: var(--ink) !important;
  background: var(--surface) !important;
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .nav__right .btn { display: none; }
}

@media (min-width: 901px) {
  .nav__mobile-client-area { display: none; }
}

/* ── Hero ── */
.hero {
  min-height: calc(100dvh - var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230,57,70,.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Hero Video Background ── */
.hero--video {
  z-index: 0;
}

.hero--video .hero__h1,
.hero--video .hero__subtitle,
.hero--video .hero__client-name,
.hero--video .hero__trusted-label {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.hero__video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(13,21,33,0.9) 0%, rgba(13,21,33,0.3) 100%);
  z-index: -1;
}

.hero__content {
  max-width: 780px;
  position: relative;
  z-index: 1;
}

.hero__h1 {
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--ink-2);
  max-width: 60ch;
  margin-bottom: 36px;
  line-height: 1.65;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 64px;
}

@media (max-width: 768px) {
  .hero {
    padding-block: 48px;
    min-height: 100dvh;
  }
  .hero__overlay {
    background: rgba(13,21,33,0.72);
  }
  .hero__subtitle {
    font-size: 1rem;
    max-width: 100%;
  }
  .hero__ctas {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 40px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-block: 36px;
  }
  .hero__overlay {
    background: rgba(13,21,33,0.78);
  }
  .hero__ctas .btn-lg {
    width: 100%;
    text-align: center;
  }
}

.hero__trusted {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.hero__trusted-label {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--mute);
}

.hero__clients {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.hero__client-name {
  font-size: .875rem;
  font-weight: 600;
  color: var(--mute);
  padding: 4px 12px;
  border-right: 1px solid var(--line);
}
.hero__client-name:last-child { border-right: none; }

/* ── Work cards ── */
.work-card {
  background: var(--bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform .25s var(--ease-out), box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.work-card__img {
  display: block;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: var(--surface);
  padding-bottom: 36.16%; /* 405/1120 × 100% — ratio fijo sin depender de aspect-ratio */
  height: 0;
}

.work-card__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.work-card:hover .work-card__img img {
  transform: scale(1.04);
}

.work-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--surface) 0%, var(--line) 100%);
  color: var(--mute);
  font-size: .875rem;
  font-weight: 500;
}

.work-card__body {
  padding: 20px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.work-card__cat {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: inline-block;
}

.work-card__client {
  font-size: .8125rem;
  color: var(--mute);
  font-weight: 500;
  margin-bottom: 4px;
}

.work-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.35;
}

.work-card__excerpt {
  font-size: .875rem;
  color: var(--mute);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.work-card__link {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}

.work-card:hover .work-card__link { gap: 8px; }

/* Square variant for projects page */
.work-card--square .work-card__img {
  aspect-ratio: 1/1;
}

/* ── Service cards ── */
.svc-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: border-color .2s, box-shadow .2s, transform .25s var(--ease-out);
}

.svc-card:hover {
  border-color: var(--brand);
  box-shadow: 0 8px 32px rgba(230,57,70,.1);
  transform: translateY(-2px);
}

.svc-card__icon {
  width: 48px;
  height: 48px;
  background: rgba(230,57,70,.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--brand);
}

.svc-card__icon svg { width: 24px; height: 24px; }

.svc-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 8px;
}

.svc-card p {
  font-size: .875rem;
  margin-bottom: 16px;
}

.svc-card__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.svc-card__list li {
  font-size: .8125rem;
  color: var(--mute);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.svc-card__list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  margin-top: 6px;
  flex-shrink: 0;
}

/* ── Why cards ── */
.why-card {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--line);
}

.why-card__num {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 12px;
}

.why-card h3 { margin-bottom: 10px; }
.why-card p { font-size: .9rem; }

/* ── Testimonials ── */
/* ── Clients carousel ── */
.clients-section { padding-bottom: 56px; }

.clients-marquee {
  overflow: hidden;
  width: 100%;
  margin-top: 48px;
  /* fade edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.clients-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: clients-marquee 32s linear infinite;
}

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

@keyframes clients-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.clients-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  flex-shrink: 0;
}

.clients-item img {
  height: 66px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.55);
  transition: filter 0.3s ease;
}

.clients-marquee:hover .clients-item img {
  filter: grayscale(0%) opacity(1);
}

.clients-item__name {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--mute);
  white-space: nowrap;
  letter-spacing: 0.01em;
  transition: color 0.3s ease;
}

.clients-marquee:hover .clients-item__name { color: var(--ink); }

/* ── Blog cards ── */
.blog-card {
  background: var(--bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .25s var(--ease-out), box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.blog-card__img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface);
}

.blog-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.blog-card:hover .blog-card__img img { transform: scale(1.04); }

.blog-card__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.blog-card__date {
  font-size: .75rem;
  color: var(--mute);
  font-weight: 500;
}

.blog-card__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--ink);
}

.blog-card__excerpt {
  font-size: .875rem;
  color: var(--mute);
  flex: 1;
  margin-bottom: 16px;
}

.blog-card__link {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--brand);
}

/* ── CTA block ── */
.cta-block {
  text-align: center;
  padding-block: 100px;
}

.cta-block h2 {
  margin-bottom: 16px;
}

.cta-block p {
  font-size: 1.0625rem;
  margin-bottom: 36px;
  max-width: 50ch;
  margin-inline: auto;
}

/* ── Page header ── */
.page-header {
  padding-block: 64px 56px;
  border-bottom: 1px solid var(--line);
}

.page-header h1 { margin-bottom: 12px; }

.page-header p {
  max-width: 55ch;
  font-size: 1.0625rem;
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8125rem;
  color: var(--mute);
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}

.breadcrumb a { color: var(--mute); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { color: var(--mute); }

/* ── Filter pills ── */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.filter-btn {
  font-family: var(--font-heading);
  font-size: .8125rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 100px;
  background: var(--surface);
  color: var(--ink-2);
  border: 1.5px solid transparent;
  transition: all var(--transition);
}

.filter-btn:hover {
  background: var(--bg);
  border-color: var(--line);
  color: var(--ink);
}

.filter-btn.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* ── Project detail ── */
.project-hero-img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-block: 32px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.project-meta__item label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 4px;
}

.project-meta__item span {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--ink);
}

.project-description {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink-2);
  max-width: 72ch;
  margin: 0 auto 48px;
}

.project-description p {
  text-align: center;
  font-weight: 700;
}

.project-gallery {
  display: flex;
  flex-direction: column;
  gap: 50px;
  margin-bottom: 48px;
}

.project-gallery img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  transition: transform .3s ease;
}

.project-gallery img:hover { transform: scale(1.02); }

/* ── Article detail ── */
.article-header { padding-bottom: 32px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }

.article-featured-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 32px;
}

.article-body {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--ink-2);
  max-width: 72ch;
}

.article-body p + p { margin-top: 1.25em; }
.article-body h2, .article-body h3 { color: var(--ink); margin-block: 1.5em .6em; }
.article-body a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color .2s, text-decoration-color .2s;
}
.article-body a:hover {
  color: var(--brand-h);
  text-decoration-thickness: 2px;
}

/* ── About page ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-block: 56px;
}

.stat-item {
  text-align: center;
  padding: 28px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--bg);
}

.stat-item__num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item__label {
  font-size: .875rem;
  color: var(--mute);
  font-weight: 500;
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.value-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
}

.value-item__num {
  font-family: var(--font-heading);
  font-size: .875rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: .1em;
  margin-bottom: 12px;
}

.value-item h3 { margin-bottom: 8px; }

@media (max-width: 768px) {
  .values-grid { grid-template-columns: 1fr; }
}

.offices-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.office-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px;
}

.office-card__flag {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.office-card h3 { margin-bottom: 16px; }

.office-card__info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.office-card__info-item {
  display: flex;
  gap: 10px;
  font-size: .9rem;
  color: var(--ink-2);
}

.office-card__info-item svg {
  width: 16px;
  height: 16px;
  color: var(--brand);
  flex-shrink: 0;
  margin-top: 3px;
}

@media (max-width: 768px) {
  .offices-grid { grid-template-columns: 1fr; }
}

/* ── Contact ── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: .9375rem;
  color: var(--ink);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-control:focus-visible {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
  outline: none;
}

.form-control::placeholder { color: var(--mute); }

textarea.form-control {
  min-height: 160px;
  resize: vertical;
}

.form-message {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: .9375rem;
  font-weight: 500;
  margin-bottom: 20px;
  display: none;
}

.form-message.success {
  background: rgba(16,185,129,.1);
  border: 1px solid rgba(16,185,129,.3);
  color: #065f46;
  display: block;
}

.form-message.error {
  background: rgba(230,57,70,.08);
  border: 1px solid rgba(230,57,70,.25);
  color: var(--brand-h);
  display: block;
}

.contact-info-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 32px;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.contact-info-card h3 { margin-bottom: 24px; }

.contact-info-item {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.contact-info-item svg {
  width: 20px;
  height: 20px;
  color: var(--brand);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info-item__label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 3px;
}

.contact-info-item a,
.contact-info-item p {
  font-size: .9375rem;
  color: var(--ink-2);
}

.contact-info-item a:hover { color: var(--brand); }

.contact-wa-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  color: var(--ink-2);
  border: 1px solid var(--line);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .875rem;
  margin-top: 8px;
  transition: all var(--transition);
}

.contact-wa-btn svg {
  color: #25D366;
}

.contact-wa-btn:hover { 
  border-color: #25D366;
  background: rgba(37, 211, 102, 0.05);
  color: var(--ink);
}

/* ── Pagination ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 0 12px;
  height: 40px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 600;
  transition: all var(--transition);
}

.pagination a {
  background: var(--surface);
  color: var(--ink-2);
  border: 1px solid var(--line);
}

.pagination a:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.pagination span.current {
  background: var(--brand);
  color: #fff;
  border: 1px solid var(--brand);
}

.pagination span.dots {
  background: transparent;
  border: none;
  color: var(--mute);
}

/* ── Load more ── */
.load-more-wrap {
  text-align: center;
  margin-top: 48px;
}

/* ── Footer ── */
.footer {
  background: var(--dark-bg);
  color: var(--dark-ink);
  padding-top: 64px;
  padding-bottom: 32px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(247,248,250,.1);
}

@media (max-width: 900px) {
  .footer__top { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .footer__top { grid-template-columns: 1fr; }
}

.footer__brand-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark-ink);
  letter-spacing: -.03em;
  margin-bottom: 12px;
  display: inline-block;
}

.footer__brand-logo span { color: var(--brand); }

.footer__tagline {
  font-size: .875rem;
  color: rgba(247,248,250,.55);
  margin-bottom: 20px;
}

.footer__social {
  display: flex;
  gap: 8px;
}

.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(247,248,250,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(247,248,250,.7);
  transition: background var(--transition), color var(--transition);
}

.footer__social a:hover {
  background: var(--brand);
  color: #fff;
}

.footer__col h4 {
  font-size: .875rem;
  font-weight: 700;
  color: var(--dark-ink);
  margin-bottom: 16px;
  letter-spacing: .02em;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col ul a {
  font-size: .875rem;
  color: rgba(247,248,250,.55);
  transition: color var(--transition);
}

.footer__col ul a:hover { color: var(--dark-ink); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__copyright {
  font-size: .8125rem;
  color: rgba(247,248,250,.6);
}

.footer__legal {
  display: flex;
  gap: 16px;
}

.footer__legal a {
  font-size: .8125rem;
  color: rgba(247,248,250,.6);
  transition: color var(--transition);
}

.footer__legal a:hover { color: rgba(247,248,250,.8); }

/* ── 404 ── */
.page-404 {
  min-height: calc(100dvh - var(--nav-h) - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-404__num {
  font-family: var(--font-heading);
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 16px;
}

.page-404 h1 { margin-bottom: 12px; }
.page-404 p { margin-bottom: 32px; }

/* ── Reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ── Utility ── */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

.view-all-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 32px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

.sr-only--focusable:focus-visible {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 9999;
  width: auto;
  height: auto;
  padding: 10px 20px;
  margin: 0;
  clip: auto;
  overflow: visible;
  white-space: normal;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: .875rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: var(--shadow-md);
}

/* ── Hamburger animation ── */
.nav__hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav__hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Loading spinner ── */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Services grid override ── */
/* On medium screens collapse to 2 cols instead of 1 */
@media (max-width: 768px) and (min-width: 480px) {
  .grid-3.services-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Form invalid state — uses red distinct from blue focus ── */
.form-control.invalid {
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220,38,38,.12);
}

/* ── Field-level error message ── */
.field-error {
  display: block;
  font-size: .8125rem;
  color: #DC2626;
  margin-top: 5px;
  min-height: 1.1em;
}

/* ── Field hint (persistent helper text) ── */
.field-hint {
  display: block;
  font-size: .8125rem;
  color: var(--mute);
  margin-top: 5px;
}

/* ── Trust line above submit ── */
.form-trust {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .8125rem;
  color: var(--mute);
  margin-bottom: 14px;
}

.form-trust svg {
  flex-shrink: 0;
  color: #10B981;
}

/* ── Legal checkbox ── */
.form-group--legal {
  margin-bottom: 18px;
}

.form-check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: .8125rem;
  color: var(--mute);
  line-height: 1.5;
}

.form-check-label input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--brand);
  cursor: pointer;
}

.form-check-label a {
  color: var(--brand);
  text-decoration: underline;
}

.form-check-label a:hover {
  text-decoration: none;
}

/* ── WhatsApp alt link below submit ── */
.form-wa-alt {
  text-align: center;
  font-size: .875rem;
  color: var(--mute);
  margin-top: 14px;
}

.form-wa-alt a {
  color: #25D366;
  font-weight: 600;
}

.form-wa-alt a:hover { color: #1fad53; }

/* ── Empty state ── */
.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--mute);
}

.empty-state svg {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  opacity: .4;
}

/* ── Service cards (servicios.php) ── */
.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: box-shadow .2s, transform .2s;
}

.service-card:hover {
  box-shadow: 0 8px 32px rgba(13,21,33,.08);
  transform: translateY(-2px);
}

.service-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.service-card__header h3 {
  margin: 0;
  line-height: 1.2;
}

.service-card__icon {
  width: 50px;
  height: 50px;
  background: rgba(230,57,70,.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  flex-shrink: 0;
}

.service-card__icon svg {
  width: 26px;
  height: 26px;
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--ink);
}

.service-card p {
  font-size: .9rem;
  color: var(--mute);
  line-height: 1.6;
  margin-bottom: 20px;
}

.service-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-card__list li {
  font-size: .875rem;
  color: var(--ink);
  padding-left: 16px;
  position: relative;
}

.service-card__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--brand);
  font-size: .75rem;
  top: 1px;
}

/* ── Why cards (servicios.php) ── */
.why-card {
  padding: 32px 24px;
  border-radius: 12px;
  background: var(--surface);
}

.why-card__num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand);
  opacity: .25;
  line-height: 1;
  margin-bottom: 16px;
  font-family: var(--font-head);
}

.why-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--ink);
}

.why-card p {
  font-size: .875rem;
  color: var(--mute);
  line-height: 1.65;
}

/* ── Process steps (servicios.php) ── */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 48px;
}

.process-step {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.process-step:last-child {
  border-bottom: none;
}

.process-step__num {
  font-size: 3rem;
  font-weight: 800;
  font-family: var(--font-head);
  color: var(--brand);
  opacity: .2;
  line-height: 1;
  min-width: 72px;
  padding-top: 4px;
}

.process-step__content h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--ink);
}

.process-step__content p {
  font-size: .9rem;
  color: var(--mute);
  line-height: 1.7;
  max-width: 680px;
}

@media (max-width: 600px) {
  .process-step {
    gap: 20px;
  }
  .process-step__num {
    font-size: 2rem;
    min-width: 48px;
  }
}

/* ── Testimonial highlight (servicios.php) ── */
.testimonial-highlight {
  background: var(--surface);
  border-radius: 16px;
  padding: 48px;
  text-align: center;
  margin: 0;
}

.testimonial-highlight__quote {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 28px;
  font-style: italic;
}

.testimonial-highlight__author {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.testimonial-highlight__author strong {
  font-size: .95rem;
  color: var(--ink);
}

.testimonial-highlight__author span {
  font-size: .85rem;
  color: var(--mute);
}

@media (max-width: 768px) {
  .testimonial-highlight {
    padding: 32px 24px;
  }
  .testimonial-highlight__quote {
    font-size: 1.05rem;
  }
}

/* ── Pricing cards (precios.php) ── */
.pricing-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}

.pricing-card--featured {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(230,57,70,.08);
}

.pricing-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 99px;
  white-space: nowrap;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.pricing-card__header h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--ink);
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.pricing-card__price strong {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink);
  font-family: var(--font-head);
}

.pricing-card__from {
  font-size: .8rem;
  color: var(--mute);
  margin-right: 2px;
}

.pricing-card__period {
  font-size: .85rem;
  color: var(--mute);
  margin-left: 2px;
}

.pricing-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.pricing-card__list li {
  font-size: .875rem;
  color: var(--ink);
  padding-left: 20px;
  position: relative;
  line-height: 1.4;
}

.pricing-card__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
  font-size: .8rem;
}

/* ── Sector cards (servicio.php / servicio-sector.php) ── */
.sector-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: .95rem;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}

.sector-card:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 16px rgba(230,57,70,.08);
  transform: translateY(-2px);
}

.sector-card__arrow {
  color: var(--brand);
  font-size: 1.1rem;
}

/* ── WhatsApp floating button ── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  background: #25D366;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.35);
  transition: transform .2s, box-shadow .2s;
}

.whatsapp-float:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,.45);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

@media (max-width: 600px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
}

/* ── Cookie consent banner ───────────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10100;
  background: #1a1a2e;
  color: rgba(247,248,250,.9);
  box-shadow: 0 -4px 32px rgba(0,0,0,.25);
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.cookie-banner--visible { transform: translateY(0); }

.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner__text {
  flex: 1;
  min-width: 260px;
  font-size: .9rem;
  line-height: 1.6;
  margin: 0;
  color: rgba(247,248,250,.85);
}

.cookie-banner__link {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
  margin-left: 6px;
}
.cookie-banner__link:hover { color: var(--brand-h); }

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-banner__btn {
  padding: 9px 20px;
  border-radius: 6px;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.cookie-banner__btn--ghost {
  background: transparent;
  color: rgba(247,248,250,.7);
  border: 1px solid rgba(247,248,250,.2);
}
.cookie-banner__btn--ghost:hover {
  background: rgba(247,248,250,.08);
  color: rgba(247,248,250,1);
}
.cookie-banner__btn--outline {
  background: transparent;
  color: rgba(247,248,250,.9);
  border: 1.5px solid rgba(247,248,250,.55);
}
.cookie-banner__btn--outline:hover {
  background: rgba(247,248,250,.1);
  color: #fff;
  border-color: rgba(247,248,250,.8);
}
.cookie-banner__btn--primary {
  background: var(--brand);
  color: #fff;
}
.cookie-banner__btn--primary:hover { background: var(--brand-h); }

@media (max-width: 600px) {
  .cookie-banner__inner { padding: 16px; gap: 14px; }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__btn { flex: 1; text-align: center; }

}

/* ── FAQ accordion ──────────────────────────────────────── */
.faq {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 720px;
  margin-inline: auto;
}
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}
.faq__item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--brand);
  flex-shrink: 0;
  line-height: 1;
}
.faq__item[open] summary::after { content: '−'; }
.faq__item[open] summary { color: var(--brand); }
.faq__body {
  padding: 0 24px 20px;
  color: var(--ink-2);
  line-height: 1.75;
}
@media (max-width: 600px) {
  .faq__item summary { padding: 16px 18px; font-size: 0.95rem; }
  .faq__body { padding: 0 18px 16px; }
}

/* ── Sectors grid (nosotros.php) ── */
.sectors-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 32px;
}
.sector-chip {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--ink-2, #374151);
  background: var(--bg, #fff);
  transition: background .18s, color .18s, border-color .18s;
}
.sector-chip:hover {
  background: var(--brand, #E63946);
  color: #fff;
  border-color: var(--brand, #E63946);
}

/* ── Process grid (nosotros.php) ── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 40px;
}
.process-grid .process-step {
  display: block;
  padding: 0;
  border-bottom: none;
  gap: 0;
}
.process-grid .process-step__num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand, #E63946);
  opacity: .15;
  line-height: 1;
  margin-bottom: 12px;
  min-width: unset;
  padding-top: 0;
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
}
.process-grid .process-step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.process-grid .process-step p {
  font-size: .9rem;
  color: var(--ink-2, #374151);
  line-height: 1.65;
  max-width: unset;
}
@media (max-width: 900px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .process-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ── Blog category filter ── */
.blog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}
.blog-filter__btn {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--ink-2, #374151);
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.blog-filter__btn:hover,
.blog-filter__btn.active {
  background: var(--brand, #E63946);
  color: #fff;
  border-color: var(--brand, #E63946);
}

/* ── Pricing trust bar (precios.php) ── */
.pricing-trust {
  background: var(--surface, #f9fafb);
  border-top: 1px solid var(--border, #e5e7eb);
  border-bottom: 1px solid var(--border, #e5e7eb);
  padding: 14px 0;
}
.pricing-trust__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 32px;
}
.pricing-trust__item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-2, #374151);
}
.pricing-trust__item svg {
  color: var(--brand, #E63946);
  flex-shrink: 0;
}
