/* Bose Professional Costa Rica — estilos */
:root {
  --ink: #111213;
  --ink-2: #2a2b2d;
  --muted: #6c6e72;
  --line: #e4e5e7;
  --paper: #ffffff;
  --soft: #f4f4f5;
  --font: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1320px;
  --pad: clamp(20px, 4vw, 56px);
  --radius: 2px;
  --header-h: 72px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
h2 { font-size: clamp(28px, 3.4vw, 48px); }
h3 { font-size: 20px; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -999px; top: 0; background: #000; color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.eyebrow.light { color: rgba(255,255,255,.8); }
.lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--ink-2); font-weight: 400; }
.lead.light { color: rgba(255,255,255,.9); }
.lead.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: 13px; line-height: 1.5; }
.arr { width: 18px; height: 18px; vertical-align: -4px; transition: transform .2s; }
.more, .link { font-weight: 600; font-size: 14px; display: inline-flex; gap: 8px; align-items: center; }
a:hover .arr, .link:hover .arr { transform: translateX(4px); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 28px; font: 600 14px/1 var(--font); letter-spacing: .04em; border: 1.5px solid transparent; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn svg { width: 20px; height: 20px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--soft); }
.btn-ghost { border-color: rgba(255,255,255,.8); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-wa { background: var(--ink); color: #fff; margin-top: 8px; }
.btn.full { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.bar { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; flex-direction: column; gap: 5px; color: var(--ink); }
.brand-logo { display: block; width: 112px; color: var(--ink); }
.brand-logo.light { color: #fff; width: 130px; }
.logo-svg { width: 100%; height: auto; display: block; }
.brand-sub { font-size: 9.5px; letter-spacing: .32em; font-weight: 600; }
.brand-sub em { font-style: normal; color: var(--muted); letter-spacing: .12em; }
.main-nav { display: flex; align-items: center; gap: 6px; height: 100%; }
.nav-item { position: relative; height: 100%; display: flex; align-items: center; }
.nav-item > a { font-size: 14px; font-weight: 600; padding: 10px 14px; position: relative; }
.nav-item > a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--ink); transform: scaleX(0); transition: transform .2s; transform-origin: left; }
.nav-item > a:hover::after, .nav-item > a.active::after { transform: scaleX(1); }
.nav-item > a.nav-cta { background: var(--ink); color: #fff; border-radius: 999px; padding: 10px 20px; margin-left: 8px; }
.nav-item > a.nav-cta::after { display: none; }
.mega { position: fixed; left: 0; right: 0; top: var(--header-h); background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(0,0,0,.25); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s; }
.has-menu:hover .mega, .has-menu:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.has-menu.closed .mega { opacity: 0 !important; visibility: hidden !important; }
.mega-inner { max-width: var(--wrap); margin: 0 auto; padding: 28px var(--pad) 32px; }
.mega-inner.apps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.mega-inner.apps a { display: block; font-size: 13px; font-weight: 600; }
.mega-inner.apps img { aspect-ratio: 16/10; object-fit: cover; width: 100%; margin-bottom: 8px; transition: opacity .2s; }
.mega-inner.apps a:hover img { opacity: .85; }
.mega-inner.prods { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.mega-inner.prods a { display: block; font-size: 14px; padding: 4px 0; color: var(--ink-2); }
.mega-inner.prods a:hover { text-decoration: underline; }
.mega-inner.prods .mega-cat { font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); transition: transform .2s; }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-nav { position: fixed; inset: var(--header-h) 0 0; z-index: 60; background: #fff; overflow-y: auto; padding: 12px var(--pad) 40px; }
.mobile-nav details { border-bottom: 1px solid var(--line); }
.mobile-nav summary { padding: 16px 0; font-weight: 700; font-size: 18px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.mobile-nav summary::after { content: '+'; font-weight: 400; }
.mobile-nav details[open] summary::after { content: '–'; }
.mobile-nav details a { display: block; padding: 8px 0 8px 12px; color: var(--ink-2); }
.mobile-nav details[open] { padding-bottom: 12px; }
.mobile-nav .m-link { display: block; padding: 16px 0; font-weight: 700; font-size: 18px; border-bottom: 1px solid var(--line); }
.mobile-nav .m-link.cta { border: 0; margin-top: 20px; background: var(--ink); color: #fff; text-align: center; border-radius: 999px; }

/* Hero */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-img, .ph-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.25) 55%, rgba(0,0,0,0) 80%), linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.55) 100%); }
.hero-copy { position: relative; padding-bottom: clamp(48px, 8vw, 96px); width: 100%; }
.hero h1 { font-size: clamp(44px, 7vw, 104px); font-weight: 700; letter-spacing: -0.035em; max-width: 12ch; margin-bottom: .3em; }
.hero .lead { max-width: 620px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.page-hero { position: relative; min-height: 440px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.page-hero .ph-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 70%), linear-gradient(180deg, rgba(0,0,0,.05) 20%, rgba(0,0,0,.72) 100%); }
.ph-copy { position: relative; padding-bottom: 48px; width: 100%; }
.page-hero h1 { font-size: clamp(38px, 5.5vw, 76px); letter-spacing: -0.03em; max-width: 16ch; }
.page-hero .lead { max-width: 640px; margin: 0; }
.h1-dark { font-size: clamp(36px, 4.6vw, 64px); letter-spacing: -0.03em; }

.crumbs { font-size: 13px; color: var(--muted); padding-top: 20px; padding-bottom: 4px; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span { color: var(--ink); }

/* Secciones */
.section { padding: clamp(56px, 7vw, 104px) 0; }
.section.top-pad { padding-top: 48px; }
.section.alt { background: var(--soft); }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.head-row h2 { margin: 0; }
.group + .group { margin-top: 72px; }
.seg-t { font-size: clamp(24px, 2.4vw, 34px); margin-bottom: 28px; }

.intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); padding-top: clamp(64px, 8vw, 120px); padding-bottom: clamp(32px, 4vw, 48px); }
.intro h2 { font-size: clamp(30px, 3.6vw, 52px); }
.intro-text { font-size: 18px; color: var(--ink-2); padding-top: 34px; }

/* Aplicaciones */
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.app-card { position: relative; display: block; aspect-ratio: 4/3.4; overflow: hidden; color: #fff; background: #000; }
.app-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .3s; opacity: .92; }
.app-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.78) 100%); }
.app-card:hover img { transform: scale(1.04); opacity: 1; }
.app-card-copy { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; z-index: 1; }
.app-card h3 { font-size: 22px; margin-bottom: 6px; }
.app-card p { font-size: 14px; color: rgba(255,255,255,.85); margin-bottom: 10px; }

/* Pilares */
.pillars-sec { background: var(--soft); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.pillar { background: #fff; padding: 32px; display: flex; flex-direction: column; transition: box-shadow .2s; }
.pillar:hover { box-shadow: 0 18px 40px -24px rgba(0,0,0,.35); }
.pillar img { height: 160px; object-fit: contain; margin: 0 auto 28px; }
.pillar p { color: var(--ink-2); flex: 1; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.split.dark { background: var(--ink); color: #fff; }
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.split-copy { padding: clamp(40px, 6vw, 96px); display: flex; flex-direction: column; justify-content: center; }
.split-copy h2 { font-size: clamp(34px, 4vw, 60px); }
.split-copy p { font-size: 17px; color: inherit; opacity: .88; max-width: 520px; }
.split-links { display: flex; flex-direction: column; margin-top: 16px; max-width: 520px; }
.split-links a { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-top: 1px solid currentColor; border-color: rgba(127,127,127,.35); font-weight: 600; }

/* Categorías */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cat-card { display: flex; flex-direction: column; gap: 16px; padding: 24px; border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.cat-card:hover { border-color: var(--ink); }
.cat-img { aspect-ratio: 1; display: grid; place-items: center; background: var(--soft); padding: 18px; }
.cat-img img { max-height: 100%; object-fit: contain; }
.cat-card h3 { font-size: 19px; }
.cat-card .muted { font-size: 14px; margin: 0; }

/* Familias */
.fam-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.fam-card { display: block; padding: 0 0 8px; }
.fam-img { aspect-ratio: 4/3; background: var(--soft); display: grid; place-items: center; padding: 28px; margin-bottom: 18px; transition: background .2s; }
.fam-card:hover .fam-img { background: #ebebec; }
.fam-img img { max-height: 100%; object-fit: contain; transition: transform .3s; }
.fam-card:hover .fam-img img { transform: scale(1.04); }
.fam-card h3 { font-size: 21px; margin-bottom: 4px; }
.fam-card .eyebrow { margin-bottom: 6px; font-size: 11px; }
.fam-card .muted { font-size: 14px; }

.fam-intro-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.ticks { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink-2); }
.ticks li::before { content: ''; position: absolute; left: 0; top: 10px; width: 16px; height: 2px; background: var(--ink); }
.ticks.cols { grid-template-columns: 1fr 1fr; column-gap: 48px; }
.apps-box { border: 1px solid var(--line); padding: 28px; position: sticky; top: calc(var(--header-h) + 20px); }
.fam-hero-img { background: var(--soft); padding: 24px; margin-bottom: 24px; display: grid; place-items: center; aspect-ratio: 16/10; }
.fam-hero-img img { max-height: 100%; object-fit: contain; }
.apps-box h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 24px; }
.tag { font-size: 13px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; transition: border-color .2s, background .2s; }
.tag:hover { border-color: var(--ink); }

/* Productos */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.prod-card { background: #fff; padding: 24px; display: flex; flex-direction: column; border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.section.alt .prod-card { border-color: transparent; }
.prod-card:hover { border-color: var(--ink); }
.prod-img { aspect-ratio: 4/3; display: grid; place-items: center; margin-bottom: 18px; padding: 8px; }
.prod-img img { max-height: 100%; object-fit: contain; transition: transform .3s; }
.prod-card:hover .prod-img img { transform: scale(1.05); }
.prod-card .eyebrow { font-size: 10.5px; margin-bottom: 6px; }
.prod-card h3 { font-size: 18px; margin-bottom: 14px; }
.mini-specs { margin: 0 0 18px; display: grid; gap: 8px; flex: 1; align-content: start; }
.mini-specs div { border-top: 1px solid var(--line); padding-top: 8px; }
.mini-specs dt { font-size: 11px; color: var(--muted); }
.mini-specs dd { margin: 0; font-size: 13.5px; font-weight: 500; }

.filters { display: flex; flex-direction: column; gap: 16px; margin: 24px 0 12px; }
.filters input { font: 16px var(--font); padding: 16px 20px; border: 1.5px solid var(--line); border-radius: 999px; width: 100%; max-width: 620px; }
.filters input:focus { outline: none; border-color: var(--ink); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font: 600 13px var(--font); padding: 9px 16px; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.count { font-size: 14px; margin-bottom: 20px; }

/* Ficha */
.pdp { padding-top: 32px; }
.pdp-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.pdp-media { background: var(--soft); aspect-ratio: 1; display: grid; place-items: center; padding: clamp(28px, 5vw, 72px); }
.pdp-media img { max-height: 100%; object-fit: contain; }
.pdp-type { font-size: 18px; color: var(--muted); margin-top: -8px; }
.pdp-info p { color: var(--ink-2); }
.pdp-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.specs-wrap { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.specs { width: 100%; border-collapse: collapse; background: #fff; }
.specs th, .specs td { text-align: left; padding: 15px 20px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15px; }
.specs th { font-weight: 500; color: var(--muted); width: 42%; }
.specs td { font-weight: 500; }

/* Banda CTA */
.band { background: var(--ink); color: #fff; padding: 56px 0; }
.band-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.band h2 { margin: 0; font-size: clamp(26px, 3vw, 40px); }

/* Contacto */
.contact { background: var(--soft); padding: clamp(64px, 8vw, 112px) 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); }
.contact-copy h2 { font-size: clamp(32px, 3.6vw, 52px); }
.contact-list { list-style: none; padding: 0; margin: 28px 0; }
.contact-list li { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; }
.contact-list span { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; padding-top: 2px; }
.contact-list a { font-weight: 600; }
.partner { margin-top: 40px; }
.partner img { width: 140px; height: auto; }
.quote { background: #fff; padding: clamp(24px, 4vw, 48px); display: grid; gap: 18px; align-content: start; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.quote label { display: grid; gap: 8px; font-size: 13px; font-weight: 600; }
.quote input, .quote select, .quote textarea { font: 400 15px var(--font); padding: 13px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); width: 100%; }
.quote input:focus, .quote select:focus, .quote textarea:focus { outline: none; border-color: var(--ink); }
.quote textarea { resize: vertical; }
.quote .btn { justify-self: start; }
.form-note { margin: 0; font-size: 14px; min-height: 1.2em; }
.form-note.err { color: #8a1f11; }
.form-note.ok { color: #1d5e2f; }

/* Footer */
.site-footer { background: var(--ink); color: #fff; padding: 72px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot-tag { margin: 18px 0 10px; font-weight: 600; }
.site-footer .small { color: rgba(255,255,255,.6); max-width: 360px; }
.site-footer h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer li a { font-size: 14px; color: rgba(255,255,255,.85); }
.site-footer li a:hover { color: #fff; text-decoration: underline; }
.legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.5); }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 20px; bottom: 20px; width: 58px; height: 58px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(0,0,0,.5); z-index: 40; transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; }

/* Responsive */
@media (max-width: 1180px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .prod-grid, .fam-grid { grid-template-columns: repeat(3, 1fr); }
  .mega-inner.apps { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 980px) {
  .main-nav { display: none; }
  .burger { display: block; }
  .intro, .fam-intro-grid, .pdp-grid, .specs-wrap, .contact-grid { grid-template-columns: 1fr; }
  .intro-text { padding-top: 0; }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split-img { aspect-ratio: 16/10; }
  .split:not(.dark) .split-img { order: -1; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .apps-box { position: static; }
  .ticks.cols { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .app-grid, .cat-grid { grid-template-columns: 1fr; }
  .prod-grid, .fam-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .prod-card { padding: 14px; }
  .prod-card h3 { font-size: 15px; }
  .mini-specs { display: none; }
  .fam-img { padding: 14px; }
  .fam-card h3 { font-size: 16px; }
  .row2 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero { min-height: 82vh; }
  .page-hero { min-height: 340px; }
  .specs th, .specs td { padding: 12px; font-size: 14px; }
  .specs th { width: 45%; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
  .quote .btn { justify-self: stretch; }
}

/* Imágenes de producto: siempre contenidas en su caja */
.cat-img, .fam-img, .prod-img, .pdp-media, .fam-hero-img { position: relative; overflow: hidden; padding: 0 !important; display: block !important; }
.cat-img img, .fam-img img, .prod-img img, .pdp-media img, .fam-hero-img img { position: absolute; inset: 7%; width: 86%; height: 86%; max-height: none; object-fit: contain; }
.pdp-media img { inset: 9%; width: 82%; height: 82%; }
.prod-img img { inset: 4%; width: 92%; height: 92%; }
.pillar img { width: 100%; object-fit: contain; }
