/* ============================================================
   Lozari Marketing — hoja de estilos
   Paleta y medidas centralizadas en :root para cambiarlas rápido.
   ============================================================ */

:root {
  --ink:        #14131c;   /* texto principal / botones — negro con matiz frío */
  --ink-soft:   #5c5f68;   /* texto secundario */
  --paper:      #faf9f7;   /* fondo */
  --paper-alt:  #f1eee8;   /* fondo de secciones alternas */
  --line:       #e3dfd6;   /* bordes */
  --accent:     #ff5a36;   /* acento (coral vívido) */

  /* Paleta de pilares — un tono por servicio, todos coordinados con el acento */
  --pillar-indigo: #2e2a6e;
  --pillar-coral:  #ff5a36;
  --pillar-yellow: #f5b93f;
  --pillar-teal:   #12897c;

  --container: 1120px;
  --radius: 4px;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 500; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

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

.skip-link {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Tipografía de apoyo ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.eyebrow-mark { width: 13px; height: 13px; flex: none; color: var(--ink-soft); }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }

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

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--accent); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-block;
  margin-top: 28px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: border-color .2s ease, color .2s ease;
}
.link-arrow::after { content: " →"; }
.link-arrow:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 247, .85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.logo { display: inline-flex; align-items: center; gap: 11px; font-weight: 600; letter-spacing: -0.02em; }
.logo-mark {
  width: 24px; height: 26px;
  flex: none;
  color: var(--ink);            /* bars 1-3 use currentColor; the tallest bar is always accent */
  overflow: visible;
  transition: transform .3s ease;
}
.logo:hover .logo-mark { transform: translateY(-2px); }
.logo-text { font-size: 17px; }
.logo-light { color: var(--ink-soft); font-weight: 400; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav a { font-size: 15px; color: var(--ink-soft); transition: color .2s ease; }
.nav a:hover { color: var(--ink); }
.nav a.btn { color: var(--paper); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 11px;
  width: 16px; height: 1.5px;
  background: var(--ink);
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 120px 0 100px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero-title {
  font-size: clamp(44px, 7vw, 82px);
  max-width: 24ch;
  margin-bottom: 28px;
}
.hero-sub {
  max-width: 52ch;
  font-size: 19px;
  color: var(--ink-soft);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  margin-top: 84px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.hero-meta li { display: flex; flex-direction: column; }
.hero-meta strong { font-size: 30px; font-weight: 500; letter-spacing: -0.02em; }
.hero-meta span { font-size: 14px; color: var(--ink-soft); }

/* Decorative growth-line motif — abstract, illustrates "growth made
   measurable" without implying any specific client result. */
.hero-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--paper-alt);
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: 15px 15px;
  overflow: hidden;
}
.growth-chart { position: absolute; inset: 0; width: 100%; height: 100%; }
.growth-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 350;
  stroke-dashoffset: 350;
  transition: stroke-dashoffset 1.6s ease .3s;
}
.hero-visual.is-visible .growth-line { stroke-dashoffset: 0; }
.growth-node {
  fill: var(--paper);
  stroke: var(--ink-soft);
  stroke-width: 2;
  opacity: 0;
  transition: opacity .4s ease;
}
.hero-visual.is-visible .growth-node { opacity: 1; }
.growth-endpoint { fill: var(--accent); }
.growth-halo {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  opacity: .5;
  transform-box: fill-box;
  transform-origin: center;
  animation: haloPulse 2.4s ease-out infinite;
}
@keyframes haloPulse {
  0%   { transform: scale(.6); opacity: .55; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* ---------- Franja de clientes ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; }
.strip-inner { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.strip-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.strip-list { display: flex; flex-wrap: wrap; gap: 40px; }
.strip-list li { font-size: 15px; color: var(--ink-soft); opacity: .7; }

/* ---------- Secciones ---------- */
.section { padding: 110px 0; }
.section-alt { background: var(--paper-alt); }

.section-head { max-width: 62ch; margin-bottom: 64px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 20px; }
.section-sub { color: var(--ink-soft); }

/* ---------- Values ---------- */
.values-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 56px;
}
.values-list li { border-top: 1px solid var(--line); padding-top: 22px; }
.values-list h3 { font-size: 19px; margin-bottom: 10px; }
.values-list p { color: var(--ink-soft); font-size: 15.5px; }

/* ---------- Nosotros ---------- */
.about { display: grid; grid-template-columns: 220px 1fr; gap: 64px; align-items: start; }
.about-text h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 24px; }
.about-text p { color: var(--ink-soft); margin-bottom: 18px; max-width: 52ch; }
.about-text .about-close { color: var(--ink); font-weight: 500; }

.about-signature { position: sticky; top: 100px; }
.about-avatars { display: flex; }
.about-avatars .avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--paper-alt);
  margin-left: -14px;
  flex: none;
}
.about-avatars .avatar:first-child { margin-left: 0; }
.about-avatars .avatar svg { width: 18px; height: 18px; }
.avatar.tone-ink    { background: var(--ink); color: var(--paper); }
.avatar.tone-accent { background: #ffe0d4; color: var(--accent); }
.avatar.tone-alt    { background: var(--paper); color: var(--ink); border-color: var(--line); }
.about-avatars-caption { font-size: 13px; color: var(--ink-soft); margin-top: 12px; max-width: 20ch; }

/* ---------- Servicios: paneles a todo ancho ---------- */
.section-head-wrap { padding: 110px 0 64px; }

.pillar { padding: 76px 0; }
.pillar-inner {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 48px;
  align-items: start;
}
.pillar-icon-frame {
  width: 140px;
  height: 152px;
  border-radius: 70px 70px 10px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .14);
}
.pillar-icon-frame svg { width: 52px; height: 52px; }
.pillar h3 { font-size: clamp(26px, 3vw, 32px); margin-bottom: 14px; }
.pillar p { max-width: 56ch; margin-bottom: 24px; opacity: .92; font-size: 16.5px; }
.pillar-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-bottom: 28px;
}
.pillar-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14.5px;
  opacity: .92;
}
.pillar-list li::before {
  content: "";
  position: absolute; left: 0; top: 10px;
  width: 8px; height: 1px;
  background: currentColor;
  opacity: .7;
}
.pillar-link {
  font-weight: 500;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  opacity: .92;
  transition: opacity .2s ease;
}
.pillar-link:hover { opacity: 1; }

.pillar-indigo { background: var(--pillar-indigo); color: var(--paper); }
.pillar-coral  { background: var(--pillar-coral);  color: var(--paper); }
.pillar-teal   { background: var(--pillar-teal);   color: var(--paper); }
.pillar-yellow { background: var(--pillar-yellow); color: var(--ink); }
.pillar-yellow .pillar-icon-frame { background: rgba(20, 19, 28, .08); }

/* ---------- Proceso ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.step { border-top: 1px solid var(--line); padding-top: 26px; }
.step-num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  font-size: 13px;
  margin-bottom: 18px;
}
.step h3 { font-size: 19px; margin-bottom: 10px; }
.step p { color: var(--ink-soft); font-size: 15.5px; }

/* ---------- Fit check ---------- */
.fit-head { max-width: 62ch; margin-bottom: 48px; }
.fit-head h2 { font-size: clamp(30px, 4vw, 44px); }
.fit-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 48px;
  margin-bottom: 36px;
  max-width: 900px;
}
.fit-list li {
  position: relative;
  padding-left: 22px;
  font-size: 17px;
  line-height: 1.5;
}
.fit-list li::before {
  content: "";
  position: absolute; left: 0; top: 11px;
  width: 10px; height: 1px;
  background: var(--accent);
}
.fit-caveat { color: var(--ink-soft); font-size: 15px; max-width: 56ch; margin-bottom: 32px; }

/* ---------- Contacto ---------- */
.contact { background: var(--paper-alt); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-text h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 20px; }

.contact-list { margin-top: 40px; }
.contact-list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 15.5px;
}
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list span { color: var(--ink-soft); }
.contact-list a { font-weight: 500; }
.contact-list a:hover { color: var(--accent); }

/* ---------- Formulario ---------- */
.form { background: var(--paper); border: 1px solid var(--line); padding: 34px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 7px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15.5px;
  color: var(--ink);
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s ease;
}
.field textarea { resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--ink); outline: none; }
.field input.is-invalid,
.field textarea.is-invalid { border-color: var(--accent); }
.field ::placeholder { color: #a9a5a0; }

.form-note { margin-top: 14px; font-size: 14px; min-height: 20px; color: var(--ink-soft); }
.form-note.is-error { color: var(--accent); }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--ink); color: var(--paper); padding: 84px 0; }
.newsletter-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
.newsletter .eyebrow { color: #a9a6ae; }
.newsletter .eyebrow-mark { color: #a9a6ae; }
.newsletter h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 14px; }
.newsletter-inner > div > p:last-child { color: #c9c6cd; max-width: 46ch; }

.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--paper);
  background: #201f29;
  border: 1px solid #393743;
  border-radius: var(--radius);
}
.newsletter-form input::placeholder { color: #86838d; }
.newsletter-form input:focus { outline: none; border-color: var(--paper); }
.newsletter-form input.is-invalid { border-color: var(--accent); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--accent); color: var(--paper); }
.newsletter-note { margin-top: 12px; font-size: 13.5px; color: #a9a6ae; min-height: 18px; }
.newsletter-note.is-error { color: #ff9376; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-nav { display: flex; gap: 28px; }
.footer-nav a { font-size: 15px; color: var(--ink-soft); }
.footer-nav a:hover { color: var(--ink); }
.footer-legal { font-size: 13.5px; color: var(--ink-soft); }

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .about, .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-signature { position: static; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; aspect-ratio: 16 / 9; }
  .newsletter-inner { grid-template-columns: 1fr; }
  .values-list { grid-template-columns: 1fr; gap: 28px; }
  .pillar-inner { grid-template-columns: 110px 1fr; gap: 32px; }
  .pillar-icon-frame { width: 100px; height: 108px; border-radius: 50px 50px 8px 8px; }
  .pillar-icon-frame svg { width: 40px; height: 40px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero { padding: 80px 0 70px; }
  .hero-meta { gap: 32px; margin-top: 56px; }
  .hero-meta li { min-width: 120px; }
  .section { padding: 76px 0; }
  .section-head-wrap { padding: 76px 0 44px; }
  .section-head { margin-bottom: 44px; }
  .steps { grid-template-columns: 1fr; }
  .form { padding: 26px; }
  .fit-list { grid-template-columns: 1fr; }
  .newsletter { padding: 64px 0; }
  .newsletter-form { flex-direction: column; }

  .pillar { padding: 56px 0; }
  .pillar-inner { grid-template-columns: 1fr; }
  .pillar-icon-frame { width: 84px; height: 90px; border-radius: 42px 42px 6px 6px; margin-bottom: 8px; }

  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 74px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav a.btn { margin-top: 16px; border-bottom: none; justify-content: center; }
}
