/* =========================================================
   DataNexus Technology Solutions — estilos
   Colores tomados del logo: verde #2AAC75 · azul #21407C
   ========================================================= */
:root {
  --green: #2aac75;
  --green-600: #20925f;
  --teal: #1f8a8a;
  --navy: #21407c;
  --navy-900: #0f1f3d;
  --navy-950: #0a1529;
  --ink: #1f2733;
  --ink-soft: #4a5566;
  --muted: #6b7686;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --grad: linear-gradient(135deg, var(--navy) 0%, var(--teal) 55%, var(--green) 100%);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 31, 61, .06), 0 2px 6px rgba(15, 31, 61, .05);
  --shadow: 0 10px 30px -12px rgba(15, 31, 61, .22);
  --shadow-lg: 0 30px 60px -20px rgba(15, 31, 61, .35);
  --header-h: 76px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 14px;
}
.eyebrow-light { color: #6fe0ad; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: inherit; font-weight: 700; font-size: .95rem;
  padding: .8em 1.4em; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline: 3px solid rgba(42, 172, 117, .5); outline-offset: 2px; }
.btn-lg { padding: 1em 1.7em; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(33, 64, 124, .6); }
.btn-primary:hover { box-shadow: 0 16px 30px -10px rgba(33, 64, 124, .7); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 44px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a:not(.btn) { font-size: .93rem; font-weight: 600; color: var(--ink-soft); position: relative; }
.main-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--green); transition: width .25s; }
.main-nav a:not(.btn):hover, .main-nav a.active { color: var(--navy); }
.main-nav a:not(.btn):hover::after, .main-nav a.active::after { width: 100%; }
.nav-cta { padding: .65em 1.2em; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--navy); cursor: pointer; }
.nav-toggle .icon { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 8vw, 110px) 0 clamp(64px, 9vw, 120px); overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(800px 420px at 85% 10%, rgba(42, 172, 117, .14), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(33, 64, 124, .12), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(33, 64, 124, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(33, 64, 124, .06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--ink-soft); font-size: .92rem; font-weight: 500; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points .icon { color: var(--green); stroke-width: 2.6; }

/* Rack ilustrado */
.hero-visual { position: relative; display: flex; justify-content: center; padding: 30px 0; }
.rack {
  width: min(340px, 80%);
  background: linear-gradient(180deg, #16294d, var(--navy-950));
  border-radius: 18px; padding: 16px 16px 20px;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, .06);
  display: grid; gap: 10px;
}
.rack-top { display: flex; gap: 6px; padding: 2px 4px 6px; }
.rack-top span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.unit {
  height: 44px; border-radius: 8px;
  background: linear-gradient(180deg, #2a3f66, #1d2f52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  display: flex; align-items: center; gap: 8px; padding: 0 14px;
}
.unit i { width: 7px; height: 7px; border-radius: 50%; background: #4d6596; }
.unit i.g { background: var(--green); box-shadow: 0 0 10px var(--green); animation: blink 2.4s infinite; }
.unit i:nth-child(2).g { animation-delay: .6s; }
.unit i:nth-child(3).g { animation-delay: 1.3s; }
.unit b { margin-left: auto; width: 46%; height: 8px; border-radius: 4px; background: repeating-linear-gradient(90deg, #3a5385 0 4px, transparent 4px 8px); }
.unit.tall { height: 82px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 10px; }
.unit.tall em { border-radius: 4px; background: linear-gradient(180deg, #34507f, #273e66); position: relative; }
.unit.tall em::after { content: ""; position: absolute; right: 6px; top: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--green); animation: blink 1.8s infinite; }
.unit.tall em:nth-child(odd)::after { animation-delay: .9s; }
.unit.switch { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; }
.unit.switch s { height: 14px; border-radius: 2px; background: #10203d; border-top: 2px solid #4d6596; }
.unit.switch s:nth-child(3n) { border-top-color: var(--green); }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 14px; padding: 12px 16px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  animation: float 6s ease-in-out infinite;
}
.float-card .icon { width: 36px; height: 36px; padding: 8px; border-radius: 10px; color: #fff; background: var(--grad); }
.float-card strong { display: block; font-size: .88rem; }
.float-card span { display: block; font-size: .76rem; color: var(--muted); }
.fc-1 { left: 0; top: 22%; }
.fc-2 { right: 0; bottom: 14%; animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Secciones ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

/* Tarjetas de soluciones */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; transition: transform .25s, box-shadow .25s, border-color .25s; overflow: hidden;
}
.card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(33, 64, 124, .1), rgba(42, 172, 117, .14)); color: var(--navy);
}
.card-icon .icon { width: 26px; height: 26px; }
.card p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* Por qué nosotros */
.section-dark {
  background: radial-gradient(700px 400px at 100% 0%, rgba(42, 172, 117, .22), transparent 60%), linear-gradient(160deg, var(--navy-900), var(--navy-950));
  color: #c9d4e5;
}
.section-dark h2, .section-dark h3 { color: #fff; }
.why-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.why-copy p { font-size: 1.05rem; margin-bottom: 28px; }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.why-item {
  display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09);
  transition: background .25s, border-color .25s;
}
.why-item:hover { background: rgba(255, 255, 255, .07); border-color: rgba(42, 172, 117, .45); }
.why-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; }
.why-icon .icon { width: 22px; height: 22px; }
.why-item p { margin: 0; font-size: .93rem; }

/* Sectores */
.sectors { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.sector {
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
  padding: 26px 12px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff;
  font-weight: 600; font-size: .93rem; color: var(--ink-soft); transition: transform .25s, box-shadow .25s, color .25s;
}
.sector .icon { width: 34px; height: 34px; color: var(--green-600); }
.sector:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--navy); }

/* Pasos */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.step { position: relative; background: #fff; border-radius: var(--radius-lg); padding: 30px 26px; border: 1px solid var(--line); }
.step-num { display: inline-block; font-size: 2.2rem; font-weight: 800; line-height: 1; margin-bottom: 16px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step p { color: var(--ink-soft); font-size: .94rem; margin: 0; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 48px; right: -18px; width: 14px; height: 14px;
  border-top: 2px solid var(--green); border-right: 2px solid var(--green); transform: rotate(45deg); opacity: .6;
}

/* Banda CTA */
.cta-band { background: var(--grad); color: #fff; padding: 56px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-bottom: .25em; }
.cta-inner p { margin: 0; opacity: .9; }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.contact-info > p { color: var(--ink-soft); font-size: 1.05rem; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 14px; font-weight: 500; }
.contact-list li[hidden] { display: none; }
.contact-list .icon { width: 42px; height: 42px; padding: 10px; border-radius: 12px; color: var(--navy); background: var(--bg-soft); }
.contact-list a:hover { color: var(--green-600); }
.quote-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); display: grid; gap: 18px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.quote-form label { display: grid; gap: 7px; font-size: .86rem; font-weight: 600; color: var(--ink-soft); }
.quote-form input, .quote-form select, .quote-form textarea {
  font: inherit; font-size: .97rem; color: var(--ink); width: 100%;
  padding: 13px 15px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg-soft);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.quote-form textarea { resize: vertical; min-height: 120px; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 4px rgba(42, 172, 117, .15); }
.quote-form .invalid { border-color: #d64545; background: #fff6f6; }
.form-note { margin: 0; font-size: .9rem; min-height: 1.4em; color: var(--muted); }
.form-note.ok { color: var(--green-600); font-weight: 600; }
.form-note.err { color: #c03b3b; font-weight: 600; }

/* Pie */
.site-footer { background: var(--navy-950); color: #9fb0c9; padding: 64px 0 0; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 48px; padding-bottom: 44px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-logo img { height: 40px; width: auto; }
.footer-brand p { max-width: 320px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; letter-spacing: 0; }
.footer-nav { display: grid; gap: 10px; align-content: start; }
.footer-nav a:hover, .site-footer a:hover { color: #fff; }
.contact-list-footer { margin: 0; gap: 12px; }
.contact-list-footer .icon { width: 34px; height: 34px; padding: 8px; color: #6fe0ad; background: rgba(255, 255, 255, .06); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .84rem; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 12px 26px -8px rgba(0, 0, 0, .4);
  transition: transform .2s;
}
.wa-float[hidden] { display: none; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* Animación de entrada */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .main-nav { gap: 20px; }
  .sectors { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
}
@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .brand img { height: 38px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 12px 20px 22px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .main-nav a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 16px; }
  .hero-grid, .why-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { order: -1; max-width: 460px; margin-inline: auto; width: 100%; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .cards-grid, .why-list, .steps, .form-row { grid-template-columns: 1fr; }
  .sectors { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-actions .btn { flex: 1 1 100%; }
  .cta-inner .btn { width: 100%; }
  .section-head { margin-bottom: 36px; }
}

/* =========================================================
   Interactividad: cotización, detalles, clientes, FAQ
   ========================================================= */
[hidden] { display: none !important; }
body.lock { overflow: hidden; }

/* Barra de progreso de lectura */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 70; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; }

/* Franja de confianza en el hero */
.trust { margin-top: 28px; padding-top: 22px; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.trust > span { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.trust ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.trust li { font-size: .85rem; font-weight: 700; color: var(--navy); background: #fff; border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }

/* Tarjetas de soluciones */
.card { cursor: pointer; display: flex; flex-direction: column; }
.card p { flex: 1; }
.card-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.btn-chip, .btn-add { font: inherit; font-size: .84rem; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn-chip { background: none; border: 0; color: var(--navy); padding: 6px 2px; }
.btn-chip:hover { color: var(--green-600); }
.btn-add { padding: 8px 14px; border: 1.5px solid var(--navy); background: #fff; color: var(--navy); }
.btn-add:hover { background: var(--navy); color: #fff; }
.btn-add:active { transform: scale(.95); }
.card.selected { border-color: var(--green); box-shadow: 0 0 0 3px rgba(42, 172, 117, .15); }
.card.selected::before { transform: scaleX(1); }
.card.selected .btn-add { background: var(--green); border-color: var(--green); color: #fff; }
.load-error { grid-column: 1 / -1; text-align: center; color: #c03b3b; font-weight: 600; }

/* Botones de icono */
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink-soft); cursor: pointer; transition: background .2s, color .2s; }
.icon-btn:hover { background: var(--bg-soft); color: var(--navy); }
.icon-btn.sm { width: 32px; height: 32px; border-radius: 8px; }
.icon-btn.sm .icon { width: 16px; height: 16px; }
.icon-btn.danger:hover { color: #c03b3b; background: #fff3f3; }

/* Filas de cantidad (panel y formulario) */
.qty-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.qty-name { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .9rem; color: var(--ink); }
.qty-name .icon { color: var(--green-600); }
.qty-ctl { display: flex; align-items: center; gap: 6px; }
.qty-ctl input { width: 54px; text-align: center; padding: 6px 4px !important; border-radius: 8px !important; font-weight: 700; -moz-appearance: textfield; }
.qty-ctl input::-webkit-outer-spin-button, .qty-ctl input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Botón flotante "Mi cotización" */
.quote-pill {
  position: fixed; left: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 18px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 700; font-size: .93rem; color: #fff; background: var(--grad); box-shadow: 0 14px 30px -10px rgba(15, 31, 61, .55);
}
.quote-pill .badge { min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: #fff; color: var(--navy); display: grid; place-items: center; font-size: .8rem; }
.quote-pill.bump { animation: bump .45s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }

/* Volver arriba */
.to-top { position: fixed; right: 26px; bottom: 92px; z-index: 55; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .25s, transform .25s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }

/* Aviso */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 90; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--navy-950); color: #fff; padding: 12px 20px; border-radius: 12px; font-weight: 600; font-size: .92rem; box-shadow: var(--shadow-lg); transition: opacity .25s, transform .25s; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Capa, panel lateral y ventana */
.overlay { position: fixed; inset: 0; z-index: 80; background: rgba(10, 21, 41, .5); backdrop-filter: blur(3px); opacity: 0; transition: opacity .25s; }
.overlay.show { opacity: 1; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 85; width: min(420px, 100%); background: var(--bg-soft); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s ease; box-shadow: var(--shadow-lg); outline: none; }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; background: #fff; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 22px; }
.drawer-empty { color: var(--ink-soft); }
.drawer-empty a { color: var(--green-600); font-weight: 700; }
.drawer-foot { display: flex; gap: 12px; padding: 18px 22px; background: #fff; border-top: 1px solid var(--line); }
.drawer-foot .btn-primary { flex: 1; }

.modal { position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; padding: 20px; }
.modal-card { position: relative; width: min(560px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; background: #fff; border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow-lg); animation: pop .25s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-close { position: absolute; top: 16px; right: 16px; }
.modal-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; padding-right: 40px; }
.modal-head .card-icon { margin: 0; }
.modal-head .eyebrow { margin-bottom: 4px; }
.modal-head h3 { margin: 0; font-size: 1.35rem; }
.modal-card > p { color: var(--ink-soft); }
.modal-card h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 22px 0 10px; }
.modal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.modal-list li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.modal-list .icon { color: var(--green); stroke-width: 2.6; }
.modal-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: .84rem; font-weight: 600; color: var(--navy); background: var(--bg-soft); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.modal-actions .btn { flex: 1 1 200px; }
#modal-add.done { background: var(--green); }

/* Selector de categorías en el formulario */
.picker { border: 0; margin: 0; padding: 0; min-width: 0; }
.picker legend { padding: 0; margin-bottom: 10px; font-size: .86rem; font-weight: 600; color: var(--ink-soft); }
.picker legend span, .picker-title span { font-weight: 500; color: var(--muted); }
.picker-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: .84rem; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg-soft); color: var(--ink-soft); cursor: pointer; transition: all .2s; }
.chip .icon { width: 16px; height: 16px; }
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.picker-list { margin-top: 16px; }
.picker-title { margin: 0 0 10px; font-size: .86rem; font-weight: 600; color: var(--ink-soft); }

/* Clientes */
.marquee { overflow: hidden; padding: 22px 0; margin-bottom: 44px; border-block: 1px solid var(--line); background: var(--bg-soft); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; align-items: center; width: max-content; gap: 72px; animation: marquee 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.clients-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.client { grid-column: span 2; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.client.featured { grid-column: span 3; }
.client:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.client-media { height: 160px; display: grid; place-items: center; padding: 22px 28px; background: #fff; border-bottom: 1px solid var(--line); position: relative; }
.client-media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.client:hover .client-media::after { transform: scaleX(1); }
.client-logo { max-height: 116px; max-width: min(210px, 100%); width: auto; height: auto; object-fit: contain; transition: transform .3s; }
.client:hover .client-logo { transform: scale(1.04); }
.client.featured .client-media { height: 160px; }
.client.featured .client-logo { max-height: 104px; max-width: min(270px, 100%); }
.client-mono { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; font-size: 1.2rem; }
.client-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.client-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.badge-rel, .badge-sec { font-size: .72rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; letter-spacing: .02em; }
.badge-rel { background: rgba(42, 172, 117, .12); color: var(--green-600); }
.badge-sec { background: rgba(33, 64, 124, .08); color: var(--navy); }
.client-body h3 { margin: 0 0 6px; font-size: 1.15rem; }
.client-tag { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.client-tag .icon { width: 14px; height: 14px; color: var(--green-600); }
.client-body > p { color: var(--ink-soft); font-size: .93rem; margin: 6px 0 0; }
.client-sub { margin: 18px 0 10px !important; font-size: .72rem !important; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted) !important; }
.client-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.client.featured .client-list { grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.client-list li { display: flex; align-items: flex-start; gap: 8px; font-size: .88rem; font-weight: 500; color: var(--ink); line-height: 1.4; }
.client-list .icon { width: 16px; height: 16px; margin-top: 1px; color: var(--green); stroke-width: 2.6; }
.client-quote { margin: 16px 0 0; padding: 14px 16px; border-radius: 12px; background: var(--bg-soft); font-style: italic; color: var(--ink); font-size: .92rem; }
.client-quote .icon { display: block; color: var(--green); margin-bottom: 6px; }
.marquee-item { display: grid; place-items: center; height: 70px; }
.marquee-logo { height: 62px; width: auto; max-width: 160px; object-fit: contain; filter: grayscale(1); opacity: .55; transition: filter .25s, opacity .25s; }
.marquee-item:hover .marquee-logo { filter: none; opacity: 1; }
.clients-cta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 22px; margin-top: 40px; }
.clients-cta p { margin: 0; font-weight: 700; font-size: 1.05rem; }

/* Preguntas frecuentes */
.faq-wrap { max-width: 820px; }
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: rgba(42, 172, 117, .5); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); color: var(--navy); font-size: 1.2rem; font-weight: 600; transition: transform .25s, background .25s, color .25s; }
.faq details[open] summary::after { content: "–"; background: var(--green); color: #fff; }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--ink-soft); }

@media (max-width: 1080px) { .clients-grid { grid-template-columns: repeat(2, 1fr); } .client, .client.featured { grid-column: span 1; } .client.featured .client-list { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .clients-grid { grid-template-columns: 1fr; }
  .client-media, .client.featured .client-media { height: 140px; }
  .client-logo, .client.featured .client-logo { max-height: 100px; }
  .quote-pill { left: 16px; bottom: 16px; padding: 12px 16px; }
  .wa-float { right: 16px; bottom: 16px; }
  .to-top { right: 22px; bottom: 84px; }
  .qty-row { flex-wrap: wrap; }
  .drawer-foot { flex-direction: column-reverse; }
}
