*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #ffffff;
  --bg-soft: #f7f7f8;
  --card: #ffffff;
  --card-soft: #fcfcfc;
  --line: rgba(17, 17, 17, 0.08);
  --text: #111111;
  --muted: #5f6470;
  --primary: #f3ba2f;
  --primary-dark: #d49d18;
  --primary-soft: #fff6db;
  --primary-softer: #fff9eb;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.05);
  --radius: 22px;
  --radius-sm: 12px;
  --btn-radius: 12px;
  --container: 1180px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(243, 186, 47, 0.10), transparent 24%),
    radial-gradient(circle at top right, rgba(243, 186, 47, 0.08), transparent 22%),
    linear-gradient(180deg, #fffdf8 0%, #ffffff 100%);
  color: var(--text);
  line-height: 1.6;
}

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

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

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}

.section {
  padding: 1.75rem 0;
}

.section-contrast .container {
  background: linear-gradient(180deg, #fffef9 0%, #ffffff 100%);
  border: 1px solid rgba(243, 186, 47, 0.14);
  border-radius: 24px;
  padding: 1.45rem;
}

.section-divider {
  display: flex;
  justify-content: center;
  margin: 0.68rem 0;
  pointer-events: none;
}

.section-divider::before {
  content: "";
  width: min(300px, 46vw);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(243, 186, 47, 0.78), transparent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-mark {

  /* contenedor pequeño */
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  /* importante */
}

.brand-mark img {

  /* más grande que el contenedor */
  height: 100%;
  object-fit: contain;
  transform: translateY(1px);
  /* micro ajuste */
}

/* Hover del logo */
.brand:hover .brand-mark img {
  transform: scale(1.08);
  filter: drop-shadow(0 0 6px rgba(243, 186, 47, 0.6)) drop-shadow(0 0 12px rgba(243, 186, 47, 0.4));
}

.brand-text {
  color: #111111;
  letter-spacing: 0.12em;
}

.brand-tagline {
  margin-top: 0.1rem;
  color: #7a7f89;
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a {
  color: var(--muted);
  font-weight: 500;
  transition: color 0.25s ease;
}

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: 0;
  color: var(--muted);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
}

.nav-caret {
  font-size: 0.82rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: -12px;
  min-width: 260px;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.1);
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  z-index: 1001;
}

.nav-dropdown-menu a {
  padding: 0.45rem 0.55rem;
  border-radius: var(--radius-sm);
  color: #2a2f37;
}

.nav-dropdown-menu a:hover {
  background: rgba(243, 186, 47, 0.14);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  display: flex;
}

.nav-dropdown:hover .nav-caret,
.nav-dropdown.is-open .nav-caret {
  transform: rotate(180deg);
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--text);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text);
  margin: 6px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid var(--primary);
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #111111;
  padding: 0.92rem 1.3rem;
  border-radius: var(--btn-radius);
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(243, 186, 47, 0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 14px 28px rgba(243, 186, 47, 0.22);
}

.btn-secondary {
  background: transparent;
  color: #111111;
  border-color: rgba(17, 17, 17, 0.18);
  box-shadow: none;
}

.btn-secondary:hover {
  border-color: rgba(17, 17, 17, 0.3);
  background: #111111;
  color: #ffffff;
}

.btn-sm {
  padding: 0.8rem 1.05rem;
}

.btn-nav {
  color: #ffffff !important;
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
}

.btn-cta-slim {
  padding: 0.72rem 1.1rem;
  font-size: 0.95rem;
  line-height: 1.2;
}

.btn-cta-inline {
  white-space: nowrap;
  flex-shrink: 0;
}

.hero {
  background: transparent;
  padding-top: 4rem;
  padding-bottom: 2.6rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow,
.section-kicker {
  color: var(--primary-dark);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.90rem;
  margin-bottom: 0.9rem;
}

.hero h1 {
  font-size: clamp(2.05rem, 3.7vw, 3.35rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  max-width: 11ch;
}

/* En páginas de servicio (sin .hero-grid), permitir títulos más anchos */
.hero > .container:not(.hero-grid) h1 {
  width: 100%;
  max-width: none;
}

.hero > .container:not(.hero-grid) .lead {
  width: 100%;
  max-width: none;
}

.lead {
  color: var(--muted);
  font-size: 1.04rem;
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.8rem;
  flex-wrap: wrap;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.85rem;
  padding: 0.36rem 0.72rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(243, 186, 47, 0.34);
  background: #fffdf4;
  color: #8a6400;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-card {
  background: linear-gradient(180deg, #ffffff 0%, #fcfcfc 100%);
  border: 1px solid rgba(243, 186, 47, 0.22);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transform: translateY(-14px);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.stat {
  background: #ffffff;
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: 18px;
  padding: 1rem;
  display: grid;
  gap: 0.35rem;
}

.stat strong {
  font-size: 1.65rem;
  color: var(--primary-dark);
}

.stat span {
  color: var(--muted);
  font-size: 0.95rem;
}

.stat-lg {
  margin-bottom: 1rem;
}

.stat-lg strong {
  font-size: 3rem;
}

.hero-note {
  margin-top: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(243, 186, 47, 0.26);
  background: #fffdf7;
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.hero-note p {
  margin: 0;
  color: #636977;
  font-size: 0.84rem;
  line-height: 1.42;
}

.hero-note-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-top: 0.4rem;
  flex-shrink: 0;
  background: #f3ba2f;
  box-shadow: 0 0 0 5px rgba(243, 186, 47, 0.16);
}

.hero-visual-section {
  padding-top: 0.25rem;
}

.hero-showcase {
  position: relative;
  margin: 0;
  min-height: 360px;
  border-radius: 24px;
  border: 1px solid rgba(243, 186, 47, 0.24);
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 18%, rgba(243, 186, 47, 0.22), transparent 34%),
    linear-gradient(120deg, #111827 0%, #1f2937 56%, #273449 100%);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.12);
}

.hero-showcase img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s ease;
}

.hero-showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(10, 12, 16, 0.74) 0%, rgba(10, 12, 16, 0.26) 55%, rgba(10, 12, 16, 0.08) 100%),
    linear-gradient(90deg, rgba(10, 12, 16, 0.5) 0%, rgba(10, 12, 16, 0.1) 45%, rgba(10, 12, 16, 0.35) 100%);
}

.hero-showcase:hover img {
  transform: scale(1.03);
}

.hero-showcase figcaption {
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1.1rem;
  z-index: 1;
  display: grid;
  gap: 0.2rem;
}

.hero-showcase-title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  line-height: 1.2;
  font-weight: 800;
}

.hero-showcase-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  max-width: 70ch;
  font-size: 0.95rem;
}

.hero-showcase.is-fallback {
  display: grid;
  align-items: end;
}

.trust-bar {
  padding-top: 1.4rem;
  padding-bottom: 1.8rem;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.trust-item {
  padding: 1rem 1.05rem;
  border-radius: 16px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: #ffffff;
  color: var(--muted);
  text-align: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

.partner-strip {
  margin-top: 1rem;
}

.partner-label {
  margin: 0 0 0.48rem;
  text-align: center;
  color: #8a8780;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.partner-marquee {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(243, 186, 47, 0.18);
  background: #fffefb;
  padding: 0.62rem 0;
}

.partner-marquee-content {
  display: flex;
  align-items: center;
  min-width: max-content;
  animation: partnerMarquee 24s linear infinite;
}

.partner-marquee-track {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}

.partner-marquee-track::after {
  content: "";
  width: 0.7rem;
  flex: 0 0 0.7rem;
}

.partner-marquee-track span {
  flex-shrink: 0;
  font-size: 0.82rem;
  color: #646b79;
  padding: 0.33rem 0.64rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: #ffffff;
}

.partner-marquee:hover .partner-marquee-content {
  animation-play-state: paused;
}

.two-col,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.about-grid {
  align-items: stretch;
}

.about-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.justified-text {
  text-align: justify;
}

.mission-box {
  background: linear-gradient(180deg, #fffdf8 0%, #ffffff 100%);
  border: 1px solid rgba(243, 186, 47, 0.22);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-soft);
}

.mission-box h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  line-height: 1.2;
}

.mission-box p {
  margin: 0;
  color: var(--muted);
  text-align: justify;
}

.contact-form,
.reason,
.policy-box,
.service-card,
.case-card,
.problem-box,
.step {
  background: #ffffff;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.04);
}

.problem-box h3,
.service-card h3,
.case-card h3,
.step h3 {
  font-size: 1.2rem;
  line-height: 1.25;
}

.problem-box {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: center;
}

.problem-box h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  text-align: center;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.8rem;
}

.check-list li {
  position: relative;
  padding-left: 1.3rem;
  color: var(--muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  left: 0;
  top: 0.7rem;
  background: var(--primary);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.section-head-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-head h2,
.two-col h2,
.contact-section h2,
.cta-band h2,
.policy-box h2 {
  margin: 0;
  font-size: clamp(2.02rem, 3.45vw, 2.9rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.maxw {
  max-width: 44ch;
}

.center-text {
  text-align: center;
}

.services-carousel-wrap {
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  gap: 1rem;
  align-items: center;
}

.services-carousel-viewport {
  overflow: hidden;
  background: transparent;
  padding: 0 0.4rem;
}

.services-carousel-track {
  display: flex;
  align-items: stretch;
  transition: transform 0.35s ease;
  padding: 0.3rem 0 0.45rem;
}

.service-card {
  min-width: calc(33.333% - 0.75rem);
  margin-right: 1rem;
  padding: 1.45rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 26px;
  border: 1px solid rgba(243, 186, 47, 0.2);
  background: linear-gradient(180deg, #fffef9 0%, #ffffff 62%);
  box-shadow: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: none;
  border-color: rgba(243, 186, 47, 0.38);
}

.service-card:last-child {
  margin-right: 0;
}

.service-card h3,
.case-card h3 {
  margin: 0 0 0.65rem;
}

.muted,
.lead,
.step p,
.service-card p,
.case-card p {
  font-size: 0.98rem;
}

.service-card p,
.case-card p {
  color: var(--muted);
}

.service-card small,
.case-card strong {
  color: var(--primary-dark);
}

.service-card small {
  margin-top: auto;
  padding-top: 1rem;
  display: block;
}

.service-quick {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.7rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.28s ease, opacity 0.22s ease;
}

.service-quick span {
  width: fit-content;
  font-size: 0.78rem;
  color: #8a6400;
  background: rgba(243, 186, 47, 0.16);
  border: 1px solid rgba(243, 186, 47, 0.35);
  border-radius: 12px;
  padding: 0.24rem 0.58rem;
}

.service-card:hover .service-quick,
.service-card.is-expanded .service-quick {
  max-height: 100px;
  opacity: 1;
}

.icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(243, 186, 47, 0.16);
  margin-bottom: 1rem;
  font-size: 1.45rem;
}

.carousel-btn {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: #ffffff;
  color: #111111;
  font-size: 2rem;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.carousel-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.methodology {
  background: transparent;
}

.workflow-hero {
  display: block;
  margin-bottom: 1rem;
}

.workflow-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.workflow-pill {
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(243, 186, 47, 0.35);
  background: #fffdf4;
  color: #8a6400;
  font-size: 0.82rem;
  font-weight: 700;
}

.workflow-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
}

.workflow-phase-card {
  position: relative;
  overflow: hidden;
  padding: 1.1rem 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(243, 186, 47, 0.24);
  background: #fffef9;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(.34, 1.3, .64, 1), border-color 0.22s ease, opacity 0.22s ease;
}

.workflow-phase-icon {
  position: absolute;
  top: 0.82rem;
  right: 0.78rem;
  font-size: 1.08rem;
  opacity: 0.24;
}

.workflow-phase-card:hover {
  transform: translateY(-3px);
  border-color: rgba(243, 186, 47, 0.5);
}

.workflow-cards.has-active .workflow-phase-card:not(.is-active) {
  opacity: 0.62;
}

.workflow-phase-card.is-active {
  transform: translateY(-7px);
  border-color: rgba(243, 186, 47, 0.9);
  background: linear-gradient(165deg, #fffdf5 0%, #ffffff 100%);
}

.workflow-phase-card.is-active .workflow-phase-icon {
  opacity: 0.5;
}

.workflow-phase-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 30px;
  border-radius: 999px;
  padding: 0 0.6rem;
  background: rgba(243, 186, 47, 0.15);
  color: #8a6400;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 0.78rem;
}

.workflow-phase-card.is-active .workflow-phase-num {
  background: #f3ba2f;
  color: #111111;
}

.workflow-phase-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  line-height: 1.2;
}

.workflow-phase-tagline {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.workflow-spotlight {
  margin-top: 0;
  border-radius: 20px;
  border: 1px solid rgba(243, 186, 47, 0.28);
  background: #ffffff;
  overflow: hidden;
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.48s ease, opacity 0.35s ease, margin-top 0.35s ease;
}

.workflow-spotlight.is-visible {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 1.25rem;
}

.workflow-spotlight-inner {
  overflow: hidden;
}

.workflow-spotlight-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.workflow-spotlight-left,
.workflow-spotlight-right {
  padding: 1.35rem 1.45rem;
}

.workflow-spotlight-left {
  border-right: 1px solid rgba(243, 186, 47, 0.22);
}

.workflow-spotlight-phase {
  color: #a98015;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.workflow-spotlight-title {
  margin: 0 0 0.55rem;
  font-size: 1.45rem;
  line-height: 1.1;
}

.workflow-spotlight-desc {
  margin: 0;
  color: var(--muted);
}

.workflow-spotlight-right {
  background: linear-gradient(180deg, #fffef8 0%, #ffffff 100%);
}

.workflow-spotlight-heading {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #8a8780;
}

.workflow-item-list {
  list-style: disc;
  padding-left: 1.1rem;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.workflow-item {
  display: list-item;
  color: #4e545f;
  font-size: 0.91rem;
  line-height: 1.4;
}

.workflow-item-icon {
  width: 1.4rem;
  min-width: 1.4rem;
  height: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(243, 186, 47, 0.16);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.workflow-phase-label {
  margin: 1rem 0 0;
  color: #7a7f89;
  font-size: 0.9rem;
  font-weight: 500;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sectors-intro {
  margin: 0 0 1rem;
  max-width: 72ch;
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.sector-card {
  position: relative;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  background: #ffffff;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.sector-card:hover,
.sector-card.is-active {
  transform: translateY(-3px);
  border-color: rgba(243, 186, 47, 0.45);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  background: linear-gradient(180deg, #fffef8 0%, #ffffff 100%);
}

.sector-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(243, 186, 47, 0.16);
  margin-bottom: 0.55rem;
}

.sector-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.06rem;
  line-height: 1.2;
}

.sector-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.pill {
  min-width: 220px;
  text-align: center;
  padding: 0.95rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: #ffffff;
  color: var(--muted);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.case-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.case-tab {
  border: 1px solid rgba(17, 17, 17, 0.14);
  background: #ffffff;
  color: #434854;
  border-radius: 999px;
  padding: 0.42rem 0.84rem;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.case-tab:hover {
  border-color: rgba(243, 186, 47, 0.58);
  color: #111111;
}

.case-tab.is-active {
  background: #f3ba2f;
  border-color: #f3ba2f;
  color: #111111;
}

.case-card.is-hidden {
  display: none;
}

.case-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.case-card p {
  flex-grow: 1;
}

.case-card strong {
  display: block;
  margin-top: auto;
  padding-top: 1rem;
  min-height: 72px;
  color: var(--primary-dark);
  font-weight: 800;
  line-height: 1.45;
}

.tag {
  display: inline-block;
  width: fit-content;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: rgba(243, 186, 47, 0.15);
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 0.9rem;
  font-size: 0.9rem;
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.reason {
  padding: 1.5rem;
  text-align: center;
  font-weight: 700;
}

.cta-band-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  padding: 2rem;
  border-radius: 28px;
  border: 1px solid rgba(243, 186, 47, 0.2);
  background: linear-gradient(180deg, #fffdf8 0%, #ffffff 100%);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.05);
}

.cta-band-wrap > div {
  width: 100%;
}

.cta-band-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cta-band-bottom .muted {
  margin: 0;
}

.cta-band-btn-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.9rem;
  margin-right: -0.65rem;
}

.contact-form {
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-progress-wrap {
  grid-column: 1 / -1;
}

.form-progress {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.08);
  overflow: hidden;
}

.form-progress-bar {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f3ba2f 0%, #d49d18 100%);
  transition: width 0.25s ease;
}

.form-progress-text {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  color: #747a86;
}

.form-row {
  display: grid;
  gap: 0.45rem;
}

.form-row.full {
  grid-column: 1 / -1;
}

label {
  color: var(--muted);
  font-size: 0.94rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(17, 17, 17, 0.1);
  background: #ffffff;
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1rem;
  font: inherit;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(243, 186, 47, 0.2);
  border-color: rgba(243, 186, 47, 0.45);
}

.form-policy {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--primary-softer);
  border: 1px solid rgba(243, 186, 47, 0.25);
}

.form-policy input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  accent-color: var(--primary-dark);
  flex-shrink: 0;
}

.form-policy label {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.5;
}

.form-policy a {
  color: var(--text);
  font-weight: 600;
}

.form-btn {
  width: fit-content;
}

.contact-data {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.4rem;
}

.contact-data a {
  color: var(--text);
}

.site-footer {
  padding: 2rem 0 1.1rem;
  border-top: 1px solid rgba(17, 17, 17, 0.06);
  background: linear-gradient(180deg, #fffaf0 0%, #fff3d2 100%);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 2rem;
  align-items: start;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  padding-bottom: 1.3rem;
}

.footer-brand {
  margin: 0;
  color: #2f2a1f;
  font-size: 1.02rem;
  letter-spacing: 0.14em;
  font-weight: 800;
}

.footer-copy {
  margin: 0.55rem 0 0.8rem;
  color: #6a6455;
  max-width: 48ch;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.84rem;
  color: #594f39;
  font-weight: 700;
}

.footer-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #30c476;
  box-shadow: 0 0 0 4px rgba(48, 196, 118, 0.2);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.footer-col {
  display: grid;
  gap: 0.48rem;
}

.footer-title {
  margin: 0 0 0.22rem;
  color: #2f2a1f;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}

.footer-col a {
  color: #6a6455;
  font-size: 0.93rem;
  width: fit-content;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-col a:hover {
  color: #1e1b15;
  transform: translateX(2px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #5c5543;
  font-size: 0.9rem;
  padding-top: 1rem;
}

@media (max-width: 1100px) {

  .hero-grid,
  .two-col,
  .contact-grid,
  .reasons-grid,
  .workflow-cards,
  .trust-grid,
  .cases-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero h1 {
    max-width: none;
  }

  .service-card {
    min-width: calc(50% - 0.5rem);
  }

  .case-card strong {
    min-height: 96px;
  }

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

  .footer-main {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: 82px;
    right: 1rem;
    width: min(340px, calc(100% - 2rem));
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.08);
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-dropdown {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-dropdown::after {
    display: none;
  }

  .nav-dropdown-toggle {
    justify-content: space-between;
    width: 100%;
    padding: 0.45rem 0.35rem;
    border-radius: 12px;
  }

  .nav-dropdown-menu {
    position: static;
    display: none;
    margin-top: 0.35rem;
    padding: 0.35rem;
    min-width: 100%;
    box-shadow: none;
    border-radius: 12px;
  }

  .site-nav a {
    padding: 0.45rem 0.35rem;
    border-radius: 12px;
  }

  .site-nav a:hover,
  .site-nav a:focus {
    background: rgba(243, 186, 47, 0.12);
  }

  .site-nav.is-open {
    display: flex;
  }

  .section {
    padding: 2.15rem 0;
  }

  .section-contrast .container {
    padding: 1.1rem;
    border-radius: 18px;
  }

  .hero-grid,
  .two-col,
  .contact-grid,
  .reasons-grid,
  .workflow-cards,
  .trust-grid,
  .cases-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .workflow-spotlight-body {
    grid-template-columns: 1fr;
  }

  .workflow-spotlight-left {
    border-right: 0;
    border-bottom: 1px solid rgba(243, 186, 47, 0.22);
  }

  .hero-card {
    transform: none;
  }

  .section-head,
  .cta-band-wrap,
  .footer-bottom {
    flex-direction: column;
    align-items: start;
  }

  .cta-band-bottom {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-band-btn-row {
    justify-content: flex-start;
    margin-right: 0;
  }

  .section-head-centered {
    align-items: flex-start;
    text-align: left;
  }

  .services-carousel-wrap {
    grid-template-columns: 44px 1fr 44px;
    gap: 0.6rem;
  }

  .hero-showcase,
  .hero-showcase img {
    min-height: 280px;
  }

  .hero-showcase-title {
    font-size: clamp(1.1rem, 4vw, 1.35rem);
  }

  .hero-showcase-copy {
    font-size: 0.9rem;
    max-width: 58ch;
  }

  .services-carousel-viewport {
    padding: 0 0.2rem;
  }

  .services-carousel-track {
    padding: 0.2rem 0 0.35rem;
  }

  .service-card {
    min-width: 100%;
    margin-right: 1rem;
  }

  .service-quick {
    max-height: 100px;
    opacity: 1;
  }

  .carousel-btn {
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
  }

  .case-card strong {
    min-height: auto;
  }

  .form-btn {
    width: 100%;
  }

  .problem-box h3 {
    text-align: left;
  }

  .section-divider::before {
    width: min(150px, 40vw);
  }

  .footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .footer-bottom {
    align-items: center;
    text-align: center;
  }

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

  .sectors-intro {
    font-size: 0.94rem;
  }

  .sector-card {
    padding: 0.95rem;
  }
}


.form-alert {
  margin-bottom: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  line-height: 1.5;
  border: 1px solid transparent;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-alert.success {
  background: #ecfdf3;
  border-color: #bbf7d0;
  color: #166534;
}

.form-alert.error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-content {
  background: #fff;
  max-width: 600px;
  width: 90%;
  padding: 2rem;
  border-radius: 12px;
  position: relative;
}

.modal-close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 22px;
  cursor: pointer;
}

.contact-data {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}

.contact-data a {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-weight: 500;
}

.contact-data a svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
  color: var(--primary-dark);
  flex-shrink: 0;
}

.service-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  width: fit-content;
  margin-top: 1rem;
  margin-left: auto;
  padding: 0.65rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(243, 186, 47, 0.35);
  background: var(--primary-softer);
  color: var(--primary-dark);
  font-weight: 700;
  transition: all 0.2s ease;
}

.service-link:hover {
  background: var(--primary);
  color: #111111;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .section {
    padding: 1.9rem 0;
  }

  .section-contrast .container {
    padding: 0.95rem;
    border-radius: 16px;
  }

  .section-divider {
    margin: 0.56rem 0;
  }

  .section-divider::before {
    width: min(138px, 38vw);
  }

  .container {
    width: min(calc(100% - 1.35rem), var(--container));
  }

  .site-header {
    backdrop-filter: blur(10px);
  }

  .nav-wrap {
    min-height: 74px;
  }

  .brand-mark {
    height: 66px;
  }

  .brand-text {
    font-size: 0.98rem;
    letter-spacing: 0.1em;
  }

  .brand-tagline {
    font-size: 0.5rem;
  }

  .hero {
    padding-top: 2.9rem;
    padding-bottom: 2rem;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 8.8vw, 2.45rem);
    line-height: 1.08;
    max-width: none;
  }

  .section-head h2,
  .two-col h2,
  .contact-section h2,
  .cta-band h2,
  .policy-box h2 {
    font-size: clamp(1.65rem, 7.3vw, 2.05rem);
    line-height: 1.1;
  }

  .section-kicker,
  .eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.14em;
  }

  .cta-band-wrap {
    padding: 1.4rem;
  }

  .cta-band-btn-row {
    margin-right: 0;
  }

  .modal-content {
    width: 94%;
    padding: 1.3rem;
  }

  .partner-label {
    font-size: 0.72rem;
  }

  .partner-marquee-content {
    animation-duration: 30s;
  }

  .partner-marquee-track span {
    font-size: 0.76rem;
    padding: 0.3rem 0.54rem;
  }

}

@media (max-width: 360px) {
  .container {
    width: min(calc(100% - 1rem), var(--container));
  }

  .section {
    padding: 1.65rem 0;
  }

  .section-contrast .container {
    padding: 0.82rem;
    border-radius: 14px;
  }

  .section-kicker,
  .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.11em;
    margin-bottom: 0.62rem;
  }

  .hero h1 {
    font-size: clamp(1.62rem, 9.2vw, 2rem);
    line-height: 1.1;
  }

  .lead {
    font-size: 0.93rem;
  }

  .hero-card {
    padding: 1rem;
  }

  .stat {
    padding: 0.74rem;
  }

  .stat strong {
    font-size: 1.38rem;
  }

  .stat-lg strong {
    font-size: 2.08rem;
  }

  .hero-showcase,
  .hero-showcase img {
    min-height: 240px;
  }

  .hero-showcase figcaption {
    left: 0.72rem;
    right: 0.72rem;
    bottom: 0.68rem;
  }

  .hero-showcase-title {
    font-size: 1.02rem;
  }

  .hero-showcase-copy {
    font-size: 0.82rem;
  }

  .services-carousel-wrap {
    grid-template-columns: 40px 1fr 40px;
    gap: 0.45rem;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }

  .service-card {
    padding: 1rem;
  }

  .service-card h3 {
    font-size: 1.02rem;
  }

  .partner-marquee-content {
    animation-duration: 38s;
  }

  .partner-marquee-track span {
    font-size: 0.72rem;
    padding: 0.26rem 0.46rem;
  }

  .sector-card {
    padding: 0.8rem;
  }

  .sector-card h3 {
    font-size: 0.98rem;
  }

  .sector-card p {
    font-size: 0.86rem;
  }

  .contact-form {
    gap: 0.82rem;
    padding: 1rem;
  }

  .form-progress-text {
    font-size: 0.76rem;
  }

  .workflow-cards {
    gap: 0.62rem;
  }

  .workflow-phase-card {
    padding: 0.92rem 0.82rem 0.86rem;
  }

  .workflow-phase-title {
    font-size: 0.94rem;
  }

  .workflow-phase-tagline {
    font-size: 0.86rem;
  }

  .workflow-spotlight-left,
  .workflow-spotlight-right {
    padding: 1.05rem 1rem;
  }

  .workflow-spotlight-title {
    font-size: 1.24rem;
  }

  .workflow-item {
    font-size: 0.86rem;
  }
}

@media (max-width: 480px) {
  .site-nav {
    top: 74px;
  }

  .brand {
    gap: 0.24rem;
  }

  .brand-mark {
    height: 60px;
  }

  .brand-text {
    font-size: 0.9rem;
    letter-spacing: 0.08em;
  }

  .brand-tagline {
    font-size: 0.44rem;
    letter-spacing: 0.06em;
  }

  .hero-actions .btn,
  .hero-actions .btn-secondary {
    width: 100%;
  }

  .hero-actions {
    gap: 0.72rem;
    margin-top: 1.35rem;
  }

  .hero-chip {
    font-size: 0.72rem;
    padding: 0.32rem 0.6rem;
  }

  .stat-grid {
    grid-template-columns: 1fr;
    gap: 0.72rem;
  }

  .stat {
    padding: 0.86rem;
  }

  .stat strong {
    font-size: 1.52rem;
  }

  .stat-lg strong {
    font-size: 2.35rem;
  }

  .hero-note {
    padding: 0.64rem 0.72rem;
    gap: 0.42rem;
  }

  .hero-note p {
    font-size: 0.8rem;
  }

  .service-card {
    padding: 1.2rem;
  }

  .service-card h3 {
    font-size: 1.12rem;
  }

  .service-card p,
  .service-card small {
    overflow-wrap: anywhere;
  }

  .hero-showcase {
    border-radius: 16px;
  }

  .hero-showcase figcaption {
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.85rem;
  }

  .hero-showcase-copy {
    font-size: 0.88rem;
  }

  .partner-marquee-content {
    animation-duration: 34s;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-col a {
    width: 100%;
  }
}

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

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