/* =====================================================================
   TALENTO CARACAS — ESTILOS DEL SITIO
   Estructura: Reset → Base → Layout → Componentes → Secciones → Animación
   Los colores/tipos/espacios salen de tokens.css (no repetir valores aquí).
   ===================================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Base ---------- */
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-wrap: balance;
}
p { text-wrap: pretty; }
::selection { background: var(--orange); color: var(--white); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.2rem, 4vw, 2.5rem);
}
.section { padding-block: var(--space-section); }
.section--alt { background: var(--bg-alt); }
.section--navy { background: var(--navy); color: #dbe6f2; }
.section--navy h2, .section--navy h3 { color: var(--white); }

.section-head { max-width: 680px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.9rem;
}
.section--navy .eyebrow { color: var(--orange); }
.section-head h2 { font-size: var(--fs-h2); }
.section-head p {
  margin-top: 1rem;
  font-size: var(--fs-lead);
  color: var(--text-muted);
}
.section--navy .section-head p { color: #aebfd2; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-600); box-shadow: 0 10px 24px -10px rgba(238,143,28,.6); transform: translateY(-2px); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--blue); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--border); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--blue); color: var(--blue); }
.section--navy .btn-ghost,
.hero .btn-ghost { color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.32); }
.section--navy .btn-ghost:hover,
.hero .btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--orange); color: var(--orange); }
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* =====================================================================
   HEADER / NAV
   ===================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { border-color: var(--border); box-shadow: 0 4px 20px -16px rgba(17,59,99,.5); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav__logo { display: flex; align-items: center; gap: 0.7rem; }
.nav__logo img { height: 46px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a {
  font-weight: 500;
  font-size: 0.97rem;
  color: var(--text);
  position: relative;
  white-space: nowrap;
  transition: color .15s ease;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--orange);
  transition: width .22s ease;
}
.nav__links a:hover { color: var(--navy); }
.nav__links a:hover::after { width: 100%; }
.nav__actions { display: flex; align-items: center; gap: 1rem; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: .25s; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy) 0%, var(--blue-700) 60%, var(--blue) 100%);
  color: var(--white);
  overflow: hidden;
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
}
.hero__inner { position: relative; z-index: 2; max-width: 760px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 600;
  font-size: 0.82rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange);
  padding: .45rem .9rem;
  border: 1px solid rgba(238,143,28,.4);
  border-radius: 999px;
  margin-bottom: 1.6rem;
}
.hero h1 {
  color: var(--white);
  font-size: var(--fs-hero);
}
.hero h1 .accent { color: var(--orange); }
.hero__lead {
  margin-top: 1.4rem;
  font-size: var(--fs-lead);
  color: #c5d4e6;
  max-width: 600px;
}
.hero__cta { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__stats {
  margin-top: 3.2rem;
  display: flex; flex-wrap: wrap; gap: 2.5rem;
}
.hero__stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem; font-weight: 700;
  color: var(--white);
}
.hero__stat span { font-size: .9rem; color: #9fb4cd; }
/* Skyline decorativo al pie del hero */
.hero__skyline {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  opacity: .16;
  z-index: 1;
  pointer-events: none;
}
.hero__glow {
  position: absolute;
  top: -20%; right: -10%;
  width: 540px; height: 540px;
  background: radial-gradient(circle, rgba(238,143,28,.28), transparent 65%);
  z-index: 0;
  pointer-events: none;
}

/* =====================================================================
   LOGOS DE CLIENTES (banda de confianza)
   ===================================================================== */
.logos {
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.logos__title {
  text-align: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
}
.logos__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 6vw, 5rem);
}
.logo-item {
  flex: 1 1 0;
  max-width: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
}
/* Logos reales: en grises por defecto, a color al pasar el mouse */
.logo-item img {
  max-height: 46px;
  max-width: 200px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.65;
  transition: filter 0.25s ease, opacity 0.25s ease;
}
.logo-item img:hover { filter: none; opacity: 1; }
/* Emblemas cuadrados: un poco más altos para equilibrar con los horizontales */
.logo-item--emblem img { max-height: 64px; }
/* Placeholder (borrar cuando haya logos reales) */
.logo-item.placeholder {
  width: 140px;
  border: 1.5px dashed var(--border);
  border-radius: 10px;
  color: #9aa8b8;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  background: rgba(255, 255, 255, 0.55);
}

/* =====================================================================
   SERVICIOS (grid de tarjetas)
   ===================================================================== */
.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--orange-soft);
  color: var(--orange-600);
  margin-bottom: 1.3rem;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: var(--fs-h3); margin-bottom: .6rem; }
.card p { color: var(--text-muted); font-size: 1rem; }

/* =====================================================================
   PROCESO (pasos numerados)
   ===================================================================== */
.steps { display: grid; gap: 1.2rem; counter-reset: step; }
.steps--row { grid-template-columns: repeat(5, 1fr); }
.step {
  position: relative;
  padding-top: 2.6rem;
}
.step__num {
  position: absolute; top: 0; left: 0;
  font-family: var(--font-head); font-weight: 700;
  font-size: 1rem;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--orange); color: var(--white);
  box-shadow: 0 8px 18px -8px rgba(238,143,28,.7);
}
.step h3 { font-size: 1.1rem; margin-bottom: .4rem; color: var(--white); }
.step p { color: #aebfd2; font-size: .97rem; }
.step:not(:last-child)::before {
  content: "";
  position: absolute; top: 20px; left: 52px; right: -10px;
  height: 2px;
  background: linear-gradient(90deg, rgba(238,143,28,.6), rgba(238,143,28,0));
}

/* =====================================================================
   BENEFICIOS (lista con check)
   ===================================================================== */
.benefits-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.benefit-list { display: grid; gap: 1.4rem; }
.benefit {
  display: flex; gap: 1rem; align-items: flex-start;
}
.benefit__check {
  flex: none;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--orange); color: var(--white);
  margin-top: 2px;
}
.benefit__check svg { width: 16px; height: 16px; }
.benefit h3 { font-size: 1.12rem; margin-bottom: .25rem; }
.benefit p { color: var(--text-muted); font-size: 1rem; }
.benefits-visual {
  background: linear-gradient(160deg, var(--navy), var(--blue));
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  box-shadow: var(--shadow-lg);
}
.benefits-visual .big {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  font-weight: 700; color: var(--orange);
  line-height: 1;
}
.benefits-visual .quote {
  font-size: 1.2rem; line-height: 1.5; margin-top: 1.2rem; color: #dbe6f2;
}
.benefits-visual hr { border: none; border-top: 1px solid rgba(255,255,255,.18); margin: 1.6rem 0; }
.benefits-visual .who { font-size: .92rem; color: #9fb4cd; }

/* =====================================================================
   CTA / CONTACTO
   ===================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-info h2 { font-size: var(--fs-h2); }
.contact-info p { color: var(--text-muted); margin-top: 1rem; font-size: var(--fs-lead); }
.contact-channels { margin-top: 2rem; display: grid; gap: 1rem; }
.channel { display: flex; align-items: center; gap: .9rem; font-weight: 500; }
.channel__icon {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--bg-tint); color: var(--blue);
}
.channel__icon svg { width: 20px; height: 20px; }
.channel small { display: block; color: var(--text-muted); font-weight: 400; }

.form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1.1rem;
}
.field { display: grid; gap: .4rem; }
.field label { font-size: .88rem; font-weight: 600; color: var(--navy); }
.field input, .field textarea, .field select {
  font: inherit;
  padding: .8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: var(--ring);
}
/* Menú desplegable con flecha propia */
.field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 2.6rem;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="none" stroke="%235a6b7e" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>');
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
}
.field textarea { resize: vertical; min-height: 110px; }
.form .btn { justify-content: center; width: 100%; margin-top: .3rem; }
.form__note { font-size: .82rem; color: var(--text-muted); text-align: center; }

/* =====================================================================
   PARA EMPRESAS (banda secundaria B2B)
   ===================================================================== */
.empresas { padding-block: clamp(2rem, 5vw, 4rem) var(--space-section); }
.empresas__card {
  background: linear-gradient(150deg, var(--navy), var(--blue));
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.empresas__text { max-width: 640px; }
.empresas__text .eyebrow { color: var(--orange); }
.empresas__text h2 { color: var(--white); font-size: var(--fs-h2); margin-bottom: .6rem; }
.empresas__text p { color: #c5d4e6; }
.empresas__action { flex: none; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer {
  background: var(--navy-900);
  color: #aebfd2;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer__brand .wordmark {
  font-family: var(--font-head);
  font-weight: 700; font-size: 1.5rem;
  color: var(--white); letter-spacing: -.02em;
}
.footer__brand .wordmark .city { color: var(--orange); }
.footer__brand .slogan { margin-top: .5rem; font-size: .95rem; color: #9fb4cd; }
.footer__brand p { margin-top: 1rem; max-width: 320px; font-size: .95rem; }
.footer__col h4 {
  color: var(--white); font-size: .8rem; letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: 1rem;
}
.footer__col a { display: block; padding: .35rem 0; font-size: .96rem; transition: color .15s; }
.footer__col a:hover { color: var(--orange); }
.footer__bottom {
  padding-top: 1.6rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .86rem; color: #7f93ab;
}

/* =====================================================================
   ANIMACIÓN (reveal al hacer scroll)
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 960px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps--row { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::before { display: none; }
  .benefits-layout, .contact-layout { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
/* Menú: pasa a hamburguesa antes, para que no se amontone en tablet */
@media (max-width: 880px) {
  .nav__links, .nav__actions .btn { display: none; }
  .nav__toggle { display: flex; }
  .nav.open .nav__links {
    display: flex; flex-direction: column; align-items: flex-start;
    gap: 1.2rem;
    position: absolute; top: 76px; left: 0; right: 0;
    background: var(--white);
    padding: 1.5rem clamp(1.2rem, 4vw, 2.5rem) 2rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    z-index: 60;
  }
}
@media (max-width: 680px) {
  .grid--3, .grid--4, .steps--row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .hero__stats { gap: 1.6rem; }
  .empresas__card { flex-direction: column; align-items: flex-start; }
}
