/* Fluxen Automatizaciones — hoja de estilos
   Fuentes alojadas en el propio sitio (Montserrat e Inter, licencia SIL OFL 1.1). */
@font-face { font-family: "Montserrat"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/montserrat-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); }

:root {
  --navy: #0b2547;
  --navy-2: #12325c;
  --navy-deep: #071a33;
  --cyan: #19b5d9;
  --cyan-soft: #e3f7fc;
  --green: #1a9b3c;
  --green-soft: #e6f5ea;
  --yellow: #f2b300;
  --yellow-soft: #fff6d9;
  --ink: #0f1d2e;
  --muted: #4b5b6e;
  --line: #dbe3ec;
  --bg: #f6f8fb;
  --white: #ffffff;
  --wa: #1f8f4e;
  --display: "Montserrat", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --r: 18px;
  --shadow: 0 18px 40px -18px rgba(11, 37, 71, 0.28);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); text-underline-offset: 3px; }
a:hover { color: var(--cyan); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; margin: 0; color: var(--navy); }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 22px; }
.skip { position: absolute; left: -9999px; top: 10px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 10px; }
.eyebrow { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); margin: 0 0 14px; }

/* ---------- Cabecera ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.95); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--navy); }
.brand svg { width: 30px; height: 36px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b { font-family: var(--display); font-weight: 800; font-size: 1.28rem; letter-spacing: 0.06em; text-transform: uppercase; }
.brand-text small { font-family: var(--display); font-weight: 700; font-size: 0.62rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--cyan); margin-top: 5px; }
.nav { display: flex; align-items: center; gap: 6px 26px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav a:hover { color: var(--navy); }
.nav a[aria-current="page"] { color: var(--navy); }
.nav a.btn-wa, .nav a.btn-wa:hover { color: #fff; }
.menu-btn { display: none; border: 1.5px solid var(--navy); background: none; color: var(--navy); font: 600 0.95rem var(--body); padding: 8px 14px; border-radius: 999px; cursor: pointer; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 0.98rem; text-decoration: none; padding: 15px 26px; border-radius: 999px; border: 2px solid transparent; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease; line-height: 1.1; cursor: pointer; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 10px 24px -10px rgba(31, 143, 78, 0.7); }
.btn-wa:hover { background: #18773f; color: #fff; transform: translateY(-2px); }
.btn-line { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-line:hover { background: var(--navy); color: #fff; }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; }

/* ---------- Portada ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(900px 500px at 85% 10%, var(--cyan-soft), transparent 60%), linear-gradient(180deg, #fff, var(--bg)); padding: 64px 0 80px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); }
.hero h1 .hl { color: var(--cyan); }
.hero .lead { font-size: 1.18rem; color: var(--muted); max-width: 34em; margin: 20px 0 30px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.93rem; }
.hero-meta li { display: flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 18px; height: 18px; color: var(--cyan); }

/* Teléfono hecho con CSS */
.stage { position: relative; display: flex; justify-content: flex-end; padding: 10px 12px 10px 0; min-height: 560px; }
.phone { position: relative; width: 300px; border-radius: 42px; background: #111; padding: 11px; box-shadow: 0 40px 60px -30px rgba(7, 26, 51, 0.55), inset 0 0 0 2px #333; }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 92px; height: 24px; border-radius: 20px; background: #111; z-index: 2; }
.screen { border-radius: 32px; overflow: hidden; background: #efe9e1; }
.chat-top { background: var(--navy); color: #fff; padding: 44px 16px 12px; display: flex; align-items: center; gap: 10px; }
.chat-top .av { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.chat-top .av svg { width: 16px; height: 20px; }
.chat-top b { display: block; font-size: 0.95rem; }
.chat-top small { font-size: 0.75rem; opacity: 0.8; }
.chat-body { padding: 14px 12px 16px; display: flex; flex-direction: column; gap: 8px; min-height: 380px; }
.msg { max-width: 84%; padding: 8px 11px; border-radius: 12px; font-size: 0.83rem; line-height: 1.38; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08); opacity: 0; animation: pop 0.45s ease forwards; }
.msg.in { background: #fff; align-self: flex-start; border-top-left-radius: 4px; }
.msg.out { background: #d9fdd3; align-self: flex-end; border-top-right-radius: 4px; }
.msg ol { margin: 4px 0 0; padding-left: 18px; }
.msg time { display: block; text-align: right; font-size: 0.66rem; color: #6b7a86; margin-top: 2px; }
.msg:nth-child(1) { animation-delay: 0.3s; } .msg:nth-child(2) { animation-delay: 1.2s; }
.msg:nth-child(3) { animation-delay: 2.2s; } .msg:nth-child(4) { animation-delay: 3.1s; }
.msg:nth-child(5) { animation-delay: 4s; }
.typing { align-self: flex-end; background: #d9fdd3; border-radius: 12px; padding: 10px 12px; display: flex; gap: 4px; opacity: 0; animation: pop 0.3s ease 4.8s forwards; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #5f7a6b; animation: dot 1.1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; } .typing i:nth-child(3) { animation-delay: 0.3s; }
.chips { position: absolute; left: 0; top: 90px; display: flex; flex-direction: column; gap: 14px; z-index: 3; }
.chip { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 10px 14px 10px 12px; box-shadow: var(--shadow); font-size: 0.82rem; line-height: 1.25; color: var(--ink); animation: float 6s ease-in-out infinite; }
.chip:nth-child(2) { animation-delay: -2s; margin-left: 26px; } .chip:nth-child(3) { animation-delay: -4s; }
.chip .dot { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 0.8rem; flex: none; }
.chip b { display: block; font-weight: 600; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes dot { 0%, 60%, 100% { transform: none; opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Franja de canales ---------- */
.strip { background: var(--navy); color: #cfe0f2; }
.strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 34px; padding-top: 18px; padding-bottom: 18px; font-weight: 600; font-size: 0.95rem; }
.strip span { display: flex; align-items: center; gap: 9px; }
.strip i { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }

/* ---------- Secciones ---------- */
section { padding: 84px 0; }
.sec-head { max-width: 46em; margin: 0 auto 48px; text-align: center; }
.sec-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.sec-head p { color: var(--muted); font-size: 1.1rem; margin: 14px 0 0; }
.bg-soft { background: var(--bg); }

/* Planes */
.plan { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 40px 0; }
.plan + .plan { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 64px; }
.plan.rev .plan-media { order: -1; }
.badge { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: 0.02em; text-transform: uppercase; margin-bottom: 16px; }
.badge span { color: #fff; font-size: 0.82rem; padding: 6px 12px; border-radius: 8px; }
.plan.green .badge { color: var(--green); } .plan.green .badge span { background: var(--green); }
.plan.yellow .badge { color: #b78700; } .plan.yellow .badge span { background: var(--yellow); color: var(--navy); }
.plan h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.plan .sub { color: var(--muted); font-size: 1.08rem; }
.feats { list-style: none; margin: 26px 0; padding: 0; display: grid; gap: 14px; }
.feats li { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: center; }
.feats .ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; }
.feats .ic svg { width: 22px; height: 22px; }
.plan.green .ic { background: var(--green-soft); color: var(--green); }
.plan.yellow .ic { background: var(--yellow-soft); color: #b78700; }
.feats b { display: block; font-weight: 700; color: var(--navy); }
.feats span { color: var(--muted); font-size: 0.96rem; }
.plan-media { position: relative; }
.plan-media picture img { border-radius: 24px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.plan-media figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 10px; text-align: center; }
.note { background: var(--yellow-soft); border-left: 4px solid var(--yellow); border-radius: 0 12px 12px 0; padding: 12px 16px; font-size: 0.93rem; color: #5b4a12; margin: 0 0 22px; }
.combo { margin-top: 48px; background: linear-gradient(120deg, var(--navy), var(--navy-2)); color: #fff; border-radius: 24px; padding: 34px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 30px; }
.combo h3 { color: #fff; font-size: 1.5rem; margin-bottom: 6px; }
.combo p { margin: 0; color: #c9d8ea; max-width: 40em; }

/* Pasos */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px 22px; position: relative; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--display); font-weight: 800; font-size: 1.9rem; color: var(--cyan); display: block; margin-bottom: 10px; }
.steps h3 { font-size: 1.12rem; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* Compromisos */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust div { padding: 24px 22px; border-radius: var(--r); background: var(--cyan-soft); }
.trust svg { width: 30px; height: 30px; color: var(--navy); margin-bottom: 12px; }
.trust h3 { font-size: 1.08rem; margin-bottom: 6px; }
.trust p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Preguntas */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; position: relative; font-family: var(--display); font-weight: 700; font-size: 1.06rem; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2.5px solid var(--cyan); border-bottom: 2.5px solid var(--cyan); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .ans { color: var(--muted); padding: 0 0 18px; }

/* Contacto */
.contact { background: radial-gradient(700px 400px at 90% 0%, rgba(25, 181, 217, 0.25), transparent 60%), var(--navy-deep); color: #d6e3f2; }
.contact .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.contact h2 { color: #fff; font-size: clamp(1.9rem, 3.8vw, 2.7rem); }
.contact p { font-size: 1.1rem; margin: 16px 0 28px; max-width: 32em; }
.card { background: #fff; color: var(--ink); border-radius: 22px; padding: 28px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5); }
.card h3 { font-size: 1.1rem; margin-bottom: 14px; }
.card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: 0.96rem; }
.card dt { font-weight: 600; color: var(--muted); }
.card dd { margin: 0; color: var(--navy); font-weight: 600; }

/* ---------- Páginas legales ---------- */
.page-head { background: linear-gradient(180deg, var(--cyan-soft), #fff); padding: 56px 0 34px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); }
.page-head p { color: var(--muted); margin: 12px 0 0; }
.legal { padding: 48px 0 84px; }
.legal .wrap { display: grid; grid-template-columns: 240px 1fr; gap: 52px; align-items: start; }
.toc { position: sticky; top: 100px; font-size: 0.9rem; }
.toc b { display: block; font-family: var(--display); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--navy); border-left-color: var(--cyan); }
.legal article { max-width: 46em; }
.legal h2 { font-size: 1.4rem; margin: 40px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal ul { padding-left: 22px; } .legal li { margin-bottom: 6px; }
.legal table { width: 100%; border-collapse: collapse; margin: 10px 0 20px; font-size: 0.95rem; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal th { background: var(--bg); color: var(--navy); }
.legal .box { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }

/* ---------- Pie ---------- */
.footer { background: var(--navy-deep); color: #9fb3c9; font-size: 0.93rem; padding: 54px 0 30px; border-top: 1px solid #16304f; }
.footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer h4 { font-family: var(--display); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); margin: 0 0 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer a { color: #e6eef7; text-decoration: none; }
.footer a:hover { color: var(--cyan); text-decoration: underline; }
.footer .legalline { border-top: 1px solid #16304f; margin-top: 36px; padding-top: 20px; font-size: 0.83rem; }
.footer .legalline p { margin: 0 0 6px; max-width: 70em; }

/* Botón flotante de WhatsApp */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 26px -8px rgba(0, 0, 0, 0.45); transition: transform 0.15s ease; }
.wa-float:hover { transform: scale(1.06); color: #fff; }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  section { padding: 64px 0; }
  .hero { padding: 40px 0 60px; }
  .hero .wrap, .plan, .contact .wrap { grid-template-columns: 1fr; gap: 36px; }
  .stage { justify-content: center; padding-left: 190px; }
  .plan.rev .plan-media { order: 0; }
  .steps, .trust { grid-template-columns: 1fr 1fr; }
  .legal .wrap { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 4px; background: #fff; border-bottom: 1px solid var(--line); padding: 14px 22px 22px; }
  .nav.open { display: flex; }
  .nav a { padding: 8px 0; font-size: 1.02rem; }
  .no-js .nav { display: flex; position: static; flex-direction: row; flex-wrap: wrap; padding: 0; border: 0; }
  .no-js .menu-btn { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .stage { padding: 0; justify-content: center; min-height: 0; }
  .chips { display: none; }
  .phone { width: 280px; }
  .steps, .trust, .footer .cols { grid-template-columns: 1fr; }
  .combo { padding: 26px; }
  .btn { width: 100%; justify-content: center; }
  .header .btn { width: auto; }
  .card dl { grid-template-columns: 1fr; gap: 2px; }
  .card dd { margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .msg, .typing { opacity: 1; }
}
@media print {
  .header, .footer, .wa-float, .toc { display: none; }
  .legal .wrap { display: block; }
}
