/* ==========================================================================
   RoloMotors Bogotá - Estilos 100% Vanilla CSS (Sin Bootstrap)
   Estética: Fondo No Muy Claro (Profundo & Colorido) + Marcas de Agua de Autos Antiguos
   ========================================================================== */

:root {
  /* Paleta Automotriz Vibrante con Fondo No Muy Claro (Colorido & Profundo) */
  --bg-main: #181332;           /* Índigo/Violeta automotriz profundo (no claro) */
  --bg-surface: #241D49;        /* Superficie de tarjetas saturada y elegante */
  --bg-surface-alt: #2E255C;    /* Superficie secundaria colorida */
  --bg-glass: rgba(36, 29, 73, 0.88);

  --text-light: #F8FAFC;        /* Blanco nítido para lectura perfecta */
  --text-muted: #CBD5E1;        /* Gris azulado claro */

  --primary: #FF5533;           /* Rojo/Naranja Nitro vibrante */
  --primary-hover: #E03E1D;
  --accent-amber: #FBBF24;      /* Amarillo Dorado / Placa Colombiana */
  --accent-cyan: #06B6D4;       /* Turquesa / Cian Eléctrico */
  --accent-magenta: #EC4899;    /* Magenta Retro */
  --whatsapp: #25D366;          /* Verde Oficial WhatsApp */
  --whatsapp-hover: #1EBE5B;

  --border-color: rgba(251, 191, 36, 0.35); /* Borde dorado colorido */
  --border-cyan: rgba(6, 182, 212, 0.4);

  /* Sombras profundas y brillos de color */
  --shadow-sm: 0 8px 20px rgba(8, 5, 22, 0.45);
  --shadow-md: 0 14px 32px rgba(8, 5, 22, 0.6);
  --shadow-lg: 0 20px 45px rgba(255, 85, 51, 0.25);

  /* Tipografías automotrices */
  --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Radios modernos */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --transition: all 0.26s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Reset Básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

/* Fondo No Muy Claro, Más Bien Colorido con Gradientes Atmosféricos + Patrón SVG de Autos Antiguos */
body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255, 85, 51, 0.28) 0%, transparent 38%),
    radial-gradient(circle at 88% 22%, rgba(6, 182, 212, 0.26) 0%, transparent 40%),
    radial-gradient(circle at 50% 65%, rgba(236, 72, 153, 0.20) 0%, transparent 45%),
    radial-gradient(circle at 20% 88%, rgba(251, 191, 36, 0.22) 0%, transparent 38%),
    linear-gradient(135deg, #16112E 0%, #1E2552 48%, #2B1747 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='140' viewBox='0 0 220 140'%3E%3Cg stroke='%23FBBF24' stroke-opacity='0.06' stroke-width='2' fill='none'%3E%3Cpath d='M25 85 L42 62 L85 62 L105 42 L150 42 L168 62 L195 65 L195 85 Z'/%3E%3Ccircle cx='58' cy='86' r='12'/%3E%3Ccircle cx='162' cy='86' r='12'/%3E%3C/g%3E%3C/svg%3E");
  background-attachment: fixed;
  color: var(--text-light);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   CAPA DE MARCAS DE AGUA DE AUTOS ANTIGUOS EN EL FONDO
   ========================================================================== */
.vintage-cars-watermarks-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.wm-car {
  position: absolute;
  opacity: 0.085;
}

.wm-car-1 { width: 250px; top: 11%; left: 2%; transform: rotate(-8deg); color: #FBBF24; }
.wm-car-2 { width: 220px; top: 20%; right: 3%; transform: rotate(10deg); color: #06B6D4; }
.wm-car-3 { width: 260px; top: 52%; left: 4%; transform: rotate(6deg); color: #FF5533; }
.wm-car-4 { width: 240px; top: 66%; right: 4%; transform: rotate(-10deg); color: #EC4899; }
.wm-car-5 { width: 145px; bottom: 12%; left: 15%; transform: rotate(18deg); color: #FBBF24; }
.wm-car-6 { width: 230px; bottom: 8%; right: 18%; transform: rotate(-6deg); color: #06B6D4; }

/* ==========================================================================
   SELLO DE MARCA DE AGUA DE AUTOS ANTIGUOS SOBRE TODAS LAS IMÁGENES
   ========================================================================== */
.watermarked-photo {
  position: relative;
  overflow: hidden;
}

.photo-watermark-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0.55rem 0.75rem;
  /* Silueta de Auto Antiguo Años 30 en Marca de Agua Repetida sobre la Imagen */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='110' viewBox='0 0 170 110'%3E%3Cg stroke='%23ffffff' stroke-opacity='0.22' stroke-width='2.2' fill='none' transform='rotate(-14 85 55)'%3E%3Cpath d='M18 68 C25 50 42 50 54 52 L68 32 C84 28 110 28 122 48 L148 52 C158 55 160 64 158 68 Z'/%3E%3Ccircle cx='40' cy='70' r='13'/%3E%3Ccircle cx='40' cy='70' r='5'/%3E%3Ccircle cx='134' cy='70' r='13'/%3E%3Ccircle cx='134' cy='70' r='5'/%3E%3Ccircle cx='60' cy='56' r='8'/%3E%3C/g%3E%3C/svg%3E");
}

.photo-watermark-overlay span {
  background: rgba(20, 15, 45, 0.78);
  backdrop-filter: blur(4px);
  color: #FBBF24;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.24rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(251, 191, 36, 0.55);
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   BARRA SUPERIOR Y HEADER CON PESTAÑAS
   ========================================================================== */
.top-bar {
  background: linear-gradient(90deg, #FF5533 0%, #D97706 50%, #0891B2 100%);
  color: #FFFFFF;
  padding: 0.5rem 0;
  font-size: 0.86rem;
  font-weight: 600;
  position: relative;
  z-index: 101;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar-info {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}

.top-wa-pill {
  background: #140F2D;
  color: #FBBF24;
  padding: 0.28rem 0.9rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.82rem;
  border: 1px solid #FBBF24;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.top-wa-pill:hover {
  transform: scale(1.04);
  background: var(--whatsapp);
  color: #FFFFFF;
  border-color: #FFFFFF;
}

.main-header {
  background: rgba(24, 19, 50, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.25rem;
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.site-logo {
  height: 68px;
  width: 68px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(251, 191, 36, 0.28));
}

.brand-badge-city {
  display: inline-block;
  background: linear-gradient(90deg, #FBBF24, #F59E0B);
  color: #140F2D;
  font-size: 0.66rem;
  font-weight: 800;
  padding: 0.12rem 0.6rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.5px;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.78rem;
  color: var(--accent-cyan);
  font-weight: 600;
  display: block;
}

/* Sistema de Navegación por Pestañas */
.nav-tabs {
  display: flex;
  list-style: none;
  gap: 0.35rem;
  background: #120E26;
  padding: 0.4rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-color);
}

.nav-tab-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.1rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  transition: var(--transition);
}

.nav-tab-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-amber);
  transform: translateY(-1px);
}

.nav-tab-link.active {
  background: linear-gradient(135deg, var(--primary) 0%, #F59E0B 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(255, 85, 51, 0.45);
}

.mobile-toggle {
  display: none;
  background: var(--bg-surface-alt);
  border: 2px solid var(--accent-amber);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

/* ==========================================================================
   CONTENIDO PRINCIPAL Y ANIMACIÓN DE PESTAÑA
   ========================================================================== */
.main-content {
  flex: 1;
  position: relative;
  z-index: 2;
}

.tab-pane {
  animation: fadeSlideTab 0.35s ease-out;
}

@keyframes fadeSlideTab {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   HERO SECTION AUTOMOTRIZ COLORIDO
   ========================================================================== */
.hero-section {
  padding: 3.2rem 0;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(6, 182, 212, 0.18);
  color: #67E8F9;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 1rem;
  border: 1.5px solid var(--border-cyan);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.14;
  color: #FFFFFF;
  margin-bottom: 1.1rem;
}

.hero-title span {
  background: linear-gradient(90deg, #FBBF24 0%, #FF5533 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.06rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  font-weight: 500;
}

.btn-group {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

/* Botones Globales */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.82rem 1.6rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.96rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-align: center;
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #F59E0B 100%);
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(255, 85, 51, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(255, 85, 51, 0.55);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-3px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent-amber);
  color: var(--accent-amber);
}

.btn-outline:hover {
  background: var(--accent-amber);
  color: #140F2D;
  transform: translateY(-2px);
}

/* Burbujas de Estadísticas en Hero */
.hero-stats-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.stat-bubble {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.15rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.stat-bubble strong {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--accent-amber);
  line-height: 1.1;
}

.stat-bubble span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Tarjeta Ilustrada Derecha Hero */
.hero-card-main {
  background: linear-gradient(160deg, #271E52 0%, #1B1538 100%);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.hero-illustration-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.1rem;
  background: #140F2D;
}

.hero-card-caption {
  padding: 0.35rem 0.5rem;
}

.badge-highlight {
  display: inline-block;
  background: rgba(251, 191, 36, 0.2);
  color: var(--accent-amber);
  border: 1px solid var(--accent-amber);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.45rem;
}

.hero-card-caption h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: #FFFFFF;
  margin-bottom: 0.35rem;
}

.hero-card-caption p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.text-link-wa {
  color: #4ADE80;
  font-weight: 700;
  font-size: 0.92rem;
}

/* ==========================================================================
   SECCIONES Y TÍTULOS
   ========================================================================== */
.section {
  padding: 3.2rem 0;
}

.section-colorful {
  background: linear-gradient(135deg, rgba(46, 37, 92, 0.75) 0%, rgba(30, 58, 95, 0.75) 100%);
  border-top: 2px solid var(--border-color);
  border-bottom: 2px solid var(--border-color);
}

.section-title-wrap {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.4rem auto;
}

.section-tag {
  display: inline-block;
  background: rgba(255, 85, 51, 0.2);
  color: #FF8A70;
  border: 1.5px solid rgba(255, 85, 51, 0.5);
  padding: 0.25rem 0.95rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.84rem;
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ==========================================================================
   TARJETAS DE VEHÍCULOS USADOS
   ========================================================================== */
.cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  gap: 1.65rem;
}

.car-card {
  background: linear-gradient(165deg, var(--bg-surface) 0%, #1A1438 100%);
  border-radius: var(--radius-md);
  border: 2px solid rgba(251, 191, 36, 0.28);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  cursor: pointer;
}

.car-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-amber);
}

.car-card-img {
  height: 215px;
  background: #120E26;
  position: relative;
}

.car-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.car-card:hover .car-card-img img {
  transform: scale(1.05);
}

.car-floating-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(20, 15, 45, 0.9);
  color: #FFFFFF;
  border: 1px solid var(--border-cyan);
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.24rem 0.75rem;
  border-radius: var(--radius-pill);
  z-index: 4;
}

.car-floating-badge.offer {
  background: linear-gradient(90deg, #FF5533, #F59E0B);
  color: #FFFFFF;
  border: none;
}

.car-year-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #FBBF24;
  color: #140F2D;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.78rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  z-index: 4;
}

.car-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.car-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.car-brand-tag {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--accent-cyan);
}

.car-location {
  font-size: 0.75rem;
  font-weight: 600;
  color: #E2E8F0;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
}

.car-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.3rem;
}

.car-price {
  font-family: var(--font-heading);
  font-size: 1.38rem;
  font-weight: 800;
  color: var(--accent-amber);
  margin-bottom: 0.75rem;
}

.car-specs-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.car-specs-mini span {
  background: rgba(18, 14, 38, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.car-check-pills {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}

.spec-pill {
  background: rgba(16, 185, 129, 0.18);
  color: #6EE7B7;
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
}

.car-desc-short {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.car-card-actions {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 0.5rem;
  margin-top: auto;
}

/* ==========================================================================
   FILTROS Y BUSCADOR DE INVENTARIO
   ========================================================================== */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.filter-btn {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  color: var(--text-light);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(135deg, var(--primary) 0%, #F59E0B 100%);
  border-color: transparent;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(255, 85, 51, 0.38);
}

.search-box-wrap {
  max-width: 620px;
  margin: 0 auto 2.2rem auto;
}

.search-input {
  width: 100%;
  padding: 0.9rem 1.35rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--border-color);
  background: var(--bg-surface);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}

.search-input::placeholder {
  color: #94A3B8;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-amber);
}

/* ==========================================================================
   PASOS, ENTREGAS Y TARJETAS DE SERVICIO
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.step-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.4rem;
  text-align: center;
  border: 1.5px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.step-number {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 30px;
  height: 30px;
  background: var(--accent-amber);
  color: #140F2D;
  font-family: var(--font-heading);
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-emoji {
  font-size: 2.5rem;
  margin-bottom: 0.6rem;
}

.step-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: #FFFFFF;
  margin-bottom: 0.45rem;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Entregas Exitosas y Servicios */
.stories-grid,
.help-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.75rem;
}

.story-card,
.help-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.story-img {
  height: 215px;
  background: #120E26;
}

.story-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-date-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(20, 15, 45, 0.9);
  color: var(--accent-amber);
  border: 1px solid var(--accent-amber);
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 4;
}

.story-body {
  padding: 1.4rem;
}

.story-body h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: #FFFFFF;
  margin-bottom: 0.25rem;
}

.story-client {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
}

.story-quote {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.93rem;
}

.help-card {
  padding: 2rem 1.6rem;
  text-align: center;
}

.help-icon {
  font-size: 2.8rem;
  margin-bottom: 0.75rem;
}

.help-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: #FFFFFF;
  margin-bottom: 0.65rem;
}

.help-card p {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin-bottom: 1.4rem;
  flex: 1;
}

/* ==========================================================================
   FORMULARIOS, SIMULADOR Y COLUMNAS DE FINANCIACIÓN / CONTACTO
   ========================================================================== */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.25rem;
  align-items: start;
}

.info-glass-card,
.contact-form {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 2.1rem;
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.card-heading-vibrant {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--accent-amber);
  margin-bottom: 1.25rem;
}

.feature-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.feature-checklist li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.check-icon {
  font-size: 1.35rem;
  background: rgba(251, 191, 36, 0.16);
  border: 1px solid var(--border-color);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-checklist strong {
  color: #FFFFFF;
  display: block;
  margin-bottom: 0.15rem;
}

.feature-checklist p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.loan-simulator-box {
  margin-top: 1.75rem;
  background: linear-gradient(135deg, #16112E 0%, #1E293B 100%);
  padding: 1.35rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-cyan);
}

.loan-simulator-box h4 {
  font-family: var(--font-heading);
  color: var(--accent-cyan);
  font-size: 1.1rem;
  margin-bottom: 0.9rem;
}

.sim-row {
  margin-bottom: 0.8rem;
}

.sim-row label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.sim-result {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sim-result strong {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--accent-amber);
}

.form-group {
  margin-bottom: 1.05rem;
}

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

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.86rem;
  color: #E2E8F0;
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 0.95rem;
  font-family: var(--font-body);
  font-size: 0.93rem;
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  background: #140F2D;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-amber);
  background: #1A1438;
}

textarea.form-control {
  min-height: 95px;
  resize: vertical;
}

.contact-item-row {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-bottom: 1.2rem;
}

.contact-icon-bubble {
  width: 44px;
  height: 44px;
  background: rgba(255, 85, 51, 0.18);
  border: 1px solid rgba(255, 85, 51, 0.4);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-item-row strong {
  display: block;
  font-size: 0.95rem;
  color: #FFFFFF;
}

.contact-item-row span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.alert {
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.alert-success {
  background: rgba(16, 185, 129, 0.2);
  color: #A7F3D0;
  border: 1.5px solid #10B981;
}

.alert-error {
  background: rgba(239, 68, 68, 0.2);
  color: #FECACA;
  border: 1.5px solid #EF4444;
}

.wa-callout-banner {
  margin-top: 2.8rem;
  background: linear-gradient(135deg, #2B194D 0%, #17344E 100%);
  border: 2px dashed var(--accent-amber);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.wa-callout-banner h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: #FFFFFF;
  margin-bottom: 0.3rem;
}

/* ==========================================================================
   MODAL DE FICHA TÉCNICA DE VEHÍCULO
   ========================================================================== */
.car-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 7, 24, 0.85);
  backdrop-filter: blur(6px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.car-modal-box {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 2px solid var(--accent-amber);
  max-width: 840px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
  animation: fadeSlideTab 0.25s ease-out;
}

.car-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem 1.5rem;
  background: #140F2D;
  border-bottom: 1.5px solid var(--border-color);
}

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

.car-modal-title-group h3 {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  color: #FFFFFF;
}

.car-badge-pill {
  background: var(--primary);
  color: #FFFFFF;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-pill);
}

.car-modal-close {
  background: var(--bg-surface-alt);
  color: #FFFFFF;
  border: 1.5px solid var(--accent-amber);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
}

.car-modal-body {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1.5rem;
  padding: 1.5rem;
}

.car-modal-img-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #120E26;
  min-height: 260px;
}

.car-modal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.car-modal-price-box {
  background: #140F2D;
  border: 1.5px solid var(--border-color);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

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

.car-modal-price {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  color: var(--accent-amber);
}

.car-meta-tags {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}

.car-meta-tags span {
  background: rgba(6, 182, 212, 0.14);
  color: #67E8F9;
  border: 1px solid rgba(6, 182, 212, 0.3);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
}

.car-modal-summary {
  font-weight: 700;
  color: var(--accent-amber);
  margin-bottom: 0.55rem;
  font-size: 0.94rem;
}

.car-modal-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.car-check-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}

.check-ok {
  background: rgba(16, 185, 129, 0.18);
  color: #6EE7B7;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-pill);
}

.car-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* ==========================================================================
   FOOTER Y BOTÓN FLOTANTE DE WHATSAPP
   ========================================================================== */
.main-footer {
  background: #0F0B21;
  color: #F8FAFC;
  padding: 3.5rem 0 1.75rem 0;
  margin-top: auto;
  border-top: 4px solid var(--accent-amber);
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1.1fr 1.3fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-desc {
  color: #CBD5E1;
  font-size: 0.9rem;
  margin-bottom: 1.1rem;
}

.footer-social-links {
  display: flex;
  gap: 0.65rem;
}

.social-icon-btn {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.social-icon-btn:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-heading {
  font-family: var(--font-heading);
  color: var(--accent-amber);
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.55rem;
  font-size: 0.9rem;
  color: #CBD5E1;
}

.footer-links a:hover {
  color: var(--accent-amber);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.4rem;
  text-align: center;
  font-size: 0.86rem;
  color: #94A3B8;
}

/* Botón Flotante de WhatsApp */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 62px;
  height: 62px;
  background: var(--whatsapp);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  z-index: 9000;
  animation: pulseWa 2.4s infinite;
}

.floating-whatsapp-btn:hover {
  transform: scale(1.08);
  background: var(--whatsapp-hover);
}

.wa-tooltip {
  position: absolute;
  right: 74px;
  background: #140F2D;
  color: #FBBF24;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--whatsapp);
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

@keyframes pulseWa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MÓVILES Y TABLETS)
   ========================================================================== */
@media (max-width: 920px) {
  .hero-grid,
  .two-col-grid,
  .car-modal-body {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .hide-mobile,
  .wa-tooltip {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .nav-tabs {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    border-radius: 0 0 22px 22px;
    padding: 1rem;
    background: #140F2D;
    box-shadow: var(--shadow-md);
  }

  .nav-tabs.open {
    display: flex;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .form-row-2,
  .car-meta-tags,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
