/* ============================================================================
   CERTICAR Córdoba — site.css
   Chrome y helpers COMPARTIDOS por todas las páginas (V2 Oscuro).
   Tokens y componentes base viven en styles.css (intacto).
   Cada página suma su propio CSS de secciones (home.css, concesionarias.css, …).
   Desktop = base · mobile = overrides en @media (max-width: 860px).
   ========================================================================== */

/* Scroll suave + offset para que los anclas no queden bajo el header sticky */
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

/* ---- Layout (Section / containers del bundle) ---- */
.section        { padding: 96px 0; position: relative; }
.section--88    { padding: 88px 0; }
.container      { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.container--wide   { max-width: 1280px; }
.container--narrow { max-width: 960px; }

/* Fondo en banda con gradiente (Section bg=...) */
.band-gradient  { background: linear-gradient(180deg, #06080c 0%, #0a0d14 50%, #06080c 100%); }

/* Acento editorial Fraunces italic dorado (titulares).
   El letter-spacing se hereda del titular contenedor (cc-display2 → -0.025em,
   cc-h1 → -0.02em); cada página fija el tracking donde el JSX lo declara explícito. */
.accent {
  font-family: 'Fraunces', 'Source Serif Pro', Georgia, serif;
  font-style: italic; font-weight: 600; color: var(--brand);
}

/* Kicker dorado (override de color sobre .cc-kicker) */
.kicker-gold { color: var(--brand); }

/* Utilidad: ocultar en mobile */
.desktop-only { /* visible por defecto */ }

/* ---- PhotoPlaceholder (gradientes etiquetados — reemplazar por fotos reales) ---- */
.photo {
  position: relative; overflow: hidden; width: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0e7490 0%, #0891b2 50%, #06b6d4 100%);
}
.photo--slate { background: linear-gradient(135deg, #1f2937 0%, #374151 50%, #4b5563 100%); }
.photo--warm  { background: linear-gradient(135deg, #44403c 0%, #57534e 50%, #78716c 100%); }
.photo--sky   { background: linear-gradient(135deg, #075985 0%, #0369a1 50%, #0284c7 100%); }
.photo--cyan  { background: linear-gradient(135deg, #0e7490 0%, #0891b2 50%, #06b6d4 100%); }
.photo::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15) 0%, transparent 50%);
}
.photo__label {
  position: relative; z-index: 2; color: rgba(255,255,255,0.7);
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; text-align: center; padding: 12px;
}
/* Foto real dentro del contenedor .photo (cubre el placeholder) */
.photo__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: 3; }

/* ---- Botones: modificadores sobre los del sistema (styles.css) ---- */
/* En .theme-dark, .cc-btn-primary ya es dorado con tinta --ink-on-gold. */
.btn--gold-shadow    { box-shadow: 0 8px 24px rgba(232,196,96,0.32); }
.btn--gold-shadow-sm { box-shadow: 0 8px 24px rgba(232,196,96,0.28); }
.btn--between        { justify-content: space-between; }
.btn--full           { width: 100%; }
/* Ghost claro sobre fondos oscuros */
.btn--ghost-hero { color: #fff; border-color: rgba(255,255,255,0.18); background: rgba(255,255,255,0.03); }
.btn--ghost-cta  { color: #fff; border-color: rgba(255,255,255,0.18); background: rgba(255,255,255,0.06); }
.btn--ghost-light{ color: #fff; border-color: rgba(255,255,255,0.18); }

/* ============================ HEADER ============================ */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(6,8,12,0.85);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hairline);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; padding: 14px 32px;
}
.wordmark { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.wordmark:hover { text-decoration: none; }
.wordmark__tagline {
  display: flex; flex-direction: column; line-height: 1.1;
  padding-left: 10px; border-left: 1px solid rgba(255,255,255,0.18);
}
.wordmark__tagline-1 {
  font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.55);
  letter-spacing: 0.18em; text-transform: uppercase;
}
.wordmark__tagline-2 {
  font-size: 11px; font-weight: 500; color: rgba(255,255,255,0.42);
  letter-spacing: 0.02em; margin-top: 4px;
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: rgba(255,255,255,0.65); padding: 8px 14px;
  font-size: 14px; font-weight: 500; border-radius: 8px; text-decoration: none;
  transition: background 120ms, color 120ms;
}
.nav a:hover { background: rgba(255,255,255,0.05); color: #fff; text-decoration: none; }
.site-header__actions { display: flex; align-items: center; gap: 10px; }
.header-menu-btn {
  display: none;
  background: var(--surfaceAlt); border: 1px solid var(--hairline);
  border-radius: 10px; width: 38px; height: 38px;
  align-items: center; justify-content: center; color: #fff;
}
/* Panel de navegación mobile (toggle) */
.mobile-nav { display: none; border-top: 1px solid var(--hairline); padding: 8px 16px 16px; }
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; color: rgba(255,255,255,0.75); padding: 12px 6px;
  font-size: 15px; font-weight: 500; text-decoration: none;
  border-bottom: 1px solid var(--hairline);
}
.mobile-nav a:last-child { border-bottom: none; }

/* ============================ FOOTER ============================ */
.site-footer { background: #06080c; color: #fff; padding: 72px 0 32px; border-top: 1px solid rgba(232,196,96,0.18); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.footer__about { color: rgba(255,255,255,0.55); font-size: 15px; line-height: 1.6; margin-top: 20px; max-width: 340px; }
.footer__social { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.footer__col-title { font-weight: 600; font-size: 13px; margin-bottom: 16px; color: var(--brand); letter-spacing: 0.04em; }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { color: rgba(255,255,255,0.5); font-size: 14px; text-decoration: none; }
.footer__links a:hover { color: rgba(255,255,255,0.85); text-decoration: none; }
.footer__bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--hairline);
  display: flex; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,0.4); flex-wrap: wrap; gap: 12px;
}

/* ============================ WhatsApp float ============================ */
/* En producción flota fijo sobre el scroll (el mockup usaba absolute en el artboard). */
.cc-wa-float { position: fixed; }

/* ============================================================================
   RESPONSIVE — chrome compartido (≤ 860px)
   ========================================================================== */
@media (max-width: 860px) {
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .section--88 { padding: 48px 0; }

  .desktop-only { display: none !important; }

  .site-header__inner { padding: 12px 16px; gap: 12px; }
  .nav { display: none; }
  .header-menu-btn { display: inline-flex; }

  .site-footer { padding: 40px 20px 24px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { margin-top: 28px; }
}
