/* microcentro.mx: plain CSS, dark first, light follows the system. */
:root {
  color-scheme: dark light;
  --bg: #0b0d10;
  --bg-alt: #13161b;
  --card: #181c22;
  --line: #262b33;
  --text: #eef1f5;
  --muted: #a3acb9;
  --accent: #2f8cff;
  --accent-ink: #ffffff;
  --wa: #25d366;
  --wa-ink: #06301a;
  --radius: 18px;
  --wrap: 1200px;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --bg-alt: #f5f6f8;
    --card: #ffffff;
    --line: #e2e5ea;
    --text: #111418;
    --muted: #59616d;
    --accent: #0a66d8;
    --wa-ink: #063d20;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand img { width: 170px; height: auto; }
@media (prefers-color-scheme: light) { .brand img { filter: invert(1); } }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 760px) {
  .nav { display: none; }
  .top-cta { margin-left: auto; }
  .brand img { width: 140px; }
}

/* Apple channel signature: own clean band, 35px tall, never animated */
.signature { background: var(--bg); border-bottom: 1px solid var(--line); }
.signature .wrap { padding: 18px 0; }
.signature img { height: 35px; width: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 15px; border: 1px solid transparent; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn-wa { background: var(--wa); color: var(--wa-ink); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted); }

/* Sections */
.band { padding: clamp(28px, 5vw, 64px) 0; }
.band.alt { background: var(--bg-alt); }
.lead { color: var(--muted); font-size: 1.1rem; }
.hint { text-align: center; color: var(--muted); font-size: 14px; margin: 14px 0 0; }

/* Carousel: native scroll-snap, JS only adds buttons, dots and autoplay */
.carousel { position: relative; }
.track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--radius); }
.track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 2250 / 1110; background: var(--bg-alt); }
.slide img, .banner img { width: 100%; height: 100%; object-fit: cover; }
.nav-btn { position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgb(0 0 0 / .45); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding-bottom: 4px; }
.nav-btn:hover { background: rgb(0 0 0 / .65); }
.prev { left: 12px; } .next { right: 12px; }
@media (max-width: 600px) { .nav-btn { display: none; } }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.dots button { width: 8px; height: 8px; padding: 0; border-radius: 99px; border: 0; background: var(--line); cursor: pointer; transition: width .25s, background .25s; }
.dots button[aria-selected="true"] { width: 26px; background: var(--accent); }

/* Help cards */
.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 6px; }
.card p { color: var(--muted); margin: 0 0 14px; flex: 1; }
.card .btn { align-self: flex-start; }

/* Service */
.banner { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 2250 / 1110; }
.split { display: grid; gap: 24px 48px; grid-template-columns: 1fr 1fr; margin-top: 36px; align-items: start; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8'/%3E%3C/svg%3E"); opacity: .9; }
.ticks li::after { content: ""; position: absolute; left: 5px; top: calc(.35em + 4px); width: 4px; height: 7px; border: solid var(--accent-ink); border-width: 0 2px 2px 0; rotate: 45deg; }

/* FAQ */
.faq { display: grid; gap: 10px; margin-top: 20px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 28px 16px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; translate: 0 -50%; font-size: 22px; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 18px; color: var(--muted); }

/* Visit + contact */
.visit { display: grid; gap: 40px; grid-template-columns: 1.2fr 1fr; }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } }
address { font-style: normal; font-size: 1.15rem; margin-bottom: 18px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; }
.hours { margin: 28px 0 0; max-width: 420px; }
.hours div { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 10px 0; }
.hours dt { font-weight: 600; } .hours dd { margin: 0; color: var(--muted); }
.contact ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; font-size: 1.05rem; }
.contact a { color: var(--text); display: inline-flex; align-items: center; gap: 8px; }
.contact li:first-child a { color: var(--wa); font-weight: 600; }
.qr { margin: 0; display: inline-flex; flex-direction: column; align-items: center; gap: 8px; background: #fff; border-radius: 16px; padding: 14px 14px 10px; }
.qr img { width: 180px; }
.qr figcaption { color: #333; font-size: 13px; }

/* Stats */
.stats { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); text-align: center; }
.stats strong { display: block; font-size: 1.5rem; }
.stats span { color: var(--muted); font-size: 15px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 26px 0 90px; color: var(--muted); font-size: 14px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.foot p { margin: 0; }
.legal { font-size: 12px; max-width: 560px; }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgb(0 0 0 / .35); }
.wa-float:hover { filter: brightness(1.06); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.notfound { text-align: center; padding: 12vh 0; }
