/* AAA Soluciones — sitio oficial. Basado en el Brand Kit v1.0 */
@font-face {
  font-family: 'Montserrat';
  src: url('fonts/Montserrat.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --red: #E31B23;
  --red-hover: #B01519;
  --black: #000;
  --ink: #1A1A1A;
  --white: #fff;
  --bg-soft: #F5F5F5;
  --border: #E0E0E0;
  --gray: #6b6b6b;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0,0,0,.12);
  --font: 'Montserrat', system-ui, sans-serif;
  --mono: 'Source Code Pro', ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 .95rem var(--font);
  padding: 14px 26px; border-radius: 8px; border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: background .2s, color .2s, transform .1s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-hover); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline:hover { background: #fff; color: var(--black); }
.btn-dark { background: var(--black); color: #fff; }
.btn-dark:hover { background: var(--ink); }
.btn-sm { padding: 10px 18px; font-size: .85rem; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* Encabezado */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(0,0,0,.94); backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 800; letter-spacing: .02em; }
.brand img { height: 34px; width: auto; }
.brand span b { color: var(--red); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: rgba(255,255,255,.75); text-decoration: none; font-weight: 600; font-size: .9rem; }
.nav a:not(.btn):hover { color: #fff; }
.menu-btn { display: none; background: none; border: 0; color: #fff; font-size: 1.8rem; cursor: pointer; line-height: 1; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% 0%, #3a0709 0%, transparent 60%), #0b0b0b; color: #fff;
  position: relative; overflow: hidden; padding: 72px 0 150px; }
.hero::before { content: ''; position: absolute; inset: 0; opacity: .07;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 48px 48px; mask-image: linear-gradient(to bottom, #000, transparent 85%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--red); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; line-height: 1.1; margin-bottom: 20px; color: #fff; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero p.lead { font-size: 1.1rem; color: rgba(255,255,255,.82); max-width: 540px; margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { margin-top: 28px; color: rgba(255,255,255,.6); font-size: .85rem; display: flex; gap: 18px; flex-wrap: wrap; }

/* Tarjeta visual del hero: flujo de automatización */
.flow { background: #141414; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 26px; box-shadow: 0 30px 60px rgba(0,0,0,.5); position: relative; }
.flow-head { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.flow-head i { width: 10px; height: 10px; border-radius: 50%; background: #333; }
.flow-head i:first-child { background: var(--red); }
.flow-head small { margin-left: auto; color: rgba(255,255,255,.4); font-family: var(--mono); font-size: .72rem; }
.flow-step { display: flex; align-items: center; gap: 14px; background: #1d1d1d; border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; position: relative; }
.flow-step:not(:last-child)::after { content: ''; position: absolute; left: 31px; bottom: -13px; width: 2px; height: 12px; background: var(--red); }
.flow-step .ico { width: 36px; height: 36px; border-radius: 8px; background: rgba(227,27,35,.15); color: var(--red);
  display: grid; place-items: center; font-size: 1.1rem; flex: none; }
.flow-step b { display: block; font-size: .88rem; color: #fff; }
.flow-step span { font-size: .75rem; color: rgba(255,255,255,.55); }
.flow-step .ok { margin-left: auto; color: #22C55E; font-size: .72rem; font-weight: 700; }
.flow-badge { position: absolute; top: -18px; right: -12px; width: 88px; filter: drop-shadow(0 8px 16px rgba(0,0,0,.5)); }

/* Tarjetas flotantes de servicios principales */
.pillars { margin-top: -90px; position: relative; z-index: 5; }
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.pillar { background: #fff; padding: 34px 28px; text-align: center; box-shadow: var(--shadow); border-radius: 4px; }
.pillar:nth-child(2) { transform: translateY(14px); }
.pillar .big { font-size: 2.2rem; color: var(--red); margin-bottom: 8px; }
.pillar h3 { font-size: 1.1rem; margin-bottom: 8px; }
.pillar p { color: var(--gray); font-size: .92rem; margin-bottom: 18px; }

/* Secciones */
section { padding: 88px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; margin-bottom: 12px; }
.section-head p { color: var(--gray); }
.soft { background: var(--bg-soft); }

/* Confianza: clientes y herramientas */
.trust { padding: 70px 0 30px; text-align: center; }
.trust h2 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); font-weight: 800; margin-bottom: 30px; }
.clients { display: flex; justify-content: center; align-items: center; gap: 36px; flex-wrap: wrap; margin-bottom: 14px; }
.client { display: flex; align-items: center; gap: 14px; text-align: left; }
.client .logo { width: 78px; height: 78px; border-radius: 50%; overflow: hidden; flex: none; background: #000; display: grid; place-items: center; box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,.18)); }
.client .logo img { width: 100%; height: 100%; object-fit: cover; }
.client .logo.pad { border-radius: 16px; }
.client .logo.pad img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.client b { display: block; font-size: 1rem; }
.client small { color: var(--gray); font-size: .8rem; }
.more-soon { color: var(--gray); font-size: .85rem; margin-top: 6px; }
.tools { margin-top: 44px; }
.tools-title { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gray); margin-bottom: 18px; }
.tool-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 14px; }
.tool { border: 1px solid var(--border); border-radius: 100px; padding: 8px 18px; font-weight: 700; font-size: .88rem; background: #fff; }

/* Servicios */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--red); }
.card .ico { width: 48px; height: 48px; border-radius: 10px; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 16px; }
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { color: var(--gray); font-size: .93rem; }

/* Propuesta de valor (split) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; line-height: 1.15; margin-bottom: 16px; }
.split p { color: var(--gray); margin-bottom: 24px; }
.checks { display: grid; gap: 14px; }
.check { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px 16px 58px; position: relative; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.check::before { content: '✓'; position: absolute; left: 16px; top: 16px; width: 28px; height: 28px; border-radius: 50%; background: rgba(227,27,35,.1); color: var(--red); font-weight: 800; display: grid; place-items: center; }
.check b { display: block; font-size: .98rem; }
.check span { color: var(--gray); font-size: .88rem; }
.check.hl { background: linear-gradient(135deg, #000, #3a0709); border-color: transparent; }
.check.hl b { color: #fff; } .check.hl span { color: rgba(255,255,255,.75); }
.check.hl::before { background: var(--red); color: #fff; }

/* Proceso */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { padding: 24px; border-top: 3px solid var(--red); background: #fff; border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 2px 10px rgba(0,0,0,.06); counter-increment: s; }
.step::before { content: '0' counter(s); display: block; font-weight: 800; font-size: 1.8rem; color: var(--red); margin-bottom: 6px; }
.step h3 { font-size: 1rem; margin-bottom: 6px; }
.step p { color: var(--gray); font-size: .9rem; }

/* Contacto */
.contact { background: #0b0b0b; color: #fff; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; line-height: 1.15; margin-bottom: 14px; color: #fff; }
.contact .lead { color: rgba(255,255,255,.75); margin-bottom: 28px; }
.who { display: flex; gap: 14px; align-items: center; margin-bottom: 22px; padding: 16px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; }
.who .avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--red); display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; flex: none; }
.who small { color: rgba(255,255,255,.6); display: block; }
.contact-list { list-style: none; display: grid; gap: 12px; color: rgba(255,255,255,.85); font-size: .95rem; }
.contact-list a { text-decoration: none; border-bottom: 1px dashed rgba(255,255,255,.4); }
.form-card { background: #fff; color: var(--ink); border-radius: 16px; padding: 30px; box-shadow: 0 30px 60px rgba(0,0,0,.4); }
.form-card h3 { font-size: 1.25rem; margin-bottom: 4px; }
.form-card .sub { color: var(--gray); font-size: .88rem; margin-bottom: 20px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fg { margin-bottom: 14px; }
.fg label { display: block; font-size: .8rem; font-weight: 700; margin-bottom: 6px; }
.fg input, .fg select, .fg textarea { width: 100%; font: 500 .95rem var(--font); padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--ink); }
.fg input:focus, .fg select:focus, .fg textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(227,27,35,.14); }
.fg textarea { min-height: 110px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .8rem; color: var(--gray); margin-bottom: 16px; }
.consent input { margin-top: 3px; accent-color: var(--red); }
.consent a { color: var(--red); }
.form-card .btn { width: 100%; }
.msg { margin-top: 14px; padding: 12px 14px; border-radius: 8px; font-size: .9rem; display: none; border-left: 4px solid; }
.msg.ok { display: block; background: rgba(34,197,94,.08); border-color: #22C55E; color: #166534; }
.msg.err { display: block; background: rgba(255,68,68,.08); border-color: #FF4444; color: #991b1b; }

/* Pie */
.site-footer { background: #000; color: rgba(255,255,255,.55); padding: 36px 0; font-size: .85rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-footer .tag { color: var(--red); font-weight: 700; letter-spacing: .04em; }
.site-footer a { text-decoration: none; margin-left: 18px; }
.site-footer a:hover { color: #fff; }

/* WhatsApp flotante */
.wa { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.wa svg { width: 30px; height: 30px; fill: #fff; }

/* Página legal */
.legal { max-width: 800px; margin: 0 auto; padding: 56px 20px 80px; }
.legal h1 { font-size: 2rem; font-weight: 800; margin-bottom: 6px; }
.legal .updated { color: var(--gray); font-size: .85rem; margin-bottom: 32px; }
.legal h2 { font-size: 1.2rem; margin: 30px 0 8px; }
.legal p, .legal li { color: #333; margin-bottom: 10px; }
.legal ul { padding-left: 22px; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .flow-badge { right: 8px; }
}
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav { position: absolute; top: 72px; left: 0; right: 0; background: #000; flex-direction: column; padding: 20px; gap: 18px; display: none; border-top: 1px solid rgba(255,255,255,.1); }
  .nav.open { display: flex; }
  .pillars-grid { grid-template-columns: 1fr; gap: 14px; }
  .pillar:nth-child(2) { transform: none; }
  .cards, .steps, .row { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 130px; }
  section { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
