/* ═══════════════════════════════════════════════
   PROGRES S.A. — Stylesheet Principal
   Versión: 1.0
   Fuentes: Plus Jakarta Sans (títulos) · DM Sans (cuerpo)
   ═══════════════════════════════════════════════ */

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

:root {
  /* Paleta principal */
  --g:        #343A47;   /* Grafito principal */
  --g-deep:   #22272F;   /* Grafito oscuro (hover, footer) */
  --g-mid:    #4A5260;   /* Grafito medio (nav links) */
  --y:        #F5C42B;   /* Amarillo marca */
  --y-dark:   #D9A91A;   /* Amarillo hover */
  --y-pale:   #FDF9EC;   /* Amarillo muy claro */
  --cream:    #F7F4EE;   /* Fondo principal */
  --white:    #FFFFFF;
  --muted:    #6C7585;   /* Texto secundario */
  --border:   #E3E1D9;   /* Bordes y separadores */

  /* Tipografía */
  --fh: 'Plus Jakarta Sans', sans-serif;  /* Títulos */
  --fb: 'DM Sans', sans-serif;            /* Cuerpo */

  /* Escala tipográfica fija (no se estira en pantallas anchas) */
  --t-xs:   0.875rem;   /* 14px (antes 12px) */
  --t-sm:   0.9375rem;  /* 15px (antes 13px) */
  --t-base: 1.0625rem;  /* 17px (antes 15px) */
  --t-md:   1.0625rem;  /* 17px */
  --t-lg:   1.25rem;    /* 20px */
  --t-xl:   1.5rem;     /* 24px */
  --t-2xl:  1.875rem;   /* 30px */
  --t-3xl:  2.25rem;    /* 36px */
  --t-4xl:  2.625rem;   /* 42px — máximo para hero */
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--fb);
  background: var(--cream);
  color: var(--g);
  font-size: var(--t-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ─────────────────────────────────────────────
   NAV
───────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(247,244,238,0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-in {
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 max(2rem, env(safe-area-inset-right)) 0 max(2rem, env(safe-area-inset-left));
  height: 64px;
}
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.logo-img { height: 32px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; list-style: none; }
.nav-links a {
  font-family: var(--fb); font-size: var(--t-sm); font-weight: 500;
  color: var(--g-mid); text-decoration: none; letter-spacing: 0.01em;
  transition: color 0.18s;
}
.nav-links a:hover { color: var(--g); }
.btn-nav {
  font-family: var(--fh); font-weight: 700; font-size: var(--t-sm);
  background: var(--g); color: var(--white);
  border: none; padding: 0.5rem 1.2rem; border-radius: 6px;
  cursor: pointer; text-decoration: none;
  transition: background 0.18s, transform 0.15s;
  white-space: nowrap;
}
.btn-nav:hover { background: var(--g-deep); transform: translateY(-1px); }

/* Selector de idioma + LinkedIn (nav) */
.nav-utils { display: flex; align-items: center; gap: 0.65rem; }
.lang-switch {
  display: flex; align-items: center; gap: 2px;
  background: rgba(52,58,71,0.08); border-radius: 100px; padding: 3px;
}
.lang-btn {
  font-family: var(--fh); font-weight: 700; font-size: var(--t-xs);
  border: none; background: transparent; color: var(--g-mid);
  padding: 0.3rem 0.65rem; border-radius: 100px; cursor: pointer;
  letter-spacing: 0.02em; transition: background 0.18s, color 0.18s;
}
.lang-btn.active { background: var(--g); color: var(--white); }
.nav-soc {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: rgba(52,58,71,0.08); text-decoration: none;
  transition: background 0.18s, transform 0.15s;
}
.nav-soc svg { width: 15px; height: 15px; stroke: var(--g-mid); }
.nav-soc:hover { background: var(--y); transform: translateY(-1px); }
.nav-soc:hover svg { stroke: var(--g); }
.nav-utils--mobile { align-self: flex-start; margin-top: 0.85rem; }
.lang-switch--mobile .lang-btn { padding: 0.55rem 1rem; min-height: 40px; }
.nav-utils--mobile .nav-soc { width: 40px; height: 40px; }
.nav-utils--mobile .nav-soc svg { width: 17px; height: 17px; }

/* Hamburger mobile */
.nav-toggle {
  display: none; background: none; border: none;
  cursor: pointer; padding: 11px;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--g); border-radius: 2px; margin: 4px 0;
  transition: all 0.25s;
}

/* Mobile menu */
.nav-mobile {
  display: none; position: fixed; top: 64px; left: 0; right: 0;
  background: var(--cream); border-bottom: 1px solid var(--border);
  padding: 1.25rem max(2rem, env(safe-area-inset-right)) max(1.25rem, env(safe-area-inset-bottom)) max(2rem, env(safe-area-inset-left));
  z-index: 199;
  flex-direction: column; gap: 0.15rem;
  max-height: calc(100vh - 64px);
  max-height: calc(100dvh - 64px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--fb); font-size: var(--t-base); font-weight: 500;
  color: var(--g); text-decoration: none; padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a.btn-mobile {
  font-family: var(--fh); font-weight: 700;
  background: var(--g); color: var(--white);
  border: none; padding: 0.75rem; border-radius: 7px;
  text-align: center; margin-top: 0.75rem;
}

/* ─────────────────────────────────────────────
   HERO
───────────────────────────────────────────── */
#hero {
  padding-top: 64px;
  background: var(--y);
  min-height: 500px;
  display: grid;
  grid-template-columns: minmax(0, 570px) 1fr;
  align-items: stretch;
}
.hero-text {
  padding: 3.25rem 3rem 3.25rem 4rem;
  display: flex; flex-direction: column; justify-content: center;
  max-width: 570px;
}
.hero-label {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--fb); font-size: var(--t-xs); font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--g);
  background: rgba(52,58,71,0.1); border-radius: 100px;
  padding: 0.3rem 0.8rem; margin-bottom: 1.5rem; width: fit-content;
}
.hero-label::before { content: ''; width: 5px; height: 5px; background: var(--g); border-radius: 50%; }
.hero-h1 {
  font-family: var(--fh); font-weight: 800;
  font-size: var(--t-4xl);
  line-height: 1.15; letter-spacing: -0.025em;
  color: var(--g); margin-bottom: 1.1rem; max-width: 505px;
}
.hero-p {
  font-size: var(--t-base); line-height: 1.75;
  color: rgba(52,58,71,0.72); max-width: 440px; margin-bottom: 2rem;
}
.hero-slides { position: relative; min-height: 230px; overflow: hidden; }
.hero-slide { display: none; }
.hero-slide.active { display: block; animation: hero-fade 0.5s ease; }
@keyframes hero-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.hero-actions { display: flex; align-items: center; gap: 0.85rem; flex-wrap: wrap; }
.hero-dots { display: flex; gap: 8px; margin-top: 1.75rem; }
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(52,58,71,0.25);
  border: none; cursor: pointer; padding: 0; transition: background 0.2s ease, width 0.2s ease;
}
.hero-dot.active { background: var(--g); width: 22px; border-radius: 4px; }
.hero-photo {
  position: relative; overflow: hidden; display: flex; align-items: stretch;
}
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 45% 25%;
  display: block; transform: scale(1.3); transform-origin: 45% 30%;
}
.hero-photo-fallback {
  display: none; width: 100%;
  background: linear-gradient(145deg,#e2a91a 0%,#c99210 100%);
  align-items: center; justify-content: center;
  min-height: 440px;
}

/* ─────────────────────────────────────────────
   BOTONES (sistema global)
───────────────────────────────────────────── */
.btn-solid {
  font-family: var(--fh); font-weight: 700; font-size: var(--t-sm);
  background: var(--g); color: var(--white); border: none;
  padding: 0.8rem 1.75rem; border-radius: 7px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  transition: background 0.18s, transform 0.14s, box-shadow 0.18s;
}
.btn-solid:hover { background: var(--g-deep); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(52,58,71,0.22); }

.btn-ghost {
  font-family: var(--fb); font-weight: 500; font-size: var(--t-sm);
  background: transparent; color: var(--g); border: 1.5px solid rgba(52,58,71,0.4);
  padding: 0.8rem 1.6rem; border-radius: 7px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  transition: border-color 0.18s, background 0.18s;
}
.btn-ghost:hover { border-color: var(--g); background: rgba(52,58,71,0.06); }

.btn-outline-g {
  font-family: var(--fh); font-weight: 700; font-size: var(--t-sm);
  background: var(--white); color: var(--g); border: 1.5px solid var(--g);
  padding: 0.72rem 1.6rem; border-radius: 7px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 7px;
  transition: background 0.18s;
}
.btn-outline-g:hover { background: rgba(52,58,71,0.06); }

.btn-y-sm {
  font-family: var(--fh); font-weight: 700; font-size: var(--t-sm);
  background: var(--y); color: var(--g); border: none;
  padding: 0.8rem 1.75rem; border-radius: 7px; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; gap: 7px;
  white-space: nowrap;
  transition: background 0.18s, transform 0.14s, box-shadow 0.18s;
}
.btn-y-sm:hover { background: var(--y-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.22); }

.btn-send {
  width: 100%; background: var(--y); color: var(--g); border: none;
  padding: 0.85rem; border-radius: 7px;
  font-family: var(--fh); font-weight: 700; font-size: var(--t-sm);
  cursor: pointer; transition: background 0.18s, transform 0.14s; margin-top: 0.2rem;
}
.btn-send:hover { background: var(--y-dark); transform: translateY(-1px); }

/* ─────────────────────────────────────────────
   STATS BAND
───────────────────────────────────────────── */
.stats-band { background: var(--g); padding: 1.25rem 0; }
.stats-in {
  max-width: 1160px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-around; flex-wrap: wrap; gap: 0.75rem;
}
.st { text-align: center; }
.st-n {
  font-family: var(--fh); font-weight: 800; font-size: var(--t-2xl);
  color: var(--y); line-height: 1; letter-spacing: -0.02em;
}
.st-l { font-size: var(--t-xs); font-weight: 400; color: rgba(255,255,255,0.5); margin-top: 3px; }
.st-div { width: 1px; height: 28px; background: rgba(255,255,255,0.1); }

/* ─────────────────────────────────────────────
   LAYOUT HELPERS
───────────────────────────────────────────── */
.section { padding: 5rem 2rem; }
.wrap { max-width: 1160px; margin: 0 auto; }

.s-label {
  display: inline-block;
  font-family: var(--fb); font-size: var(--t-xs); font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--y-dark); border-left: 2px solid var(--y); padding-left: 9px;
  margin-bottom: 0.85rem;
}
.s-label--center {
  border-left: none; border-bottom: 2px solid var(--y-dark);
  padding-left: 0; padding-bottom: 4px; display: block; text-align: center;
  width: fit-content; margin: 0 auto 0.85rem;
}
.s-title {
  font-family: var(--fh); font-weight: 800;
  font-size: var(--t-3xl); line-height: 1.18; letter-spacing: -0.025em;
  color: var(--g); margin-bottom: 0.75rem; max-width: 560px;
}
.s-title em { font-style: normal; color: var(--y-dark); }
.s-title--center { text-align: center; max-width: 560px; margin: 0 auto 0.65rem; }
.s-body { font-size: var(--t-base); color: var(--muted); line-height: 1.75; max-width: 480px; }
.s-body--center { text-align: center; margin: 0 auto; }
.s-head { margin-bottom: 2.75rem; }
.s-head--center { text-align: center; display: flex; flex-direction: column; align-items: center; margin-bottom: 2.75rem; }

/* ─────────────────────────────────────────────
   SERVICIOS
───────────────────────────────────────────── */
#servicios { background: var(--white); }
.srv-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.1rem; }
.srv-card {
  background: var(--cream); border: 1px solid var(--border); border-radius: 10px;
  padding: 1.75rem 1.5rem; position: relative; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; cursor: default;
}
.srv-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2.5px;
  background: var(--y); transform: scaleX(0); transform-origin: left; transition: transform 0.28s;
}
.srv-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(52,58,71,0.09); border-color: rgba(245,196,43,0.6); }
.srv-card:hover::after { transform: scaleX(1); }
.srv-ico {
  width: 42px; height: 42px; background: var(--y); border-radius: 9px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
.srv-ico svg { width: 20px; height: 20px; }
.srv-name {
  font-family: var(--fh); font-weight: 700; font-size: var(--t-base);
  color: var(--g); margin-bottom: 0.45rem; line-height: 1.3;
}
.srv-desc { font-size: var(--t-sm); color: var(--muted); line-height: 1.65; }

/* ─────────────────────────────────────────────
   NEARSHORING
───────────────────────────────────────────── */
#nearshoring { background: var(--y); padding: 4rem 2rem; }
.near-block {
  display: grid; grid-template-columns: 1fr 1fr;
  border-radius: 14px; overflow: hidden; min-height: 380px;
}
.near-txt {
  background: var(--g); padding: 3.5rem;
  display: flex; flex-direction: column; justify-content: center;
}
.near-txt .s-label { border-color: var(--y); color: var(--y); }
.near-txt .s-title { color: var(--white); max-width: 100%; font-size: var(--t-2xl); }
.near-txt .s-body  { color: rgba(255,255,255,0.58); max-width: 100%; font-size: var(--t-sm); }
.near-list { margin-top: 1.75rem; display: flex; flex-direction: column; gap: 1rem; }
.near-item { display: flex; gap: 11px; align-items: flex-start; }
.near-chk {
  width: 20px; height: 20px; background: rgba(245,196,43,0.18);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.near-chk svg { width: 10px; height: 10px; stroke: var(--y); }
.near-item-t { font-family: var(--fh); font-weight: 600; font-size: var(--t-sm); color: var(--white); margin-bottom: 1px; }
.near-item-d { font-size: var(--t-xs); color: rgba(255,255,255,0.52); line-height: 1.55; }
.near-photo { position: relative; overflow: hidden; }
.near-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.near-photo-fb {
  display: none; width: 100%; height: 100%;
  background: linear-gradient(135deg,#e2aa18,#c99210);
  align-items: center; justify-content: center; min-height: 400px;
}
/* ─────────────────────────────────────────────
   TALENT IT
───────────────────────────────────────────── */
#talent { background: var(--y); padding: 4rem 2rem; }
.talent-block {
  display: grid; grid-template-columns: 1fr 1fr;
  border-radius: 14px; overflow: hidden; min-height: 340px;
}
.talent-txt {
  background: var(--cream); padding: 3.5rem;
  display: flex; flex-direction: column; justify-content: center;
}
.talent-txt .s-title { font-size: var(--t-2xl); max-width: 100%; }
.talent-photo { position: relative; overflow: hidden; }
.talent-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.talent-photo-fb {
  display: none; width: 100%; height: 100%; min-height: 360px;
  background: linear-gradient(145deg,#c8cdd8,#aeb6c4);
}
.talent-more-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 1rem; background: none; border: none; padding: 0; cursor: pointer;
  font-family: var(--fb); font-size: var(--t-sm); font-weight: 600;
  color: var(--g); text-decoration: underline; text-underline-offset: 3px;
}
.talent-more-toggle svg { width: 14px; height: 14px; stroke: var(--g); transition: transform 0.25s ease; flex-shrink: 0; }
.talent-more-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.talent-cols {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1.5rem; margin-top: 0;
  max-height: 0; overflow: hidden; padding: 0 2rem;
  background: var(--white);
  border-radius: 0 0 14px 14px; border: 1px solid transparent; border-top: none;
  transition: max-height 0.4s ease, padding 0.4s ease, border-color 0.3s ease;
}
.talent-cols.open {
  max-height: 2000px; padding: 2rem; border-color: var(--border);
}
.talent-block:has(+ .talent-cols.open) {
  border-radius: 14px 14px 0 0;
  transition: border-radius 0.3s ease;
}
.tc-title { font-family: var(--fh); font-weight: 700; font-size: var(--t-sm); color: var(--g); margin-bottom: 0.6rem; }
.tc-desc  { font-size: var(--t-sm); color: var(--muted); line-height: 1.65; }
.tc-list  { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.tc-list li { font-size: var(--t-sm); color: var(--muted); display: flex; align-items: center; gap: 7px; }
.tc-list li::before { content: ''; width: 4px; height: 4px; background: var(--y-dark); border-radius: 50%; flex-shrink: 0; }

/* ─────────────────────────────────────────────
   ESPECIALIDADES
───────────────────────────────────────────── */
#especialidades { background: var(--white); }
.spec-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.1rem; }
.spec-card {
  background: var(--cream); border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; transition: transform 0.2s, box-shadow 0.2s;
}
.spec-card:hover { transform: translateY(-3px); box-shadow: 0 8px 26px rgba(52,58,71,0.08); }
.spec-hdr {
  background: var(--g); padding: 1.2rem 1.4rem; display: flex; align-items: center; gap: 10px;
  width: 100%; border: none; cursor: pointer; text-align: left; font: inherit;
}
.spec-hdr.yel { background: var(--y); }
.spec-hdr.yel .spec-hdr-n { color: var(--g); }
.spec-chevron { width: 16px; height: 16px; stroke: white; margin-left: auto; flex-shrink: 0; transition: transform 0.25s ease; }
.spec-chevron.dark { stroke: var(--g); }
.spec-card.open .spec-chevron { transform: rotate(180deg); }
.spec-ico-box {
  width: 34px; height: 34px; background: rgba(255,255,255,0.14);
  border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.spec-ico-box svg { width: 17px; height: 17px; stroke: white; }
.spec-ico-box.dark svg { stroke: var(--g); }
.spec-hdr-n { font-family: var(--fh); font-weight: 700; font-size: var(--t-sm); color: white; }
.spec-roles { max-height: 0; overflow: hidden; padding: 0 1.4rem; transition: max-height 0.3s ease, padding 0.3s ease; }
.spec-card.open .spec-roles { max-height: 500px; padding: 1rem 1.4rem; }
.spec-role {
  display: flex; align-items: center; gap: 7px;
  font-size: var(--t-xs); color: var(--muted); padding: 0.32rem 0;
  border-bottom: 1px solid var(--border);
}
.spec-role:last-child { border-bottom: none; }
.spec-role::before { content: ''; width: 4px; height: 4px; background: var(--y-dark); border-radius: 50%; flex-shrink: 0; }

/* ─────────────────────────────────────────────
   PROCESO
───────────────────────────────────────────── */
#proceso { background: var(--cream); }
.proc-steps { display: grid; grid-template-columns: repeat(5,1fr); gap: 1rem; position: relative; }
.proc-steps::before {
  content: ''; position: absolute; top: 25px; left: 10%; right: 10%;
  height: 1px; background: var(--border); z-index: 0;
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.1s cubic-bezier(.4,0,.2,1);
}
.proc-steps.in::before { transform: scaleX(1); }
.proc-step { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 0.5rem; }
.proc-n {
  width: 50px; height: 50px; background: var(--g); color: white;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--fh); font-weight: 800; font-size: var(--t-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  margin-bottom: 1rem; position: relative; z-index: 1; border: 4px solid var(--cream);
}
.proc-step:nth-child(2) .proc-n, .proc-step:nth-child(4) .proc-n { background: var(--y); color: var(--g); }
.proc-step:hover .proc-n { transform: scale(1.12); box-shadow: 0 8px 20px rgba(52,58,71,0.28); }
.proc-step-t {
  font-family: var(--fh); font-weight: 700; font-size: var(--t-sm); color: var(--g);
  margin-bottom: 0.3rem; min-height: 2.7rem;
  display: flex; align-items: center; justify-content: center;
}
.proc-step-d { font-size: var(--t-xs); color: var(--muted); line-height: 1.6; }


/* ─────────────────────────────────────────────
   CONTACTO
───────────────────────────────────────────── */
#contacto { background: var(--y); padding-top: 4.5rem; }
.contact-body {
  background: var(--white); display: grid; grid-template-columns: 1.1fr 1fr;
}
.cform-side { padding: 3rem 3.5rem; border-right: 1px solid var(--border); }
.cinfo-side { padding: 3rem; display: flex; flex-direction: column; }
.cside-t {
  font-family: var(--fh); font-weight: 800; font-size: var(--t-xl);
  color: var(--g); letter-spacing: -0.02em; margin-bottom: 1.5rem;
}

/* Formulario */
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }
.fg { display: flex; flex-direction: column; gap: 5px; margin-bottom: 0.8rem; }
.fl { font-size: var(--t-xs); font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }
.fi {
  background: var(--cream); border: 1.5px solid var(--border); border-radius: 7px;
  padding: 0.65rem 0.9rem; color: var(--g);
  font-family: var(--fb); font-size: var(--t-sm); outline: none;
  transition: border-color 0.18s, background 0.18s;
}
.fi::placeholder { color: #b4b8c2; }
.fi:focus { border-color: var(--y); background: white; box-shadow: 0 0 0 3px rgba(245,196,43,0.35); }
textarea.fi { resize: vertical; min-height: 88px; }
select.fi option { background: white; }
#form-ok { display: none; margin-top: 0.75rem; text-align: center; font-size: var(--t-sm); color: var(--y-dark); font-weight: 600; }
#form-error { display: none; margin-top: 0.75rem; text-align: center; font-size: var(--t-sm); color: #c0392b; font-weight: 600; }
#form-error a { color: inherit; text-decoration: underline; }

/* Info side */
.why-list { display: flex; flex-direction: column; gap: 0.9rem; margin-bottom: 1.75rem; }
.wi { display: flex; gap: 10px; align-items: flex-start; }
.wi-dot { width: 7px; height: 7px; background: var(--y); border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.wi-t { font-family: var(--fh); font-weight: 600; font-size: var(--t-sm); color: var(--g); }
.wi-d { font-size: var(--t-xs); color: var(--muted); line-height: 1.55; margin-top: 1px; }
.cdet { display: flex; align-items: center; gap: 8px; font-size: var(--t-sm); color: var(--muted); margin-bottom: 0.5rem; }
.cdet svg { width: 14px; height: 14px; stroke: var(--y-dark); flex-shrink: 0; }
.cdet a { color: var(--muted); text-decoration: none; }
.cdet a:hover { color: var(--g); }
.cta-box { background: var(--g); border-radius: 10px; padding: 1.6rem; margin-top: auto; }
.cta-box-t { font-family: var(--fh); font-weight: 800; font-size: var(--t-md); color: white; margin-bottom: 0.35rem; line-height: 1.3; }
.cta-box-d { font-size: var(--t-xs); color: rgba(255,255,255,0.55); margin-bottom: 1rem; line-height: 1.55; }
.socials { display: flex; gap: 0.4rem; margin-top: 1.25rem; }
.soc {
  width: 44px; height: 44px; background: var(--cream); border: 1px solid var(--border);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  text-decoration: none; transition: background 0.18s, border-color 0.18s;
}
.soc:hover { background: var(--y); border-color: var(--y); }
.soc svg { width: 14px; height: 14px; stroke: var(--g); }

/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */
footer { background: var(--g-deep); padding: 1.75rem 2rem; }
.foot-in {
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.foot-copy { font-size: var(--t-xs); color: rgba(255,255,255,0.3); }
.foot-links { display: flex; gap: 1.5rem; }
.foot-links a { font-size: var(--t-xs); color: rgba(255,255,255,0.35); text-decoration: none; transition: color 0.18s; }
.foot-links a:hover { color: var(--y); }
.foot-brand { font-family: var(--fh); font-weight: 800; font-size: var(--t-sm); color: rgba(255,255,255,0.45); letter-spacing: -0.01em; }

/* ─────────────────────────────────────────────
   ANIMACIONES
───────────────────────────────────────────── */
.ani { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.ani.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ani { opacity: 1; transform: none; transition: none; }
  .cmarquee-track { animation: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ─────────────────────────────────────────────
   RESPONSIVE — Tablet (≤1024px)
───────────────────────────────────────────── */
@media (max-width: 1024px) {
  #hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-text { padding: 3.5rem 2rem; max-width: 100%; }
  .hero-h1  { font-size: var(--t-3xl); }
  .hero-photo { min-height: 320px; }
  .near-block, .talent-block, .contact-body { grid-template-columns: 1fr; }
  .near-photo, .talent-photo { min-height: 280px; }
  .cform-side { border-right: none; border-bottom: 1px solid var(--border); padding: 2.25rem; }
  .cinfo-side { padding: 2.25rem; }
  #contacto { padding-top: 3.5rem; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-in > .nav-utils { display: none; }
  .srv-grid, .spec-grid { grid-template-columns: 1fr 1fr; }
  .proc-steps { grid-template-columns: 1fr 1fr; }
  .proc-steps::before { display: none; }
  .proc-step:last-child { grid-column: 1 / -1; }
  .talent-cols { grid-template-columns: 1fr 1fr; }
}

/* ─────────────────────────────────────────────
   RESPONSIVE — Mobile (≤640px)
───────────────────────────────────────────── */
@media (max-width: 640px) {
  :root { --t-4xl: 2rem; --t-3xl: 1.65rem; --t-2xl: 1.5rem; }
  .srv-grid, .spec-grid { grid-template-columns: 1fr; }
  .proc-steps { grid-template-columns: 1fr; }
  .talent-cols { grid-template-columns: 1fr; }
  .frow { grid-template-columns: 1fr; }
  .st-div { display: none; }
  .section { padding: 3.5rem 1.25rem; }
  .hero-text { padding: 2.5rem 1.25rem; }
  #contacto { padding-top: 2.5rem; }
  .cform-side, .cinfo-side { padding: 1.75rem 1.25rem; }
  .foot-in { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .foot-links { flex-wrap: wrap; gap: 1rem; }
}

/* ═══════════════════════════════════════════
   CLIENTES
════════════════════════════════════════════ */
.ctabs{
  display:flex; flex-wrap:wrap; gap:.6rem;
  justify-content:center; margin:0 0 2.5rem;
}
.ctab{
  font-family:var(--fb); font-size:var(--t-sm); font-weight:500;
  color:var(--g-mid); background:var(--cream);
  border:1px solid var(--border); border-radius:999px;
  padding:.55rem 1.1rem; cursor:pointer; transition:all .18s ease;
  white-space:nowrap;
}
.ctab:hover{ border-color:var(--y-dark); color:var(--g); }
.ctab.on{ background:var(--g); color:var(--white); border-color:var(--g); }
.ctab .ccount{
  font-size:var(--t-xs); opacity:.65; margin-left:.25rem;
}
.ctab.on .ccount{ opacity:.75; }

.cgrid-wrap{ position:relative; padding:0 3.25rem; }
.cnav{
  position:absolute; top:50%; transform:translateY(-50%);
  z-index:6; width:44px; height:44px; border-radius:50%;
  background:var(--white); border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; padding:0;
  box-shadow:0 4px 14px rgba(52,58,71,0.12);
  transition:background .18s ease, border-color .18s ease, opacity .18s ease;
}
.cnav svg{ width:18px; height:18px; stroke:var(--g); pointer-events:none; }
.cnav:hover{ background:var(--y); border-color:var(--y); }
.cnav-prev{ left:0; }
.cnav-next{ right:0; }
.cnav:disabled{ opacity:.35; cursor:default; pointer-events:none; }

.cmarquee{
  display:none;
  width:100%;
  overflow-x:auto; overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-x;
  scroll-behavior:smooth;
  cursor:grab;
  -ms-overflow-style:none; scrollbar-width:none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}
.cmarquee::-webkit-scrollbar{ display:none; }
.cmarquee.on{ display:block; }
.cmarquee-track{
  display:grid; grid-template-rows:repeat(2,1fr); grid-auto-flow:column;
  grid-auto-columns:190px; gap:1.25rem 1.75rem;
  width:max-content;
  padding:.5rem 1.375rem;
}
.clogo{
  position:relative;
  flex:0 0 auto;
  width:190px; height:100px;
  display:flex; align-items:center; justify-content:center;
  background:var(--cream);
  border:1px solid var(--border);
  border-radius:14px;
  padding:1.15rem 1.4rem;
  overflow:hidden;
}
.clogo img{
  max-width:100%; max-height:100%; object-fit:contain;
  filter:grayscale(1) opacity(.55);
  transition:filter .2s ease;
}
.cmarquee:hover .clogo img{ filter:grayscale(0) opacity(1); }
.clogo:not(.clogo-text)::after{
  content:attr(title);
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  text-align:center; line-height:1.2; padding:.5rem;
  background:var(--g); color:var(--white);
  font-family:var(--fb); font-weight:600; font-size:var(--t-sm);
  opacity:0; transition:opacity .25s ease;
  pointer-events:none;
}
.clogo:not(.clogo-text):hover::after,
.clogo:not(.clogo-text).active::after{ opacity:1; }
.clogo-text{
  flex-direction:column; gap:.15rem;
  background:var(--g); border-color:var(--g);
}
.clogo-dark{ background:#161616; border-color:#161616; }
.clogo-tname{
  font-family:var(--fh); font-weight:700; font-size:var(--t-sm);
  color:var(--white); text-align:center; line-height:1.15;
}
.clogo-cap{
  font-family:var(--fb); font-size:.6875rem;
  color:var(--y); text-transform:uppercase; letter-spacing:.04em;
}

@media (max-width: 640px){
  .cgrid-wrap{ padding:0 2.5rem; }
  .cnav{ width:36px; height:36px; }
  .cnav svg{ width:15px; height:15px; }
  .clogo{ width:150px; height:82px; padding:.85rem 1.1rem; }
  .cmarquee-track{ grid-auto-columns:150px; gap:.85rem 1.1rem; }
}
