/* ==========================================================
   Mia Multi Store Chile — estilos
   Identidad: monocromo (negro/blanco del logo) + amarillo energía
   ========================================================== */

:root {
  --ink: #0b0b0c;
  --ink-2: #1a1a1d;
  --ink-3: #2a2a2e;
  --paper: #ffffff;
  --paper-2: #f4f4f1;
  --muted: #6b6b70;
  --line: #e4e4df;
  --accent: #ffd21f;      /* amarillo solar */
  --accent-ink: #0b0b0c;
  --blue: #1d4ed8;        /* azul de las publicaciones */

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -20px rgba(11, 11, 12, .25);

  --font-display: "Archivo Black", "Arial Black", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.08; }
h2 { font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -.02em; font-weight: 400; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 0; padding: .6rem 1rem;
  background: var(--accent); color: var(--ink); z-index: 100; font-weight: 700;
}
.skip:focus { left: 1rem; top: 1rem; }

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

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .95rem 1.4rem; border-radius: 999px;
  font-weight: 700; font-size: .98rem; text-decoration: none;
  border: 2px solid transparent;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: #ffdf55; }
.btn--ghost { border-color: currentColor; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--ink-3); }
.btn--sm { padding: .6rem 1.05rem; font-size: .9rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1rem;
}
.eyebrow--light { color: var(--accent); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 210, 31, .25); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0,0,0,.4); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { color: var(--ink); display: inline-flex; }
.brand__logo { height: 46px; width: auto; }
.brand__invert { fill: var(--paper); }

.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a:not(.btn) {
  text-decoration: none; font-weight: 600; font-size: .95rem; position: relative;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px; padding: 10px;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.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); }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(3.5rem, 7vw, 6rem); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: auto -10% -40% auto; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(255, 210, 31, .35), transparent 65%);
  pointer-events: none;
}
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; position: relative; }
.hero__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.6rem, 6.4vw, 5.2rem); letter-spacing: -.035em; line-height: 1;
}
.hl {
  background: linear-gradient(transparent 62%, var(--accent) 62%, var(--accent) 92%, transparent 92%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .06em;
}
.hero__lead { margin-top: 1.5rem; font-size: 1.12rem; color: #3a3a3f; max-width: 36rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero__facts {
  list-style: none; padding: 0; margin: 2.6rem 0 0; display: flex; gap: 2.4rem; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 1.6rem;
}
.hero__facts strong { display: block; font-family: var(--font-display); font-size: 1.8rem; font-weight: 400; }
.hero__facts span { font-size: .88rem; color: var(--muted); }

.hero__visual {
  display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; gap: 14px;
}
.tile {
  border-radius: var(--radius); padding: 1.3rem; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: var(--shadow); transition: transform .35s ease;
}
.tile:hover { transform: translateY(-6px) rotate(-.5deg); }
.tile svg { width: 64px; height: 64px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tile span { font-weight: 700; font-size: 1.05rem; }
.tile--solar { background: var(--accent); color: var(--ink); grid-row: span 2; }
.tile--solar svg { width: 110px; height: 110px; animation: spin 24s linear infinite; }
.tile--pc { background: var(--ink); color: var(--paper); }
.tile--cel { background: var(--paper-2); color: var(--ink); border: 1px solid var(--line); }
.tile--badge {
  grid-column: span 2; background: var(--blue); color: #fff; flex-direction: row; align-items: center; justify-content: space-between;
}
.tile--badge strong { font-family: var(--font-display); font-weight: 400; font-size: 2rem; }
.tile--badge span { font-weight: 600; opacity: .9; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Marquee ---------- */
.marquee { background: var(--ink); color: var(--paper); overflow: hidden; padding: 1.1rem 0; }
.marquee__track {
  display: flex; gap: 1.6rem; width: max-content; align-items: center;
  font-family: var(--font-display); font-size: clamp(1.1rem, 2.2vw, 1.5rem); text-transform: uppercase; letter-spacing: .01em;
  animation: marquee 32s linear infinite;
}
.marquee__track i { color: var(--accent); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section--alt { background: var(--paper-2); }
.section__head { max-width: 46rem; margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }

/* Líneas */
.lines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.line {
  position: relative; border-radius: var(--radius); padding: 2rem 1.8rem 1.8rem;
  border: 1px solid var(--line); background: var(--paper);
  display: flex; flex-direction: column; gap: 1rem; overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.line:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.line__num {
  position: absolute; top: 1.2rem; right: 1.4rem; font-family: var(--font-display); font-size: 3.4rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--line);
}
.line__icon {
  width: 72px; height: 72px; border-radius: 16px; display: grid; place-items: center;
}
.line__icon svg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.line--solar .line__icon { background: var(--accent); color: var(--ink); }
.line--pc .line__icon { background: var(--ink); color: var(--paper); }
.line--cel .line__icon { background: var(--blue); color: #fff; }
.line p { color: #45454a; }
.line__list { list-style: none; padding: 0; margin: .2rem 0 .6rem; display: grid; gap: .55rem; }
.line__list li { padding-left: 1.5rem; position: relative; font-weight: 500; font-size: .96rem; }
.line__list li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 3px; background: var(--accent);
}
.line--pc .line__list li::before { background: var(--ink); }
.line--cel .line__list li::before { background: var(--blue); }
.line__link {
  margin-top: auto; font-weight: 700; text-decoration: none; display: inline-flex; gap: .4rem; align-items: center;
  padding-top: 1rem; border-top: 1px solid var(--line);
}
.line__link span { transition: transform .2s ease; }
.line__link:hover span { transform: translateX(4px); }

/* Destacado */
.feature { background: var(--ink); color: var(--paper); padding: clamp(4rem, 9vw, 7rem) 0; overflow: hidden; }
.feature__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.feature__copy h2 { margin-bottom: 1.2rem; }
.feature__copy > p { color: #c8c8cc; font-size: 1.08rem; }
.checks { list-style: none; padding: 0; margin: 1.6rem 0 2rem; display: grid; gap: .7rem; }
.checks li { display: flex; gap: .7rem; align-items: center; font-weight: 600; }
.checks li::before {
  content: "✓"; flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--ink); font-size: .85rem; font-weight: 900;
}

/* Por qué */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.perk { padding: 1.8rem 1.5rem; border-radius: var(--radius); background: var(--paper-2); }
.perk svg {
  width: 46px; height: 46px; padding: 10px; border-radius: 12px; background: var(--ink); margin-bottom: 1.2rem;
  fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.perk h3 { margin-bottom: .5rem; }
.perk p { color: #55555a; font-size: .96rem; }

/* Pasos */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: s; }
.step { background: var(--paper); border-radius: var(--radius); padding: 2rem 1.8rem; border: 1px solid var(--line); position: relative; }
.step__n {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--accent); font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 1.2rem;
}
.step h3 { margin-bottom: .5rem; }
.step p { color: #55555a; }

.cta-band {
  margin-top: 2.5rem; border-radius: var(--radius); padding: clamp(1.8rem, 4vw, 2.8rem);
  background: var(--accent); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.cta-band h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .4rem; }
.cta-band p { color: #2a2a1a; }

/* Contacto */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact__lead { margin-top: 1.2rem; font-size: 1.08rem; color: #45454a; max-width: 28rem; }
.contact__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ccard {
  display: flex; flex-direction: column; gap: .3rem; padding: 1.5rem; border-radius: var(--radius);
  border: 1px solid var(--line); text-decoration: none; transition: background .2s ease, color .2s ease, transform .2s ease;
  min-width: 0;
}
a.ccard:hover { background: var(--ink); color: var(--paper); transform: translateY(-3px); }
a.ccard:hover .ccard__label { color: var(--accent); }
.ccard svg { width: 28px; height: 28px; margin-bottom: .6rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ccard__label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); transition: color .2s ease; }
.ccard__value { font-weight: 700; overflow-wrap: anywhere; }

/* Footer */
.footer { background: var(--ink); color: var(--paper); padding: 3.5rem 0 2.5rem; }
.footer__inner { display: grid; justify-items: center; text-align: center; gap: 1.1rem; }
.footer__logo { height: 64px; width: auto; color: var(--paper); }
.footer__logo .brand__invert { fill: var(--ink); }
.footer__tag { color: #b5b5ba; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.4rem; margin-top: .4rem; }
.footer__nav a { text-decoration: none; font-weight: 600; font-size: .92rem; color: #e0e0e3; }
.footer__nav a:hover { color: var(--accent); }
.footer__copy { margin-top: 1.4rem; font-size: .84rem; color: #85858b; }

/* WhatsApp */
.cta-band__btns { display: flex; flex-wrap: wrap; gap: .7rem; }
.cta-band .btn svg { width: 20px; height: 20px; stroke-width: 2; }
.cta-band .btn:hover svg { transform: none; }
.ccard--wa svg { color: #1faa53; }
a.ccard--wa:hover { background: #1faa53; border-color: #1faa53; }
a.ccard--wa:hover svg, a.ccard--wa:hover .ccard__label { color: #fff; }
.ccard--wide { grid-column: span 2; }
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.15rem .85rem .95rem; border-radius: 999px;
  background: #25d366; color: #0b0b0c; font-weight: 700; text-decoration: none;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6), 0 4px 12px rgba(0,0,0,.15);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { transform: translateY(-3px) scale(1.03); }

/* Animación de aparición */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .perks { grid-template-columns: repeat(2, 1fr); }
  .lines { grid-template-columns: 1fr 1fr; }
  .lines .line:last-child { grid-column: span 2; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1.5rem;
    transform: translateY(-120%); transition: transform .3s ease; z-index: -1;
    box-shadow: 0 20px 30px -20px rgba(0,0,0,.3);
  }
  .nav.is-open { transform: none; }
  .nav a:not(.btn) { padding: 1rem 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 1rem; justify-content: center; }

  .hero__grid, .feature__grid, .contact { grid-template-columns: 1fr; }
  .hero__visual { grid-auto-rows: 140px; }
  .feature__art { max-width: 420px; }
  .steps { grid-template-columns: 1fr; }
  .br-lg { display: none; }
}

@media (max-width: 600px) {
  .lines, .perks, .contact__cards { grid-template-columns: 1fr; }
  .ccard--wide { grid-column: auto; }
  .wa-float span { display: none; }
  .wa-float { padding: .9rem; right: 16px; bottom: 16px; }
  .lines .line:last-child { grid-column: auto; }
  .hero__facts { gap: 1.6rem; }
  .brand__logo { height: 40px; }
}

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