/* ============================================================
   Duomo · Suzuki — Microsite concesionario oficial
   Identidad visual Suzuki (azul #00368F / rojo #E30613).
   Tipografía: SuzukiPRO (licenciada, opcional) con Roboto /
   Roboto Condensed como equivalente de trabajo.
   ============================================================ */

/* Si dispones de las fuentes oficiales SuzukiPRO (kit de medios),
   deja los .woff2 en assets/fonts/ y descomenta este bloque:
@font-face { font-family:"SuzukiPRO"; src:url("../fonts/SuzukiPRORegular.woff2") format("woff2"); font-weight:400; font-display:swap; }
@font-face { font-family:"SuzukiPRO"; src:url("../fonts/SuzukiPROBold.woff2") format("woff2"); font-weight:700; font-display:swap; }
@font-face { font-family:"SuzukiPROHeadline"; src:url("../fonts/SuzukiPROHeadline.woff2") format("woff2"); font-weight:400; font-display:swap; }
*/

:root {
  --blue: #00368f;
  --blue-dark: #002a70;
  --red: #e30613;
  --red-dark: #b30410;
  --ink: #212529;
  --ink-soft: #495057;
  --steel: #8a9199;
  --line: #e6e9ec;
  --paper: #ffffff;
  --paper-alt: #f5f7f9;
  --dark: #0b1220;
  --radius: 8px;
  --shadow: 0 8px 24px rgba(11, 18, 32, .08);
  --shadow-lg: 0 24px 60px rgba(11, 18, 32, .18);
  --maxw: 1240px;
  --sans: "Roboto", "SuzukiPRO", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --cond: "Roboto Condensed", "SuzukiPROHeadline", "Roboto", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans); color: var(--ink); background: var(--paper);
  line-height: 1.6; font-size: 15px; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section--alt { background: var(--paper-alt); }

h1, h2, h3, .cond {
  font-family: var(--cond); font-weight: 700; line-height: 1.08;
  text-transform: uppercase; letter-spacing: .01em;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.section > .wrap > h2 { text-align: center; color: var(--ink); }
.eyebrow {
  display: inline-block; font-family: var(--cond); font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; color: var(--red);
  font-size: 14px; margin-bottom: 10px;
}
.sub { text-align: center; color: var(--blue); font-weight: 500; margin: 4px 0 34px; }
.lead { font-size: 1.05rem; color: var(--ink-soft); max-width: 60ch; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-family: var(--cond); font-weight: 700; text-transform: uppercase;
  letter-spacing: .02em; font-size: .88rem; padding: 11px 22px;
  border-radius: 8px; border: 2px solid transparent; transition: .18s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--wa { background: #25d366; color: #fff; }
.btn--wa:hover { background: #1da851; }
.btn--dark { background: #fff; color: var(--blue); }
.btn--dark:hover { background: var(--ink); color: #fff; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: #fff;
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 26px; width: auto; }
.brand__divider { width: 1px; height: 26px; background: var(--line); }
.brand__sub { font-family: var(--cond); font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; font-size: .8rem; color: var(--ink-soft); }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  padding: 8px 14px; font-weight: 500; font-size: .95rem; color: var(--ink);
  border-radius: 3px; transition: color .2s;
}
.nav__links a:hover { color: var(--blue); }
.nav__links a.active { color: var(--blue); font-weight: 700; }
.nav__cta { margin-left: 8px; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

/* ---------- Hero (motivo diagonal rojo/azul) ---------- */
.hero { position: relative; overflow: hidden; background: var(--dark); color: #fff; }
.hero::before, .hero::after {
  content: ""; position: absolute; top: -30%; height: 160%; width: 46%;
  transform: skewX(-18deg); opacity: .92;
}
.hero::before { left: -12%; background: linear-gradient(160deg, var(--red) 0%, #7a0410 100%); }
.hero::after { right: -14%; background: linear-gradient(160deg, #1e4fd0 0%, var(--blue-dark) 100%); }
.hero__inner { position: relative; z-index: 2; padding: 84px 0 92px; text-align: center; }

/* Banner de cabecera de Promociones (imagen a todo el ancho) */
.promo-banner { line-height: 0; background: #0b1220; }
.promo-banner img { width: 100%; height: auto; display: block; }

/* Cabecera decorada estilo "zone" (Promociones) */
.hero--zone { background: #0b1220 url("../img/promo-hero-bg.svg") center/cover no-repeat; }
.hero--zone::before, .hero--zone::after { display: none; }
.hero--zone .hero__inner { padding: 96px 0 104px; }
.hero h1 { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero .lead { color: rgba(255,255,255,.9); margin: 16px auto 26px; text-align: center; }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Categorías (parrilla superior) ---------- */
.catgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 12px; }
.cattile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-align: center; cursor: pointer; transition: .2s; padding-bottom: 12px;
}
.cattile:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.cattile img { width: 100%; height: 104px; object-fit: contain; padding: 12px 12px 2px; }
.cattile span { font-family: var(--cond); font-weight: 700; text-transform: uppercase;
  color: var(--ink); font-size: .82rem; letter-spacing: .02em; }

/* ---------- Filtros ---------- */
.cat-bar { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 34px 0 30px; }
.cat-bar button {
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
  font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .02em;
  padding: 9px 20px; border-radius: 3px; cursor: pointer; transition: .2s; font-size: .88rem;
}
.cat-bar button:hover { border-color: var(--blue); color: var(--blue); }
.cat-bar button.active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ---------- Parrilla de modelos ---------- */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: .2s; cursor: pointer;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__media { aspect-ratio: 16/10; background: #fff; display: grid; place-items: center;
  position: relative; overflow: hidden; padding: 10px; }
.card__media img { width: 100%; height: 100%; object-fit: contain; }
.card__ph { color: var(--steel); font-weight: 700; font-size: .85rem; text-align: center; }
.card__badge {
  position: absolute; top: 12px; left: 12px; background: var(--red); color: #fff;
  font-family: var(--cond); font-size: .7rem; font-weight: 700; text-transform: uppercase;
  padding: 4px 10px; border-radius: 3px; letter-spacing: .03em;
}
.card__body { padding: 6px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; text-align: center; }
.card__cat { font-family: var(--cond); font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--red); }
.card__title { font-family: var(--cond); font-size: 1.35rem; font-weight: 700; text-transform: uppercase; color: var(--ink); }
.card__specs { display: flex; gap: 14px; margin: 8px auto 4px; flex-wrap: wrap; justify-content: center; }
.card__spec { font-size: .78rem; color: var(--steel); }
.card__spec b { display: block; color: var(--ink); font-size: .92rem; }
.card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 14px; }
.card__price { text-align: left; font-family: var(--cond); font-weight: 700; font-size: 1.15rem; color: var(--blue); }
.card__price small { display: block; font-family: var(--sans); font-weight: 400; color: var(--steel); font-size: .68rem; }
.card__link {
  background: none; border: 0; font-family: var(--cond); font-weight: 700; text-transform: uppercase;
  cursor: pointer; color: var(--blue); font-size: .82rem; letter-spacing: .03em;
}
.card__link:hover { color: var(--red); }

/* ---------- Promociones ---------- */
.promo-grid { display: grid; gap: 22px; grid-template-columns: repeat(2, 1fr); }
.promo { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.promo__top { padding: 26px; color: #fff; background: linear-gradient(120deg, var(--blue-dark), var(--blue)); }
.promo__top--red { background: linear-gradient(120deg, var(--red-dark), var(--red)); }
.promo__tag { font-family: var(--cond); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; opacity: .9; }
.promo__title { font-family: var(--cond); font-size: 1.5rem; text-transform: uppercase; margin: 6px 0; }
.promo__valid { font-size: .82rem; opacity: .85; }
.promo__body { padding: 24px 26px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.promo__list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.promo__list li { padding-left: 26px; position: relative; color: var(--ink-soft); }
.promo__list li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 800; }
.promo__foot { margin-top: auto; padding-top: 8px; }

/* ---------- Tarjetas de promoción ---------- */
.pcard { cursor: default; }
.pcard__prices { display: flex; align-items: baseline; gap: 10px; justify-content: center; margin: 4px 0 2px; }
.pcard__pvp { color: var(--steel); text-decoration: line-through; font-size: .95rem; }
.pcard__promo { font-family: var(--cond); font-weight: 700; font-size: 1.5rem; color: var(--red); }
.pcard__note { font-size: .76rem; color: var(--steel); margin-bottom: 4px; }
.pcard__extra { font-size: .8rem; color: var(--blue); font-weight: 500; background: #eef2fb; border-radius: 5px; padding: 6px 10px; margin: 2px 0 4px; }
.promo-legal { max-width: 80ch; margin: 26px auto 0; text-align: center; font-size: .8rem; color: var(--steel); }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; gap: 40px; grid-template-columns: 1.1fr .9fr; align-items: start; }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; font-size: .9rem; }
.field input, .field select, .field textarea {
  font: inherit; padding: 13px 15px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); transition: border .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); }
.field textarea { resize: vertical; min-height: 120px; }
.field--row { grid-template-columns: 1fr 1fr; gap: 16px; display: grid; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--steel); }
.check input { margin-top: 3px; }
.form__note { font-size: .82rem; color: var(--steel); }
.form-status { border-radius: 8px; padding: 14px 16px; font-size: .92rem; margin-top: 4px; }
.form-status--ok { background: #e7f7ec; border: 1px solid #b7e4c7; color: #1b7a3d; }
.form-status--err { background: #fdecea; border: 1px solid #f5c6c0; color: #b3261e; }
.form-status--err a { color: #b3261e; font-weight: 700; text-decoration: underline; }
.info-card { background: var(--dark); color: #fff; border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 22px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; }
.info-item__ico { width: 42px; height: 42px; border-radius: 6px; background: rgba(255,255,255,.08); display: grid; place-items: center; flex-shrink: 0; font-size: 1.1rem; }
.info-item h4 { font-family: var(--cond); text-transform: uppercase; font-size: .95rem; margin-bottom: 2px; }
.info-item p, .info-item a { color: rgba(255,255,255,.72); font-size: .92rem; }
.info-item a:hover { color: #fff; }
.map-embed { border: 0; width: 100%; height: 260px; border-radius: var(--radius); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--blue-dark), var(--blue)); color: #fff; border-radius: var(--radius); padding: 44px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); margin: 10px auto 24px; max-width: 52ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: rgba(255,255,255,.66); padding: 52px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h5 { font-family: var(--cond); text-transform: uppercase; color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer a { display: block; padding: 4px 0; font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .82rem; color: rgba(255,255,255,.5); }
.disclaimer { font-size: .78rem; color: rgba(255,255,255,.4); margin-top: 14px; max-width: 74ch; }

/* ---------- Modal ficha ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: none; background: rgba(11,18,32,.62); padding: 24px; overflow-y: auto; }
.modal.open { display: flex; align-items: flex-start; justify-content: center; }
.modal__panel { background: #fff; border-radius: var(--radius); max-width: 880px; width: 100%; margin: 0 auto; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); display: grid; grid-template-columns: 1fr 1fr; animation: pop .2s ease; }
@keyframes pop { from { transform: scale(.96); opacity: .5; } to { transform: scale(1); opacity: 1; } }
.modal__close { position: absolute; top: 12px; right: 14px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255,255,255,.9); font-size: 1.5rem; line-height: 1; color: var(--ink); }
.modal__media { background: #fff; display: grid; place-items: center; min-height: 260px; padding: 20px; }
.modal__media img { width: 100%; height: 100%; object-fit: contain; }
.modal__info { padding: 30px; display: flex; flex-direction: column; gap: 10px; }
.modal__title { font-family: var(--cond); font-size: 1.7rem; text-transform: uppercase; }
.modal__desc { color: var(--ink-soft); font-size: .95rem; }
.spec-table { width: 100%; border-collapse: collapse; margin: 6px 0 4px; font-size: .9rem; }
.spec-table th, .spec-table td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { color: var(--steel); font-weight: 500; width: 42%; }
.spec-table td { color: var(--ink); font-weight: 500; }
.modal__colors { margin: 4px 0 2px; }
.modal__colors-label { font-size: .82rem; color: var(--steel); margin-bottom: 8px; }
.modal__colors-label span { color: var(--ink); font-weight: 500; }
.modal__swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 62px; height: 42px; padding: 0; border: 2px solid var(--line); border-radius: 5px; background: #fff; cursor: pointer; overflow: hidden; transition: border .15s; }
.swatch img { width: 100%; height: 100%; object-fit: contain; }
.swatch:hover { border-color: var(--steel); }
.swatch.active { border-color: var(--blue); }
.card__colors { font-size: .76rem; color: var(--blue); font-weight: 500; margin-top: 2px; }
.modal__price { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; }
.modal__price span { font-family: var(--cond); font-size: 1.6rem; font-weight: 700; color: var(--blue); }
.modal__price small { color: var(--steel); }
.modal__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.modal__actions-row { display: flex; gap: 10px; flex-wrap: wrap; }
.modal__actions-row .btn { flex: 1; justify-content: center; white-space: nowrap; }

/* ---------- Páginas legales ---------- */
.legal { padding: 56px 0 64px; }
.legal .wrap { max-width: 900px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 6px; }
.legal .updated { color: var(--steel); font-size: .85rem; margin-bottom: 28px; }
.legal h2 { font-size: 1.25rem; margin: 28px 0 10px; color: var(--blue); text-transform: none; letter-spacing: 0; }
.legal h3 { font-family: var(--cond); font-size: 1.05rem; margin: 18px 0 6px; text-transform: none; }
.legal p, .legal li { color: var(--ink-soft); margin-bottom: 10px; line-height: 1.7; }
.legal ul { padding-left: 22px; margin-bottom: 10px; }
.legal a { color: var(--blue); text-decoration: underline; }
.legal .data-box { background: var(--paper-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 8px 0 18px; }
.legal .data-box p { margin-bottom: 4px; }
.legal table.cookie-tbl { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 8px 0 16px; }
.legal table.cookie-tbl th, .legal table.cookie-tbl td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal table.cookie-tbl th { background: var(--paper-alt); font-family: var(--cond); text-transform: uppercase; font-size: .78rem; }

/* ---------- Banner de cookies ---------- */
.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: var(--dark); color: rgba(255,255,255,.9);
  box-shadow: 0 -8px 30px rgba(0,0,0,.25);
  transform: translateY(110%); transition: transform .3s ease;
}
.cookie-bar--show { transform: translateY(0); }
.cookie-bar--hide { transform: translateY(110%); }
.cookie-bar__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: space-between;
}
.cookie-bar__txt { font-size: .9rem; max-width: 70ch; margin: 0; color: rgba(255,255,255,.82); }
.cookie-bar__txt a { color: #fff; text-decoration: underline; }
.cookie-bar__btns { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-bar__btns .btn { padding: 10px 22px; }
.cookie-bar__btns .btn--ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.cookie-bar__btns .btn--ghost:hover { border-color: #fff; color: #fff; }
@media (max-width: 620px) {
  .cookie-bar__inner { flex-direction: column; align-items: stretch; gap: 12px; }
  .cookie-bar__btns { justify-content: stretch; }
  .cookie-bar__btns .btn { flex: 1; justify-content: center; }
}

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37,211,102,.45); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .catgrid { grid-template-columns: repeat(3, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .promo-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav__links { position: absolute; top: 74px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-140%); transition: transform .3s; z-index: 40; }
  .nav__links.open { transform: translateY(0); }
  .nav__toggle { display: block; }
}
@media (max-width: 620px) {
  .catgrid, .grid { grid-template-columns: 1fr; }
  .modal__panel { grid-template-columns: 1fr; }
  .field--row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 46px 0; }
}
