/* ==========================================================
   Soluciones Alternativas B&P — estilos
   ========================================================== */
:root {
  --navy: #0d1b2e;
  --navy-2: #13263f;
  --blue: #1f5fae;
  --blue-light: #e9f1fb;
  --red: #c8102e;
  --red-dark: #a00c24;
  --ink: #1a2433;
  --muted: #5b6b80;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(13, 27, 46, .08);
  --shadow-lg: 0 20px 50px rgba(13, 27, 46, .16);
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.1; margin: 0 0 .5em; letter-spacing: .2px; }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; text-transform: uppercase; }
h3 { font-size: 1.45rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.ico { width: 1em; height: 1em; fill: currentColor; flex-shrink: 0; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font-family: var(--head); font-weight: 700; font-size: 1.05rem; letter-spacing: .5px; text-transform: uppercase; padding: .7em 1.4em; border-radius: 8px; border: 2px solid transparent; cursor: pointer; transition: transform .2s, background .2s, color .2s, border-color .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn--lg { font-size: 1.15rem; padding: .85em 1.7em; }
.btn--sm { font-size: .95rem; padding: .45em 1.1em; }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(200, 16, 46, .3); }
.btn--red:hover { background: var(--red-dark); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--blue); }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { background: var(--blue-light); }
.btn--ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy); }

.eyebrow { display: inline-block; font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: .95rem; color: var(--red); margin-bottom: .6em; }
.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 3px; background: currentColor; vertical-align: middle; margin-right: 10px; }
.eyebrow--light { color: #fff; }
.eyebrow--light::before { background: var(--red); }

/* ---------- Topbar ---------- */
.topbar { background: var(--navy); color: #c9d4e3; font-size: .88rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 6px; }
.topbar__right { gap: 22px !important; }
.topbar a:hover { color: #fff; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.header.scrolled { box-shadow: 0 6px 24px rgba(13,27,46,.08); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { width: 44px; height: 44px; color: var(--blue); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text strong { font-family: var(--head); font-size: 1.45rem; font-weight: 800; text-transform: uppercase; color: var(--navy); letter-spacing: .3px; }
.brand__text small { font-size: .78rem; color: var(--muted); font-weight: 600; letter-spacing: .5px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link { font-family: var(--head); font-weight: 600; font-size: 1.08rem; text-transform: uppercase; letter-spacing: .5px; padding: 8px 14px; border-radius: 6px; color: var(--ink); position: relative; transition: color .2s; }
.nav__link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--red); transform: scaleX(0); transition: transform .25s; }
.nav__link:hover, .nav__link.active { color: var(--red); }
.nav__link.active::after, .nav__link:hover::after { transform: scaleX(1); }
.nav__cta { margin-left: 12px; }

/* Desplegable "Productos" */
.nav__drop { position: relative; }
.nav__drop-toggle { display: inline-flex; align-items: center; gap: 2px; }
.nav__drop-toggle svg { width: 18px; height: 18px; fill: currentColor; transition: transform .2s; }
.nav__drop:hover .nav__drop-toggle svg { transform: rotate(180deg); }
.nav__menu { position: absolute; top: 100%; left: 0; min-width: 250px; background: #fff; border-radius: 10px; border-top: 3px solid var(--red); box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; z-index: 60; }
.nav__drop:hover .nav__menu, .nav__drop:focus-within .nav__menu { opacity: 1; visibility: visible; transform: none; }
.nav__menu a { display: block; padding: 9px 14px; border-radius: 6px; font-weight: 600; color: var(--ink); transition: background .2s, color .2s; }
.nav__menu a:hover, .nav__menu a.active { background: var(--bg-alt); color: var(--red); }

/* ---------- Páginas de categoría ---------- */
.page-hero { position: relative; color: #fff; padding: 70px 0 64px; overflow: hidden; border-bottom: 5px solid var(--red); }
.page-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-hero__content { position: relative; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800; text-transform: uppercase; max-width: 760px; margin: 0 0 .3em; }
.page-hero p { max-width: 620px; color: #d7e0ec; font-size: 1.15rem; margin: 0 0 26px; }
.cat-pills { position: sticky; top: 76px; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 6px 16px rgba(13,27,46,.05); }
.cat-pills__inner { display: flex; gap: 8px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; scrollbar-width: none; }
.cat-pills__inner::-webkit-scrollbar { display: none; }
.cat-pills .filter { flex-shrink: 0; white-space: nowrap; }
.catalog { padding: 50px 0 90px; }
.catalog-tools { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }
.search { position: relative; flex: 1; max-width: 440px; }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; fill: var(--muted); }
.search input { width: 100%; font: inherit; padding: 12px 16px 12px 46px; border: 1.5px solid var(--line); border-radius: 40px; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31,95,174,.12); }
.catalog-count { font-family: var(--head); font-weight: 700; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.products .subhead { grid-column: 1 / -1; margin: 0; }
.products .subhead:not(:first-child) { margin-top: 30px; }
.subhead[hidden] { display: none; }
.empty { grid-column: 1 / -1; text-align: center; padding: 50px 20px; background: #fff; border-radius: var(--radius); color: var(--muted); font-size: 1.05rem; }
.empty[hidden] { display: none; }
.empty a { color: var(--blue); font-weight: 600; text-decoration: underline; }
.cat__count { position: absolute; top: 16px; right: 16px; z-index: 1; background: rgba(255,255,255,.94); color: var(--navy); font-family: var(--head); font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .5px; padding: 4px 12px; border-radius: 20px; }
.cat__count:empty { display: none; }

.burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 3px; background: var(--navy); border-radius: 2px; margin: 5px 0; transition: transform .3s, opacity .3s; }
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 640px; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center 60%; transform: scale(1.05); animation: zoom 18s ease-out forwards; }
@keyframes zoom { to { transform: scale(1); } }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(13,27,46,.95) 0%, rgba(13,27,46,.82) 45%, rgba(13,27,46,.35) 100%); }
.hero__content { position: relative; padding-top: 90px; padding-bottom: 90px; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; text-transform: uppercase; max-width: 760px; }
.hl { color: #fff; background: linear-gradient(transparent 62%, var(--red) 62%, var(--red) 92%, transparent 92%); padding: 0 4px; }
.hero__lead { font-size: 1.2rem; max-width: 560px; color: #d7e0ec; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 34px; }
.hero__badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 26px; font-weight: 600; color: #e6edf6; }
.hero__badges li { display: flex; align-items: center; gap: 8px; }
.hero__badges .ico { color: var(--red); width: 1.3em; height: 1.3em; }

/* ---------- Stats ---------- */
.stats { background: var(--red); color: #fff; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: 30px 10px; border-right: 1px solid rgba(255,255,255,.2); }
.stat:last-child { border-right: 0; }
.stat__num, .stat__suf { font-family: var(--head); font-size: 3rem; font-weight: 800; line-height: 1; }
.stat p { margin: 6px 0 0; font-weight: 600; text-transform: uppercase; font-size: .88rem; letter-spacing: 1px; opacity: .92; }

/* ---------- Secciones ---------- */
.section { padding: 100px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 54px; }
.section__head p { color: var(--muted); font-size: 1.1rem; }

/* ---------- Cinta de servicios ---------- */
.ticker { background: var(--navy); color: #fff; overflow: hidden; }
.ticker__track { display: flex; width: max-content; animation: ticker 45s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group { display: flex; }
.ticker__group span { display: flex; align-items: center; white-space: nowrap; font-family: var(--head); font-weight: 700; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 1px; padding: 14px 0; }
.ticker__group span::after { content: "◆"; color: var(--red); font-size: .7em; margin: 0 26px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sección oscura y ofertas ---------- */
.section--dark { background: linear-gradient(180deg, var(--navy-2) 0%, var(--navy) 100%); color: #fff; }
.section--dark .section__head p { color: #c9d4e3; }
.offers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.offer { position: relative; background: #fff; color: var(--ink); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 20px 40px rgba(0,0,0,.3); transition: transform .3s; }
.offer:hover { transform: translateY(-6px); }
.offer__img { display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; aspect-ratio: 1 / 1; overflow: hidden; background: #e7ebf0; }
.offer__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.offer:hover .offer__img img { transform: scale(1.06); }
.offer__ribbon { position: absolute; top: 16px; left: 0; z-index: 1; background: var(--red); color: #fff; font-family: var(--head); font-weight: 800; font-size: .95rem; text-transform: uppercase; letter-spacing: 1px; padding: 6px 16px 6px 14px; border-radius: 0 6px 6px 0; box-shadow: 0 6px 14px rgba(0,0,0,.25); }
.offer__ribbon--blue { background: var(--blue); }
.offer__body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.offer__body h3 { margin-bottom: 6px; }
.offer__body p { color: var(--muted); font-size: .95rem; flex: 1; }
.offer__price { font-family: var(--head); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--red); margin-bottom: 16px; }
.offer__price small { font-size: .9rem; color: var(--muted); font-weight: 600; text-transform: uppercase; }
.offer__price--text { font-size: 1.5rem; color: var(--navy); text-transform: uppercase; }

/* ---------- Categorías ---------- */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cat { position: relative; border-radius: var(--radius); overflow: hidden; height: 320px; display: block; box-shadow: var(--shadow); background: var(--navy); }
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,27,46,0) 35%, rgba(13,27,46,.92) 100%); }
.cat:hover img { transform: scale(1.08); }
.cat__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; color: #fff; z-index: 1; }
.cat__body h3 { font-size: 1.8rem; text-transform: uppercase; margin-bottom: .2em; }
.cat__body p { margin: 0 0 .6em; color: #cfd9e6; font-size: .98rem; }
.cat__more { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #fff; border-bottom: 2px solid var(--red); padding-bottom: 2px; transition: letter-spacing .25s; }
.cat:hover .cat__more { letter-spacing: 2px; }
.cat--adblue { background: linear-gradient(140deg, var(--blue) 0%, #123c73 100%); }
.cat--adblue::after { background: linear-gradient(180deg, rgba(13,27,46,0) 45%, rgba(13,27,46,.7) 100%); }
.cat__art { position: absolute; inset: 0 0 90px; display: grid; place-items: center; }
.cat__art svg { width: 150px; height: 150px; filter: drop-shadow(0 12px 20px rgba(0,0,0,.25)); transition: transform .5s; }
.cat--adblue:hover .cat__art svg { transform: translateY(-6px) rotate(-4deg); }

/* ---------- Productos ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.filter { font-family: var(--head); font-weight: 600; font-size: 1.02rem; text-transform: uppercase; letter-spacing: .5px; border: 2px solid var(--line); background: #fff; color: var(--ink); padding: 8px 20px; border-radius: 40px; cursor: pointer; transition: all .2s; }
.filter:hover { border-color: var(--navy); }
.filter.active { background: var(--navy); border-color: var(--navy); color: #fff; }

.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.product { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s, opacity .3s; }
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product.hide { display: none; }
.product__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #e7ebf0; }
button.product__img { display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; }
.product__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.product__photos { position: absolute; right: 12px; bottom: 12px; background: rgba(13,27,46,.82); color: #fff; font-size: .8rem; font-weight: 600; padding: 3px 11px; border-radius: 20px; }
.product__ref { font-size: .88rem; color: var(--muted); font-weight: 600; margin: -4px 0 8px; }
.product__ref strong { color: var(--ink); }
.product__actions { display: flex; align-items: center; gap: 8px; }
.product.highlight { box-shadow: 0 0 0 3px var(--red), var(--shadow-lg); }
.share { position: relative; }
.share__btn { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; transition: border-color .2s, background .2s; }
.share__btn svg { width: 17px; height: 17px; fill: var(--navy); }
.share__btn:hover, .share__btn[aria-expanded="true"] { border-color: var(--navy); background: var(--bg-alt); }
.share__menu { position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 5; min-width: 180px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 6px; }
.share__menu[hidden] { display: none; }
.share__menu a, .share__menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; border-radius: 6px; background: none; font: inherit; font-size: .95rem; font-weight: 600; color: var(--ink); cursor: pointer; }
.share__menu a:hover, .share__menu button:hover { background: var(--bg-alt); color: var(--red); }
.tag--green { background: #1a8a4a; }
.tag--blue { background: var(--blue); }
.more { text-align: center; margin-top: 40px; }
.more .btn[hidden] { display: none; }
.subhead { display: flex; align-items: center; gap: 16px; font-size: 1.7rem; text-transform: uppercase; color: var(--navy); margin: 0 0 24px; }
.subhead::after { content: ""; flex: 1; height: 2px; background: var(--line); }
.machines + .subhead { margin-top: 60px; }
.product:hover .product__img img { transform: scale(1.06); }
.tag { position: absolute; top: 14px; left: 14px; background: var(--navy); color: #fff; font-family: var(--head); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: 1px; padding: 4px 12px; border-radius: 4px; }
.tag--red { background: var(--red); }
.product__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.product__cat { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--blue); }
.product__body h3 { margin: 4px 0 8px; }
.product__body p { color: var(--muted); font-size: .97rem; flex: 1; }
.product__foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 4px; }
.price { font-family: var(--head); font-weight: 800; font-size: 1.7rem; color: var(--red); }
.price small { font-size: .85rem; color: var(--muted); font-weight: 600; text-transform: uppercase; }
.price--ask { font-size: 1.05rem; color: var(--navy); text-transform: uppercase; letter-spacing: .5px; }

.brands { margin-top: 60px; text-align: center; }
.brands p { color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: .9rem; }
.brands ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.brands li { font-family: var(--head); font-weight: 800; font-size: 1.3rem; color: #8592a5; background: #fff; border: 1px solid var(--line); padding: 8px 22px; border-radius: 8px; text-transform: uppercase; }

/* ---------- AdBlue ---------- */
.adblue { background: radial-gradient(circle at 85% 30%, #2a73cc 0%, var(--blue) 35%, #0f3466 100%); color: #fff; padding: 100px 0; position: relative; overflow: hidden; }
.adblue::before { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: repeating-linear-gradient(180deg, rgba(255,255,255,.08) 0 14px, transparent 14px 30px); }
.adblue__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; position: relative; }
.adblue h2 { color: #fff; }
.adblue p { color: #dbe7f6; font-size: 1.1rem; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 34px; font-weight: 600; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 14px no-repeat; }
.checks--dark { margin-bottom: 30px; }
.adblue__card { position: relative; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); border-radius: 24px; padding: 40px; backdrop-filter: blur(6px); }
.adblue__card svg { width: 100%; height: auto; filter: drop-shadow(0 20px 30px rgba(0,0,0,.3)); }
.adblue__ribbon { position: absolute; top: 20px; right: -10px; background: var(--red); font-family: var(--head); font-weight: 800; text-transform: uppercase; letter-spacing: 1px; padding: 8px 18px; border-radius: 6px 0 0 6px; box-shadow: 0 8px 20px rgba(0,0,0,.25); }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature { padding: 32px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .3s, transform .3s, box-shadow .3s; }
.feature:hover { border-color: transparent; transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature__ico { width: 58px; height: 58px; border-radius: 12px; background: var(--blue-light); display: grid; place-items: center; margin-bottom: 18px; transition: background .3s; }
.feature__ico svg { width: 30px; height: 30px; fill: var(--blue); transition: fill .3s; }
.feature:hover .feature__ico { background: var(--red); }
.feature:hover .feature__ico svg { fill: #fff; }
.feature p { color: var(--muted); margin: 0; }

/* ---------- Empresa ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about__media { position: relative; padding-bottom: 60px; padding-right: 60px; }
.about__media > img:first-child { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.about__inset { position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); border: 6px solid #fff; box-shadow: var(--shadow-lg); }
.about__text p { color: var(--muted); font-size: 1.07rem; }
.about__text strong { color: var(--ink); }

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 14px; }
.gallery__item { padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in; background: #e7ebf0; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, filter .3s; }
.gallery__item:hover img { transform: scale(1.07); filter: brightness(.88); }
.g-wide { grid-column: span 2; }

.lightbox { position: fixed; inset: 0; background: rgba(8,15,26,.94); z-index: 100; display: grid; place-items: center; padding: 30px; opacity: 0; pointer-events: none; transition: opacity .3s; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-height: 88vh; max-width: 92vw; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox__close { position: absolute; top: 18px; right: 24px; font-size: 2.6rem; line-height: 1; color: #fff; background: none; border: 0; cursor: pointer; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.lightbox__nav:hover { background: rgba(255,255,255,.3); }
.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }
.lightbox__count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #c9d4e3; font-weight: 600; }
.lightbox__nav[hidden], .lightbox__count[hidden] { display: none; }

/* ---------- CTA ---------- */
.cta { background: var(--navy); color: #fff; padding: 60px 0; background-image: linear-gradient(90deg, var(--navy) 0%, var(--navy-2) 100%); border-top: 5px solid var(--red); }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: .2em; }
.cta p { margin: 0; color: #c9d4e3; font-size: 1.1rem; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; }
.contact__info { display: flex; flex-direction: column; gap: 18px; }
.info { display: flex; gap: 16px; align-items: flex-start; }
.info__ico { width: 50px; height: 50px; border-radius: 10px; background: var(--red); display: grid; place-items: center; flex-shrink: 0; }
.info__ico svg { width: 24px; height: 24px; fill: #fff; }
.info h4 { font-size: 1.15rem; text-transform: uppercase; margin-bottom: 2px; }
.info p { margin: 0; color: var(--muted); }
.info a:hover { color: var(--red); }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); flex: 1; min-height: 260px; }
.map iframe { width: 100%; height: 100%; min-height: 260px; border: 0; display: block; }

.form { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 38px; border-top: 5px solid var(--red); }
.form h3 { font-size: 1.8rem; text-transform: uppercase; margin-bottom: 20px; }
.form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 16px; color: var(--ink); }
.form input:not([type=checkbox]), .form select, .form textarea { display: block; width: 100%; margin-top: 6px; font: inherit; font-weight: 400; font-size: 1rem; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--bg-alt); color: var(--ink); transition: border-color .2s, background .2s, box-shadow .2s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(31,95,174,.12); }
.form textarea { resize: vertical; }
.form .invalid { border-color: var(--red) !important; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 500 !important; color: var(--muted) !important; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--red); }
.form__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.form__msg { margin: 14px 0 0; font-weight: 600; min-height: 1.5em; }
.form__msg.error { color: var(--red); }
.form__msg.ok { color: #1a8a4a; }

/* ---------- Footer ---------- */
.footer { background: #08121f; color: #9fb0c6; padding-top: 70px; font-size: .97rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 50px; }
.footer h4 { color: #fff; font-size: 1.2rem; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer a:hover { color: #fff; }
.brand--footer { margin-bottom: 16px; }
.brand--footer .brand__logo { color: #fff; }
.brand--footer .brand__text strong { color: #fff; }
.brand--footer .brand__text small { color: #9fb0c6; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; font-size: .88rem; text-align: center; }

.footer:has(> .footer__bottom:only-child) { padding-top: 0; }
.footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.link-btn:hover { color: #fff; }

/* ---------- Mapa bloqueado hasta consentimiento ---------- */
.map__placeholder { height: 100%; min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 24px; background: var(--bg-alt) repeating-linear-gradient(45deg, transparent 0 18px, rgba(13,27,46,.03) 18px 36px); }
.map__placeholder p { margin: 0; color: var(--muted); max-width: 340px; font-size: .95rem; }
.map__placeholder a { color: var(--blue); font-weight: 600; font-size: .95rem; }

/* ---------- Texto legal del formulario ---------- */
.check a, .form__legal a { color: var(--blue); text-decoration: underline; }
.form__legal { font-size: .8rem; line-height: 1.5; color: var(--muted); background: var(--bg-alt); border-radius: 8px; padding: 12px 14px; margin: -4px 0 18px; }
.form__legal strong { color: var(--ink); }

/* ---------- Aviso de cookies ---------- */
.cookie { position: fixed; left: 20px; bottom: 20px; z-index: 90; max-width: 460px; background: #fff; border-radius: var(--radius); box-shadow: 0 20px 60px rgba(13,27,46,.28); border-top: 4px solid var(--red); padding: 22px 22px 18px; }
.cookie[hidden] { display: none; }
.cookie__text strong { font-family: var(--head); font-size: 1.3rem; text-transform: uppercase; color: var(--navy); }
.cookie__text p { font-size: .9rem; color: var(--muted); margin: 6px 0 16px; }
.cookie__text a { color: var(--blue); text-decoration: underline; }
.cookie__actions { display: flex; gap: 10px; justify-content: flex-end; }
.btn--ghost-dark { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--ghost-dark:hover { border-color: var(--navy); }

/* ---------- Páginas legales ---------- */
.legal-hero { background: var(--navy); color: #fff; padding: 64px 0 54px; border-bottom: 5px solid var(--red); }
.legal-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); text-transform: uppercase; font-weight: 800; margin: 0; }
.legal-hero p { color: #c9d4e3; margin: 8px 0 0; }
.breadcrumb { font-size: .9rem; color: #9fb0c6; margin-bottom: 14px; }
.breadcrumb a:hover { color: #fff; }
.legal { padding: 60px 0 90px; }
.legal__body { max-width: 820px; }
.legal__body h2 { font-size: 1.7rem; margin: 2em 0 .6em; color: var(--navy); }
.legal__body h2:first-child { margin-top: 0; }
.legal__body h3 { font-size: 1.25rem; margin: 1.4em 0 .4em; }
.legal__body p, .legal__body li { color: #3b4859; }
.legal__body ul { padding-left: 1.3em; }
.legal__body li { margin-bottom: .4em; }
.legal__body a { color: var(--blue); text-decoration: underline; }
.legal__body table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .93rem; }
.legal__body th, .legal__body td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; }
.legal__body th { background: var(--bg-alt); font-family: var(--head); text-transform: uppercase; letter-spacing: .5px; }
.table-wrap { overflow-x: auto; }
.data-card { background: var(--bg-alt); border-left: 4px solid var(--red); border-radius: 8px; padding: 18px 22px; margin: 1em 0 1.5em; }
.data-card p { margin: .25em 0; }
.pendiente { background: #fff3b0; color: #6b5200; padding: 0 4px; border-radius: 3px; font-weight: 600; }
.updated { font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 40px; }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; width: 60px; height: 60px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 25px rgba(37,211,102,.45); z-index: 60; transition: transform .25s; }
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__bg, .wa-float::before { animation: none; }
  .ticker__track { animation: none; width: auto; }
  .ticker__group { flex-wrap: wrap; justify-content: center; padding: 0 16px; }
  .ticker__group[aria-hidden] { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav__link { padding: 8px 9px; font-size: 1rem; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1140px) {
  .burger { display: block; }
  .nav { position: fixed; top: 0; right: 0; height: 100vh; width: min(320px, 85vw); background: #fff; flex-direction: column; align-items: stretch; padding: 100px 24px 30px; gap: 6px; box-shadow: -10px 0 40px rgba(0,0,0,.15); transform: translateX(100%); transition: transform .35s ease; z-index: 40; }
  .nav.open { transform: none; }
  .nav__link { font-size: 1.25rem; padding: 12px 10px; border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }
  .nav__cta { margin: 16px 0 0; }
  .burger { position: relative; z-index: 45; }
  .nav { overflow-y: auto; }
  .nav__drop-toggle { display: flex; }
  .nav__drop-toggle svg { display: none; }
  .nav__menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-radius: 0; min-width: 0; padding: 4px 0 8px 14px; }
  .nav__menu a { font-size: 1.05rem; padding: 8px 10px; }
  .offers { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .cats, .products { grid-template-columns: repeat(2, 1fr); }
  .adblue__grid, .about, .contact { grid-template-columns: 1fr; }
  .adblue__visual { max-width: 420px; margin: 0 auto; width: 100%; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.2); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar__inner > span:first-child { display: none; }
  .topbar__inner { justify-content: center; }
  .topbar__right a:last-child { display: none; }
  .brand__text strong { font-size: 1.15rem; }
  .brand__text small { font-size: .7rem; }
  .brand__logo { width: 38px; height: 38px; }
  .hero { min-height: 560px; }
  .hero__content { padding-top: 60px; padding-bottom: 60px; }
  .hero__actions .btn { width: 100%; }
  .section, .adblue { padding: 70px 0; }
  .cats, .products, .features, .offers { grid-template-columns: 1fr; }
  .lightbox__nav { width: 44px; height: 44px; font-size: 1.8rem; }
  .lightbox__prev { left: 8px; }
  .lightbox__next { right: 8px; }
  .cat { height: 260px; }
  .gallery { grid-auto-rows: 160px; }
  .form { padding: 26px 20px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .form__actions .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
  .about__media { padding-right: 30px; padding-bottom: 40px; }
  .stat__num, .stat__suf { font-size: 2.4rem; }
  .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .cookie__actions .btn { flex: 1; }
  .footer__bottom-inner { justify-content: center; text-align: center; }
}
