/* LUMIFY — Soluciones Digitales
   Identidad: blanco, amarillo, dorado y negro (azul noche del logotipo).
   Mobile-first. Sin fuentes externas. */

:root {
  --ink: #0d1424;          /* negro azulado del logotipo */
  --ink-2: #1b2336;
  --text: #2a3142;
  --muted: #5d6475;
  --white: #ffffff;
  --soft: #fbf8ef;         /* blanco cálido */
  --line: #ece6d3;
  --yellow: #ffd60a;
  --yellow-2: #ffe14d;
  --gold: #f2a900;
  --gold-dark: #c98a00;
  --grad: linear-gradient(135deg, #ffe600 0%, var(--yellow) 35%, var(--gold) 100%);
  --radius: 20px;
  --shadow: 0 14px 40px rgba(13, 20, 36, .08);
  --shadow-lg: 0 24px 60px rgba(13, 20, 36, .14);
  --container: 1180px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.65;
  color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--ink); line-height: 1.12; margin: 0 0 .55em; letter-spacing: -.025em; }
h1 { font-size: clamp(2.15rem, 6.4vw, 3.7rem); font-weight: 900; }
h2 { font-size: clamp(1.75rem, 4.4vw, 2.7rem); font-weight: 900; }
h3 { font-size: 1.18rem; font-weight: 800; }
p { margin: 0 0 1em; }
strong { color: var(--ink); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.small { font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip-link:focus { left: 8px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-dark); margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--grad); }

/* Resaltado tipo "píldora" del flyer */
.hl {
  display: inline; color: var(--ink);
  background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: .8em 1.45em; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 800; cursor: pointer; text-align: center;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-gold { background: var(--grad); color: var(--ink); box-shadow: 0 10px 26px rgba(242, 169, 0, .35); }
.btn-gold:hover { box-shadow: 0 14px 32px rgba(242, 169, 0, .45); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-2); box-shadow: 0 10px 24px rgba(13, 20, 36, .25); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: var(--white); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-sm { min-height: 42px; padding: .5em 1.1em; font-size: .95rem; }
.btn-lg { font-size: 1.05rem; padding: .95em 1.7em; }
.btn-block { width: 100%; }
.icon { width: 22px; height: 22px; flex: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 4px 12px rgba(242, 169, 0, .35); }
.brand-text { font-weight: 900; font-style: italic; font-size: 1.35rem; letter-spacing: .02em; line-height: 1; color: var(--ink); display: flex; flex-direction: column; }
.brand-text small { font-style: normal; font-size: .58rem; font-weight: 700; letter-spacing: .2em; color: var(--muted); margin-top: 4px; text-transform: uppercase; }

.nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 12px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav {
  position: absolute; left: 0; right: 0; top: 100%;
  display: none; flex-direction: column; gap: 2px; padding: 10px 20px 22px;
  background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
}
.nav.is-open { display: flex; }
.nav a:not(.btn) { padding: 12px 4px; font-weight: 700; color: var(--text); }
.nav a:not(.btn):hover { color: var(--gold-dark); }
.nav .btn { margin-top: 8px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 44px 0 56px; background: var(--white); }
.hero-waves {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 70% at -10% 0%, rgba(255, 214, 10, .55) 0%, rgba(255, 214, 10, .18) 35%, transparent 55%),
    radial-gradient(90% 60% at 110% 105%, rgba(242, 169, 0, .45) 0%, rgba(255, 214, 10, .15) 40%, transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--soft) 100%);
}
.hero-grid { position: relative; display: grid; gap: 32px; align-items: center; }
.hero-copy { max-width: 640px; }
.lead { font-size: clamp(1.05rem, 2.4vw, 1.2rem); color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 26px; }
.hero-cta .btn { flex: 1 1 230px; }
.pillars { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 18px; }
.pillars li { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ink); }
.pillars svg { width: 26px; height: 26px; color: var(--gold); }
.hero-media {
  position: relative; justify-self: center; width: 100%; max-width: 520px;
}
.hero-media::before {
  content: ""; position: absolute; inset: 8% -4% -4% 8%; border-radius: 32px;
  background: var(--grad); transform: rotate(3deg);
}
.hero-media img { position: relative; width: 100%; border-radius: 28px; box-shadow: var(--shadow-lg); }

/* Secciones */
.section { padding: 72px 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--ink); color: #c9cfdb; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .eyebrow { color: var(--yellow); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }

/* Tarjetas de servicios */
.cards { display: grid; gap: 18px; grid-template-columns: 1fr; }
.card {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--yellow); }
.card p { color: var(--muted); flex: 1; }
.card-icon {
  width: 56px; height: 56px; border-radius: 16px; margin-bottom: 18px;
  display: grid; place-items: center; color: var(--ink); background: var(--grad);
  box-shadow: 0 8px 18px rgba(242, 169, 0, .3);
}
.card-icon svg { width: 28px; height: 28px; }
.card-link { color: var(--ink); font-weight: 800; border-bottom: 2px solid var(--yellow); align-self: flex-start; }
.card-link:hover { border-color: var(--gold); }
.card-featured { background: var(--grad); border: 0; }
.card-featured p { color: var(--ink-2); }
.card-featured .card-icon { background: var(--ink); color: var(--yellow); box-shadow: none; }
.card-featured .btn { align-self: flex-start; }

/* Sobre LUMIFY */
.about { display: grid; gap: 36px; align-items: center; }
.about-media { max-width: 460px; justify-self: center; }
.about-media img { border-radius: 24px; box-shadow: var(--shadow-lg); }
.about-copy p { color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; font-weight: 700; color: var(--ink); }
.checklist li::before {
  content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: .8rem; background: var(--yellow); color: var(--ink);
}

/* Pasos */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: 1fr; }
.steps li { padding: 26px; border-radius: var(--radius); background: var(--ink-2); border-top: 4px solid var(--yellow); }
.steps p { margin: 0; }
.step-n { display: block; font-size: 2.2rem; font-weight: 900; margin-bottom: 4px; color: var(--yellow); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; box-shadow: var(--shadow); }
.faq details[open] { border-color: var(--yellow); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative;
  font-weight: 800; color: var(--ink); font-size: 1.03rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; translate: 0 -50%;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--yellow); color: var(--ink); font-size: 1.2rem; font-weight: 900; transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* Contacto */
.cta-section { position: relative; overflow: hidden; background: var(--grad); }
.cta-grid { display: grid; gap: 36px; align-items: center; }
.cta-copy p:not(.eyebrow) { color: var(--ink-2); font-size: 1.08rem; }
.cta-section .eyebrow { color: var(--ink); }
.cta-section .eyebrow::before { background: var(--ink); }
.cta-logo { width: 96px; height: 96px; border-radius: 24px; margin-bottom: 22px; box-shadow: 0 12px 28px rgba(13, 20, 36, .2); }
.lead-form {
  display: grid; gap: 14px; padding: 26px; background: var(--white);
  border-radius: 24px; box-shadow: var(--shadow-lg);
}
.lead-form label { display: grid; gap: 6px; font-weight: 800; font-size: .92rem; color: var(--ink); }
.lead-form .opt { font-weight: 500; color: var(--muted); }
.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%; font: inherit; font-size: 16px; /* evita zoom en iOS */
  padding: 12px 14px; border: 1.5px solid #ddd8c8; border-radius: 12px; background: var(--soft); color: var(--ink);
}
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 214, 10, .4); }
.lead-form [aria-invalid="true"] { border-color: #c62828; }
.form-note { font-size: .85rem; color: var(--muted); margin: 0; text-align: center; }
.form-note.is-error { color: #c62828; font-weight: 700; }

/* Footer */
.site-footer { padding: 44px 0 110px; background: var(--ink); color: #aab2c2; }
.footer-inner { display: grid; gap: 18px; justify-items: center; text-align: center; }
.footer-inner p { margin: 0; }
.brand-light .brand-text { color: var(--white); }
.brand-light .brand-text small { color: var(--yellow); }
.footer-inner nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.footer-inner nav a:hover { color: var(--yellow); }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: var(--white);
  box-shadow: 0 10px 26px rgba(13, 20, 36, .3), 0 0 0 4px rgba(255, 214, 10, .6);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }

/* Tablet */
@media (min-width: 700px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card-featured { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 64px 0 80px; }
  .section { padding: 96px 0; }
  .hero-cta .btn { flex: 0 0 auto; }
  .lead-form { padding: 34px; }
  .pillars { gap: 10px 0; }
  .pillars li { padding: 0 18px; border-left: 1.5px solid #d9d2bd; }
  .pillars li:first-child { padding-left: 0; border-left: 0; }
}

/* Escritorio */
@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  .nav {
    position: static; display: flex; flex-direction: row; align-items: center; gap: 28px;
    padding: 0; background: none; border: 0; box-shadow: none;
  }
  .nav a:not(.btn) { padding: 0; }
  .nav .btn { margin: 0; }
  .hero { padding: 80px 0 100px; }
  .hero-grid { grid-template-columns: 1.15fr 1fr; gap: 56px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .card-featured { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
  .card-featured .card-icon { margin: 0; }
  .card-featured h3, .card-featured p { margin-bottom: .3em; }
  .card-featured .btn { align-self: center; }
  .about { grid-template-columns: 460px 1fr; gap: 72px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .cta-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .site-footer { padding-bottom: 44px; }
  .footer-inner { grid-template-columns: auto 1fr auto; justify-items: stretch; text-align: left; align-items: center; }
  .footer-inner nav { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
