/* Star Patria Seminuevos — MB brand: negro/blanco + Pure Blue #0078D6 / #008DFC */
:root {
  --black: #000;
  --white: #fff;
  --blue: #0078d6;
  --blue-dark-bg: #008dfc;
  --grey-33: #333;
  --grey-76: #767676;
  --grey-bb: #bbb;
  --grey-f5: #f5f5f5;
  --wa: #25d366;
  --radius: 10px;
  --font-head: "Roboto Condensed", Arial, sans-serif;
  --font-body: "Source Sans 3", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--grey-33); background: var(--white); font-size: 16px; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; letter-spacing: .01em; }

/* utilidades de sección */
.kicker { font-family: var(--font-head); font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.kicker--light { color: var(--blue-dark-bg); }
.section__head { text-align: center; max-width: 760px; margin: 0 auto 30px; padding: 0 16px; }
.section__head h2 { font-size: clamp(26px, 4.2vw, 40px); }
.section__sub { color: var(--grey-76); margin-top: 8px; }

/* botones */
.btn { display: inline-block; padding: 12px 22px; border-radius: var(--radius); font-family: var(--font-head); font-weight: 700; font-size: 15px; text-align: center; border: none; cursor: pointer; transition: filter .15s, transform .05s; }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { filter: brightness(1.1); }
.btn--wa { background: var(--wa); color: var(--white); }
.btn--wa:hover { filter: brightness(1.05); }
.btn--ghost { background: transparent; color: var(--grey-33); border: 1px solid var(--grey-bb); }
.btn--ghost:hover { border-color: var(--grey-33); }
.btn--small { padding: 8px 14px; font-size: 13px; }
.btn--full { width: 100%; }

/* header */
.topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; background: var(--black); color: var(--white); }
.topbar__brand { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.logo__main { font-family: "Cinzel", Georgia, serif; font-weight: 700; font-size: 21px; letter-spacing: .04em; }
.logo__sub { font-family: "Cinzel", Georgia, serif; font-weight: 600; font-size: 9.5px; letter-spacing: .52em; margin-top: 4px; color: #d8d8d8; text-indent: .1em; }
.topbar__nav { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.topbar__nav a:hover { color: var(--grey-bb); }

/* hero con video */
.hero--video { position: relative; color: var(--white); overflow: hidden; min-height: 560px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 72px 20px; background: #0a0a0a; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.34) 45%, rgba(0,0,0,.72) 100%); }
.hero__inner { position: relative; z-index: 1; max-width: 860px; }
.hero--video h1 { font-size: clamp(32px, 6vw, 58px); line-height: 1.1; margin-bottom: 14px; text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.hero__sub { color: #e8e8e8; max-width: 600px; margin: 0 auto 26px; font-weight: 300; font-size: 18px; text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.hero__ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 38px; }
.hero__stats { display: flex; justify-content: center; gap: clamp(18px, 5vw, 54px); flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.25); padding-top: 22px; }
.hero__stats div { display: flex; flex-direction: column; min-width: 86px; }
.hero__stats strong { font-family: var(--font-head); font-size: clamp(24px, 3.4vw, 34px); line-height: 1.1; }
.hero__stats span { font-size: 13px; color: var(--grey-bb); letter-spacing: .04em; }

/* explorar por tipo (tarjetas con foto) / marca */
.explore { max-width: 1200px; margin: 0 auto; padding: 54px 16px 10px; }
.explore__types { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.typecard { position: relative; aspect-ratio: 3/4; border: 1px solid #1c1c1f; background-color: #060607; border-radius: var(--radius); overflow: hidden; cursor: pointer; font-family: var(--font-body); background-size: cover; background-position: center top; transition: transform .18s, box-shadow .18s, border-color .18s; padding: 0; text-align: center; display: flex; align-items: flex-end; justify-content: center; }
.typecard:hover { transform: translateY(-3px) scale(1.01); box-shadow: 0 12px 32px rgba(0,0,0,.3); border-color: var(--blue); }
.typecard__text { position: relative; z-index: 1; color: var(--white); width: 100%; padding: 0 12px 18px; }
.typecard__name { display: block; font-family: var(--font-head); font-weight: 700; font-size: 24px; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.typecard__count { display: block; font-size: 13px; color: #ddd; margin: 2px 0 12px; }
.typecard__cta { display: inline-block; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.45); backdrop-filter: blur(4px); color: var(--white); border-radius: 999px; padding: 7px 18px; font-size: 13px; font-weight: 600; transition: background .15s; }
.typecard:hover .typecard__cta { background: var(--blue); border-color: var(--blue); }
.explore__brands { margin-top: 26px; text-align: center; }
.explore__brands-label { font-size: 14px; color: var(--grey-76); margin-bottom: 10px; }
.brandchips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.brandchip { border: 1px solid var(--grey-bb); background: var(--white); color: var(--grey-33); border-radius: 999px; padding: 8px 16px; font-family: var(--font-body); font-size: 14px; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.brandchip em { font-style: normal; color: var(--grey-76); font-size: 12px; margin-left: 2px; }
.brandchip:hover { border-color: var(--blue); color: var(--blue); }
.brandchip:hover em { color: var(--blue); }
.brandchip--all { background: var(--black); color: var(--white); border-color: var(--black); }
.brandchip--all:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }

/* filtros */
.catalog { max-width: 1200px; margin: 0 auto; padding: 48px 16px 56px; }
.filters { margin-bottom: 18px; }
.filters__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.filters select { padding: 11px 12px; border: 1px solid var(--grey-bb); border-radius: var(--radius); font-family: var(--font-body); font-size: 14px; color: var(--grey-33); background: var(--white); }
.filters__count { margin-top: 12px; color: var(--grey-76); font-size: 14px; }

/* grid catálogo */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card { background: var(--white); border: 1px solid #e6e6e6; border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: 0 8px 28px rgba(0, 0, 0, .12); transform: translateY(-2px); }
.card__img { aspect-ratio: 4/3; overflow: hidden; background: var(--grey-f5); }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 14px 16px 18px; }
.card__title { font-size: 18px; margin-bottom: 4px; }
.card__meta { color: var(--grey-76); font-size: 13px; margin-bottom: 10px; }
.card__price { font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--black); }

/* herramientas de compra (cards sobre foto) */
.tools { background: url('/static/img/tools_bg.jpg') center/cover no-repeat fixed; position: relative; padding: 64px 20px 72px; }
@media (max-width: 900px) { .tools { background-attachment: scroll; } }
.tools::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.28); }
.tools__inner { position: relative; max-width: 1150px; margin: 0 auto; }
.tools__title { color: var(--white); font-size: clamp(26px, 4vw, 38px); margin-bottom: 24px; text-shadow: 0 2px 14px rgba(0,0,0,.5); }
.tools__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.toolcard { background: var(--white); border-radius: 14px; padding: 26px 24px 22px; display: flex; flex-direction: column; box-shadow: 0 10px 34px rgba(0,0,0,.22); }
.toolcard h3 { font-size: 21px; margin-bottom: 8px; }
.toolcard p { color: var(--grey-76); font-size: 15px; }
.toolcard__icon { font-size: 58px; line-height: 1; margin: 22px auto; }
.toolcard__link { margin-top: auto; background: none; border: none; cursor: pointer; text-align: left; color: var(--blue); font-family: var(--font-head); font-weight: 700; font-size: 16px; padding: 0; }
.toolcard__link:hover { text-decoration: underline; }

/* vende tu auto */
.sell { background: linear-gradient(120deg, #000 0%, #16181c 70%, #1c2129 100%); color: var(--white); padding: 64px 20px; }
.sell__inner { max-width: 1150px; margin: 0 auto; display: grid; gap: 44px; align-items: center; }
@media (min-width: 920px) { .sell__inner { grid-template-columns: 1fr 1.1fr; } }
.sell__photo { position: relative; }
.sell__photo::before { content: ""; position: absolute; top: -16px; right: -16px; bottom: 16px; left: 16px; border: 2px solid var(--blue); border-radius: 14px; opacity: .65; }
.sell__photo img { position: relative; width: 100%; height: 100%; min-height: 360px; object-fit: cover; border-radius: 14px; box-shadow: 0 18px 48px rgba(0,0,0,.45); }
.sell__copy { max-width: 560px; }
.sell h2 { font-size: clamp(24px, 3.6vw, 34px); line-height: 1.2; margin-bottom: 12px; }
.sell p { color: var(--grey-bb); font-weight: 300; margin-bottom: 20px; }
.sell__steps { list-style: none; counter-reset: paso; display: grid; gap: 12px; margin-bottom: 24px; }
.sell__steps li { counter-increment: paso; display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; }
.sell__steps li::before { content: counter(paso); grid-row: 1 / span 2; width: 44px; height: 44px; border: 1px solid var(--blue-dark-bg); color: var(--blue-dark-bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; font-size: 19px; }
.sell__steps strong { font-family: var(--font-head); font-size: 17px; }
.sell__steps span { color: var(--grey-bb); font-size: 14px; font-weight: 300; }

/* confianza — calidad que va más allá del auto */
.trust { background: var(--grey-f5); padding: 62px 16px 68px; }
.trust__wrap { max-width: 1150px; margin: 0 auto; display: grid; gap: 34px; align-items: center; }
@media (min-width: 920px) { .trust__wrap { grid-template-columns: 1fr 1.1fr; } }
.trust__info h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 12px; }
.trust__lead { color: var(--grey-76); margin-bottom: 24px; }
.trust__list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.trust__list li { background: var(--white); border: 1px solid #e9e9e9; border-radius: var(--radius); padding: 16px 16px; display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; font-size: 15px; }
.trust__list svg { width: 30px; height: 30px; color: var(--blue); flex: 0 0 auto; }
.trust__photo img { border-radius: 14px; box-shadow: 0 14px 40px rgba(0,0,0,.16); }

/* financiamiento */
.finance { background: var(--black); color: var(--white); padding: 56px 20px; text-align: center; }
.finance h2 { font-size: clamp(24px, 4vw, 36px); margin-bottom: 12px; }
.finance p { color: var(--grey-bb); max-width: 620px; margin: 0 auto 24px; font-weight: 300; }
.finance__ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.finance .btn--ghost { color: var(--white); border-color: var(--grey-76); }

/* ubicaciones */
.locations { padding: 58px 16px 66px; max-width: 1100px; margin: 0 auto; }
.locations__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.loccard { border: 1px solid #e6e6e6; border-radius: 14px; overflow: hidden; background: var(--white); box-shadow: 0 4px 18px rgba(0,0,0,.06); }
.loccard__map { aspect-ratio: 16/8; background: var(--grey-f5); }
.loccard__map iframe { width: 100%; height: 100%; border: 0; display: block; }
.loccard__body { padding: 22px 24px 26px; }
.loccard__badge { display: inline-block; background: var(--black); color: var(--white); font-family: var(--font-head); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; border-radius: 999px; padding: 5px 14px; margin-bottom: 14px; }
.loccard__badge--alt { background: var(--blue); }
.loccard h3 { font-size: 21px; margin-bottom: 8px; }
.loccard__addr { color: var(--grey-33); font-size: 15px; margin-bottom: 8px; }
.loccard__extra { color: var(--grey-76); font-size: 14px; margin-bottom: 18px; }
.loccard__extra a { color: var(--blue); }
.loccard__ctas { display: flex; gap: 10px; flex-wrap: wrap; }

/* calculadora */
.calc__result { display: flex; align-items: baseline; justify-content: space-between; background: var(--grey-f5); border-radius: var(--radius); padding: 14px 16px; margin: 6px 0 10px; }
.calc__result span { font-size: 14px; color: var(--grey-76); }
.calc__result strong { font-family: var(--font-head); font-size: 30px; color: var(--black); }
.calc__fine { font-size: 12px; color: var(--grey-76); margin-bottom: 14px; }
#calc-eng { width: 100%; accent-color: var(--blue); margin-top: 8px; }

/* footer */
.footer { background: #111; color: var(--grey-bb); padding: 48px 20px 34px; font-size: 14px; }
.footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; max-width: 1100px; margin: 0 auto 26px; text-align: left; }
.footer__logo { max-width: 210px; margin-bottom: 14px; }
.footer__col h4 { font-family: var(--font-head); color: var(--white); font-size: 15px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.footer__col p { margin-bottom: 8px; font-weight: 300; }
.footer a:hover { color: var(--white); }
.footer__fine { font-size: 12px; color: var(--grey-76); text-align: center; max-width: 820px; margin: 0 auto; border-top: 1px solid #2a2a2a; padding-top: 18px; }

/* whatsapp flotante */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 22px rgba(0,0,0,.28); transition: transform .15s, filter .15s; }
.wa-float:hover { transform: scale(1.07); filter: brightness(1.05); }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); animation: wa-pulse 2.4s ease-out infinite; }
@keyframes wa-pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

/* ficha (vip) */
.vip { max-width: 1200px; margin: 0 auto; padding: 18px 16px 56px; }
.crumbs { font-size: 13px; color: var(--grey-76); margin-bottom: 14px; }
.crumbs a:hover { color: var(--grey-33); }
.vip__layout { display: grid; grid-template-columns: 1fr; gap: 24px; }
.vip__layout > * { min-width: 0; }
@media (min-width: 900px) { .vip__layout { grid-template-columns: 3fr 2fr; align-items: start; } }

.gallery__main { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--grey-f5); aspect-ratio: 4/3; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0, 0, 0, .55); color: var(--white); border: none; width: 42px; height: 42px; border-radius: 50%; font-size: 24px; cursor: pointer; line-height: 1; }
.gallery__arrow--prev { left: 10px; }
.gallery__arrow--next { right: 10px; }
.gallery__count { position: absolute; bottom: 10px; right: 12px; background: rgba(0, 0, 0, .55); color: var(--white); font-size: 12px; padding: 3px 10px; border-radius: 12px; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.gallery__thumbs img { width: 84px; height: 62px; object-fit: cover; border-radius: 6px; cursor: pointer; opacity: .55; flex: 0 0 auto; border: 2px solid transparent; }
.gallery__thumbs img.active { opacity: 1; border-color: var(--blue); }

.vip__title { font-size: clamp(24px, 4vw, 34px); }
.vip__meta { color: var(--grey-76); margin: 6px 0 14px; }
.vip__price { font-family: var(--font-head); font-weight: 700; font-size: 34px; margin-bottom: 18px; }
.vip__price span { font-size: 16px; color: var(--grey-76); font-weight: 400; }
.vip__ctas { display: grid; gap: 10px; margin-bottom: 20px; }
.vip__trust { border-top: 1px solid #e6e6e6; padding-top: 14px; color: var(--grey-76); font-size: 14px; display: grid; gap: 6px; }

.specs { margin-top: 36px; }
.specs h2 { font-size: 24px; margin-bottom: 14px; }
.specs__table { width: 100%; border-collapse: collapse; max-width: 720px; }
.specs__table th, .specs__table td { text-align: left; padding: 10px 12px; font-size: 14px; border-bottom: 1px solid #ececec; }
.specs__table th { color: var(--grey-76); font-weight: 400; width: 45%; }
.specs h3 { font-size: 18px; margin: 22px 0 10px; }
.specs__extras { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; color: var(--grey-33); font-size: 14px; }
.specs__extras li::before { content: "✓ "; color: var(--blue); }

/* modal formulario */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__panel { background: var(--white); border-radius: var(--radius); padding: 26px 22px; width: 100%; max-width: 420px; position: relative; }
.modal__close { position: absolute; top: 10px; right: 14px; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--grey-76); }
.modal h3 { font-size: 22px; margin-bottom: 4px; }
.modal__sub { color: var(--grey-76); font-size: 14px; margin-bottom: 16px; }
.modal label { display: block; font-size: 13px; color: var(--grey-76); margin-bottom: 12px; }
.modal input, .modal textarea { width: 100%; padding: 10px 12px; margin-top: 4px; border: 1px solid var(--grey-bb); border-radius: 8px; font-family: var(--font-body); font-size: 15px; }
.modal__status { margin-top: 10px; font-size: 14px; min-height: 20px; }
.modal__status.ok { color: #1a7f37; }
.modal__status.err { color: #b3261e; }

@media (max-width: 720px) {
  .logo__main { font-size: 17px; }
  .logo__sub { font-size: 8px; letter-spacing: .44em; }
  .topbar__nav { gap: 12px; font-size: 13px; }
  .topbar__nav a:nth-child(2), .topbar__nav a:nth-child(3) { display: none; }
  .hero--video { min-height: 480px; padding: 56px 16px; }
  .sell { padding: 48px 18px; }
  .wa-float { width: 54px; height: 54px; right: 14px; bottom: 14px; }
}
