/* ===== Landing pages de servicios e industrias ===== */
:root {
  --brand: #074d7e;
  --brand-2: #0a6bab;
  --ink: #1a202c;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --soft: #e6f1fa;
  --wa: #25d366;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Nunito', system-ui, sans-serif; color: var(--text); background: #fff; line-height: 1.7; font-size: 1rem; }
img { max-width: 100%; height: auto; }
a { color: var(--brand-2); }
h1, h2, h3 { color: var(--ink); line-height: 1.25; margin: 0; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header */
.lp-header { position: sticky; top: 0; z-index: 50; background: var(--brand); box-shadow: 0 2px 12px rgba(0,0,0,.12); }
.lp-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.lp-logo img { display: block; height: 40px; width: auto; }
.lp-nav { display: flex; align-items: center; gap: 22px; }
.lp-nav a { color: #fff; text-decoration: none; font-weight: 700; font-size: .95rem; opacity: .9; }
.lp-nav a:hover { opacity: 1; text-decoration: underline; }
.lp-nav .btn { opacity: 1; text-decoration: none; }
.lp-nav .btn-primary { color: var(--brand); }
@media (max-width: 760px) { .lp-nav .lp-nav-link { display: none; } }

/* Selector de idioma (banderas MX / US) */
.lang-switch { display: inline-flex; align-items: center; gap: 6px; }
.lang-switch .lang-link { display: inline-flex; padding: 3px; border: 2px solid transparent; border-radius: 6px; opacity: .6; line-height: 0; transition: opacity .2s ease, border-color .2s ease; }
.lang-switch .lang-link img { display: block; width: 24px; height: 16px; border-radius: 3px; }
.lang-switch .lang-link:hover, .lang-switch .lang-link:focus-visible { opacity: 1; }
.lang-switch .lang-link.is-active { opacity: 1; border-color: rgba(255,255,255,.85); }
.lang-switch .lang-link:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 480px) {
  .lp-logo img { height: 30px; }
  .lp-nav { gap: 10px; }
  .lp-nav .btn-sm { padding: 7px 12px; font-size: .85rem; }
  .lang-switch { gap: 4px; }
  .lang-switch .lang-link { padding: 2px; }
}
@media (max-width: 360px) {
  .lp-logo img { height: 26px; }
  .lp-nav { gap: 8px; }
  .lang-switch .lang-link img { width: 22px; height: 15px; }
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 50px; font-weight: 800; font-size: .98rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: #fff; color: var(--brand); box-shadow: 0 8px 22px rgba(0,0,0,.15); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 8px 22px rgba(37,211,102,.3); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-solid { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%); color: #fff; box-shadow: 0 8px 22px rgba(7,77,126,.25); }
.btn-sm { padding: 8px 18px; font-size: .9rem; }

/* Hero */
.lp-hero { background: linear-gradient(135deg, #063d64 0%, var(--brand) 45%, var(--brand-2) 100%); color: #dbe9f5; padding: 28px 0 72px; position: relative; overflow: hidden; }
.lp-hero::after { content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: rgba(255,255,255,.06); }
.crumbs { font-size: .85rem; margin: 0 0 36px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: '›'; margin-right: 6px; opacity: .7; }
.crumbs a { color: #fff; }
.lp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; position: relative; z-index: 1; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; background: rgba(255,255,255,.14); color: #fff; padding: 6px 14px; border-radius: 30px; margin-bottom: 18px; }
.lp-hero h1 { color: #fff; font-size: clamp(1.9rem, 4.2vw, 2.9rem); font-weight: 900; margin-bottom: 18px; }
.lp-hero .lead { font-size: 1.12rem; margin: 0 0 28px; max-width: 620px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 28px 0 0; padding: 0; list-style: none; font-size: .9rem; font-weight: 700; color: #fff; }
.trust i { color: #8fd3ff; margin-right: 6px; }
.hero-card { background: #fff; color: var(--text); border-radius: 20px; padding: 28px; box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.hero-card-title { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); margin: 0 0 16px; }
.hero-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.hero-card li { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; color: var(--ink); line-height: 1.45; }
.hero-card li i { flex: 0 0 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--soft); color: var(--brand-2); }

/* Secciones */
.section { padding: 80px 0; }
.section.alt { background: var(--bg); }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 900; margin-bottom: 12px; }
.section-head p { margin: 0; color: var(--muted); font-size: 1.05rem; }

/* Problemas */
.pains { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 920px; margin: 0 auto; padding: 0; list-style: none; }
.pains li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; font-weight: 600; color: var(--ink); }
.pains li i { color: #d9822b; margin-top: 4px; }

/* Funciones */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px; transition: transform .3s ease, box-shadow .3s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(7,77,126,.08); }
.feature-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%); color: #fff; font-size: 1.15rem; margin-bottom: 16px; }
.feature h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.65; }

/* Proceso */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px 20px; counter-increment: step; }
.steps li::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--soft); color: var(--brand); font-weight: 900; margin-bottom: 14px; }
.steps h3 { font-size: 1rem; font-weight: 800; margin-bottom: 6px; }
.steps p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.6; }

/* Casos */
.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.case { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand-2); border-radius: 14px; padding: 24px; }
.case-sector { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: var(--brand-2); margin: 0 0 6px; }
.case h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }
.case p { margin: 0; font-size: .95rem; color: var(--muted); }

/* Tecnologías */
.tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tools li { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 30px; padding: 8px 16px; font-weight: 700; font-size: .92rem; color: var(--ink); }
.tools li i { color: var(--brand-2); }
.tools-note { text-align: center; color: var(--muted); font-size: .95rem; margin: 22px auto 0; max-width: 620px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; }
.faq details[open] { border-color: #c9d8e8; box-shadow: 0 10px 28px rgba(7,77,126,.07); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.5rem; font-weight: 700; color: var(--brand-2); line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq summary h3 { font-size: 1.02rem; font-weight: 800; }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* Relacionados */
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.related a { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-decoration: none; color: var(--ink); font-weight: 800; transition: border-color .2s ease, transform .2s ease; }
.related a:hover { border-color: var(--brand-2); transform: translateY(-2px); }
.related a i { color: var(--brand-2); width: 20px; text-align: center; }

/* CTA final */
.cta-band { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%); color: #dbe9f5; text-align: center; padding: 72px 0; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 900; margin-bottom: 12px; }
.cta-band p { max-width: 620px; margin: 0 auto 28px; font-size: 1.05rem; }
.cta-band .cta-row { justify-content: center; }

/* Footer */
.lp-footer { background: #0b2238; color: #a9bccd; padding: 56px 0 24px; font-size: .93rem; }
.lp-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.lp-footer h2 { color: #fff; font-size: .95rem; font-weight: 800; margin-bottom: 14px; }
.lp-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lp-footer a { color: #d5e3ef; text-decoration: none; }
.lp-footer a:hover { color: #fff; text-decoration: underline; }
.lp-footer .logo img { height: 36px; width: auto; margin-bottom: 12px; }
.lp-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.9rem; z-index: 60; box-shadow: 0 10px 24px rgba(37,211,102,.35); text-decoration: none; }
.wa-float:hover { color: #fff; transform: translateY(-2px); }

/* ===== Página Nosotros ===== */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.split h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 900; margin-bottom: 16px; }
.split p { margin: 0 0 14px; font-size: 1.05rem; }
.quote { background: var(--soft); border-left: 5px solid var(--brand-2); border-radius: 16px; padding: 28px 30px; font-size: 1.25rem; font-weight: 800; color: var(--brand); line-height: 1.5; margin: 0; }
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; position: relative; }
.timeline::before { content: ''; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: #cfe0ef; }
.timeline li { position: relative; padding: 0 0 30px 60px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ''; position: absolute; left: 10px; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--brand-2); }
.timeline .when { font-size: .8rem; font-weight: 900; letter-spacing: .6px; text-transform: uppercase; color: var(--brand-2); margin: 0 0 4px; }
.timeline h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 6px; }
.timeline p { margin: 0; color: var(--muted); }
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 44px; margin: 0 0 44px; padding: 0; list-style: none; }
.logos img { height: 56px; width: auto; max-width: 160px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s ease, opacity .3s ease; }
.logos img:hover { filter: none; opacity: 1; }
@media (max-width: 991px) { .split { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
@media (max-width: 640px) { .logos img { height: 44px; } .quote { font-size: 1.1rem; padding: 22px; } }

/* Responsive */
@media (max-width: 991px) {
  .lp-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .pains, .features, .steps { grid-template-columns: minmax(0, 1fr); }
  .lp-footer-grid { grid-template-columns: minmax(0, 1fr); }
  .cta-row .btn { width: 100%; }
  .hero-card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .feature, .related a { transition: none; }
}
