/* ===== Profesionales Cloud ===== */
:root {
  --blue-900: #071B3F;
  --blue-800: #0B2A5E;
  --blue-700: #0A4FD1;
  --blue-600: #1666F0;
  --blue-500: #2F8CFF;
  --sky-300: #7CC4FF;
  --sky-100: #E8F3FF;
  --ink: #0E1B2E;
  --muted: #54627A;
  --line: #DCE5F2;
  --bg: #FFFFFF;
  --bg-alt: #F4F8FD;
  --red: #E0312C;
  --teal: #0FA3A3;
  --radius: 16px;
  --shadow: 0 10px 30px -12px rgba(10, 40, 100, .25);
  --maxw: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-700); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: .8em;
}
.grad {
  background: linear-gradient(90deg, var(--blue-500), var(--sky-300));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ===== Botones ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.5em; border-radius: 999px; border: 2px solid transparent;
  background: var(--blue-700); color: #fff; font-weight: 700; font-size: 1rem;
  text-decoration: none; cursor: pointer; font-family: inherit;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  box-shadow: 0 8px 20px -8px rgba(10, 79, 209, .6);
}
.btn:hover { background: var(--blue-600); transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--sky-300); outline-offset: 2px; }
.btn--sm { padding: .55em 1.1em; font-size: .92rem; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); box-shadow: none; }
.btn--ghost:hover { background: rgba(255,255,255,.1); }
.btn--light { background: #fff; color: var(--blue-700); }
.btn--light:hover { background: var(--sky-100); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: .6em; text-decoration: none; color: var(--ink); font-size: 1.15rem; }
.brand strong { color: var(--blue-700); }
.brand--light { color: #fff; }
.brand--light strong { color: var(--sky-300); }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--blue-700); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* ===== Hero ===== */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--blue-900); }
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(47,140,255,.45), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(22,102,240,.35), transparent 60%),
    linear-gradient(160deg, var(--blue-900), var(--blue-800));
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent);
}
.hero__inner {
  position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px;
  align-items: center; padding-top: 96px; padding-bottom: 110px;
}
.hero .eyebrow { color: var(--sky-300); }
.lead { font-size: 1.15rem; color: #C9D8F2; max-width: 36em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.hero__checks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: #C9D8F2; font-size: .95rem; }
.hero__checks li::before { content: "✓"; color: var(--sky-300); font-weight: 800; margin-right: .45em; }

.stack { display: grid; gap: 14px; }
.stack__card {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: 14px; padding: 16px 18px; backdrop-filter: blur(6px);
  animation: float 6s ease-in-out infinite;
}
.stack__card b { display: block; }
.stack__card small { color: #B6C8E8; }
.stack__card--b { margin-left: 32px; animation-delay: -1.5s; }
.stack__card--c { margin-left: 8px; animation-delay: -3s; }
.stack__card--d { margin-left: 40px; animation-delay: -4.5s; }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; box-shadow: 0 0 0 5px rgba(255,255,255,.08); }
.dot--blue { background: var(--blue-500); }
.dot--sky { background: var(--sky-300); }
.dot--red { background: var(--red); }
.dot--teal { background: var(--teal); }
@keyframes float { 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .stack__card { animation: none; } html { scroll-behavior: auto; } }

/* ===== Secciones ===== */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section__head p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }

.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 1.6em; margin: .45em 0; color: var(--muted); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 1em; height: 1em; border-radius: 50%;
  background: var(--sky-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230A4FD1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat;
}

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.pillar > p { color: var(--muted); }
.icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
}
.icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.vendors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.vendor {
  background: #fff; border-radius: var(--radius); padding: 32px; border: 1px solid var(--line);
  border-top: 5px solid var(--c, var(--blue-700));
}
.vendor--ms { --c: var(--blue-600); }
.vendor--fn { --c: var(--red); }
.vendor--ac { --c: var(--teal); }
.vendor__tag {
  display: inline-block; font-weight: 800; font-size: .85rem; letter-spacing: .04em;
  color: var(--c); background: color-mix(in srgb, var(--c) 10%, #fff);
  padding: .3em .8em; border-radius: 999px; margin-bottom: 14px;
}

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.steps li { position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--bg-alt); }
.steps li p { color: var(--muted); margin: 0; }
.steps__n {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue-700); color: #fff; font-weight: 800; margin-bottom: 16px;
}

.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 900px; margin: 0 auto; }
.partner {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 20px; text-align: center;
}
.partner__name { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; color: var(--blue-900); }
.partner__level { color: var(--muted); font-size: .92rem; }

/* ===== CTA ===== */
.cta { background: linear-gradient(120deg, var(--blue-700), var(--blue-500)); color: #fff; padding: 64px 0; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { margin-bottom: .25em; }
.cta p { margin: 0; color: #DCEBFF; }

/* ===== Contacto ===== */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact__info > p { color: var(--muted); }
.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; }
.contact__list svg {
  width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: var(--sky-100);
  fill: none; stroke: var(--blue-700); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none;
}
.contact__list a { color: var(--ink); font-weight: 600; text-decoration: none; }
.contact__list a:hover { color: var(--blue-700); }

.form { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 10px; padding: .75em .9em; background: #fff; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(47,140,255,.15);
}
.form .invalid { border-color: var(--red); }
.form__status { margin: 0; min-height: 1.4em; font-weight: 600; }
.form__status.ok { color: #0B8A4A; }
.form__status.err { color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ===== Footer ===== */
.footer { background: var(--blue-900); color: #A9BBDA; padding: 48px 0; }
.footer__inner { display: grid; gap: 12px; }
.footer__note { margin: 0; }
.footer__legal { margin: 0; font-size: .85rem; color: #7F93B8; }

/* ===== WhatsApp flotante ===== */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; box-shadow: 0 10px 24px -6px rgba(0,0,0,.35); transition: transform .15s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 72px; }
  .hero__visual { display: none; }
  .pillars, .vendors { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 20px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .steps, .partners, .form__row { grid-template-columns: 1fr; }
  .form { padding: 22px; }
  .pillar, .vendor { padding: 24px; }
}
