/* ==========================================================================
   Nexcell Repair website
   Brand: Version B (Deep Blue, Bright Yellow, Repair Red), Poppins 400/600/800
   Shapes: buttons and filter pills are full pill, cards 16px, inputs and
   option tiles 12px.
   Layers: header 40, floats/action bar 45, scrim 60, drawers/panels 70, toast 80
   ========================================================================== */

:root {
  --blue: #1F3C88;
  --blue-600: #19327A;
  --blue-800: #132A63;
  --blue-900: #0E2050;
  --blue-tint: #E9EEF8;
  --yellow: #FFC72C;
  --yellow-600: #F5B70A;
  --red: #D62828;
  --red-700: #B51F1F;
  --wa: #25D366;
  --wa-600: #1FBE5B;
  --ink: #171717;
  --slate: #5B6170;
  --line: #DCE1EA;

  --bg: #FFFFFF;
  --bg-alt: #F3F6FB;
  --surface: #FFFFFF;
  --surface-tint: var(--blue-tint);
  --text: var(--ink);
  --muted: var(--slate);
  --border: var(--line);
  --input-border: #8892A6;
  --brand-text: var(--blue);
  --es: var(--blue);
  --danger-text: var(--red);
  --ok: #157A3E;
  --band: var(--blue);
  --band-deep: var(--blue-800);
  --band-muted: #D3DCF2;

  --shadow-sm: 0 1px 2px rgb(31 60 136 / .06), 0 4px 12px rgb(31 60 136 / .06);
  --shadow: 0 2px 4px rgb(31 60 136 / .06), 0 12px 32px rgb(31 60 136 / .10);
  --shadow-lg: 0 24px 64px rgb(14 32 80 / .22);

  --r-card: 16px;
  --r-input: 12px;
  --r-pill: 999px;
  --header-h: 72px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A1330;
    --bg-alt: #0E1A3D;
    --surface: #13214C;
    --surface-tint: #182A5E;
    --text: #EEF1F8;
    --muted: #B2BBD0;
    --border: #283A72;
    --input-border: #6F7FAE;
    --brand-text: #AFC2F5;
    --es: #FFD45E;
    --danger-text: #FF8A8A;
    --ok: #5BD68C;
    --band: #16306F;
    --band-deep: #0E2050;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / .3);
    --shadow: 0 2px 4px rgb(0 0 0 / .25), 0 12px 32px rgb(0 0 0 / .35);
    --shadow-lg: 0 24px 64px rgb(0 0 0 / .5);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 900px) { body { font-size: 17px; padding-bottom: 0; } }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 800; letter-spacing: -.01em; }
h3 { font-weight: 600; letter-spacing: 0; }
p, ul, ol, figure { margin: 0; }
ul { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.on-band :focus-visible, .hero :focus-visible, .page-hero :focus-visible, .site-footer :focus-visible { outline-color: var(--yellow); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 90; background: var(--yellow); color: var(--ink); padding: 10px 16px; border-radius: var(--r-pill); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Bilingual ----------
   English first, Spanish directly under at 86% size. Never fine print. */
.es { display: block; font-size: max(12px, .86em); color: var(--es); margin-top: .1em; }
p .es, li > .es, .lead .es { margin-top: .3em; }
.bi-inline .en, .bi-inline .es { display: inline; margin: 0; font-size: 1em; color: inherit; }
.bi-inline .es::before { content: " / "; opacity: .7; }
html[data-lang="en"] .es { display: none !important; }
html[data-lang="es"] .en { display: none !important; }
html[data-lang="es"] .es { font-size: 1em; margin-top: 0; color: inherit; }
html[data-lang="es"] .bi-inline .es::before { content: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .container { padding-inline: 24px; } }
@media (min-width: 1024px) { .container { padding-inline: 32px; } }
.section { padding-block: 64px; }
@media (min-width: 1024px) { .section { padding-block: 96px; } }
.section-alt { background: var(--bg-alt); }
.section-tint { background: var(--surface-tint); }
.h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.h3 { font-size: 1.2rem; }
.lead { font-size: 1.05rem; color: var(--muted); margin-top: 14px; max-width: 62ch; }
.lead .es { color: var(--es); }
.muted { color: var(--muted); }
.stack-sm > * + * { margin-top: 8px; }
.row-head { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: flex-end; justify-content: space-between; }
.section-head { margin-bottom: 36px; max-width: 760px; }
.placeholder { font-family: inherit; background: repeating-linear-gradient(135deg, rgb(255 199 44 / .28) 0 6px, rgb(255 199 44 / .12) 6px 12px); border-radius: 6px; padding: 0 .3em; color: inherit; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .65em;
  min-height: 52px; padding: .55em 1.35em;
  border-radius: var(--r-pill); border: 2px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.15; text-decoration: none; text-align: left;
  transition: transform .15s var(--ease), background-color .2s, border-color .2s, box-shadow .2s, color .2s;
  white-space: nowrap;
}
.btn i { font-size: 1.35em; flex: none; }
.btn-label { display: flex; flex-direction: column; }
.btn .es { font-size: max(12px, .8em); font-weight: 400; margin-top: .08em; }
html .btn .es, html .float-pill .es, html .action-bar .es { color: inherit; }  /* button text color always wins over section colors */
.btn:active { transform: translateY(1px) scale(.98); }
.btn-lg { min-height: 60px; font-size: 1.05rem; padding-inline: 1.6em; }
.btn-sm { min-height: 44px; font-size: .9rem; padding: .4em 1em; gap: .5em; }
.btn-block { width: 100%; justify-content: center; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: var(--yellow-600); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-700); }
.btn-wa { background: var(--wa); color: var(--ink); }
.btn-wa:hover { background: var(--wa-600); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-800); }
.btn-outline { border-color: currentColor; color: var(--brand-text); background: transparent; }
.btn-outline:hover { background: var(--surface-tint); }
.btn-ghost { background: var(--surface-tint); color: var(--brand-text); }
.btn-ghost:hover { background: color-mix(in srgb, var(--surface-tint) 70%, var(--blue) 12%); }
.on-band .btn-outline, .hero .btn-outline, .page-hero .btn-outline { color: #fff; }
.on-band .btn-outline:hover, .hero .btn-outline:hover, .page-hero .btn-outline:hover { background: rgb(255 255 255 / .1); }
.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center; flex: none;
  border-radius: var(--r-pill); border: 0; background: transparent; color: var(--text); font-size: 24px; position: relative;
  transition: background-color .2s, transform .15s;
}
.icon-btn:hover { background: var(--surface-tint); }
.icon-btn:active { transform: scale(.94); }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand-text); text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Preview banner (only on localhost / file / ?preview) ---------- */
.preview-banner { background: #FFF3C4; color: #4A3900; font-size: .85rem; line-height: 1.4; }
.preview-banner .container { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding-block: 8px; }
.preview-banner code { font-size: .95em; background: rgb(0 0 0 / .06); padding: 0 .3em; border-radius: 4px; }
.preview-banner button { width: 40px; height: 40px; border: 0; background: transparent; font-size: 18px; color: inherit; flex: none; }

/* ---------- Top bar ---------- */
.topbar { background: var(--band-deep); color: #fff; font-size: .85rem; display: none; }
@media (min-width: 768px) { .topbar { display: block; } }
.topbar-inner { display: flex; align-items: center; gap: 24px; min-height: 40px; }
.topbar-item { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: #E4EAF8; }
.topbar-item i { font-size: 16px; color: var(--yellow); }
a.topbar-item:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.topbar-item:last-child { margin-left: auto; }
.status-open { color: #8EF0B4; font-weight: 600; }
.status-closed { color: #FFC9C9; font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40; min-height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(12px); backdrop-filter: saturate(1.5) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.brand { display: block; flex: none; }
.brand img { width: 150px; height: auto; }
.nav { display: none; align-items: center; gap: 2px; margin-left: 24px; }
.nav a { padding: 8px 12px; border-radius: var(--r-input); text-decoration: none; font-weight: 600; font-size: .95rem; line-height: 1.15; transition: background-color .2s; }
.nav a .es { font-size: max(12px, .78em); font-weight: 400; }
.nav a:hover { background: var(--surface-tint); }
.nav a[aria-current="page"] { background: var(--surface-tint); color: var(--brand-text); }
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.header-call { display: none; }
.lang-toggle { display: none; background: var(--surface-tint); border-radius: var(--r-pill); padding: 4px; gap: 2px; }
.lang-toggle button { border: 0; background: transparent; border-radius: var(--r-pill); padding: 6px 10px; font-size: .8rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.lang-toggle button[aria-pressed="true"] { background: var(--surface); color: var(--brand-text); box-shadow: var(--shadow-sm); }
.bag-count {
  position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: var(--r-pill); background: var(--red); color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center;
}
.bag-btn.bump { animation: bump .45s var(--ease); }
@keyframes bump { 30% { transform: scale(1.18); } 60% { transform: scale(.95); } }
@media (min-width: 640px) { .header-call { display: inline-flex; } }
@media (min-width: 1140px) {
  .nav { display: flex; }
  .lang-toggle { display: inline-flex; }
  .menu-btn { display: none; }
  .brand img { width: 156px; }
}

/* ---------- Hero (home + repairs) ---------- */
.hero { position: relative; isolation: isolate; color: #fff; background: var(--band); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("../img/shop-inside.jpg") center 40% / cover no-repeat;
  opacity: .12; filter: grayscale(1);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; width: 720px; height: 720px; right: -260px; top: -320px;
  background: radial-gradient(circle, rgb(255 199 44 / .22), transparent 62%);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; padding-block: 40px 48px; align-items: start; }
.hero h1 { font-size: clamp(2rem, 4.1vw, 3.15rem); letter-spacing: -.02em; }
.hero h1 .es, .page-hero h1 .es { color: var(--yellow); margin-top: .18em; }
.hero-sub { margin-top: 20px; font-size: 1.06rem; color: var(--band-muted); max-width: 36rem; }
.hero-sub .es, .page-hero .lead .es { color: #FFE08A; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; font-size: .92rem; color: var(--band-muted); }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points i { color: var(--yellow); font-size: 20px; }
@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: 1.02fr .98fr; gap: 56px; padding-block: 48px 72px; }
  .hero-copy { padding-top: 16px; }
}

/* Inner page hero */
.page-hero { position: relative; isolation: isolate; background: var(--band); color: #fff; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; z-index: -1; width: 600px; height: 600px; right: -220px; bottom: -340px;
  background: radial-gradient(circle, rgb(255 199 44 / .2), transparent 62%);
}
.page-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 44px 52px; align-items: center; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); letter-spacing: -.02em; max-width: 18ch; }
.page-hero .lead { color: var(--band-muted); }
.page-hero-media { border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 16 / 10; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1024px) { .page-hero-inner { grid-template-columns: 1.1fr .9fr; gap: 56px; padding-block: 64px 72px; } }

.fact-list { display: grid; gap: 14px; }
.fact-list li { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .14); border-radius: var(--r-card); padding: 14px 16px; }
.fact-list i { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--yellow); color: var(--ink); font-size: 24px; }
.fact-list strong { display: block; font-weight: 600; }
.fact-list .es { color: #FFE08A; }

/* ---------- Quote tool ---------- */
.quote-card { background: var(--surface); color: var(--text); border-radius: var(--r-card); padding: 22px; box-shadow: var(--shadow-lg); }
@media (min-width: 640px) { .quote-card { padding: 28px; } }
.q-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.q-head-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--yellow); color: var(--ink); font-size: 26px; flex: none; }
.q-title { font-size: 1.3rem; font-weight: 800; }
.q-sub { color: var(--muted); font-size: .92rem; margin-top: 4px; }
.q-step { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.q-legend, .q-step > label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 10px; padding: 0; }
.q-legend .es, .q-step > label .es { font-size: .86em; font-weight: 400; }
.q-grid { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 480px) { .q-devices { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 480px) { .q-issues { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.opt {
  display: flex; align-items: center; gap: 10px; min-height: 52px; width: 100%;
  padding: 8px 10px; border-radius: var(--r-input); border: 1.5px solid var(--border);
  background: var(--surface); color: var(--text); text-align: left; font-weight: 600; font-size: .88rem; line-height: 1.15;
  transition: border-color .2s, background-color .2s, transform .15s;
}
.opt i { font-size: 22px; color: var(--brand-text); flex: none; }
.opt .es { font-size: max(12px, .84em); font-weight: 400; }
.opt:hover { border-color: var(--brand-text); }
.opt:active { transform: scale(.98); }
.opt[aria-pressed="true"] { border-color: var(--blue); background: var(--surface-tint); box-shadow: inset 0 0 0 1px var(--blue); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .opt[aria-pressed="true"] { border-color: var(--yellow); box-shadow: inset 0 0 0 1px var(--yellow); } }
@media (min-width: 480px) {
  .q-devices .opt { flex-direction: column; justify-content: center; text-align: center; gap: 4px; min-height: 84px; padding: 10px 6px; font-size: .82rem; }
}
.q-hint { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: .92rem; padding: 14px 16px; background: var(--bg-alt); border-radius: var(--r-input); }
.q-hint i { font-size: 22px; color: var(--brand-text); flex: none; }
.q-result-box { border-radius: var(--r-input); background: var(--surface-tint); padding: 18px; animation: rise .35s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.q-price-label { font-size: .85rem; font-weight: 600; color: var(--muted); }
.q-price-label .es { display: inline; margin-left: .35em; font-size: 1em; }
.q-price-label .es::before { content: "/ "; }
html[data-lang="es"] .q-price-label .es { margin: 0; }
html[data-lang="es"] .q-price-label .es::before { content: none; }
.q-price-value { display: block; font-size: 2rem; font-weight: 800; line-height: 1.1; margin-top: 4px; color: var(--text); }
.q-price-value .es { font-size: .62em; color: var(--es); margin-top: .2em; }
.q-summary { font-size: 1.35rem; line-height: 1.25; letter-spacing: -.01em; }
.q-summary .es { font-size: .82em; }
.q-note { font-size: .9rem; color: var(--muted); margin-top: 6px; }
.q-facts { display: grid; gap: 8px; margin-top: 14px; font-size: .9rem; }
.q-facts li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.3; }
.q-facts i { font-size: 20px; color: var(--ok); flex: none; margin-top: 1px; }
.q-actions { display: grid; gap: 10px; margin-top: 18px; }
@media (min-width: 560px) { .q-actions { grid-template-columns: 1fr 1fr; } .q-actions .btn { justify-content: center; } }
.q-actions .btn { white-space: normal; }

/* ---------- Forms ---------- */
.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field > legend { font-weight: 600; font-size: .95rem; line-height: 1.25; padding: 0; }
.field > label .es, .field > legend .es { font-size: .86em; font-weight: 400; }
.input {
  min-width: 0;
  width: 100%; min-height: 52px; padding: 12px 14px;
  border: 1.5px solid var(--input-border); border-radius: var(--r-input);
  background: var(--surface); color: var(--text); font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
textarea.input { min-height: 88px; resize: vertical; }
select.input { appearance: none; padding-right: 44px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgb(31 60 136 / .2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .input:focus { border-color: var(--yellow); box-shadow: 0 0 0 4px rgb(255 199 44 / .2); } }
.field-help { font-size: .85rem; color: var(--muted); }
.field-error { display: none; font-size: .88rem; font-weight: 600; color: var(--danger-text); }
.field.invalid .input { border-color: var(--danger-text); }
.field.invalid .field-error { display: block; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .form-grid .full { grid-column: 1 / -1; } }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 24px; box-shadow: var(--shadow); }
@media (min-width: 768px) { .form-card { padding: 32px; } }
.form-success { display: flex; gap: 12px; align-items: flex-start; background: color-mix(in srgb, var(--wa) 16%, var(--surface)); border-radius: var(--r-input); padding: 14px 16px; font-size: .95rem; }
.form-success i { font-size: 24px; color: var(--ok); flex: none; }
.fine { font-size: .85rem; color: var(--muted); line-height: 1.45; }

/* ---------- Bento: "What do you need today?" ---------- */
.bento { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 32px; }
@media (min-width: 768px) { .bento { grid-template-columns: repeat(2, 1fr); } .tile-repair, .tile-phones { grid-column: span 2; } }
@media (min-width: 1024px) {
  .bento { grid-template-columns: 1.2fr 1fr 1fr; }
  .tile-repair { grid-column: 1; grid-row: span 2; }
  .tile-phones { grid-column: 2 / span 2; }
}
.tile {
  position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 16px;
  min-height: 230px; padding: 26px; border-radius: var(--r-card); text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tile h3 { font-size: 1.4rem; font-weight: 800; }
.tile p { color: inherit; opacity: .92; }
.tile-link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.tile-link .bi { display: inline-flex; flex-direction: column; }
.tile-link i { font-size: 20px; transition: transform .2s; }
.tile:hover .tile-link i { transform: translateX(4px); }
.tile-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 28px; }

.tile-repair { background: var(--surface-tint); color: var(--text); }
.tile-repair .tile-icon { background: var(--blue); color: #fff; }
.tile-repair .tile-link { color: var(--brand-text); }
.repair-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 4px; }
.repair-list li { display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: var(--r-input); padding: 10px 12px; font-weight: 600; font-size: .88rem; line-height: 1.2; }
.repair-list i { font-size: 22px; color: var(--brand-text); flex: none; }
.repair-list .es { font-weight: 400; }

.tile-phones { background: var(--yellow); color: var(--ink); min-height: 250px; }
.tile-phones .es { color: var(--blue-800); }
.tile-phones .tile-big { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.tile-phones .tile-deco { position: absolute; right: -10px; bottom: -34px; font-size: 220px; color: rgb(23 23 23 / .1); z-index: -1; transform: rotate(-12deg); }
.tile-phones .tile-copy { max-width: 30rem; }

.tile-cases { color: #fff; padding: 0; min-height: 260px; }
.tile-cases img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.tile-cases:hover img { transform: scale(1.04); }
.tile-cases::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(14 32 80 / .05) 20%, rgb(14 32 80 / .9) 100%); }
.tile-cases .tile-overlay { margin-top: auto; padding: 24px; display: grid; gap: 12px; text-shadow: 0 1px 14px rgb(14 32 80 / .7); }
.tile-cases .es { color: #FFE08A; }

.tile-more { background: var(--blue); color: #fff; }
.tile-more .es { color: #FFE08A; }
.tile-more .tile-icon { background: rgb(255 255 255 / .12); color: var(--yellow); }

/* ---------- Promises ---------- */
.promise-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 1024px) { .promise-wrap { grid-template-columns: .95fr 1.05fr; gap: 72px; align-items: center; } }
.promise-photo { margin-top: 28px; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.promise-photo img { width: 100%; height: 100%; object-fit: cover; }
.promises { display: grid; gap: 28px; }
@media (min-width: 640px) { .promises { grid-template-columns: 1fr 1fr; gap: 36px 32px; } }
.promise { display: grid; gap: 14px; align-content: start; }
.promise-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--blue); color: var(--yellow); font-size: 28px; }
.promise h3 { font-size: 1.15rem; }
.promise h3 .es { font-size: .88em; }
.promise p { color: var(--muted); font-size: .97rem; }

/* ---------- Steps (how it works) ---------- */
.steps { display: grid; gap: 28px; margin-top: 40px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-content: start; }
@media (min-width: 900px) { .step { grid-template-columns: 1fr; } }
.step-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font-size: 26px; position: relative; z-index: 1; }
.step:last-child .step-icon { background: var(--yellow); color: var(--ink); }
.step::before { content: ""; position: absolute; left: 27px; top: 60px; bottom: -28px; width: 2px; background: repeating-linear-gradient(180deg, var(--border) 0 6px, transparent 6px 12px); }
.step:last-child::before { display: none; }
@media (min-width: 900px) {
  .step::before { left: 64px; right: -16px; top: 27px; bottom: auto; width: auto; height: 2px; background: repeating-linear-gradient(90deg, var(--border) 0 8px, transparent 8px 14px); }
}
.step h3 { font-size: 1.1rem; }
.step h3 .es { font-size: .88em; }
.step p { color: var(--muted); font-size: .95rem; margin-top: 6px; }

/* ---------- Products ---------- */
.products { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.carousel {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 270px); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 18px; margin: 28px -4px 0;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent; overscroll-behavior-x: contain;
}
.carousel > * { scroll-snap-align: start; }
.product {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-card); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-media {
  aspect-ratio: 4 / 3; display: grid; place-items: center; position: relative;
  background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--swatch) 26%, var(--surface)) 0, var(--surface-tint) 70%);
}
.product-media.on-dark { background: radial-gradient(circle at 50% 38%, #3A5397 0, var(--blue-800) 72%); }
.product-media i { font-size: 136px; color: var(--swatch); filter: drop-shadow(0 12px 20px rgb(14 32 80 / .25)); transition: transform .4s var(--ease), color .3s; }
.product:hover .product-media i { transform: translateY(-4px) rotate(-4deg); }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.product-name { font-size: 1.12rem; font-weight: 600; line-height: 1.25; }
.product-name .es { font-size: .86em; font-weight: 400; }
.product-meta, .product-desc { font-size: .9rem; color: var(--muted); line-height: 1.4; }
.product-price { font-size: 1.35rem; font-weight: 800; margin-top: 4px; }
.product-price .es { font-size: .7em; }
.product-warranty, .product-battery { display: flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--ok); line-height: 1.25; }
.product-warranty i, .product-battery i { font-size: 18px; flex: none; }
.product-warranty .es, .product-battery .es { display: inline; font-size: 1em; color: inherit; margin: 0; }
.product-warranty .es::before, .product-battery .es::before { content: " / "; }
html[data-lang="es"] .product-warranty .es::before, html[data-lang="es"] .product-battery .es::before { content: none; }
.product-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; flex-wrap: wrap; }
.product-actions .btn { flex: 1 1 auto; justify-content: center; }
.product.is-sold { opacity: .6; }
.sold-tag { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--muted); }

.grade { display: flex; align-items: center; gap: 10px; font-size: .82rem; font-weight: 600; line-height: 1.15; color: var(--text); }
.grade .es { font-weight: 400; }
.grade-letter { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .9rem; flex: none; }
.grade-a .grade-letter { background: var(--blue); color: #fff; }
.grade-b .grade-letter { background: var(--yellow); color: var(--ink); }
.grade-c .grade-letter { background: var(--border); color: var(--text); }

.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.swatch { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--surface); background: var(--c); box-shadow: 0 0 0 1.5px var(--input-border); padding: 0; transition: transform .15s; }
.swatch:hover { transform: scale(1.08); }
.swatch[aria-checked="true"] { box-shadow: 0 0 0 2.5px var(--blue); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .swatch[aria-checked="true"] { box-shadow: 0 0 0 2.5px var(--yellow); } }
.swatch-name { font-size: .85rem; color: var(--muted); line-height: 1.3; }

/* Filters */
.filters { display: grid; gap: 14px; margin-bottom: 24px; }
@media (min-width: 900px) { .filters { grid-template-columns: auto auto 1fr; align-items: end; gap: 24px; } .filters .sort { justify-self: end; } }
.filter-group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-label { font-size: .82rem; font-weight: 600; color: var(--muted); width: 100%; line-height: 1.2; }
.filter-label .es { display: inline; font-size: 1em; color: inherit; margin: 0; }
.filter-label .es::before { content: " / "; }
html[data-lang="es"] .filter-label .es::before { content: none; }
.pill {
  display: inline-flex; flex-direction: column; justify-content: center; min-height: 44px; padding: 6px 16px;
  border-radius: var(--r-pill); border: 1.5px solid var(--border); background: var(--surface); color: var(--text);
  font-weight: 600; font-size: .88rem; line-height: 1.1; transition: background-color .2s, border-color .2s;
}
.pill .es { font-size: max(12px, .82em); font-weight: 400; }
.pill:hover { border-color: var(--brand-text); }
.pill[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.pill[aria-pressed="true"] .es { color: #FFE08A; }
.sort { display: grid; gap: 6px; min-width: min(100%, 320px); }
.sort > span { font-size: .82rem; font-weight: 600; color: var(--muted); }
.sort .input { min-height: 44px; padding-block: 8px; }
.result-count { font-size: .9rem; color: var(--muted); margin-bottom: 16px; }
.result-count .es { display: inline; font-size: 1em; color: inherit; margin: 0; }
.result-count .es::before { content: " / "; }
html[data-lang="es"] .result-count .es::before { content: none; }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 48px 20px; border: 1.5px dashed var(--border); border-radius: var(--r-card); display: grid; justify-items: center; gap: 12px; }
.empty-state i { font-size: 44px; color: var(--brand-text); }
.notice { display: flex; gap: 12px; align-items: flex-start; background: #FFF3C4; color: #4A3900; border-radius: var(--r-input); padding: 12px 16px; font-size: .88rem; margin-bottom: 20px; }
.notice i { font-size: 20px; flex: none; }

.case-picker { display: grid; gap: 8px; max-width: 520px; margin-bottom: 20px; }
.case-picker label { font-weight: 600; font-size: 1.05rem; }

/* ---------- Grades guide ---------- */
.grade-scale { display: grid; border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; background: var(--surface); }
@media (min-width: 768px) { .grade-scale { grid-template-columns: repeat(3, 1fr); } }
.grade-scale > div { padding: 24px; display: grid; gap: 10px; align-content: start; }
.grade-scale > div + div { border-top: 1px solid var(--border); }
@media (min-width: 768px) { .grade-scale > div + div { border-top: 0; border-left: 1px solid var(--border); } }
.grade-scale .grade-letter { width: 48px; height: 48px; font-size: 1.3rem; }
.grade-scale h3 { font-size: 1.15rem; }
.grade-scale p { color: var(--muted); font-size: .95rem; }

/* ---------- Repair types ---------- */
.repair-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.repair-item { display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 18px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--border); }
.repair-item > i { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-tint); color: var(--brand-text); font-size: 24px; }
.repair-item h3 { font-size: 1.02rem; }
.repair-item h3 .es { font-size: .88em; }
.repair-item p { font-size: .9rem; color: var(--muted); margin-top: 6px; line-height: 1.45; }
.time-tag { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: .8rem; font-weight: 600; color: var(--ok); }
.time-tag i { font-size: 16px; }

/* Devices */
.devices-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 1024px) { .devices-wrap { grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; } }
.device-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .device-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.device { display: grid; gap: 10px; padding: 18px; border-radius: var(--r-card); background: var(--surface-tint); }
.device i { font-size: 34px; color: var(--brand-text); }
.device strong { font-weight: 600; line-height: 1.25; }
.device span.small { font-size: .85rem; color: var(--muted); line-height: 1.35; }
.device-sim { background: var(--yellow); color: var(--ink); }
.device-sim i { color: var(--ink); }
.device-sim .es { color: var(--blue-800); }
.device-sim span.small { color: #3D3D3D; }

/* Price table */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: var(--surface-tint); margin-bottom: 18px; }
.tab { border: 0; background: transparent; border-radius: var(--r-pill); padding: 10px 18px; font-weight: 600; font-size: .92rem; color: var(--muted); min-height: 44px; }
.tab[aria-selected="true"] { background: var(--surface); color: var(--brand-text); box-shadow: var(--shadow-sm); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface); }
.price-table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 760px; }
.price-table.compact { min-width: 480px; }
.price-table th, .price-table td { padding: 13px 16px; text-align: left; white-space: nowrap; }
.price-table thead th { background: var(--surface-tint); font-weight: 600; font-size: .85rem; line-height: 1.2; vertical-align: bottom; }
.price-table thead th .es { font-weight: 400; }
.price-table tbody th { font-weight: 600; position: sticky; left: 0; background: var(--surface); }
.price-table tbody tr:nth-child(even) td, .price-table tbody tr:nth-child(even) th { background: var(--bg-alt); }
.price-table td { font-weight: 600; }
.price-table td .es { display: inline; font-size: .9em; margin: 0 0 0 .3em; }
.table-note { font-size: .88rem; color: var(--muted); margin-top: 12px; }

/* Data band */
.data-band { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 28px; border-radius: var(--r-card); background: var(--surface-tint); align-items: center; }
@media (min-width: 900px) { .data-band { grid-template-columns: auto 1fr auto; gap: 32px; padding: 40px; } }
.data-band > .btn, .band-inner > .btn { justify-self: start; }
.data-band-icon { width: 84px; height: 84px; border-radius: 24px; display: grid; place-items: center; background: var(--blue); color: var(--yellow); font-size: 44px; }
.data-band h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
.data-band p { color: var(--muted); margin-top: 10px; max-width: 58ch; }
.tip { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; background: var(--surface); border-radius: var(--r-input); padding: 14px 16px; max-width: 320px; }
.tip i { font-size: 22px; color: var(--brand-text); flex: none; }

/* Booking */
.book-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 1024px) { .book-wrap { grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; } }
.check-list { display: grid; gap: 12px; margin-top: 24px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list i { font-size: 22px; color: var(--ok); flex: none; margin-top: 2px; }

/* ---------- Visit ---------- */
.visit { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 1024px) { .visit { grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: stretch; } }
.map-frame { border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--border); background: var(--surface-tint); height: 340px; }
@media (min-width: 1024px) { .map-frame { aspect-ratio: auto; position: sticky; top: calc(var(--header-h) + 24px); height: min(620px, 78vh); align-self: start; } }
.map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
.visit-info { display: grid; gap: 22px; align-content: start; }
.visit-address { font-size: 1.25rem; font-weight: 600; line-height: 1.35; }
.visit-cross { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); }
.visit-cross i { font-size: 20px; color: var(--red); flex: none; margin-top: 3px; }
.dir-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.hours-block h3 { font-size: 1.05rem; margin-bottom: 8px; }
.hours-block h3 .es { display: inline; font-size: 1em; color: inherit; margin: 0; }
.hours-block h3 .es::before { content: " / "; }
html[data-lang="es"] .hours-block h3 .es::before { content: none; }
.status-line { font-weight: 600; margin-bottom: 10px; }
.status-line .is-open { color: var(--ok); }
.status-line .is-closed { color: var(--danger-text); }
.hours { display: grid; gap: 2px; font-size: .92rem; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 6px 10px; border-radius: 8px; }
.hours li .bi-inline { color: var(--muted); }
.hours li.today { background: var(--surface-tint); font-weight: 600; }
.hours li.today .bi-inline { color: var(--text); }
.contact-rows { display: grid; gap: 10px; }
.contact-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-card); border: 1px solid var(--border); text-decoration: none; background: var(--surface); transition: border-color .2s, transform .15s; }
.contact-row:hover { border-color: var(--brand-text); }
.contact-row:active { transform: scale(.99); }
.contact-row > i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; flex: none; }
.contact-row strong { display: block; font-weight: 600; line-height: 1.25; }
.contact-row span.small { font-size: .88rem; color: var(--muted); }
.ci-call { background: var(--red); color: #fff; }
.ci-wa { background: var(--wa); color: var(--ink); }
.ci-mail { background: var(--surface-tint); color: var(--brand-text); }

.gallery { display: grid; gap: 16px; }
@media (min-width: 768px) { .gallery { grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; } .gallery figure:first-child { grid-row: span 2; } }
.gallery-item { display: grid; grid-template-rows: 1fr auto; }
.gallery-item .gimg { border-radius: var(--r-card); overflow: hidden; min-height: 200px; background: var(--surface-tint); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { font-size: .88rem; color: var(--muted); padding: 10px 2px 0; line-height: 1.35; }

.tips { display: grid; gap: 14px; }
@media (min-width: 768px) { .tips { grid-template-columns: repeat(2, 1fr); } }
.tips li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px; background: var(--surface); border-radius: var(--r-card); border: 1px solid var(--border); }
.tips li > i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-tint); color: var(--brand-text); font-size: 22px; }
.tips strong { font-weight: 600; display: block; }
.tips p { font-size: .92rem; color: var(--muted); margin-top: 4px; }

/* ---------- Bands ---------- */
.review-band { background: var(--yellow); color: var(--ink); }
.review-band .es { color: var(--blue-800); }
.band-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; padding-block: 48px; align-items: center; }
@media (min-width: 900px) { .band-inner { grid-template-columns: 1fr auto; gap: 48px; padding-block: 56px; } }
.band-inner p { margin-top: 10px; max-width: 58ch; }
.band-blue { background: var(--band); color: #fff; }
.band-blue .es { color: #FFE08A; }
.band-blue p { color: var(--band-muted); }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 1024px) { .faq-wrap { grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; } .faq-head { position: sticky; top: calc(var(--header-h) + 32px); } }
.faq-head p { color: var(--muted); margin: 14px 0 22px; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); transition: border-color .2s; }
.faq-list details[open] { border-color: var(--brand-text); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 18px 20px; font-weight: 600; line-height: 1.3; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .es { font-weight: 400; }
.faq-list summary i { font-size: 20px; flex: none; transition: transform .25s var(--ease); color: var(--brand-text); }
.faq-list details[open] summary i { transform: rotate(45deg); }
.faq-list .answer { padding: 0 20px 20px; color: var(--muted); font-size: .97rem; }
.faq-list .answer .es { color: var(--es); }

/* ---------- Footer ---------- */
.footer-cta { background: var(--band); color: #fff; }
.footer-cta .es { color: #FFE08A; }
.footer-cta-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 52px; align-items: center; }
.footer-cta-inner p { color: var(--band-muted); margin-top: 10px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 1024px) { .footer-cta-inner { grid-template-columns: 1fr auto; gap: 48px; } }
.site-footer { background: var(--band-deep); color: #D7DFF3; font-size: .93rem; }
.site-footer .es { color: #FFE08A; }
.site-footer .muted { color: #C9D3EE; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; padding-block: 52px 36px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr .9fr; gap: 40px; } }
.footer-grid h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-grid h3 .es { color: #FFE08A; font-weight: 400; }
.footer-logo { width: 170px; }
.footer-tagline { font-size: 1.15rem; font-weight: 800; color: #fff; margin-top: 18px; }
.footer-tagline .es { color: var(--yellow); }
.footer-about { margin-top: 10px; max-width: 34ch; }
.footer-about .es { color: #FFE08A; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.footer-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-links a .es { display: inline; font-size: 1em; color: #FFE08A; margin: 0; }
.footer-links a .es::before { content: " / "; color: #D7DFF3; }
html[data-lang="es"] .footer-links a .es::before { content: none; }
.site-footer .hours li { padding: 4px 0; }
.site-footer .hours li .bi-inline { color: #B9C6EA; }
.site-footer .hours li.today { background: transparent; color: #fff; }
.site-footer .hours li.today .bi-inline { color: var(--yellow); }
.social { display: flex; gap: 8px; margin-top: 20px; }
.social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / .1); font-size: 22px; color: #fff; text-decoration: none; transition: background-color .2s; }
.social a:hover { background: rgb(255 255 255 / .2); }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / .12); padding-block: 22px 28px; display: grid; gap: 8px; font-size: .82rem; color: #AFBCE0; }
@media (min-width: 900px) { .footer-bottom { grid-template-columns: auto 1fr; gap: 32px; } .footer-bottom p:last-child { text-align: right; } }

/* ---------- Floating contact (desktop) ---------- */
.floats { position: fixed; right: 24px; bottom: 24px; z-index: 45; display: none; flex-direction: column; align-items: flex-end; gap: 12px; }
@media (min-width: 900px) { .floats { display: flex; } }
.float-pill {
  display: inline-flex; align-items: center; gap: 10px; min-height: 58px; padding: 8px 20px 8px 10px;
  border-radius: var(--r-pill); border: 0; text-decoration: none; font-weight: 600; font-size: .92rem; line-height: 1.15; text-align: left;
  box-shadow: var(--shadow-lg); transition: transform .2s var(--ease), box-shadow .2s;
}
.float-pill:hover { transform: translateY(-2px); }
.float-pill:active { transform: scale(.97); }
.float-pill > i { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; flex: none; }
.float-pill .es { font-size: .82em; font-weight: 400; color: inherit; }
.float-wa { background: var(--wa); color: var(--ink); }
.float-wa > i { background: rgb(255 255 255 / .35); }
.float-call { background: var(--red); color: #fff; }
.float-call > i { background: rgb(255 255 255 / .16); }
@media (prefers-reduced-motion: no-preference) {
  .float-wa > i { animation: ping 2.8s var(--ease) 1.5s 3; }
  @keyframes ping { 0% { box-shadow: 0 0 0 0 rgb(255 255 255 / .7); } 70% { box-shadow: 0 0 0 14px rgb(255 255 255 / 0); } 100% { box-shadow: 0 0 0 0 rgb(255 255 255 / 0); } }
}

/* ---------- Action bar (mobile) ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -8px 24px rgb(14 32 80 / .12);
}
@media (min-width: 900px) { .action-bar { display: none; } }
.action-bar a, .action-bar button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  min-height: 58px; border-radius: 14px; border: 0; text-decoration: none; font-weight: 600; font-size: .8rem; line-height: 1.1; text-align: center;
}
.action-bar i { font-size: 22px; margin-bottom: 2px; }
.action-bar .es { font-size: max(12px, .85em); font-weight: 400; color: inherit; margin: 0; }
.ab-call { background: var(--red); color: #fff; }
.ab-wa { background: var(--wa); color: var(--ink); }
.ab-dir { background: var(--blue); color: #fff; }

/* ---------- Scrim, drawers, WhatsApp panel ---------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgb(10 19 48 / .5); opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; }
.scrim.open { opacity: 1; visibility: visible; transition: opacity .25s; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: min(440px, 100%);
  display: flex; flex-direction: column; background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg);
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%); visibility: hidden; transition: transform .3s var(--ease), visibility 0s .3s;
}
.drawer.open { transform: none; visibility: visible; transition: transform .3s var(--ease); }
.drawer-head { position: sticky; top: 0; z-index: 1; background: var(--surface); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 16px 20px; border-bottom: 1px solid var(--border); }
.drawer-head h2 { font-size: 1.25rem; }
.drawer-body { flex: 1 0 auto; padding: 16px 20px; }
.drawer-foot { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); display: grid; gap: 14px; }
.drawer-foot:empty { display: none; }

.bag-list { display: grid; gap: 12px; }
.bag-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: start; padding: 12px; border-radius: var(--r-input); background: var(--bg-alt); }
.bag-thumb { width: 64px; height: 64px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-tint); font-size: 36px; color: var(--swatch); }
.bag-thumb.on-dark { background: var(--blue-800); }
.bag-name { font-weight: 600; line-height: 1.25; }
.bag-name .es { font-weight: 400; font-size: .86em; }
.bag-detail { font-size: .85rem; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.bag-price { font-weight: 800; margin-top: 4px; font-size: .95rem; }
.bag-price .es { display: inline; margin-left: .3em; font-size: .85em; }
.bag-side { display: grid; justify-items: end; gap: 8px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: var(--r-pill); }
.qty button { width: 34px; height: 34px; border: 0; background: transparent; border-radius: 50%; display: grid; place-items: center; font-size: 16px; }
.qty span { min-width: 22px; text-align: center; font-weight: 600; font-size: .9rem; }
.remove-btn { border: 0; background: transparent; color: var(--muted); font-size: .8rem; display: inline-flex; gap: 4px; align-items: center; padding: 4px; border-radius: 6px; }
.remove-btn:hover { color: var(--danger-text); }
.bag-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; }
.bag-total strong { font-size: 1.1rem; text-align: right; }
.bag-total strong .en { font-size: .9rem; }
.bag-total strong .es { font-size: .8em; font-weight: 400; }
.bag-form { display: grid; gap: 14px; }
.bag-empty { text-align: center; padding: 40px 8px; display: grid; justify-items: center; gap: 12px; }
.bag-empty i { font-size: 56px; color: var(--brand-text); }
.bag-empty .btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 8px; }

.menu-nav { display: grid; gap: 4px; }
.menu-nav a { display: flex; align-items: center; gap: 14px; padding: 14px 12px; border-radius: var(--r-input); text-decoration: none; font-weight: 600; font-size: 1.1rem; line-height: 1.2; }
.menu-nav a i { font-size: 24px; color: var(--brand-text); }
.menu-nav a .es { font-weight: 400; font-size: .85em; }
.menu-nav a[aria-current="page"] { background: var(--surface-tint); }
.menu-block { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); display: grid; gap: 10px; }
.menu-block .lang-toggle { display: inline-flex; justify-self: start; }
.menu-block .lang-toggle button { font-size: .9rem; padding: 8px 14px; min-height: 44px; min-width: 52px; }
.menu-label { font-size: .85rem; font-weight: 600; color: var(--muted); }
.menu-label .es { display: inline; font-size: 1em; color: inherit; margin: 0; }
.menu-label .es::before { content: " / "; }
html[data-lang="es"] .menu-label .es::before { content: none; }

.wa-panel {
  position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; max-height: 92dvh; overflow-y: auto;
  background: var(--surface); color: var(--text); border-radius: 20px 20px 0 0; box-shadow: var(--shadow-lg);
  transform: translateY(105%); visibility: hidden; transition: transform .3s var(--ease), visibility 0s .3s;
}
.wa-panel.open { transform: none; visibility: visible; transition: transform .3s var(--ease); }
@media (min-width: 900px) {
  .wa-panel { left: auto; right: 24px; bottom: 166px; width: 380px; border-radius: var(--r-card); transform: translateY(16px) scale(.98); opacity: 0; transition: transform .25s var(--ease), opacity .2s, visibility 0s .25s; }
  .wa-panel.open { transform: none; opacity: 1; transition: transform .25s var(--ease), opacity .2s; }
}
.wa-head { display: flex; gap: 12px; align-items: center; padding: 16px 12px 16px 18px; background: var(--wa); color: var(--ink); border-radius: inherit; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.wa-head > i { font-size: 34px; }
.wa-head h2 { font-size: 1.1rem; }
.wa-head .es { color: inherit; font-weight: 400; }
.wa-head .icon-btn { margin-left: auto; color: var(--ink); }
.wa-head .icon-btn:hover { background: rgb(255 255 255 / .3); }
.wa-body { padding: 18px; display: grid; gap: 16px; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
.topic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.topic { position: relative; }
.topic:last-child { grid-column: 1 / -1; }
.topic input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.topic > span { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 8px 10px; border-radius: var(--r-input); border: 1.5px solid var(--border); font-weight: 600; font-size: .85rem; line-height: 1.15; cursor: pointer; transition: border-color .2s, background-color .2s; }
.topic > span > i { font-size: 20px; color: var(--brand-text); flex: none; }
.topic .es { font-weight: 400; font-size: max(12px, .86em); }
.topic input:checked + span { border-color: var(--blue); background: var(--surface-tint); box-shadow: inset 0 0 0 1px var(--blue); }
.topic input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .topic input:checked + span { border-color: var(--yellow); box-shadow: inset 0 0 0 1px var(--yellow); } }
.wa-call { display: flex; min-height: 44px; align-items: center; gap: 10px; justify-content: center; font-size: .9rem; color: var(--muted); text-decoration: none; text-align: center; line-height: 1.3; }
.wa-call i { font-size: 20px; color: var(--red); }
.wa-call:hover { color: var(--text); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; top: calc(var(--header-h) + 12px); z-index: 80;
  transform: translate(-50%, -12px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: var(--r-pill); font-weight: 600; font-size: .92rem; line-height: 1.25;
  box-shadow: var(--shadow-lg); transition: opacity .2s, transform .25s var(--ease); max-width: calc(100% - 32px); text-align: center;
}
.toast .es { color: #FFE08A; font-weight: 400; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: 80px; }
.notfound .big { font-size: clamp(4rem, 14vw, 8rem); font-weight: 800; color: var(--brand-text); line-height: 1; }
.notfound .cta-row { justify-content: center; margin-top: 24px; }

@media print {
  .topbar, .site-header, .floats, .action-bar, .footer-cta, .wa-panel, .drawer, .scrim { display: none !important; }
}

/* Very small phones (<= 400px): price-tool tiles stack the icon above the label; long buttons may wrap */
@media (max-width: 400px) {
  .btn { white-space: normal; }
  .q-issues .opt, .q-devices .opt { flex-direction: column; justify-content: center; text-align: center; gap: 4px; padding: 10px 6px; }
  .opt > span { min-width: 0; overflow-wrap: anywhere; }
}
