/* ==========================================================================
   COMERCIAL ESTUARDO - MINIMALIST DEALERSHIP (VOLVO-INSPIRED LUXURY DESIGN)
   Clean, Scandinavian Aesthetic • Light Palette • Crisp Typography
   ========================================================================== */

/* 1. DESIGN TOKENS & VARIABLES */
:root {
  /* Surface & Background Colors */
  --bg-body: #ffffff;
  --bg-hero: #e8edf2;
  --bg-surface: #f4f6f8;
  --bg-surface-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-podium: #eef2f6;

  /* Text & Primary Accents */
  --text-main: #111827;
  --text-secondary: #4b5563;
  --text-muted: #8c96a5;
  --text-inverse: #ffffff;

  /* Brand Colors */
  --brand-primary: #009639; /* Comercial Estuardo Emerald */
  --brand-primary-light: #e8f7ee;
  --accent-cyan: #0284c7;
  --accent-cyan-light: #e0f2fe;
  --accent-orange: #ea580c;

  /* Borders & Shadows */
  --border-light: #e5e7eb;
  --border-card: #e8ecf1;
  --border-focus: #111827;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.08);
  --shadow-modal: 0 25px 60px -15px rgba(0, 0, 0, 0.25);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --container-max: 1200px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --header-height: 76px;

  /* Transitions */
  --trans-fast: 0.18s ease;
  --trans-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --trans-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. BASE & RESET */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: light;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--trans-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* 3. BUTTONS & PILLS (VOLVO STYLE) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-pill);
  transition: all var(--trans-normal);
  font-size: 0.92rem;
  letter-spacing: 0.2px;
  white-space: nowrap;
  text-align: center;
}

.btn-pill-dark {
  background-color: #111827;
  color: #ffffff;
  border: 1px solid #111827;
}

.btn-pill-dark:hover {
  background-color: #000000;
  border-color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-pill-outline {
  background-color: transparent;
  color: #111827;
  border: 1px solid #111827;
}

.btn-pill-outline:hover {
  background-color: #111827;
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.84rem;
}

.btn-lg {
  padding: 0.95rem 2.2rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* 4. HEADER & NAVBAR MINIMALISTA */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  transition: all var(--trans-normal);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-toggle {
  display: none;
  background: transparent;
  padding: 0.5rem;
  cursor: pointer;
}

.hamburger-icon {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-main);
  position: relative;
  transition: background-color var(--trans-fast);
}

.hamburger-icon::before,
.hamburger-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  transition: transform var(--trans-normal);
}

.hamburger-icon::before { top: -6px; }
.hamburger-icon::after { bottom: -6px; }

.nav-toggle.active .hamburger-icon {
  background-color: transparent;
}
.nav-toggle.active .hamburger-icon::before {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle.active .hamburger-icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--trans-fast);
}

.nav-link:hover {
  color: var(--text-main);
}

.mobile-cta-link {
  display: none;
}

/* Brand Lockup (Logo Icon + Typography Beside It) */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.brand-logo-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 1.5px;
  color: var(--text-main);
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--brand-primary);
  margin-top: 2px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* 5. HERO SHOWROOM CAROUSEL */
.volvo-hero-section {
  position: relative;
  width: 100%;
  /* Match the exact gray of the studio photo backgrounds */
  background: #e8eaee;
  min-height: 82vh;
  display: flex;
  align-items: stretch;
  padding: 3rem 0 1.5rem;
  overflow: hidden;
}

/* Full-bleed background image stage */
.hero-bg-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

#hero-vehicle-picture {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-vehicle-img {
  width: 100%;
  height: 100%;
  /* PC: cover fills full hero without grey borders */
  object-fit: cover;
  object-position: center center;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  border: none !important;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: opacity 0.2s ease;
}

/* Inner container: text top, bottom bar at bottom */
.hero-inner-container {
  position: relative;
  z-index: 5;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 72vh;
  pointer-events: none;
}

.hero-text-block,
.hero-bottom-bar {
  pointer-events: auto;
}

/* Text block: left-aligned, dark text on gray */
.hero-text-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  max-width: 520px;
}

.hero-model-cat {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: #5a6473;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.hero-model-name {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.05;
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
}

.hero-model-tagline {
  font-size: 0.95rem;
  color: #4a5568;
  margin-bottom: 1.4rem;
  line-height: 1.5;
}

/* CTAs: side by side, compact */
.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-hero-cta {
  padding: 0.65rem 1.3rem !important;
  font-size: 0.82rem !important;
}

.btn-hero-quote {
  padding: 0.65rem 1.3rem !important;
  font-size: 0.82rem !important;
}

/* ── Arrows: Absolutely positioned ── */
/* PC: top-right corner of hero section */
.hero-controls-arrows {
  position: absolute;
  top: 2.5rem;
  right: 2rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  pointer-events: auto;
}

.arrow-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--trans-fast);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.arrow-btn:hover {
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transform: scale(1.08);
}

/* Bottom bar: progress + compare link */
.hero-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
}

/* PC: linear progress bar */
.hero-progress-track {
  width: 140px;
  height: 3px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 2px;
  overflow: hidden;
}

.hero-progress-indicator {
  height: 100%;
  width: 25%;
  background: #0f172a;
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* PC: dot indicators hidden */
.hero-dots {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.hero-dot {
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.18);
  transition: background 0.3s ease, width 0.3s ease;
  cursor: pointer;
}

.hero-dot.active {
  background: #0f172a;
  width: 36px;
}

.hero-compare-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: #0f172a;
  text-decoration: underline;
  text-underline-offset: 4px;
  white-space: nowrap;
}

.hero-compare-link:hover {
  color: var(--brand-primary);
}


/* 6. MINIMAL BRAND BAR */
.minimal-brand-bar {
  background: #ffffff;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--border-light);
}

.brand-bar-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.brand-bar-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-bar-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.brand-bar-item span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.brand-bar-divider {
  width: 1px;
  height: 28px;
  background-color: var(--border-light);
}

.brand-bar-feature {
  display: flex;
  flex-direction: column;
}

.brand-bar-feature strong {
  font-size: 0.88rem;
  color: var(--text-main);
}

.brand-bar-feature span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* 7. CATÁLOGO DE MOTOS MINIMALISTA */
.minimal-catalog-section {
  padding: 5rem 0;
  background-color: #ffffff;
}

.section-title-wrap {
  margin-bottom: 2.5rem;
}

.minimal-section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.minimal-section-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 620px;
}

/* Tabs de Categorías */
.catalog-tab-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 3rem;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cat-tabs-scroll {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.cat-tab {
  background: transparent;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.8rem 0;
  position: relative;
  transition: color var(--trans-fast);
  white-space: nowrap;
}

.cat-tab:hover {
  color: var(--text-main);
}

.cat-tab.active {
  color: var(--text-main);
  font-weight: 700;
}

.cat-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
}

.minimal-search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 0.45rem 1rem;
  min-width: 240px;
}

.minimal-search-box svg {
  color: var(--text-muted);
}

.minimal-search-box input {
  background: transparent;
  font-size: 0.88rem;
  color: var(--text-main);
  width: 100%;
}

/* Catalog Grid */
.minimal-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem 2rem;
}

/* Minimal Moto Card */
.volvo-moto-card {
  background: #ffffff;
  display: flex;
  flex-direction: column;
  transition: transform var(--trans-normal);
}

.volvo-moto-card:hover {
  transform: translateY(-4px);
}

.v-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.3rem;
}

.v-card-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.v-card-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--brand-primary);
  background: var(--brand-primary-light);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
}

.v-card-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.v-card-tagline {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  min-height: 2.6em;
}

/* Vehicle Stage on Card (Sin fondo gris, imagen con bordes redondeados) */
.v-card-stage {
  position: relative;
  background: transparent;
  border-radius: var(--radius-md);
  aspect-ratio: 16 / 11;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0;
  margin-bottom: 1.2rem;
  overflow: visible;
}

.v-card-img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  border-radius: 14px;
  z-index: 2;
  transition: transform var(--trans-normal);
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.14));
}

.volvo-moto-card:hover .v-card-img {
  transform: scale(1.05);
}

.v-card-shadow {
  position: absolute;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  width: 75%;
  height: 14px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.22) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
}

/* Specs Strip */
.v-card-specs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 0.8rem;
}

.v-spec-item strong {
  color: var(--text-main);
}

/* Card Pricing Block */
.v-card-pricing {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.2rem;
}

.v-price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.v-price-cash {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
}

.v-price-down {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-primary);
}

.v-price-card-cuotas {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.v-price-card-cuotas strong {
  color: var(--text-main);
}

/* Card Actions */
.v-card-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0.6rem;
  margin-top: auto;
}

/* Movesa catalog promo banners */
.catalog-promo-banner {
  grid-column: 1 / -1;
  min-height: 420px;
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(480px, 1.28fr);
  grid-template-rows: 1fr auto;
  align-items: stretch;
  background: #f3f5f8;
  color: #0f172a;
  overflow: hidden;
  border-radius: var(--radius-md);
  position: relative;
  isolation: isolate;
  margin: 1.35rem 0;
  border: 1px solid var(--border-card);
}

.catalog-promo-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.16) 58%, rgba(0, 150, 57, 0.08)),
    radial-gradient(circle at 78% 24%, rgba(17, 24, 39, 0.08), transparent 32%);
  z-index: -1;
  pointer-events: none;
}

.catalog-promo-copy {
  position: relative;
  z-index: 2;
  padding: clamp(2rem, 4vw, 3.2rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  max-width: 620px;
}

.catalog-promo-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: #5a6473;
  margin-bottom: 0.5rem;
}

.catalog-promo-copy h3 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.05;
  font-weight: 800;
  color: #0f172a;
  max-width: 12ch;
  margin-bottom: 0.5rem;
}

.catalog-promo-copy p {
  color: #4a5568;
  font-size: 0.95rem;
  max-width: 32rem;
  margin-bottom: 1.25rem;
}

.catalog-promo-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.catalog-promo-stats span {
  font-size: 0.78rem;
  font-weight: 800;
  color: #111827;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: var(--radius-pill);
  padding: 0.42rem 0.72rem;
}

.catalog-promo-showcase {
  position: relative;
  z-index: 2;
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.8rem, 2.8vw, 2.2rem);
  overflow: hidden;
}

.catalog-promo-showcase::before {
  content: "";
  position: absolute;
  width: min(82%, 680px);
  height: 30px;
  left: 50%;
  bottom: 13%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.24), transparent 70%);
  border-radius: 50%;
}

.catalog-promo-showcase img {
  position: relative;
  z-index: 2;
  width: min(112%, 780px);
  max-height: 380px;
  object-fit: contain;
  filter: drop-shadow(0 22px 26px rgba(0, 0, 0, 0.18));
}

.catalog-promo-bottom {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 clamp(2rem, 4vw, 3.2rem) clamp(1.8rem, 3vw, 2.4rem);
  background: transparent;
}

.catalog-promo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.catalog-promo-actions .btn-pill-outline {
  color: #111827;
  border-color: rgba(17, 24, 39, 0.48);
}

.catalog-promo-actions .btn-pill-outline:hover {
  background: #111827;
  color: #ffffff;
}

.catalog-promo-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5a6473;
  background: rgba(255, 255, 255, 0.82);
  border-radius: var(--radius-pill);
  padding: 0.45rem 0.75rem;
}

.catalog-promo-bottom .hero-progress-indicator {
  width: 100%;
}

/* 8. FINANCIAMIENTO (MINIMALISTA) */
.minimal-finance-section {
  padding: 5rem 0;
  background-color: var(--bg-surface);
}

.finance-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.finance-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all var(--trans-normal);
}

.finance-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.finance-card.highlight {
  border-color: #111827;
}

.finance-card-tag {
  position: absolute;
  top: -12px;
  left: 2rem;
  background: #111827;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

.finance-card-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.finance-card-rate {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
}

.finance-card-rate span {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--brand-primary);
}

.finance-card-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.45;
}

.finance-card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.finance-card-list li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.2rem;
}

.finance-card-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--brand-primary);
  font-weight: bold;
}

/* 9. SERVICIOS MINIMALISTAS */
.minimal-services-section {
  padding: 5rem 0;
  background-color: #ffffff;
}

.services-row-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.service-box {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-box h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.service-box p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* 10. CONTACTO & FORMULARIO */
.minimal-contact-section {
  padding: 5rem 0;
  background-color: var(--bg-surface);
}

.contact-card-box {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.contact-left-info {
  padding: 3rem;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--border-light);
}

.contact-heading {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.6rem;
  line-height: 1.2;
}

.contact-subheading {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.c-info-item {
  display: flex;
  flex-direction: column;
}

.c-info-item .c-lbl {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.c-info-item .c-val {
  font-size: 0.92rem;
  color: var(--text-main);
  font-weight: 500;
}

.contact-right-form {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.input-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}

.input-wrap label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.input-wrap input,
.input-wrap select,
.input-wrap textarea {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--text-main);
  transition: border-color var(--trans-fast);
}

.input-wrap input:focus,
.input-wrap select:focus,
.input-wrap textarea:focus {
  border-color: #111827;
  background: #ffffff;
}

/* 11. FOOTER MINIMALISTA */
.minimal-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 3rem 0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-logo-img {
  height: 40px;
  width: auto;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
}

.footer-brand-text .f-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-main);
}

.footer-brand-text .f-sub {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--brand-primary);
  letter-spacing: 1px;
}

.footer-nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-nav-links a {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.footer-nav-links a:hover {
  color: var(--text-main);
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   12. MODAL MINIMALISTA (VOLVO STYLE)
   ========================================================================== */
.modal-wrapper {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--trans-normal);
}

.modal-wrapper.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  z-index: 2001;
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 980px;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-modal);
  transform: scale(0.96);
  transition: transform var(--trans-normal);
}

.modal-wrapper.active .modal-card {
  transform: scale(1);
}

.modal-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.8rem;
  border-bottom: 1px solid var(--border-light);
  background: #ffffff;
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.modal-title-group .modal-brand-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: #ffffff;
  background: #111827;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

.modal-title-group h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--trans-fast);
}

.modal-close-btn:hover {
  background: #111827;
  color: #ffffff;
}

.modal-body-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow-y: auto;
  flex-grow: 1;
}

/* Left Visual Column */
.modal-visual-column {
  background: #ffffff;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  border-right: 1px solid var(--border-light);
}

.modal-gallery-container {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.modal-vehicle-podium {
  position: relative;
  background: transparent;
  border-radius: var(--radius-md);
  aspect-ratio: 16 / 11;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0;
}

.modal-moto-img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  border-radius: 14px;
  z-index: 2;
  transition: opacity 0.2s ease, transform 0.2s ease;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.15));
}

.modal-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--trans-fast);
}

.modal-gallery-arrow:hover {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
  transform: translateY(-50%) scale(1.08);
}

.modal-gallery-arrow.prev { left: 0.2rem; }
.modal-gallery-arrow.next { right: 0.2rem; }
.modal-gallery-arrow.hidden { display: none; }

.modal-gallery-counter {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(17, 24, 39, 0.75);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  z-index: 10;
}

.modal-gallery-counter.hidden { display: none; }

/* Tira de Miniaturas */
.modal-thumbnails-gallery {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.2rem 0;
}

.modal-thumb-btn {
  width: 62px;
  height: 44px;
  border-radius: 8px;
  background: #f8fafc;
  border: 2px solid var(--border-light);
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: all var(--trans-fast);
}

.modal-thumb-btn img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.modal-thumb-btn:hover {
  border-color: #6b7280;
  transform: translateY(-2px);
}

.modal-thumb-btn.active {
  border-color: #111827;
  box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.15);
  background: #ffffff;
}

.v-card-gallery-badge {
  font-size: 0.68rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.modal-vehicle-shadow {
  position: absolute;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  width: 75%;
  height: 16px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.22) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
}

.modal-pricing-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.modal-price-row-main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border-light);
}

.m-price-lbl {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
}

.m-price-val {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
}

.m-down-val {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-primary);
}

.modal-card-details {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.m-card-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.m-card-cuotas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.m-cuota-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.m-cuota-pill.active {
  background: var(--brand-primary-light);
  border-color: rgba(0, 150, 57, 0.3);
  color: var(--brand-primary);
  font-weight: 700;
}

/* Right Details Column */
.modal-details-column {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-tagline-text {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--brand-primary);
}

.modal-desc-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.modal-tabs-header {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.modal-tab-btn {
  background: transparent;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.5rem 0;
  position: relative;
  transition: color var(--trans-fast);
}

.modal-tab-btn.active {
  color: var(--text-main);
  font-weight: 700;
}

.modal-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
}

.modal-tab-content {
  display: none;
}

.modal-tab-content.active {
  display: block;
}

.modal-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.spec-cell {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
}

.spec-cell.full-width {
  grid-column: 1 / -1;
}

.spec-cell .c-lbl {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.spec-cell .c-val {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
}

.modal-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.modal-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: var(--bg-surface);
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-sm);
}

.modal-actions-bar {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 0.8rem;
}

/* 13. TOAST */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #111827;
  color: #fff;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 3000;
  opacity: 0;
  transition: all var(--trans-normal);
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   14. RESPONSIVE MEDIA QUERIES (MOBILE PERFECTION)
   ========================================================================== */

@media (max-width: 992px) {
  .hero-header-row {
    flex-direction: column;
  }

  .contact-card-box {
    grid-template-columns: 1fr;
  }

  .contact-left-info {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }

  .modal-body-grid {
    grid-template-columns: 1fr;
  }

  .modal-visual-column {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 66px;
  }

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

  .nav-toggle {
    display: flex;
  }

  .brand-logo-img {
    height: 38px;
  }

  .brand-title {
    font-size: 0.92rem;
    letter-spacing: 1px;
  }

  .brand-subtitle {
    font-size: 0.6rem;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 5rem 2rem 2rem;
    transition: left var(--trans-normal);
    box-shadow: var(--shadow-lg);
    z-index: 1005;
  }

  .nav-menu.open {
    left: 0;
  }

  .mobile-cta-link {
    display: block;
    margin-top: 1rem;
    color: var(--brand-primary);
    font-weight: 700;
  }

  /* ── MOBILE HERO (matches new reference design) ── */
  .volvo-hero-section {
    min-height: 100svh;
    padding: 0;
    align-items: stretch;
  }

  .hero-inner-container {
    min-height: 94svh;
    padding: 3.5rem 1.4rem 1rem;
    justify-content: space-between;
    gap: 0;
  }

  .hero-bg-stage {
    position: absolute;
    inset: 0;
    /* No dark overlay - text is dark on gray background */
  }

  /* Mobile: cover full hero without grey borders */
  .hero-vehicle-img {
    object-fit: cover;
    object-position: center center;
  }

  /* Mobile: text LEFT aligned, DARK text (same as PC reference) */
  .hero-text-block {
    align-items: flex-start;
    text-align: left;
    max-width: 100%;
  }

  .hero-model-cat {
    font-size: 0.72rem;
    letter-spacing: 1.4px;
    margin-bottom: 0.35rem;
    color: #5a6473;
  }

  .hero-model-name {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
    line-height: 1.1;
    margin-bottom: 0.35rem;
    color: #0f172a;
  }

  .hero-model-tagline {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    color: #4a5568;
  }

  /* Mobile CTAs: column, natural width */
  .hero-cta-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .btn-hero-cta,
  .btn-hero-quote {
    padding: 0.6rem 1.3rem !important;
    font-size: 0.82rem !important;
  }

  /* Mobile arrows: bottom-right (absolute within hero section) */
  .hero-controls-arrows {
    position: absolute;
    top: auto;
    bottom: 1.2rem;
    right: 1.2rem;
    gap: 0.5rem;
  }

  /* Mobile bottom bar: dots left, compare link hidden */
  .hero-bottom-bar {
    padding-top: 0;
    padding-bottom: 0.6rem;
    gap: 0;
    justify-content: flex-start;
  }

  /* PC progress bar: hidden on mobile */
  .hero-progress-track {
    display: none;
  }

  /* Mobile dots: shown */
  .hero-dots {
    display: flex;
    gap: 0.5rem;
  }

  /* Compare link: hidden on mobile (replaced by arrows) */
  .hero-compare-link {
    display: none;
  }



  .brand-bar-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .brand-bar-divider {
    display: none;
  }

  .cat-tabs-scroll {
    overflow-x: auto;
    width: 100%;
    padding-bottom: 0.4rem;
    -webkit-overflow-scrolling: touch;
  }

  .minimal-search-box {
    width: 100%;
  }

  .minimal-catalog-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .catalog-promo-banner {
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    margin: 0.5rem 0;
  }

  .catalog-promo-banner::before {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.3)),
      radial-gradient(circle at 50% 70%, rgba(0, 150, 57, 0.08), transparent 44%);
  }

  .catalog-promo-copy {
    padding: 1.6rem 1.35rem 0.5rem;
  }

  .catalog-promo-copy h3 {
    max-width: 12ch;
    font-size: 2.1rem;
  }

  .catalog-promo-showcase {
    grid-column: 1;
    grid-row: 2;
    padding: 0.4rem 1rem 1rem;
  }

  .catalog-promo-showcase img {
    max-height: 230px;
    width: 96%;
  }

  .catalog-promo-showcase::before {
    bottom: 8%;
  }

  .catalog-promo-bottom {
    grid-column: 1;
    grid-row: 3;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 1.35rem 1.35rem;
  }

  .catalog-promo-actions {
    width: 100%;
  }

  .catalog-promo-actions .btn {
    flex: 1;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-left-info,
  .contact-right-form {
    padding: 1.8rem;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .footer-nav-links {
    flex-wrap: wrap;
    gap: 1rem;
  }

  /* Modal Mobile */
  .modal-wrapper {
    padding: 0.5rem;
    align-items: flex-end;
  }

  .modal-card {
    max-height: 94vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .modal-visual-column,
  .modal-details-column {
    padding: 1.2rem;
  }
}
