/* ===========================================================
   MONA SYSTEMS — styles.css
   Paleta: rojo de marca + tinta oscura + acentos
   =========================================================== */

:root {
  --red: #d62027;
  --red-dark: #b01820;
  --red-soft: #fdecec;
  --ink: #0e1116;
  --ink-2: #1a1f29;
  --slate: #5b6472;
  --slate-2: #8a93a3;
  --line: #e7eaef;
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --bg-dark: #0e1116;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(14, 17, 22, .18);
  --shadow-lg: 0 24px 60px -20px rgba(14, 17, 22, .28);
  --maxw: 1140px;
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-head: 'Sora', var(--font);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-sm { padding: 10px 18px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 10px 24px -10px rgba(214,32,39,.6); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(214,32,39,.7); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px -16px rgba(0,0,0,.4); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px;
  background: var(--red); color: #fff; border-radius: 11px;
  font-weight: 800; font-size: 1.25rem;
  box-shadow: 0 8px 18px -8px rgba(214,32,39,.7);
}
.brand-text { font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; color: var(--ink); }
.brand-text span { color: var(--red); }
.brand-logo { height: 44px; width: auto; display: block; }
.brand-footer .brand-logo { height: 46px; }
/* Versión monocromática blanca para fondos oscuros (footer) */
.brand-logo-light { filter: brightness(0) invert(1); opacity: .95; }
@media (max-width: 640px) { .brand-logo { height: 38px; } }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-weight: 500; color: var(--slate); transition: color .15s ease; }
.nav a:hover { color: var(--ink); }
.nav .nav-cta { color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }

/* ===== Hero ===== */
.hero { position: relative; padding: 72px 0 80px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 420px at 78% -8%, rgba(214,32,39,.10), transparent 60%),
    radial-gradient(700px 380px at 5% 18%, rgba(14,17,22,.05), transparent 55%);
  z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }

.eyebrow {
  display: inline-block; font-weight: 600; font-size: .82rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--red);
  background: var(--red-soft); padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-head); font-weight: 800; letter-spacing: -.03em;
  font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1.07; color: var(--ink);
}
.hero .lead { font-size: 1.14rem; color: var(--slate); margin: 20px 0 30px; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 28px; margin-top: 38px; list-style: none; flex-wrap: wrap; }
.hero-trust li { color: var(--slate); font-size: .95rem; }
.hero-trust strong { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--ink); font-weight: 800; }

/* Hero visual / dashboard mock */
.hero-visual { position: relative; }
.glow { position: absolute; inset: -10% -6% -10% 6%; background: radial-gradient(closest-side, rgba(214,32,39,.18), transparent); filter: blur(20px); z-index: 0; }
.dash-card {
  position: relative; z-index: 1; background: #fff; border: 1px solid var(--line);
  border-radius: 20px; padding: 18px; box-shadow: var(--shadow-lg);
  transform: perspective(1200px) rotateY(-6deg) rotateX(3deg);
}
.dash-head { display: flex; align-items: center; gap: 7px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.dash-head .dot { width: 10px; height: 10px; border-radius: 50%; background: #e3e7ee; }
.dash-head .dot:first-child { background: #ff5f57; }
.dash-title { margin-left: auto; font-size: .8rem; color: var(--slate-2); font-weight: 600; }
.dash-map {
  position: relative; height: 200px; margin: 16px 0;
  background:
    linear-gradient(0deg, var(--bg-alt), var(--bg-alt)),
    repeating-linear-gradient(0deg, transparent 0 19px, var(--line) 19px 20px),
    repeating-linear-gradient(90deg, transparent 0 19px, var(--line) 19px 20px);
  background-blend-mode: normal; border-radius: 12px; overflow: hidden;
}
.dash-map .route {
  position: absolute; left: 12%; top: 78%; width: 76%; height: 50%;
  border-left: 3px dashed var(--red); border-top: 3px dashed var(--red);
  border-radius: 60% 0 0 0; transform: rotate(-6deg); opacity: .55;
}
.ping { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(214,32,39,.5); animation: ping 2.2s ease-out infinite; }
.ping-1 { left: 16%; top: 70%; }
.ping-2 { left: 52%; top: 40%; animation-delay: .7s; }
.ping-3 { left: 82%; top: 22%; animation-delay: 1.4s; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(214,32,39,.55); } 70% { box-shadow: 0 0 0 16px rgba(214,32,39,0); } 100% { box-shadow: 0 0 0 0 rgba(214,32,39,0); } }
.dash-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.dash-stats > div { background: var(--bg-alt); border-radius: 10px; padding: 12px; text-align: center; }
.dash-stats .num { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--ink); }
.dash-stats .lbl { font-size: .74rem; color: var(--slate-2); }

/* ===== Strip ===== */
.strip { background: var(--bg-dark); color: #cfd6e2; padding: 26px 0; }
.strip-inner { display: flex; align-items: center; justify-content: center; gap: 14px 40px; flex-wrap: wrap; }
.strip-inner p { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: #7c869a; margin: 0; }
.strip-logos { list-style: none; display: flex; gap: 14px 40px; flex-wrap: wrap; align-items: center; }
.strip-logos li { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: #eef1f6; opacity: .85; letter-spacing: -.01em; }

/* ===== Sections ===== */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head h2 { font-family: var(--font-head); font-weight: 800; letter-spacing: -.02em; font-size: clamp(1.7rem, 3.4vw, 2.5rem); color: var(--ink); }
.section-head p { color: var(--slate); margin-top: 12px; font-size: 1.08rem; }

/* ===== Cards / Servicios ===== */
.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card-featured { border-color: rgba(214,32,39,.35); box-shadow: 0 18px 40px -22px rgba(214,32,39,.4); }
.card-icon { width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); margin-bottom: 18px; }
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-family: var(--font-head); font-size: 1.18rem; color: var(--ink); margin-bottom: 10px; }
.card p { color: var(--slate); font-size: .98rem; }
.ticks { list-style: none; margin-top: 16px; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: .92rem; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: -1px; color: var(--red); font-weight: 800; }

/* ===== Productos ===== */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin-bottom: 64px; }
.product:last-child { margin-bottom: 0; }
.product.reverse .product-media { order: 2; }
.product-tag { display: inline-block; font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.product h3 { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--ink); letter-spacing: -.02em; }
.product > .product-body > p { color: var(--slate); margin: 14px 0 20px; font-size: 1.05rem; }
.product-feats { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin-bottom: 22px; }
.product-feats li { position: relative; padding-left: 24px; font-size: .95rem; color: var(--ink-2); }
.product-feats li::before { content: "→"; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.product-tech { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.product-tech span { font-size: .78rem; font-weight: 600; color: var(--slate); background: var(--bg-alt); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; }
.product-media { position: relative; }
.product-mock {
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 100%);
  border-radius: 18px; padding: 26px; color: #fff; box-shadow: var(--shadow-lg);
  min-height: 280px; display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.product-mock::after { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; background: radial-gradient(closest-side, rgba(214,32,39,.5), transparent); }
.product-mock .mock-label { font-size: .8rem; color: #98a2b3; letter-spacing: .04em; text-transform: uppercase; }
.product-mock .mock-big { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; margin: 6px 0; }
.product-mock .mock-row { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-top: 18px; }
.product-mock .mock-row div { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 14px; }
.product-mock .mock-row .k { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; }
.product-mock .mock-row .v { font-size: .78rem; color: #98a2b3; }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.about-copy h2 { font-family: var(--font-head); font-weight: 800; letter-spacing: -.02em; font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 16px; color: var(--ink); }
.about-copy p { color: var(--slate); margin-bottom: 14px; }
.mission { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.mission-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; }
.mission-item h4 { color: var(--red); font-family: var(--font-head); margin-bottom: 6px; }
.mission-item p { font-size: .92rem; margin: 0; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; text-align: center; box-shadow: var(--shadow); }
.stat-num { display: block; font-family: var(--font-head); font-weight: 800; font-size: 2.1rem; color: var(--red); }
.stat-lbl { color: var(--slate); font-size: .9rem; }

/* ===== Features ===== */
.features { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.feature { text-align: center; padding: 24px 18px; }
.feature-icon { font-size: 2rem; margin-bottom: 12px; }
.feature h3 { font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 8px; color: var(--ink); }
.feature p { color: var(--slate); font-size: .94rem; }

/* ===== Contacto ===== */
.contact { background: var(--bg-alt); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact-copy h2 { font-family: var(--font-head); font-weight: 800; letter-spacing: -.02em; font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 12px; color: var(--ink); }
.contact-copy > p { color: var(--slate); margin-bottom: 28px; }
.contact-list { list-style: none; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ci { font-size: 1.3rem; line-height: 1.2; }
.contact-list strong { display: block; color: var(--ink); font-size: .95rem; }
.contact-list a, .contact-list span { color: var(--slate); }
.contact-list a:hover { color: var(--red); }

.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink-2); }
.field input, .field textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-alt); transition: border-color .15s ease, background .15s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); background: #fff; }
.field textarea { resize: vertical; }
.form-note { margin-top: 12px; font-size: .9rem; min-height: 1.2em; color: var(--red); }
.form-note.ok { color: #16794a; }

/* ===== Footer ===== */
.site-footer { background: var(--bg-dark); color: #aeb6c4; padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand-footer .brand-text { color: #fff; }
.footer-about { margin-top: 14px; font-size: .92rem; max-width: 320px; }
.footer-nav h4, .footer-contact h4 { color: #fff; font-family: var(--font-head); font-size: 1rem; margin-bottom: 14px; }
.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a, .footer-contact a, .footer-contact span { color: #aeb6c4; font-size: .94rem; transition: color .15s ease; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--red); }
.footer-bottom { padding-top: 22px; text-align: center; font-size: .86rem; color: #7c869a; }

/* ===== WhatsApp float ===== */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 28px -8px rgba(37,211,102,.6); transition: transform .2s ease;
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { transform: scale(1.08); }

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

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 460px; }
  .cards { grid-template-columns: 1fr; }
  .product, .product.reverse .product-media { grid-template-columns: 1fr; }
  .product.reverse .product-media { order: 0; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .features { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 0;
    transform: translateY(-130%); transition: transform .28s ease; box-shadow: var(--shadow); }
  .nav.open { transform: translateY(0); }
  .nav a { width: 100%; padding: 14px 24px; }
  .nav .nav-cta { margin: 8px 24px; width: calc(100% - 48px); }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .product-feats { grid-template-columns: 1fr; }
  .mission, .about-stats { grid-template-columns: 1fr 1fr; }
}
