
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #38bdf8;
  --primary-strong: #2563eb;
  --brand-deep: #0b5f87;
  --navy: #0f172a;
  --navy-2: #111c33;
  --text: #334155;
  --muted: #64748b;
  --surface: #ffffff;
  --surface-soft: #f5f7fa;
  --border: #e2e8f0;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --whatsapp: #25d366;
  --radius: 12px;
  --radius-lg: 24px;
  --shadow: 0 18px 55px rgba(15, 23, 42, .10);
  --shadow-soft: 0 10px 28px rgba(15, 23, 42, .07);
  --container: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid rgba(56,189,248,.45); outline-offset: 3px; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 78px 0; scroll-margin-top: 84px; }
.section-soft { background: var(--surface-soft); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--primary-strong); font-weight: 800; font-size: 13px;
  letter-spacing: .12em; text-transform: uppercase;
}
.eyebrow::before { content:""; width: 28px; height: 3px; border-radius: 99px; background: linear-gradient(90deg,var(--primary),var(--primary-strong)); }
.section-head { max-width: 770px; margin-bottom: 44px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .eyebrow { justify-content: center; }
h1,h2,h3,h4 { margin: 0; color: var(--navy); line-height: 1.12; letter-spacing: -.035em; }
h1 { font-size: clamp(39px, 5.1vw, 64px); font-weight: 800; }
h2 { font-size: clamp(29px, 3.35vw, 44px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 750; }
p { margin: 0; }
.lead { font-size: clamp(16px, 1.55vw, 19px); color: var(--muted); line-height: 1.7; }
.sublead { margin-top: 15px; color: var(--muted); font-size: 16px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 20px; border-radius: var(--radius);
  border: 1px solid transparent; font-weight: 750; font-size: 14px; white-space: nowrap; transition: .22s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: linear-gradient(135deg,var(--primary),var(--primary-strong)); box-shadow: 0 12px 26px rgba(37,99,235,.24); }
.btn-primary:hover { box-shadow: 0 16px 36px rgba(37,99,235,.32); }
.btn-secondary { background: #fff; color: var(--navy); border-color: var(--border); box-shadow: var(--shadow-soft); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; box-shadow: 0 13px 28px rgba(37,211,102,.25); }
.btn-link { padding-inline: 0; color: var(--primary-strong); min-height: auto; }
.icon { width: 19px; height: 19px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px;
  border-radius: 999px; background: #e0f2fe; color: #0369a1; font-weight: 750; font-size: 13px;
}
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 9999; background:#fff; padding:12px 16px; border-radius:8px; }
.skip-link:focus { top: 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.9); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226,232,240,.82);
}
.site-header .container { width: min(calc(100% - 32px), 1380px); }
.navbar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.brand { flex: 0 0 auto; }
.brand img { width: 188px; height: auto; }
.nav-links { display: flex; flex: 1 1 auto; align-items: center; justify-content: center; gap: clamp(12px, 1.35vw, 20px); min-width: 0; }
.nav-links a { font-size: 13px; font-weight: 700; color: #334155; white-space: nowrap; }
.nav-links a:hover { color: var(--primary-strong); }
.nav-actions { display:flex; align-items:center; gap:9px; flex:0 0 auto; }
.lang-switch {
  flex:0 0 auto;
  display:flex; padding:4px; border:1px solid var(--border); background:#fff; border-radius:10px;
}
.lang-switch a { min-width:34px; padding:6px 7px; border-radius:7px; font-size:12px; font-weight:800; text-align:center; }
.lang-switch .active { color:#fff; background:var(--navy); }
.site-header .btn-primary { min-width: 154px; }
.menu-toggle { display:none; width:46px; height:46px; border:1px solid var(--border); border-radius:12px; background:#fff; align-items:center; justify-content:center; }

/* Hero */
.hero {
  position: relative; overflow: hidden; padding: 64px 0 54px;
  background:
    radial-gradient(circle at 12% 20%, rgba(56,189,248,.12), transparent 32%),
    radial-gradient(circle at 88% 28%, rgba(37,99,235,.11), transparent 30%),
    linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}
.hero::before {
  content:""; position:absolute; inset:auto -160px -330px auto; width:620px; height:620px;
  border:1px solid rgba(56,189,248,.18); border-radius:50%; box-shadow:0 0 0 70px rgba(56,189,248,.035),0 0 0 140px rgba(37,99,235,.025);
}
.hero-grid { display:grid; grid-template-columns: 1.03fr .97fr; gap:48px; align-items:center; }
.hero-copy .badge { margin-bottom:22px; }
.hero-copy h1 span { background: linear-gradient(120deg,var(--brand-deep),var(--primary-strong),var(--primary)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.hero-copy .lead { margin-top:21px; max-width:650px; }
.hero-actions { display:flex; flex-wrap:wrap; gap:11px; margin-top:25px; }
.hero-note { display:flex; flex-wrap:wrap; gap:18px; margin-top:22px; color:var(--muted); font-size:14px; font-weight:650; }
.hero-note span { display:inline-flex; align-items:center; gap:8px; }
.hero-note i { width:9px; height:9px; border-radius:50%; background:var(--success); box-shadow:0 0 0 5px rgba(16,185,129,.12); }
.hero-visual { position:relative; }
.hero-visual > img { width:100%; height:auto; border-radius:24px; box-shadow:0 24px 62px rgba(15,23,42,.17); }
.floating-card {
  position:absolute; background:rgba(255,255,255,.95); border:1px solid rgba(226,232,240,.8);
  border-radius:16px; box-shadow:var(--shadow); padding:15px 17px; min-width:190px;
  display:flex; align-items:center; gap:12px;
}
.floating-card strong { display:block; color:var(--navy); font-size:14px; }
.floating-card small { color:var(--muted); font-size:12px; }
.floating-card .bubble { width:42px; height:42px; border-radius:13px; display:grid; place-items:center; background:#e0f2fe; color:var(--primary-strong); }
.fc-one { left:-32px; bottom:72px; }
.fc-two { right:-25px; top:52px; }

/* Trust metrics */
.metrics { margin-top:-1px; background:var(--navy); color:#fff; }
.metric-grid { display:grid; grid-template-columns:repeat(4,1fr); }
.metric { padding:25px 22px; border-right:1px solid rgba(255,255,255,.1); }
.metric:last-child { border-right:0; }
.metric strong { display:block; font-size:24px; line-height:1; color:#fff; margin-bottom:8px; }
.metric span { font-size:13px; color:#cbd5e1; }

/* Service cards */
.services-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.service-card {
  border:1px solid var(--border); border-radius:20px; overflow:hidden; background:#fff;
  box-shadow:var(--shadow-soft); display:flex; flex-direction:column; transition:.25s ease;
}
.service-card:hover { transform:translateY(-7px); box-shadow:var(--shadow); border-color:#bae6fd; }
.service-media { aspect-ratio:16/9; overflow:hidden; background:var(--navy); }
.service-media img { width:100%; height:100%; object-fit:cover; transition:.45s ease; }
.service-card:hover .service-media img { transform:scale(1.035); }
.service-body { padding:21px; display:flex; flex:1; flex-direction:column; }
.service-body p { margin-top:9px; color:var(--muted); font-size:14px; }
.service-body ul { margin:16px 0 20px; padding:0; list-style:none; display:grid; gap:8px; }
.service-body li { display:flex; gap:9px; font-size:13px; color:#475569; }
.service-body li::before { content:"✓"; color:var(--success); font-weight:900; }
.service-body .btn-link { margin-top:auto; justify-content:flex-start; font-size:14px; }

/* Feature split */
.split {
  display:grid; grid-template-columns:.92fr 1.08fr; gap:0; align-items:stretch;
  border:1px solid var(--border); border-radius:28px; overflow:hidden;
  background:#fff; box-shadow:var(--shadow);
}
.split.reverse { grid-template-columns:1.08fr .92fr; }
.split.reverse .split-media { order:2; }
.split-media {
  position:relative; min-width:0; display:flex; align-items:stretch;
  background:linear-gradient(145deg,#eff6ff,#e0f2fe);
}
.split-media img {
  width:100%; height:100%; min-height:420px; object-fit:cover;
  border-radius:0; box-shadow:none;
}
.split-copy {
  min-width:0; padding:46px 48px; display:flex; flex-direction:column; justify-content:center;
}
.split-copy h2 { margin-top:10px; }
.split-copy .lead { margin-top:18px; }
.check-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px 18px; margin-top:23px; }
.check-item { display:flex; gap:11px; align-items:flex-start; color:#475569; font-size:14px; }
.check-icon { flex:0 0 23px; width:23px; height:23px; border-radius:50%; display:grid; place-items:center; background:#dcfce7; color:#047857; font-weight:900; font-size:13px; }
.split-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:25px; }

/* Use cases */
.use-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.use-card { padding:24px; border-radius:18px; background:#fff; border:1px solid var(--border); }
.use-icon { width:46px; height:46px; display:grid; place-items:center; border-radius:14px; background:#e0f2fe; color:var(--primary-strong); margin-bottom:18px; }
.use-card p { color:var(--muted); font-size:14px; margin-top:9px; }

/* Coming soon */
.coming {
  position:relative; overflow:hidden; border-radius:28px; padding:46px;
  color:#fff; background:
    radial-gradient(circle at 90% 20%, rgba(56,189,248,.32), transparent 32%),
    linear-gradient(135deg,#0f172a,#0b5f87 58%,#2563eb);
}
.coming-grid { display:grid; grid-template-columns:1.03fr .97fr; gap:36px; align-items:center; }
.coming h2 { color:#fff; margin-top:13px; }
.coming .lead { color:#dbeafe; margin-top:16px; }
.coming img { width:100%; height:auto; border-radius:20px; border:1px solid rgba(255,255,255,.13); box-shadow:0 24px 56px rgba(2,6,23,.30); }
.coming .badge { background:rgba(255,255,255,.12); color:#dbeafe; border:1px solid rgba(255,255,255,.16); }

/* Process */
.process { display:grid; grid-template-columns:repeat(5,1fr); gap:14px; counter-reset:step; }
.process-card { position:relative; padding:21px 18px; border:1px solid var(--border); border-radius:18px; background:#fff; }
.process-card::before { counter-increment:step; content:"0" counter(step); display:block; color:var(--primary-strong); font-weight:900; font-size:13px; margin-bottom:34px; }
.process-card:not(:last-child)::after { content:""; position:absolute; top:31px; right:-15px; width:28px; height:2px; background:#bae6fd; z-index:2; }
.process-card p { font-size:13px; color:var(--muted); margin-top:8px; }

/* Brands */
.brand-cloud { display:flex; flex-wrap:wrap; justify-content:center; gap:12px; }
.brand-chip {
  padding:12px 17px; background:#fff; border:1px solid var(--border); border-radius:12px;
  font-weight:750; color:#475569; box-shadow:0 5px 14px rgba(15,23,42,.04);
}

/* FAQ */
.faq-list { max-width:900px; margin-inline:auto; display:grid; gap:12px; }
.faq-item { border:1px solid var(--border); border-radius:15px; background:#fff; overflow:hidden; }
.faq-question {
  width:100%; display:flex; justify-content:space-between; align-items:center; text-align:left;
  padding:18px 20px; border:0; background:#fff; color:var(--navy); font-weight:750;
}
.faq-question span:last-child { font-size:24px; color:var(--primary-strong); transition:.2s; }
.faq-answer { max-height:0; overflow:hidden; transition:max-height .3s ease; }
.faq-answer p { padding:0 20px 19px; color:var(--muted); }
.faq-item.open .faq-answer { max-height:260px; }
.faq-item.open .faq-question span:last-child { transform:rotate(45deg); }

/* Contact */
.contact-wrap { display:grid; grid-template-columns:.85fr 1.15fr; border-radius:28px; overflow:hidden; box-shadow:var(--shadow); border:1px solid var(--border); }
.contact-info { padding:42px; color:#fff; background:linear-gradient(145deg,var(--navy),var(--brand-deep)); }
.contact-info h2 { color:#fff; }
.contact-info .lead { color:#dbeafe; margin-top:18px; }
.contact-list { display:grid; gap:15px; margin-top:32px; }
.contact-row { display:flex; gap:13px; align-items:flex-start; color:#e2e8f0; font-size:14px; }
.contact-row .bubble { width:38px; height:38px; flex:0 0 38px; border-radius:11px; display:grid; place-items:center; background:rgba(255,255,255,.11); }
.contact-form { padding:42px; background:#fff; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:15px; }
.field { display:grid; gap:7px; }
.field.full { grid-column:1/-1; }
.field label { font-size:13px; font-weight:750; color:#334155; }
.field input,.field select,.field textarea {
  width:100%; border:1px solid #cbd5e1; border-radius:11px; padding:13px 14px; color:var(--navy); background:#fff;
}
.field textarea { resize:vertical; min-height:120px; }
.consent { display:flex; gap:10px; align-items:flex-start; font-size:12px; color:var(--muted); margin:18px 0; }
.consent input { margin-top:4px; }

/* Footer */
.site-footer { background:#09111f; color:#cbd5e1; padding:54px 0 22px; }
.footer-grid { display:grid; grid-template-columns:1.4fr .8fr .8fr 1fr; gap:44px; }
.footer-brand img { width:210px; }
.footer-brand p { margin-top:18px; max-width:390px; font-size:14px; color:#94a3b8; }
.footer-col h4 { color:#fff; font-size:15px; letter-spacing:0; margin-bottom:17px; }
.footer-links { display:grid; gap:10px; font-size:13px; }
.footer-links a:hover { color:#7dd3fc; }
.footer-bottom { display:flex; justify-content:space-between; gap:20px; border-top:1px solid rgba(255,255,255,.1); padding-top:22px; margin-top:42px; font-size:12px; color:#64748b; }

/* WhatsApp floating */
.wa-float {
  position:fixed; z-index:999; right:24px; bottom:24px; display:flex; align-items:center; gap:10px;
  background:var(--whatsapp); color:#fff; border-radius:999px; padding:13px 18px; font-weight:800;
  box-shadow:0 18px 45px rgba(37,211,102,.35); transition:.2s ease;
}
.wa-float:hover { transform:translateY(-3px) scale(1.02); }

/* Cookie */
.cookie-banner {
  position:fixed; z-index:2000; left:20px; right:20px; bottom:20px; max-width:780px; margin-inline:auto;
  display:none; align-items:center; gap:24px; padding:20px; border-radius:18px;
  background:#fff; border:1px solid var(--border); box-shadow:0 25px 80px rgba(15,23,42,.25);
}
.cookie-banner.show { display:flex; }
.cookie-banner p { font-size:13px; color:var(--muted); }
.cookie-actions { display:flex; flex:0 0 auto; gap:9px; }

/* Privacy page */
.legal { padding:80px 0; }
.legal article { max-width:850px; margin:auto; }
.legal h1 { font-size:46px; }
.legal h2 { font-size:25px; margin-top:38px; }
.legal p,.legal li { color:var(--text); }
.legal p { margin-top:15px; }
.legal ul { padding-left:22px; }

/* Responsive */
@media (max-width: 1180px) {
  .nav-links { display:none; }
  .menu-toggle { display:flex; }
  .mobile-menu {
    position:fixed; z-index:1100; inset:78px 0 auto 0; background:#fff; border-bottom:1px solid var(--border);
    padding:24px 20px 30px; transform:translateY(-140%); transition:.26s ease; box-shadow:var(--shadow);
  }
  .mobile-menu.open { transform:translateY(0); }
  .mobile-menu nav { display:grid; gap:7px; }
  .mobile-menu nav a { padding:12px; border-radius:10px; font-weight:700; }
  .mobile-menu nav a:hover { background:#eff6ff; color:var(--primary-strong); }
  .hero-grid,.split,.coming-grid,.contact-wrap { grid-template-columns:1fr; }
  .hero-visual { max-width:720px; margin-inline:auto; }
  .split.reverse .split-media { order:initial; }
  .split-media img { min-height:330px; max-height:390px; }
  .split-copy { padding:38px; }
  .services-grid { grid-template-columns:repeat(2,1fr); }
  .use-grid { grid-template-columns:repeat(2,1fr); }
  .process { grid-template-columns:repeat(3,1fr); }
  .process-card::after { display:none; }
  .footer-grid { grid-template-columns:1.2fr 1fr 1fr; }
  .footer-brand { grid-column:1/-1; }
}
@media (min-width:1181px) { .mobile-menu { display:none; } }

@media (max-width: 760px) {
  .container { width:min(calc(100% - 28px), var(--container)); }
  .section { padding:60px 0; }
  .navbar { min-height:68px; }
  .brand img { width:168px; }
  .nav-actions .btn { display:none; }
  .hero { padding-top:48px; }
  .hero-grid { gap:42px; }
  .hero-actions { display:grid; grid-template-columns:1fr; }
  .hero-actions .btn { width:100%; }
  .floating-card { display:none; }
  .metric-grid { grid-template-columns:1fr 1fr; }
  .metric:nth-child(2) { border-right:0; }
  .metric:nth-child(-n+2) { border-bottom:1px solid rgba(255,255,255,.1); }
  .services-grid,.use-grid { grid-template-columns:1fr; }
  .check-grid { grid-template-columns:1fr; }
  .coming { padding:32px 22px; }
  .process { grid-template-columns:1fr; }
  .form-grid { grid-template-columns:1fr; }
  .contact-info,.contact-form { padding:32px 23px; }
  .split-copy { padding:32px 23px; }
  .split-media img { min-height:250px; max-height:320px; }
  .footer-grid { grid-template-columns:1fr 1fr; gap:32px 20px; }
  .footer-brand { grid-column:1/-1; }
  .footer-bottom { flex-direction:column; }
  .cookie-banner { align-items:flex-start; flex-direction:column; }
  .cookie-actions { width:100%; }
  .cookie-actions .btn { flex:1; padding-inline:12px; font-size:12px; }
  .wa-float span { display:none; }
  .wa-float { width:58px; height:58px; padding:0; justify-content:center; }
}
@media (max-width: 440px) {
  h1 { font-size:37px; }
  .metric { padding:24px 16px; }
  .metric strong { font-size:23px; }
  .footer-grid { grid-template-columns:1fr; }
}


/* =========================================================
   HOTFIX RESPONSIVE V2.1
   Fuerza en tablet y móvil la secuencia:
   1. Imagen
   2. Contenido
   Evita que .split.reverse conserve el orden de escritorio.
   ========================================================= */
@media (max-width: 1180px) {
  .split,
  .split.reverse {
    grid-template-columns: 1fr;
  }

  .split > .split-media,
  .split.reverse > .split-media {
    order: -1 !important;
    grid-column: 1;
    grid-row: 1;
  }

  .split > .split-copy,
  .split.reverse > .split-copy {
    order: 0 !important;
    grid-column: 1;
    grid-row: 2;
  }
}
