/* Awensoft — propuesta de rediseño 2027
   Paleta del rebranding: Negro #0B0B0B · Gris profundo #3E3E3E · Gris cálido #A8A29E · Crema #F4F1ED */
:root {
  --negro: #0B0B0B;
  --gris-profundo: #3E3E3E;
  --gris-calido: #A8A29E;
  --crema: #F4F1ED;
  --blanco: #FFFFFF;
  --linea: #E2DDD6;
  --linea-oscura: #262626;
  --texto: #0B0B0B;
  --texto-suave: #57534E;
  --radio: 14px;
  --ancho: 1180px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--texto);
  background: var(--blanco);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.1; font-weight: 700; }
p { margin: 0; }
.wrap { width: min(var(--ancho), 100% - 40px); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--blanco); padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gris-calido); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--texto-suave); margin-bottom: 18px;
}
.eyebrow--light { color: var(--gris-calido); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font: 600 15px/1 var(--font);
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn span { transition: transform .2s ease; }
.btn:hover span { transform: translateX(3px); }
.btn--light { background: var(--crema); color: var(--negro); }
.btn--light:hover { background: var(--blanco); }
.btn--ghost { color: var(--crema); border-color: rgba(244,241,237,.35); }
.btn--ghost:hover { border-color: var(--crema); }

/* Marca */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--crema); }
.brand__mark { width: 36px; height: 30px; }
.brand__name { font-weight: 700; font-size: 22px; letter-spacing: -0.03em; }

/* Navegación */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; color: var(--crema);
  transition: background .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(11,11,11,.88); backdrop-filter: blur(14px); border-color: var(--linea-oscura); }
.nav__in { display: flex; align-items: center; height: 72px; gap: 32px; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { text-decoration: none; font-size: 14.5px; font-weight: 500; color: rgba(244,241,237,.75); transition: color .2s; }
.nav__links a:hover { color: var(--crema); }
.nav__cta { padding: 10px 20px; font-size: 14px; }
.nav__toggle { display: none; margin-left: auto; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--crema); transition: transform .25s; }
.nav__toggle span:first-child { top: 15px; }
.nav__toggle span:last-child { top: 23px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav__mobile { background: var(--negro); padding: 8px 20px 24px; display: flex; flex-direction: column; gap: 4px; border-bottom: 1px solid var(--linea-oscura); }
.nav__mobile[hidden] { display: none; }
.nav__mobile a:not(.btn) { padding: 12px 0; text-decoration: none; border-bottom: 1px solid var(--linea-oscura); font-weight: 500; }
.nav__mobile .btn { margin-top: 16px; }

/* Hero */
.hero {
  position: relative; min-height: min(100svh, 960px); display: flex; align-items: center;
  background: radial-gradient(120% 90% at 80% 20%, #1c1c1c 0%, var(--negro) 60%);
  color: var(--crema); overflow: hidden; padding: 120px 0 80px;
}
.hero__wave { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__in { position: relative; }
.hero h1 { font-size: clamp(40px, 6.4vw, 84px); font-weight: 700; max-width: 17ch; letter-spacing: -0.035em; }
.hero__lead { margin-top: 26px; font-size: clamp(17px, 1.6vw, 20px); color: rgba(244,241,237,.72); max-width: 54ch; }
.hero__actions { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }
.hero__pillars { list-style: none; padding: 0; margin: 64px 0 0; display: flex; gap: 0; flex-wrap: wrap; border-top: 1px solid rgba(244,241,237,.15); max-width: 860px; }
.hero__pillars li { flex: 1 1 220px; padding: 20px 24px 0 0; font-size: 14.5px; color: rgba(244,241,237,.6); }
.hero__pillars strong { display: block; color: var(--crema); font-size: 16px; margin-bottom: 2px; }

/* Franja de logos */
.logos { background: var(--negro); color: var(--crema); padding: 0 0 56px; }
.logos__in { border-top: 1px solid var(--linea-oscura); padding-top: 36px; }
.logos__title { text-align: center; font-size: 12.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--gris-calido); margin-bottom: 30px; }
.logos__track {
  display: flex; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.logos__row { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; flex: none; gap: 0; min-width: 100%; justify-content: space-around; animation: logos 32s linear infinite; }
.logos__track:hover .logos__row { animation-play-state: paused; }
@keyframes logos { to { transform: translateX(-100%); } }
.lg { padding: 0 clamp(28px, 4vw, 56px); white-space: nowrap; color: rgba(244,241,237,.55); transition: color .25s; line-height: 1; }
.lg:hover { color: var(--crema); }
.logos__tracks { display: flex; flex-direction: column; gap: 30px; }
.logos__track .logos__row { justify-content: flex-start; animation-duration: 70s; }
.logos__track--rev .logos__row { animation-direction: reverse; animation-duration: 80s; }
.logos__demo { text-align: center; margin-top: 26px; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: rgba(168,162,158,.55); }
/* Marcadores tipográficos genéricos (DEMO): reemplazar por los SVG oficiales de cada marca */
.lg { font-size: 21px; }
.lg--serif-i { font: italic 700 27px/1 Georgia, "Times New Roman", serif; letter-spacing: -0.01em; }
.lg--serif { font: 600 22px/1 Georgia, "Times New Roman", serif; }
.lg--sans-b { font-weight: 800; letter-spacing: -0.01em; }
.lg--sans { font-weight: 500; }
.lg--wide-b { font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.lg--wide-i { font-weight: 700; font-style: italic; letter-spacing: .14em; font-size: 25px; }
.lg--wide { font-weight: 600; letter-spacing: .3em; }
.lg--thin { font-weight: 300; letter-spacing: .38em; text-transform: uppercase; font-size: 18px; }
.lg--round { font-weight: 700; letter-spacing: -0.02em; font-size: 23px; }
.lg--box { font-weight: 800; font-size: 17px; letter-spacing: .06em; border: 2px solid currentColor; border-radius: 6px; padding: 5px 9px; margin: 0 clamp(28px, 4vw, 56px); }

/* Intro */
.intro { padding: clamp(80px, 11vw, 150px) 0; background: var(--crema); }
.intro__text { font-size: clamp(24px, 3.1vw, 40px); line-height: 1.3; letter-spacing: -0.02em; font-weight: 500; max-width: 38ch; color: var(--gris-profundo); }
.intro__text span { color: var(--negro); font-weight: 700; }

/* Secciones */
.section { padding: clamp(80px, 10vw, 140px) 0; }
.section--dark { background: var(--negro); color: var(--crema); }
.section--cream { background: var(--crema); }
.section__head { max-width: 640px; margin-bottom: 56px; }
.section__head h2 { font-size: clamp(32px, 4.4vw, 56px); letter-spacing: -0.03em; }
.section__head p:not(.eyebrow) { margin-top: 18px; color: var(--texto-suave); font-size: 18px; }
.section--dark .section__head p:not(.eyebrow) { color: rgba(244,241,237,.65); }
.section__head--left { margin-bottom: 0; }
.note { font-size: 14px !important; font-style: italic; }

.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }

/* Tarjetas de servicio */
.card {
  border: 1px solid var(--linea); border-radius: var(--radio); padding: 32px 28px 34px;
  background: var(--blanco); transition: border-color .25s, transform .25s, box-shadow .25s;
}
.card:hover { border-color: var(--negro); transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(11,11,11,.35); }
.card__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--negro); display: grid; place-items: center; margin-bottom: 26px; }
.card__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--crema); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 21px; margin-bottom: 12px; }
.card p { color: var(--texto-suave); font-size: 15.5px; }

/* Pasos */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--linea-oscura); }
.steps li { padding: 32px 28px 8px 0; border-right: 1px solid var(--linea-oscura); }
.steps li + li { padding-left: 28px; }
.steps li:last-child { border-right: 0; }
.steps__n { display: block; font-size: 13px; letter-spacing: .2em; color: var(--gris-calido); margin-bottom: 40px; }
.steps h3 { font-size: 22px; margin-bottom: 12px; }
.steps p { color: rgba(244,241,237,.65); font-size: 15.5px; }

/* Industrias */
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.tags li { padding: 12px 20px; border: 1px solid var(--linea); border-radius: 999px; font-weight: 500; font-size: 15.5px; transition: background .2s, color .2s; }
.tags li:hover { background: var(--negro); color: var(--crema); border-color: var(--negro); }

/* Casos */
.case { background: var(--blanco); border-radius: var(--radio); padding: 30px 28px; display: flex; flex-direction: column; gap: 12px; min-height: 290px; }
.case__tag { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--texto-suave); font-weight: 600; }
.case h3 { font-size: 22px; }
.case p { color: var(--texto-suave); font-size: 15.5px; }
.case__kpi { margin-top: auto !important; padding-top: 18px; border-top: 1px solid var(--linea); color: var(--negro) !important; }
.case__status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.case__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--negro); box-shadow: 0 0 0 4px rgba(11,11,11,.08); }
.more { margin-top: 36px; color: var(--texto-suave); font-size: 15.5px; max-width: 70ch; }

/* Nosotros */
.attrs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--linea); }
.attr { padding: 28px 24px 28px 0; border-bottom: 1px solid var(--linea); }
.attr:nth-child(odd) { border-right: 1px solid var(--linea); }
.attr:nth-child(even) { padding-left: 24px; }
.attr h3 { font-size: 20px; margin-bottom: 8px; }
.attr p { color: var(--texto-suave); font-size: 15px; }

/* Contacto */
.contact h2 { font-size: clamp(32px, 4.4vw, 56px); letter-spacing: -0.03em; }
.contact__lead { margin-top: 18px; color: rgba(244,241,237,.65); font-size: 18px; }
.contact__data { list-style: none; padding: 0; margin: 40px 0 0; }
.contact__data li { display: flex; gap: 18px; padding: 16px 0; border-top: 1px solid var(--linea-oscura); }
.contact__data span { width: 90px; flex: none; color: var(--gris-calido); font-size: 14px; padding-top: 2px; }
.contact__data a { text-decoration: none; }
.contact__data a:hover { text-decoration: underline; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--gris-calido); font-weight: 500; }
.form__full { grid-column: 1 / -1; }
.form input, .form select, .form textarea {
  font: 400 16px/1.4 var(--font); color: var(--crema); background: #151515;
  border: 1px solid var(--linea-oscura); border-radius: 10px; padding: 13px 14px; transition: border-color .2s;
}
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gris-calido) 50%), linear-gradient(135deg, var(--gris-calido) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--gris-calido); outline: none; }
.form [aria-invalid="true"] { border-color: #c2683f; }
.form .btn { justify-self: start; margin-top: 6px; }
.form__msg { font-size: 14px; color: var(--gris-calido); min-height: 1em; }

/* Footer */
.footer { background: var(--negro); color: var(--crema); border-top: 1px solid var(--linea-oscura); padding: 48px 0; }
.footer__in { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px 40px; }
.footer__tag { font-size: 12px; letter-spacing: .3em; color: var(--gris-calido); }
.footer__social { display: flex; gap: 22px; }
.footer__social a, .footer__legal a { text-decoration: none; color: rgba(244,241,237,.7); font-size: 14px; }
.footer__social a:hover, .footer__legal a:hover { color: var(--crema); }
.footer__legal { grid-column: 1 / -1; font-size: 13.5px; color: rgba(244,241,237,.5); padding-top: 24px; border-top: 1px solid var(--linea-oscura); }

/* Aparición al hacer scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Responsivo */
@media (max-width: 1020px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(2) { border-right: 0; }
  .steps li:nth-child(3) { padding-left: 0; }
  .steps li { border-bottom: 1px solid var(--linea-oscura); padding-bottom: 28px; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .grid--3, .steps, .attrs, .form { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 28px 0; border-right: 0; }
  .attr, .attr:nth-child(even) { padding: 24px 0; border-right: 0 !important; }
  .hero { padding-top: 110px; }
  .hero__pillars li { flex-basis: 100%; padding-top: 16px; }
  .footer__in { grid-template-columns: 1fr; }
  .footer__social { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .logos__track .logos__row { animation: none; flex-wrap: wrap; justify-content: center; row-gap: 22px; flex: 1 1 100%; }
  .logos__row[aria-hidden] { display: none; }
  .logos__track { flex-wrap: wrap; justify-content: center; -webkit-mask-image: none; mask-image: none; }
  * { transition-duration: .01ms !important; }
}
