/* ============================================================
   Don Felipe S.A.C. — Design System
   Paleta: #1A2B45 azul oscuro | #FFFFFF blanco | #F4F6F8 gris claro | #4A5568 gris texto
   Tipografía: Manrope
============================================================ */

:root {
  --df-blue: #1A2B45;
  --df-blue-700: #243758;
  --df-blue-900: #11192a;
  --df-white: #FFFFFF;
  --df-gray-50: #F4F6F8;
  --df-gray-100: #E5E9EE;
  --df-gray-200: #CBD2DA;
  --df-gray-500: #4A5568;
  --df-gray-700: #2D3748;

  --container: 1280px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(26,43,69,0.06);
  --shadow: 0 4px 18px rgba(26,43,69,0.08);
  --shadow-lg: 0 16px 40px rgba(26,43,69,0.14);
  --transition: 200ms ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--df-gray-500);
  background: var(--df-white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--df-blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--df-blue-700); }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Manrope', sans-serif;
  color: var(--df-blue);
  margin: 0 0 .6em;
  line-height: 1.18;
  letter-spacing: -0.01em;
}
h1 { font-weight: 800; font-size: clamp(2rem, 4.6vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-weight: 700; font-size: 1.25rem; }
h4 { font-weight: 600; font-size: 1.05rem; }
p  { margin: 0 0 1em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ============================================================
   HEADER
============================================================ */
.df-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--df-white);
  box-shadow: 0 1px 0 rgba(26,43,69,0.06), 0 4px 14px rgba(26,43,69,0.05);
}
.df-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 84px;
}
.df-logo { display: flex; align-items: center; gap: 12px; }
.df-logo img { height: 56px; width: auto; }

.df-nav {
  display: flex;
  gap: 4px;
  align-items: center;
}
.df-nav a, .df-nav .df-nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--df-gray-700);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.df-nav a:hover, .df-nav .df-nav-trigger:hover,
.df-nav a[aria-current="page"] {
  color: var(--df-blue);
  background: var(--df-gray-50);
}
.df-nav a[aria-current="page"] {
  position: relative;
}
.df-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 4px;
  height: 2px;
  background: var(--df-blue);
}

.df-nav-item { position: relative; }
.df-nav-item__menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 280px;
  background: var(--df-white);
  border: 1px solid var(--df-gray-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: none;
  flex-direction: column;
}
.df-nav-item:hover .df-nav-item__menu,
.df-nav-item:focus-within .df-nav-item__menu { display: flex; }
.df-nav-item__menu a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--df-gray-700);
}
.df-nav-item__menu a:hover { background: var(--df-gray-50); color: var(--df-blue); }
.df-nav-item__menu a.df-menu-featured {
  background: var(--df-blue);
  color: var(--df-white);
  font-weight: 600;
  margin-bottom: 4px;
}
.df-nav-item__menu a.df-menu-featured:hover { background: var(--df-blue-700); }

.df-header__cta { display: flex; gap: 10px; align-items: center; }

.df-burger {
  display: none;
  background: none;
  border: 0;
  width: 44px; height: 44px;
  cursor: pointer;
  padding: 10px;
}
.df-burger span {
  display: block;
  height: 2px;
  background: var(--df-blue);
  margin: 5px 0;
  transition: transform var(--transition), opacity var(--transition);
}

/* Mobile drawer */
.df-mobile-menu {
  display: none;
  position: fixed;
  top: 84px; left: 0; right: 0; bottom: 0;
  background: var(--df-white);
  z-index: 99;
  overflow-y: auto;
  padding: 24px;
  flex-direction: column;
  gap: 8px;
}
.df-mobile-menu.is-open { display: flex; }
.df-mobile-menu a {
  padding: 14px 12px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--df-gray-700);
  border-bottom: 1px solid var(--df-gray-100);
}
.df-mobile-menu a:last-child { border-bottom: 0; }
.df-mobile-menu details summary {
  padding: 14px 12px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  border-bottom: 1px solid var(--df-gray-100);
  display: flex; justify-content: space-between; align-items: center;
}
.df-mobile-menu details[open] summary { color: var(--df-blue); }
.df-mobile-menu details a { padding-left: 24px; font-weight: 500; font-size: 0.92rem; }

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-align: center;
}
.btn--primary { background: var(--df-blue); color: var(--df-white); }
.btn--primary:hover { background: var(--df-blue-700); color: var(--df-white); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--outline { background: transparent; color: var(--df-blue); border-color: var(--df-blue); }
.btn--outline:hover { background: var(--df-blue); color: var(--df-white); }
.btn--white { background: transparent; color: var(--df-white); border-color: var(--df-white); }
.btn--white:hover { background: var(--df-white); color: var(--df-blue); }
.btn--solid-white { background: var(--df-white); color: var(--df-blue); }
.btn--solid-white:hover { background: var(--df-gray-50); }
.btn--hero { background: var(--df-blue); color: var(--df-white); border-color: var(--df-white); }
.btn--hero:hover { background: var(--df-white); color: var(--df-blue); }
.btn--block { width: 100%; }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--df-blue);
  font-size: 0.9rem;
}
.btn-link:hover { gap: 10px; }

/* ============================================================
   SECTIONS
============================================================ */
section { padding: 88px 0; }
.section--blue { background: var(--df-blue); color: var(--df-white); }
.section--blue h1, .section--blue h2, .section--blue h3 { color: var(--df-white); }
.section--gray { background: var(--df-gray-50); }
.section--white { background: var(--df-white); }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--df-blue);
  background: var(--df-gray-50);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.section--blue .section-head .eyebrow {
  background: rgba(255,255,255,0.08);
  color: var(--df-white);
  border: 1px solid rgba(255,255,255,0.18);
}
.section-head p { color: var(--df-gray-500); font-size: 1.05rem; }
.section--blue .section-head p { color: rgba(255,255,255,0.78); }

/* ============================================================
   HERO (homepage)
============================================================ */
.hero {
  position: relative;
  background: var(--df-blue);
  color: var(--df-white);
  overflow: hidden;
  padding: 0;
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(0.9);
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(26,43,69,0.95) 0%, rgba(26,43,69,0.82) 50%, rgba(26,43,69,0.55) 100%);
}
.hero__inner {
  position: relative;
  padding: 120px 24px 110px;
  max-width: var(--container);
  margin: 0 auto;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--df-white); }
.hero h1 { color: var(--df-white); max-width: 880px; }
.hero__subtitle {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 600;
  color: var(--df-white);
  max-width: 720px;
  margin-bottom: 18px;
}
.hero__copy {
  font-size: 1.02rem;
  color: rgba(255,255,255,0.82);
  max-width: 640px;
  margin-bottom: 36px;
}
.hero__buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }
.hero__trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid rgba(255,255,255,0.16);
  padding-top: 32px;
  max-width: 720px;
}
.hero__trust-item .num {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--df-white);
  line-height: 1;
  margin-bottom: 6px;
}
.hero__trust-item .lbl {
  font-size: 0.86rem;
  color: rgba(255,255,255,0.72);
  font-weight: 500;
}

/* ============================================================
   PAGE HERO (interior pages)
============================================================ */
.page-hero {
  background: var(--df-blue);
  color: var(--df-white);
  padding: 80px 0 70px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(800px 300px at 90% -20%, rgba(255,255,255,0.06), transparent);
}
.page-hero .container { position: relative; }
.page-hero .breadcrumbs {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 14px;
}
.page-hero .breadcrumbs a { color: rgba(255,255,255,0.8); }
.page-hero .breadcrumbs a:hover { color: var(--df-white); }
.page-hero h1 { color: var(--df-white); max-width: 900px; }
.page-hero p { color: rgba(255,255,255,0.78); font-size: 1.1rem; max-width: 720px; }

/* ============================================================
   SERVICES — homepage cards (4)
============================================================ */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.svc-card {
  background: var(--df-white);
  border: 1px solid var(--df-gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--df-blue);
}
.svc-card__img {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.svc-card__img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,43,69,0) 40%, rgba(26,43,69,0.55) 100%);
}
.svc-card__icon {
  position: absolute;
  bottom: -22px;
  left: 22px;
  width: 48px; height: 48px;
  background: var(--df-blue);
  color: var(--df-white);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  box-shadow: var(--shadow);
}
.svc-card__icon svg { width: 24px; height: 24px; }
.svc-card__body {
  padding: 36px 22px 24px;
  display: flex; flex-direction: column;
  flex: 1;
}
.svc-card__body h3 { margin-bottom: 10px; font-size: 1.1rem; }
.svc-card__body p { font-size: 0.9rem; color: var(--df-gray-500); flex: 1; margin-bottom: 16px; }
.svc-cta-wrap { text-align: center; margin-top: 48px; }

/* ============================================================
   WHY US — cards
============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.why-grid--4 { grid-template-columns: repeat(4, 1fr); max-width: 1120px; margin: 0 auto; }

.why-card {
  position: relative;
  background: var(--df-white);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  border: 1px solid var(--df-gray-100);
  transition: transform 350ms cubic-bezier(.2,.8,.2,1), box-shadow 350ms ease, border-color 250ms ease;
  overflow: hidden;
  isolation: isolate;
}
.why-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,43,69,0.04) 0%, rgba(26,43,69,0) 60%);
  opacity: 0;
  transition: opacity 350ms ease;
  z-index: -1;
}
.why-card::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 3px;
  background: var(--df-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 400ms cubic-bezier(.2,.8,.2,1);
}
.why-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 44px rgba(26,43,69,0.14);
  border-color: var(--df-blue);
}
.why-card:hover::before { opacity: 1; }
.why-card:hover::after { transform: scaleX(1); }
.why-card:hover .why-card__icon {
  transform: rotate(-6deg) scale(1.08);
  box-shadow: 0 12px 26px rgba(26,43,69,0.28);
}
.why-card:hover .why-card__icon svg { animation: dfIconWiggle 600ms ease; }
.why-card__icon {
  width: 56px; height: 56px;
  background: var(--df-blue);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--df-white);
  margin-bottom: 20px;
  transition: transform 350ms cubic-bezier(.2,.8,.2,1), box-shadow 350ms ease;
}
.why-card__icon svg { width: 26px; height: 26px; }
@keyframes dfIconWiggle {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.18); }
  70% { transform: scale(0.94); }
}
.why-card h4 {
  color: var(--df-blue);
  font-size: 1rem;
  margin-bottom: 8px;
  line-height: 1.3;
}
.why-card p { font-size: 0.88rem; margin: 0; color: var(--df-gray-500); }

/* ============================================================
   PROCESS — timeline (animated)
============================================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
  margin-top: 40px;
}
.process-line {
  position: absolute;
  top: 38px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: rgba(255,255,255,0.14);
  border-radius: 2px;
  overflow: hidden;
  z-index: 0;
}
.process-line__fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(255,255,255,0.4), #fff 40%, rgba(255,255,255,0.4));
  transition: width 1800ms cubic-bezier(.2,.8,.2,1);
}
.process-grid.is-active .process-line__fill { width: 100%; }
.process-grid.is-active .process-line__fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
  animation: dfLineShine 2.4s linear infinite;
}
@keyframes dfLineShine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.process-step { text-align: center; padding: 0 14px; position: relative; z-index: 1; }
.process-step__num {
  position: relative;
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--df-blue-900);
  color: var(--df-white);
  font-weight: 800;
  font-size: 1.55rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  border: 2px solid rgba(255,255,255,0.4);
  z-index: 1;
  transition: transform 350ms cubic-bezier(.2,.8,.2,1), background 250ms ease, border-color 250ms ease;
}
.process-step__num span:not(.process-step__halo) { position: relative; z-index: 2; }
.process-step__halo {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.45);
  opacity: 0;
  pointer-events: none;
}
.process-grid.is-active .process-step__halo {
  animation: dfStepHalo 2.6s ease-out infinite;
}
.process-step:nth-child(2) .process-step__halo { animation-delay: .3s; }
.process-step:nth-child(3) .process-step__halo { animation-delay: .6s; }
.process-step:nth-child(4) .process-step__halo { animation-delay: .9s; }
.process-step:nth-child(5) .process-step__halo { animation-delay: 1.2s; }
.process-step:nth-child(6) .process-step__halo { animation-delay: 1.5s; }
@keyframes dfStepHalo {
  0%   { transform: scale(0.85); opacity: 0.55; }
  70%  { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}
.process-step:hover .process-step__num {
  transform: translateY(-4px) scale(1.08);
  background: var(--df-white);
  color: var(--df-blue);
  border-color: var(--df-white);
}
.process-step h4 { color: var(--df-white); font-size: 1rem; margin-bottom: 10px; transition: color 200ms ease; }
.process-step p { color: rgba(255,255,255,0.72); font-size: 0.86rem; margin: 0; }

/* ============================================================
   REVEAL ON SCROLL
============================================================ */
.df-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms cubic-bezier(.2,.8,.2,1), transform 700ms cubic-bezier(.2,.8,.2,1);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
.df-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .df-reveal { opacity: 1; transform: none; transition: none; }
  .process-line__fill { transition: none; }
  .process-step__halo { animation: none !important; }
}

/* ============================================================
   CLIENTS
============================================================ */
.clients-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.client-cell {
  background: var(--df-white);
  border: 1px solid var(--df-gray-100);
  border-radius: var(--radius);
  padding: 32px 18px;
  text-align: center;
  transition: all var(--transition);
}
.client-cell:hover {
  border-color: var(--df-blue);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.client-cell .name {
  font-weight: 700;
  color: var(--df-blue);
  font-size: 1rem;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.client-cell .sector {
  font-size: 0.75rem;
  color: var(--df-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 6px;
}

/* ============================================================
   CTA FINAL
============================================================ */
.cta-final {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.cta-final h2 { margin-bottom: 14px; }
.cta-final p { font-size: 1.05rem; margin-bottom: 28px; }
.cta-final__buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
============================================================ */
.df-footer {
  background: var(--df-blue);
  color: rgba(255,255,255,0.78);
  padding: 70px 0 28px;
  position: relative;
}
.df-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: rgba(255,255,255,0.1);
}
.df-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.df-footer__logo-box {
  background: var(--df-white);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: inline-block;
  margin-bottom: 18px;
}
.df-footer__logo-box img { height: 48px; width: auto; }
.df-footer h4 {
  color: var(--df-white);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}
.df-footer p { font-size: 0.9rem; color: rgba(255,255,255,0.7); margin-bottom: 18px; }
.df-footer ul { list-style: none; padding: 0; margin: 0; }
.df-footer ul li { margin-bottom: 10px; }
.df-footer ul a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}
.df-footer ul a:hover { color: var(--df-white); }
.df-footer__contact-item {
  display: flex; gap: 10px;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}
.df-footer__contact-item svg { width: 18px; height: 18px; color: var(--df-white); flex-shrink: 0; margin-top: 2px; }
.df-footer__social { display: flex; gap: 10px; margin-top: 14px; }
.df-footer__social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.df-footer__social a:hover { background: var(--df-white); }
.df-footer__social a:hover svg { color: var(--df-blue); }
.df-footer__social svg { width: 16px; height: 16px; color: var(--df-white); transition: color var(--transition); }
.df-footer__bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}
.df-footer__bottom-links { display: flex; gap: 18px; }
.df-footer__bottom-links a { color: rgba(255,255,255,0.55); }
.df-footer__bottom-links a:hover { color: var(--df-white); }

/* ============================================================
   FLOATING WHATSAPP
============================================================ */
.df-wa {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--df-blue);
  color: var(--df-white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(26,43,69,0.35);
  z-index: 90;
  transition: all var(--transition);
}
.df-wa:hover {
  transform: scale(1.08);
  background: var(--df-blue-700);
  color: var(--df-white);
}
.df-wa::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--df-blue);
  opacity: 0.3;
  animation: dfWaPulse 2s infinite;
}
@keyframes dfWaPulse {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.4); opacity: 0; }
}
.df-wa svg { width: 28px; height: 28px; }

/* ============================================================
   SERVICE INTERIOR PAGES
============================================================ */
.svc-detail {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
}
.svc-detail__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 480px;
  background-size: cover;
  background-position: center;
  position: sticky;
  top: 110px;
}
.svc-detail h2 { margin-bottom: 18px; }
.svc-detail__lead { font-size: 1.05rem; color: var(--df-gray-500); margin-bottom: 32px; }

.norma-box {
  background: var(--df-gray-50);
  border-left: 4px solid var(--df-blue);
  padding: 22px 26px;
  border-radius: var(--radius);
  margin-bottom: 32px;
}
.norma-box h4 { color: var(--df-blue); margin-bottom: 10px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; }
.norma-box p { margin: 0; font-weight: 600; color: var(--df-gray-700); font-size: 0.95rem; }

.checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 18px;
  margin-bottom: 32px;
}
.checklist > div {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--df-gray-700);
  font-weight: 500;
}
.checklist svg {
  width: 18px; height: 18px;
  color: var(--df-blue);
  flex-shrink: 0;
  margin-top: 3px;
}

.svc-cta-block {
  background: var(--df-blue);
  color: var(--df-white);
  padding: 32px;
  border-radius: var(--radius-lg);
  margin-top: 12px;
}
.svc-cta-block p {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  margin-bottom: 18px;
}
.svc-cta-block strong {
  display: block;
  color: var(--df-white);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

/* ============================================================
   FORM
============================================================ */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.form-card {
  background: var(--df-white);
  border: 1px solid var(--df-gray-100);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}
.field {
  display: flex; flex-direction: column;
  margin-bottom: 18px;
}
.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--df-gray-700);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  font-family: 'Manrope', sans-serif;
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1.5px solid var(--df-gray-100);
  background: var(--df-white);
  border-radius: var(--radius-sm);
  color: var(--df-gray-700);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--df-blue);
  box-shadow: 0 0 0 3px rgba(26,43,69,0.08);
}
.field input:invalid:not(:placeholder-shown),
.field textarea:invalid:not(:placeholder-shown) {
  border-color: #c44;
}
.field textarea { min-height: 110px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.contact-card {
  background: var(--df-blue);
  color: var(--df-white);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 24px;
}
.contact-card h3 { color: var(--df-white); margin-bottom: 6px; }
.contact-card .addr { color: rgba(255,255,255,0.85); margin-bottom: 24px; font-size: 0.95rem; }
.contact-card iframe { border-radius: var(--radius); width: 100%; height: 280px; border: 0; filter: grayscale(0.2); }

.contact-data { display: grid; gap: 14px; margin-top: 22px; }
.contact-data__item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius);
}
.contact-data__item svg { width: 22px; height: 22px; color: var(--df-white); flex-shrink: 0; margin-top: 2px; }
.contact-data__item .lbl { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.65); margin-bottom: 2px; }
.contact-data__item .val { color: var(--df-white); font-weight: 600; font-size: 0.98rem; }

/* ============================================================
   ALL SERVICES — 9-card grid
============================================================ */
.svc-all-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.svc-all-grid .svc-card__img { height: 200px; }

/* ============================================================
   NOSOTROS PAGE
============================================================ */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-intro__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
}
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mv-card {
  background: var(--df-white);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--df-gray-100);
  border-top: 4px solid var(--df-blue);
}
.mv-card h3 { font-size: 1.4rem; margin-bottom: 14px; }
.mv-card p { font-size: 1rem; color: var(--df-gray-500); margin: 0; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.value-card {
  background: var(--df-white);
  border: 1px solid var(--df-gray-100);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: all var(--transition);
}
.value-card:hover { border-color: var(--df-blue); box-shadow: var(--shadow); }
.value-card svg { width: 28px; height: 28px; color: var(--df-blue); margin-bottom: 12px; }
.value-card .name { font-weight: 700; color: var(--df-blue); font-size: 0.98rem; }

/* Values 4-up large with dynamic motion */
.values-grid--4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.value-card--lg {
  position: relative;
  padding: 36px 26px 28px;
  text-align: center;
  background: var(--df-white);
  border: 1px solid var(--df-gray-100);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .55s cubic-bezier(.2,.8,.2,1), box-shadow .4s ease, border-color .4s ease;
}
.value-card--lg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,43,69,0) 0%, rgba(26,43,69,0) 50%, rgba(26,43,69,.04) 100%);
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;
}
.value-card--lg::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--df-blue), var(--df-green, #6FBE44));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.value-card--lg:hover {
  transform: translateY(-10px);
  border-color: var(--df-blue);
  box-shadow: 0 22px 50px -22px rgba(26,43,69,.35);
}
.value-card--lg:hover::before { opacity: 1; }
.value-card--lg:hover::after { transform: scaleX(1); }

.value-card__icon-wrap {
  position: relative;
  width: 78px; height: 78px;
  margin: 0 auto 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, #F4F6F8 0%, #E8EEF5 100%);
  display: flex; align-items: center; justify-content: center;
  transition: transform .55s cubic-bezier(.2,.8,.2,1), background .4s ease;
}
.value-card__icon-wrap::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 26px;
  border: 2px solid var(--df-blue);
  opacity: 0;
  transform: scale(.85);
  transition: opacity .5s ease, transform .6s cubic-bezier(.2,.8,.2,1);
}
.value-card__icon-wrap svg {
  width: 36px; height: 36px;
  color: var(--df-blue);
  transition: transform .6s cubic-bezier(.2,.8,.2,1), color .4s ease;
  margin: 0;
}
.value-card--lg:hover .value-card__icon-wrap {
  background: linear-gradient(135deg, var(--df-blue) 0%, #29487a 100%);
  transform: rotate(-6deg) scale(1.05);
}
.value-card--lg:hover .value-card__icon-wrap::before {
  opacity: .25;
  transform: scale(1);
}
.value-card--lg:hover .value-card__icon-wrap svg {
  color: var(--df-white);
  transform: rotate(6deg) scale(1.08);
}
.value-card--lg .name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--df-blue);
  margin-bottom: 10px;
  letter-spacing: -.01em;
}
.value-card__desc {
  font-size: .92rem;
  color: var(--df-gray-500);
  line-height: 1.55;
  margin: 0;
}

/* gentle floating animation, staggered */
@keyframes df-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.value-card--lg.is-visible .value-card__icon-wrap {
  animation: df-float 4.2s ease-in-out infinite;
}
.value-card--lg:nth-child(2).is-visible .value-card__icon-wrap { animation-delay: .4s; }
.value-card--lg:nth-child(3).is-visible .value-card__icon-wrap { animation-delay: .8s; }
.value-card--lg:nth-child(4).is-visible .value-card__icon-wrap { animation-delay: 1.2s; }
.value-card--lg:hover .value-card__icon-wrap { animation: none; }

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

/* Contact channel cards */
.contact-channels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.contact-channel {
  display: block;
  background: var(--df-white);
  border: 1px solid var(--df-gray-100);
  border-radius: 18px;
  padding: 32px 24px 28px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform .55s cubic-bezier(.2,.8,.2,1), box-shadow .4s ease, border-color .4s ease;
  position: relative;
  overflow: hidden;
}
.contact-channel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(26,43,69,.06) 0%, rgba(26,43,69,0) 60%);
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;
}
.contact-channel::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--df-blue), var(--df-green, #6FBE44));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
a.contact-channel:hover {
  transform: translateY(-10px);
  border-color: var(--df-blue);
  box-shadow: 0 22px 50px -22px rgba(26,43,69,.35);
}
a.contact-channel:hover::before { opacity: 1; }
a.contact-channel:hover::after { transform: scaleX(1); }

.contact-channel__icon {
  position: relative;
  width: 72px; height: 72px;
  margin: 0 auto 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, #F4F6F8 0%, #E8EEF5 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--df-blue);
  transition: background .4s ease, color .4s ease, transform .55s cubic-bezier(.2,.8,.2,1);
}
.contact-channel__icon::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 24px;
  border: 2px solid var(--df-blue);
  opacity: 0;
  transform: scale(.85);
  transition: opacity .5s ease, transform .6s cubic-bezier(.2,.8,.2,1);
}
.contact-channel__icon svg {
  width: 32px; height: 32px;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
@keyframes df-channel-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.contact-channel.is-visible .contact-channel__icon {
  animation: df-channel-float 4s ease-in-out infinite;
}
.contact-channel:nth-child(2).is-visible .contact-channel__icon { animation-delay: .35s; }
.contact-channel:nth-child(3).is-visible .contact-channel__icon { animation-delay: .7s; }
.contact-channel:nth-child(4).is-visible .contact-channel__icon { animation-delay: 1.05s; }

a.contact-channel:hover .contact-channel__icon {
  background: linear-gradient(135deg, var(--df-blue) 0%, #29487a 100%);
  color: var(--df-white);
  transform: rotate(-6deg) scale(1.08);
  animation: none;
}
a.contact-channel:hover .contact-channel__icon::before {
  opacity: .25;
  transform: scale(1);
}
a.contact-channel:hover .contact-channel__icon svg {
  transform: rotate(6deg) scale(1.1);
}

.contact-channel__lbl {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--df-gray-500);
  margin-bottom: 6px;
}
.contact-channel__val {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--df-blue);
  margin-bottom: 4px;
  word-break: break-word;
}
.contact-channel__hint {
  font-size: .85rem;
  color: var(--df-gray-500);
}
@media (max-width: 900px) {
  .contact-channels { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .contact-channels { grid-template-columns: 1fr; }
}

.tagline-band {
  background: var(--df-blue);
  color: var(--df-white);
  text-align: center;
  padding: 70px 24px;
}
.tagline-band q {
  display: block;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 700;
  font-style: normal;
  max-width: 900px;
  margin: 0 auto;
  quotes: "“" "”";
  line-height: 1.4;
}
.tagline-band q::before { content: open-quote; opacity: 0.4; }
.tagline-band q::after { content: close-quote; opacity: 0.4; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-all-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .clients-row { grid-template-columns: repeat(3, 1fr); }
  .process-grid { grid-template-columns: repeat(5, 1fr); gap: 12px; }
  .df-footer__grid { grid-template-columns: 1fr 1fr; }
  .form-grid, .about-intro, .svc-detail { grid-template-columns: 1fr; gap: 36px; }
  .svc-detail__media { position: static; height: 360px; }
}
@media (max-width: 760px) {
  section { padding: 60px 0; }
  .df-nav { display: none; }
  .df-header__cta .btn { display: none; }
  .df-burger { display: block; }
  .hero__inner { padding: 80px 24px 70px; }
  .hero__trust { grid-template-columns: 1fr; gap: 16px; }
  .hero__buttons { width: 100%; }
  .hero__buttons .btn { flex: 1; min-width: 0; }
  .svc-grid, .svc-all-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .clients-row { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: 1fr; gap: 32px; }
  .process-grid::before { display: none; }
  .df-footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .mv-grid, .values-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
  .cta-final__buttons .btn { flex: 1; }
}


/* ============================================================
   CLIENTS — LOGOS MARQUEE / GRID
============================================================ */
.clients-marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0 auto;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.clients-marquee__track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 56px;
  animation: dfLogosMarquee 38s linear infinite;
}
.clients-marquee:hover .clients-marquee__track {
  animation-play-state: paused;
}
.clients-marquee__item {
  flex: 0 0 auto;
  width: 168px;
  height: 110px;
  background: var(--df-white);
  border: 1px solid var(--df-gray-100);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 22px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), filter var(--transition);
  filter: grayscale(0.55);
  opacity: 0.85;
}
.clients-marquee__item:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--df-blue);
}
.clients-marquee__item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

@keyframes dfLogosMarquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

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

/* Clients page — animated logo grid */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.client-logo-card {
  background: var(--df-white);
  border: 1px solid var(--df-gray-100);
  border-radius: var(--radius);
  padding: 28px 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 200px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  opacity: 0;
  transform: translateY(22px);
  animation: dfLogoFadeIn .7s ease forwards;
}
.client-logo-card:nth-child(1) { animation-delay: 60ms; }
.client-logo-card:nth-child(2) { animation-delay: 140ms; }
.client-logo-card:nth-child(3) { animation-delay: 220ms; }
.client-logo-card:nth-child(4) { animation-delay: 300ms; }
.client-logo-card:nth-child(5) { animation-delay: 380ms; }
.client-logo-card:nth-child(6) { animation-delay: 460ms; }
.client-logo-card:nth-child(7) { animation-delay: 540ms; }
.client-logo-card:nth-child(8) { animation-delay: 620ms; }

.client-logo-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--df-blue);
}
.client-logo-card__logo {
  flex: 1;
  width: 100%;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(0.4);
  transition: filter var(--transition), transform var(--transition);
}
.client-logo-card:hover .client-logo-card__logo {
  filter: grayscale(0);
  transform: scale(1.04);
}
.client-logo-card__logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.client-logo-card__meta {
  text-align: center;
  width: 100%;
  border-top: 1px solid var(--df-gray-100);
  padding-top: 12px;
}
.client-logo-card__meta .name {
  font-weight: 700;
  color: var(--df-blue);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  line-height: 1.25;
}
.client-logo-card__meta .sector {
  font-size: 0.7rem;
  color: var(--df-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 4px;
}

@keyframes dfLogoFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .client-logo-card { opacity: 1; transform: none; animation: none; }
}

@media (max-width: 960px) {
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
  .clients-marquee__item { width: 148px; height: 96px; padding: 14px 18px; }
}
@media (max-width: 640px) {
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .clients-marquee__track { gap: 36px; animation-duration: 28s; }
  .clients-marquee__item { width: 130px; height: 88px; padding: 12px 14px; }
}
