/* ===== Fuentes de marca ===== */
@font-face { font-family: "Barlow"; src: url("../fonts/Barlow-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/Barlow-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/Barlow-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/Barlow-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/JetBrainsMono-VariableFont_wght.ttf") format("truetype"); font-weight: 100 800; font-display: swap; }

/* ===== Paleta ===== */
:root {
  --fx-navy: #3d3d52;
  --fx-navy-deep: #2c2c3d;
  --fx-cyan: #00ccff;
  --fx-pink: #f206ba;
  --fx-teal: #0aead9;
  --fx-lime: #ccff00;
  --fx-bg: #fafafa;
  --fx-text: #2c2c3d;
  --fx-muted: #6b6b80;
  --font-main: "Barlow", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-main); color: var(--fx-text); background: var(--fx-bg); font-size: 1.08rem; overflow-x: hidden; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -.01em; }
a { color: inherit; }
.text-muted-fx { color: var(--fx-muted); }
:focus-visible { outline: 3px solid var(--fx-cyan); outline-offset: 2px; }

/* ===== Botones ===== */
.btn { font-weight: 600; border-radius: 10px; padding: .6rem 1.3rem; transition: transform .15s, box-shadow .15s, background .15s; }
.btn-lg { padding: .85rem 1.7rem; font-size: 1.1rem; }
.btn-fx-lime { background: var(--fx-lime); color: var(--fx-navy-deep); border: 2px solid var(--fx-lime); }
.btn-fx-lime:hover { background: #d9ff3d; color: var(--fx-navy-deep); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(204,255,0,.35); }
.btn-fx-outline { color: #fff; border: 2px solid rgba(255,255,255,.55); }
.btn-fx-outline:hover { color: var(--fx-navy-deep); background: #fff; border-color: #fff; transform: translateY(-2px); }
.btn-fx-dark { background: var(--fx-navy); color: #fff; border: 2px solid var(--fx-navy); }
.btn-fx-dark:hover { background: var(--fx-navy-deep); color: var(--fx-lime); transform: translateY(-2px); }

/* ===== Navbar ===== */
.fx-nav { padding: .7rem 0; transition: background .25s, box-shadow .25s, padding .25s; }
.fx-nav.scrolled, .fx-nav:has(.navbar-collapse.show) { background: var(--fx-navy); box-shadow: 0 4px 20px rgba(0,0,0,.25); padding: .4rem 0; }
.fx-nav .nav-link { color: #fff; font-weight: 500; padding: .5rem .9rem; border-radius: 8px; }
.fx-nav .nav-link:hover, .fx-nav .nav-link.active { color: var(--fx-lime); }
.fx-nav .navbar-toggler { border: 0; color: #fff; font-size: 2rem; line-height: 1; padding: 0 .3rem; }
.fx-nav .navbar-toggler:focus { box-shadow: 0 0 0 3px var(--fx-cyan); }

/* ===== Hero ===== */
.hero { position: relative; background: radial-gradient(1100px 500px at 85% 10%, rgba(0,204,255,.18), transparent 60%), radial-gradient(800px 500px at 0% 100%, rgba(242,6,186,.16), transparent 60%), var(--fx-navy); color: #fff; padding: 9rem 0 6rem; overflow: hidden; }
.hero-grid { 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: 44px 44px; mask-image: linear-gradient(to bottom, #000 30%, transparent 95%); -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 95%); }
.tag { display: inline-block; font-family: var(--font-mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--fx-teal); border: 1px solid rgba(10,234,217,.45); padding: .35rem .8rem; border-radius: 6px; margin-bottom: 1.4rem; }
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); line-height: 1.05; margin-bottom: 1.2rem; }
.hero .hl { color: var(--fx-lime); }
.hero .lead { color: rgba(255,255,255,.85); max-width: 40rem; margin-bottom: 2rem; }
.hero-points { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; color: rgba(255,255,255,.9); font-weight: 500; }
.hero-points i { color: var(--fx-teal); margin-right: .3rem; }
.hero-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18); border-radius: 24px; padding: 2.2rem 1.5rem 1.4rem; backdrop-filter: blur(6px); max-width: 400px; margin: 0 auto; box-shadow: 0 0 0 6px rgba(0,204,255,.06), 0 30px 60px rgba(0,0,0,.3); }
.hero-icon { width: 100%; max-width: 260px; animation: float 4s ease-in-out infinite; }
.status-line { margin-top: 1.2rem; font-family: var(--font-mono); font-size: .95rem; color: var(--fx-lime); }
.status-line .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--fx-lime); margin-right: .5rem; animation: pulse 1.4s infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes pulse { 50% { opacity: .25; } }

/* ===== Secciones ===== */
.section { padding: 6rem 0; }
.section-soft { background: #fff; }
.section-head { max-width: 640px; margin: 0 auto 3.2rem; }
.section-head p { color: var(--fx-muted); }
.section h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.1; margin-bottom: 1rem; }
.eyebrow { display: inline-block; font-family: var(--font-mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; background: var(--fx-navy); color: #fff; padding: .3rem .7rem; margin-bottom: 1rem; }
.eyebrow-light { background: var(--fx-lime); color: var(--fx-navy-deep); }

/* ===== Servicios ===== */
.service { --c: var(--fx-cyan); height: 100%; background: #fff; border: 2px solid var(--fx-navy); border-radius: 18px; padding: 2rem 1.7rem; position: relative; transition: transform .2s, box-shadow .2s; }
.service:hover { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--c); }
.service .ico { width: 58px; height: 58px; border-radius: 14px; background: var(--c); color: var(--fx-navy-deep); display: grid; place-items: center; font-size: 1.7rem; margin-bottom: 1.2rem; }
.service h3 { font-size: 1.35rem; }
.service p { color: var(--fx-muted); margin: 0; }
.c-cyan { --c: var(--fx-cyan); } .c-pink { --c: var(--fx-pink); } .c-teal { --c: var(--fx-teal); } .c-lime { --c: var(--fx-lime); }
.c-pink .ico { color: #fff; }

/* ===== Proceso ===== */
.section-dark { background: var(--fx-navy); color: #fff; }
.section-dark .section-head p { color: rgba(255,255,255,.75); }
.section-dark .eyebrow { background: var(--fx-teal); color: var(--fx-navy-deep); }
.step { height: 100%; border: 1px solid rgba(255,255,255,.2); border-radius: 18px; padding: 2rem 1.7rem; background: rgba(255,255,255,.04); }
.step .num { font-family: var(--font-mono); font-size: 2.6rem; font-weight: 800; color: var(--fx-lime); line-height: 1; display: block; margin-bottom: 1rem; }
.step h3 { font-size: 1.35rem; }
.step p { color: rgba(255,255,255,.78); margin: 0; }

/* ===== Por qué ===== */
.why { height: 100%; background: #fff; border-radius: 16px; padding: 1.5rem; border: 1px solid #e3e3ec; border-left: 6px solid var(--fx-cyan); }
.col-sm-6:nth-child(2) .why { border-left-color: var(--fx-pink); }
.col-sm-6:nth-child(3) .why { border-left-color: var(--fx-teal); }
.col-sm-6:nth-child(4) .why { border-left-color: var(--fx-lime); }
.why i { font-size: 1.8rem; color: var(--fx-navy); }
.why h4 { font-size: 1.2rem; margin: .5rem 0 .3rem; }
.why p { margin: 0; color: var(--fx-muted); font-size: 1rem; }

/* ===== FAQ ===== */
.fx-accordion .accordion-item { border: 2px solid var(--fx-navy); border-radius: 14px !important; margin-bottom: .8rem; overflow: hidden; background: #fff; }
.fx-accordion .accordion-button { font-weight: 600; font-size: 1.1rem; color: var(--fx-navy-deep); background: #fff; box-shadow: none; }
.fx-accordion .accordion-button:not(.collapsed) { background: var(--fx-lime); color: var(--fx-navy-deep); }
.fx-accordion .accordion-body { color: var(--fx-muted); }

/* ===== Contacto ===== */
.section-cta { background: radial-gradient(700px 400px at 100% 0%, rgba(0,204,255,.2), transparent 60%), var(--fx-navy); color: #fff; }
.section-cta p { color: rgba(255,255,255,.82); }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; font-weight: 500; }
.contact-list li { margin-bottom: .6rem; }
.contact-list i { color: var(--fx-lime); margin-right: .6rem; }
.contact-list a { text-decoration: none; border-bottom: 1px dashed rgba(255,255,255,.5); }
.contact-list a:hover { color: var(--fx-lime); }
.fx-form { background: #fff; color: var(--fx-text); border-radius: 20px; padding: 2rem; box-shadow: 10px 10px 0 var(--fx-pink); }
.fx-form .form-label { font-weight: 600; }
.fx-form .form-control, .fx-form .form-select { border: 2px solid #cfcfdc; border-radius: 10px; padding: .7rem .9rem; font-family: inherit; }
.fx-form .form-control:focus, .fx-form .form-select:focus { border-color: var(--fx-cyan); box-shadow: 0 0 0 .22rem rgba(0,204,255,.25); }

/* ===== Footer ===== */
.fx-footer { background: var(--fx-navy-deep); color: rgba(255,255,255,.7); padding: 2rem 0; }

/* ===== WhatsApp flotante ===== */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 1030; width: 58px; height: 58px; border-radius: 50%; background: var(--fx-lime); color: var(--fx-navy-deep); display: grid; place-items: center; font-size: 1.9rem; text-decoration: none; box-shadow: 0 8px 24px rgba(0,0,0,.3); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); color: var(--fx-navy-deep); }

/* ===== Reveal ===== */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 991.98px) {
  .hero { padding: 7.5rem 0 4rem; }
  .fx-nav .navbar-collapse { padding: 1rem 0; }
  .section { padding: 4.5rem 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-icon, .status-line .dot { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Footer en 3 columnas ===== */
.footer-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.footer-left { text-align: left; }
.footer-logo { justify-self: center; }
.footer-right { text-align: right; }
.footer-right a { color: var(--fx-lime); text-decoration: none; border-bottom: 1px dashed currentColor; }
.footer-right a:hover { color: #fff; }
@media (max-width: 767.98px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-left, .footer-right { text-align: center; }
  .footer-logo { order: -1; }
}

/* ===== Mensaje del formulario ===== */
#formMsg:empty { display: none; }
#formMsg { padding: .8rem 1rem; border-radius: 10px; font-weight: 500; }
#formMsg.ok { background: #e6f9ee; color: #146c43; border: 1px solid #a3e0bd; }
#formMsg.err { background: #fdeaf8; color: #9c0a78; border: 1px solid #f5a6e2; }
