/* BCG website: colors, type, header, menu, footer and buttons shared by every page.
   Colors are the logo's: black, greys, red, white (Mafer, 2026-10-25). Content sits on
   white and light grey, like the inventory Giovany liked; header, menu and footer are black. */

/* The brand font is for titles only. It has no accents, ñ, ¿ or ¡, so Spanish titles are
   written without them (tests/website/words.test.ts checks). Archivo covers anything else. */
@font-face { font-family: "BCG Display"; src: url(../assets/fonts/bcg-display.ttf) format("truetype"); font-display: swap; }

:root {
  --black: #000; --ink: #141414; --steel: #2a2a2a; --grey: #5c6066; --line: #e2e3e6; --paper: #f2f2f3; --white: #fff;
  --red: #e3202a; --red-deep: #b5161f; --ok: #1fb85a; --wa: #157a41;
  --display: "BCG Display", "Archivo", sans-serif; --body: "Archivo", system-ui, sans-serif;
  --pad: clamp(16px, 4vw, 56px); --max: 1360px;
  --shadow: 0 14px 34px -22px rgba(0, 0, 0, .45);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; } /* buttons and labels set to hidden stay hidden */
html { scroll-behavior: smooth; }
html { overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: var(--red); color: var(--white); }
a { color: inherit; text-underline-offset: 3px; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--white); padding: 8px 12px; }
.display { font-family: var(--display); font-weight: 400; letter-spacing: .01em; line-height: 1; margin: 0; text-transform: uppercase; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.muted { color: var(--grey); }
.placeholder { background: rgba(227, 32, 42, .1); color: var(--red-deep); padding: 0 6px; border-radius: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 15px/1.1 var(--body); text-decoration: none; padding: 15px 22px; border-radius: 4px; border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn.red { background: var(--red); color: var(--white); } .btn.red:hover { background: var(--red-deep); }
.btn.black { background: var(--black); color: var(--white); } .btn.black:hover { background: var(--steel); }
.btn.white { background: var(--white); color: var(--black); } .btn.white:hover { background: var(--paper); }
.btn.line { border-color: var(--ink); color: var(--ink); background: transparent; } .btn.line:hover { background: var(--ink); color: var(--white); }
.btn.ghost { border-color: rgba(255,255,255,.8); color: var(--white); } .btn.ghost:hover { background: var(--white); color: var(--black); }
.btn.wa { background: var(--wa); color: var(--white); }
.btn.small { padding: 11px 14px; font-size: 14px; }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Top strip: open now, WhatsApp, languages, search */
.util { background: var(--black); color: #d9dadc; display: flex; align-items: center; gap: 18px; padding: 8px var(--pad); font: 500 14px var(--body); white-space: nowrap; }
.util a { text-decoration: none; }
.open-now { display: inline-flex; align-items: center; gap: 8px; }
.open-now i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; }
.open-now.closed i { background: #8b8f94; }
.lang { border: 1px solid rgba(255,255,255,.45); border-radius: 999px; padding: 4px 12px; background: none; color: inherit; font: inherit; cursor: pointer; }
.util form { margin-left: auto; display: flex; flex: 0 1 380px; min-width: 200px; }
.util input { flex: 1; min-width: 0; width: auto; font: 500 15px var(--body); padding: 8px 14px; background: #1b1b1b; color: var(--white); border: 1px solid var(--steel); border-right: 0; border-radius: 4px 0 0 4px; }
.util input::placeholder { color: #8b8f94; }
.util form button { background: var(--red); color: var(--white); border: 0; padding: 0 16px; font: 700 14px var(--body); cursor: pointer; border-radius: 0 4px 4px 0; }

/* Who we are, where, how to call */
.brandbar { background: var(--white); display: flex; align-items: center; gap: 20px; padding: 14px var(--pad); border-bottom: 1px solid var(--line); }
.brandbar .logo img { height: 74px; width: auto; display: block; }
.brandbar .name { text-decoration: none; }
.brandbar .name b { display: block; font: 400 clamp(22px, 2.2vw, 32px)/1 var(--display); text-transform: uppercase; }
.brandbar .name small { display: block; font: 500 14px/1.4 var(--body); color: var(--grey); margin-top: 6px; }
.brandbar .reach { margin-left: auto; text-align: right; display: grid; gap: 2px; }
.brandbar .reach .addr { display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; font: 500 15px var(--body); text-decoration: none; color: var(--grey); }
.brandbar .reach .addr:hover { color: var(--red); text-decoration: underline; }
.brandbar .reach .tel { font: 800 28px/1.15 var(--body); text-decoration: none; letter-spacing: -.01em; }
.brandbar .reach .tel:hover { color: var(--red); }

/* Main menu: always fully visible, never a sideways scroll */
.mainnav { position: sticky; top: 0; z-index: 30; background: var(--black); border-bottom: 3px solid var(--red); }
/* One row always: layout.js shrinks the words to fit, and switches to the Menu button when even
   the smallest size won't fit (Mafer, 2026-10-26). */
.mainnav .links { display: flex; justify-content: center; flex-wrap: nowrap; max-width: var(--max); margin: 0 auto; font-size: var(--nav-size, 15px); }
.mainnav a { color: var(--white); font: 700 1em var(--body); white-space: nowrap; text-decoration: none; padding: 15px var(--nav-pad, 15px); border-bottom: 3px solid transparent; margin-bottom: -3px; }
.mainnav a:hover, .mainnav a[aria-current="page"] { border-bottom-color: var(--red); }
.mainnav a.c1 { background: var(--red); } .mainnav a.c1:hover, .mainnav a.c1[aria-current="page"] { background: var(--red-deep); border-bottom-color: var(--red-deep); }
.menu-btn { display: none; }

/* Call, WhatsApp, map: always one tap away */
.rail { position: fixed; right: 0; top: 46%; z-index: 40; display: grid; box-shadow: var(--shadow); }
.rail a { width: 54px; height: 54px; display: grid; place-items: center; background: var(--red); color: var(--white); }
.rail a:nth-child(2) { background: var(--wa); } .rail a:last-child { background: var(--black); }

/* Inner page title: small, so the page gets straight to the action */
.pagehead { background: var(--white); border-bottom: 1px solid var(--line); padding: 26px 0 22px; }
.pagehead .wrap { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.pagehead h1 { font-size: clamp(28px, 3.2vw, 46px); }
.pagehead p { margin: 0; color: var(--grey); font-size: 16px; }
section.band { padding: clamp(36px, 5vw, 64px) 0; }
.head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 22px; }
.head h2 { font-size: clamp(26px, 2.8vw, 42px); }
.link { font: 700 15px var(--body); text-decoration: none; border-bottom: 2px solid var(--red); padding-bottom: 3px; white-space: nowrap; }

/* Footer */
.foot { background: var(--black); color: #c9cacc; border-top: 4px solid var(--red); padding: 48px 0 24px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.foot h3 { font: 400 20px var(--display); text-transform: uppercase; margin: 0 0 12px; color: var(--white); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; } .foot a { text-decoration: none; } .foot a:hover { color: var(--white); }
.foot .legal { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--steel); color: #8b8f94; font-size: 13px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.mainnav.collapsed .menu-btn { display: flex; width: 100%; align-items: center; justify-content: space-between; background: none; border: 0; color: var(--white); font: 700 16px var(--body); padding: 14px var(--pad); cursor: pointer; }
.mainnav.collapsed .links { display: none; flex-direction: column; font-size: 16px; } .mainnav.collapsed.open .links { display: flex; }
.mainnav.collapsed a { padding: 13px var(--pad); border-bottom: 1px solid var(--steel); margin: 0; }

@media (max-width: 860px) {
  .util { flex-wrap: wrap; gap: 8px 14px; } .util form { flex-basis: 100%; margin: 0; }
  .brandbar { flex-wrap: wrap; gap: 12px; } .brandbar .logo img { height: 56px; }
  .brandbar .reach { margin: 0; width: 100%; text-align: left; } .brandbar .reach .addr { justify-content: flex-start; } .brandbar .reach .tel { font-size: 24px; }
  .rail { top: auto; bottom: 0; left: 0; right: 0; grid-template-columns: repeat(3, 1fr); } .rail a { width: auto; height: 52px; }
  body { padding-bottom: 52px; }
  .head { flex-direction: column; align-items: flex-start; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
