/* REMER Seminuevos - Design System & Custom Stylesheet */

/* ==========================================================================
   1. VARIABLES & CONSTANTS
   ========================================================================== */
:root {
  /* Color Palette - Custom HSL Tailored Colors */
  --primary-dark: #071223;       /* Background deep navy */
  --primary-card: #0d1e36;       /* Card background for dark sections */
  --brand-blue: #5b8dbd;         /* Slate blue logo color */
  --brand-accent: #2079c6;       /* Primary clickable vibrant blue */
  --brand-accent-hover: #318fe0; /* Hover state for primary actions */
  
  --bg-light: #f5f7fa;           /* Section light background */
  --bg-white: #ffffff;
  --text-dark: #0f1c30;          /* Deep text for high contrast on light */
  --text-medium: #4a5768;        /* Body text on light */
  --text-light: #ffffff;
  --text-muted: #a0aec0;         /* Muted gray text */
  --text-success: #10b981;       /* WhatsApp green / validation green */
  
  /* Borders & Shadows */
  --border-light: rgba(226, 232, 240, 0.8);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-strong: rgba(255, 255, 255, 0.15);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 45px rgba(8, 19, 37, 0.12);
  --shadow-glass: 0 15px 35px rgba(0, 0, 0, 0.25);
  
  /* Borders Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  
  /* Layout Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Max Container Width */
  --container-width: 1200px;
}

/* ==========================================================================
   2. GLOBAL RESETS & STYLING
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-white);
  color: var(--text-medium);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', 'Inter', sans-serif;
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.25;
}

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

ul {
  list-style: none;
}

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

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

button {
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-right: auto;
  margin-left: auto;
  padding-right: 24px;
  padding-left: 24px;
}

/* Section general classes */
.section {
  padding: 100px 0;
  position: relative;
}

.section-light {
  background-color: var(--bg-light);
}

.section-dark {
  background-color: var(--primary-dark);
  color: var(--text-light);
}

/* Generic Badge */
.section-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--brand-blue);
  text-transform: uppercase;
  margin-bottom: 12px;
  border-left: 3px solid var(--brand-accent);
  padding-left: 8px;
}

.text-light {
  color: var(--text-light) !important;
}

.text-success {
  color: var(--text-success) !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--primary-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--brand-blue);
  border: 2px solid var(--primary-dark);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-accent);
}

/* ==========================================================================
   3. TYPOGRAPHY & BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-align: center;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-accent) 0%, #175ea1 100%);
  color: var(--text-light);
  box-shadow: 0 4px 15px rgba(32, 121, 198, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(32, 121, 198, 0.45);
  background: linear-gradient(135deg, var(--brand-accent-hover) 0%, var(--brand-accent) 100%);
}

.btn-outline {
  border: 2px solid var(--text-light);
  color: var(--text-light);
}

.btn-outline:hover {
  background-color: var(--text-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-dark-outline {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.btn-dark-outline:hover {
  background-color: var(--brand-blue);
  color: var(--text-light);
}

.btn-full {
  width: 100%;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
  border-radius: var(--radius-xs);
}

/* ==========================================================================
   4. ANNOUNCEMENT & HEADER (STICKY NAVIGATION)
   ========================================================================== */
.announcement-bar {
  background-color: #050d18;
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-glass);
}

.announcement-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.announcement-content span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-header {
  position: absolute;
  top: 37px;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: var(--transition-smooth);
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Sticky Class triggered via scroll script */
.header-scrolled {
  position: fixed;
  top: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px) saturate(180%);
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid var(--border-light);
  padding: 10px 0;
}

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

.logo-link {
  display: block;
  width: 180px;
  height: 44px;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Navigation items */
.nav-menu {
  display: block;
}

.nav-list {
  display: flex;
  gap: 32px;
}

.nav-item {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.8);
  padding: 6px 0;
  position: relative;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--brand-accent);
  transition: var(--transition-smooth);
}

.nav-item:hover, .nav-item.active {
  color: var(--text-light);
}

.nav-item:hover::after, .nav-item.active::after {
  width: 100%;
}

/* Change link colors on sticky */
.header-scrolled .nav-item {
  color: var(--text-medium);
}
.header-scrolled .nav-item:hover, .header-scrolled .nav-item.active {
  color: var(--text-dark);
}

.header-ctas {
  display: flex;
  align-items: center;
  gap: 24px;
}

.phone-link {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-link i {
  color: var(--brand-blue);
}

.header-scrolled .phone-link {
  color: var(--text-dark);
}

/* Toggle menu button */
.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--text-light);
}

.header-scrolled .mobile-toggle {
  color: var(--text-dark);
}

/* ==========================================================================
   5. MOBILE DROPDOWN MENU
   ========================================================================== */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  height: 100%;
  background-color: var(--primary-dark);
  z-index: 1000;
  padding: 40px 30px;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 40px;
  transform: translateX(100%);
  transition: var(--transition-smooth);
}

.mobile-nav.active {
  transform: translateX(0);
}

.mobile-close {
  align-self: flex-end;
  font-size: 1.8rem;
  color: var(--text-light);
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-nav-item {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text-light);
}

.mobile-nav-item:hover {
  color: var(--brand-blue);
  padding-left: 5px;
}

.mobile-nav-ctas {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav-ctas .phone-link {
  justify-content: center;
}

/* ==========================================================================
   6. HERO CAROUSEL / SLIDER
   ========================================================================== */
.hero-section {
  position: relative;
  height: 680px;
  background-color: var(--primary-dark);
  overflow: hidden;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.8s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.slide-container {
  display: flex;
  align-items: center;
  height: 100%;
  padding-top: 100px; /* Offset sticky header space */
}

.slide-content {
  max-width: 620px;
  color: var(--text-light);
  transform: translateY(30px);
  opacity: 0;
  transition: var(--transition-slow);
}

.hero-slide.active .slide-content {
  transform: translateY(0);
  opacity: 1;
}

.slide-badge {
  display: inline-block;
  background-color: rgba(32, 121, 198, 0.25);
  border: 1px solid var(--brand-accent);
  color: var(--text-light);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.slide-title {
  font-size: 3rem;
  font-weight: 900;
  color: var(--text-light);
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.accent-text {
  color: var(--brand-blue);
  /* Text gradient for brand style */
  background: linear-gradient(to right, var(--brand-blue) 0%, #a5c7eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.slide-bullets {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 35px;
}

.slide-bullets li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.slide-bullets i {
  color: var(--brand-blue);
  font-size: 1.1rem;
}

.slide-text {
  font-size: 1.1rem;
  margin-bottom: 35px;
  color: rgba(255, 255, 255, 0.85);
}

.slide-actions {
  display: flex;
  gap: 20px;
}

/* Slider Controls */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition-smooth);
}

.slider-arrow:hover {
  background-color: var(--brand-accent);
  border-color: var(--brand-accent);
}

.arrow-left {
  left: 30px;
}

.arrow-right {
  right: 30px;
}

.slider-dots {
  position: absolute;
  bottom: 80px; /* Leaves space for the overlapping filter */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.slider-dots .dot.active {
  background-color: var(--brand-blue);
  width: 28px;
  border-radius: 20px;
}

/* ==========================================================================
   7. GLASSMORPHISM SEARCH PANEL
   ========================================================================== */
.search-panel-container {
  position: relative;
  z-index: 15;
}

.search-panel {
  margin-top: -55px; /* Overlaps hero section */
  background: rgba(8, 19, 37, 0.72);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid var(--border-glass-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glass);
  padding: 30px;
  overflow: hidden;
}

.search-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 15px;
}

.search-tab {
  padding: 10px 24px;
  border-radius: var(--radius-xs);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition-smooth);
}

.search-tab i {
  font-size: 1rem;
}

.search-tab:hover, .search-tab.active {
  color: var(--text-light);
  background-color: rgba(255, 255, 255, 0.06);
}

.search-tab.active {
  border-bottom: 3px solid var(--brand-accent);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  background-color: rgba(32, 121, 198, 0.15);
}

.search-form {
  display: flex;
  gap: 20px;
  align-items: flex-end;
}

.form-grid {
  flex-grow: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group select {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xs);
  color: var(--text-light);
  padding: 12px 16px;
  font-size: 0.9rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white' width='18px' height='18px'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  appearance: none;
  -webkit-appearance: none;
  transition: var(--transition-smooth);
}

.form-group select:focus {
  border-color: var(--brand-blue);
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(91, 141, 189, 0.15);
}

.form-group select:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Style options list inside browser select */
.form-group select option {
  background-color: var(--primary-dark);
  color: var(--text-light);
}

.btn-search {
  padding: 13px 36px;
  height: 48px;
  flex-shrink: 0;
}

/* ==========================================================================
   8. CATALOG INVENTORY SECTION
   ========================================================================== */
.section-inventory {
  background-color: var(--bg-white);
  padding-top: 80px;
}

.filter-results-info {
  background-color: #eef4fa;
  border-left: 4px solid var(--brand-accent);
  padding: 14px 20px;
  border-radius: var(--radius-xs);
  margin-bottom: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-results-info p {
  font-weight: 500;
  color: var(--text-dark);
}

.btn-clear-filters {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--brand-accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-clear-filters:hover {
  text-decoration: underline;
}

.inventory-category-block {
  margin-bottom: 70px;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 30px;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 12px;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 12px;
}

.accent-bar {
  display: inline-block;
  width: 5px;
  height: 24px;
  background-color: var(--brand-accent);
  border-radius: 5px;
}

.category-link {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.category-link:hover {
  color: var(--brand-accent-hover);
  padding-right: 5px;
}

/* Card grids layout */
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 30px;
}

/* Card specifications styling */
.vehicle-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.vehicle-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(91, 141, 189, 0.4);
}

.card-img-wrapper {
  position: relative;
  height: 180px;
  overflow: hidden;
  background-color: #1e293b;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #1e293b;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.vehicle-card:hover .card-img-wrapper img {
  transform: scale(1.04);
}

.vehicle-card .btn-outline {
  border-color: var(--brand-accent);
  color: var(--brand-accent);
  background-color: transparent;
}

.vehicle-card .btn-outline:hover {
  background-color: var(--brand-accent);
  color: var(--text-light);
}

/* Favorites Heart Button */
.btn-favorite {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.15rem;
  transition: var(--transition-smooth);
}

.btn-favorite:hover {
  transform: scale(1.1);
  color: #ef4444;
}

.btn-favorite.active {
  color: #ef4444;
  background-color: var(--bg-white);
}

.card-year-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background-color: var(--primary-dark);
  color: var(--text-light);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.card-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.2;
}

.card-model {
  font-weight: 400;
  color: var(--text-medium);
}

.card-price {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--brand-accent);
  margin-bottom: 18px;
}

.card-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 14px 0;
  margin-bottom: 20px;
}

.card-spec-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.card-spec-item i {
  color: var(--brand-blue);
  font-size: 1rem;
}

.card-spec-item span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-medium);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: auto;
}

.no-results {
  text-align: center;
  padding: 60px 20px;
}

.no-results i {
  font-size: 4rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.no-results h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.no-results p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ==========================================================================
   9. INTERACTIVE FINANCING CALCULATOR
   ========================================================================== */
.section-calculator {
  background-image: linear-gradient(135deg, #050d18 0%, var(--primary-dark) 100%);
  position: relative;
  overflow: hidden;
}

/* Subtle graphic SVG waves backgrounds to mimic brand book design */
.section-calculator::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 20%, rgba(91, 141, 189, 0.05) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(32, 121, 198, 0.05) 0%, transparent 45%);
  pointer-events: none;
  z-index: 1;
}

.calculator-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.calculator-info-panel {
  max-width: 520px;
}

.section-description {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 35px;
}

.calc-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-group-calc {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group-calc label {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.5px;
  color: var(--brand-blue);
  text-transform: uppercase;
}

.calc-input {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass-strong);
  color: var(--text-light);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  width: 100%;
  font-size: 0.95rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white' width='18px' height='18px'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  appearance: none;
  -webkit-appearance: none;
}

.calc-input:focus {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(32, 121, 198, 0.25);
  background-color: rgba(255, 255, 255, 0.08);
}

.calc-input option {
  background-color: var(--primary-dark);
  color: var(--text-light);
}

.price-row {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--brand-blue);
  padding: 12px 18px;
  border-radius: var(--radius-xs);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-muted);
}

.calc-price-value {
  color: var(--text-light);
  font-size: 1.15rem;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calc-val-badge {
  background-color: var(--brand-accent);
  color: var(--text-light);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 2px 10px;
  border-radius: 20px;
}

/* Custom Sleek Slider Track & Thumb */
.calc-range {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--text-light);
  border: 4px solid var(--brand-accent);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  transition: var(--transition-smooth);
}

.calc-range::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  background: var(--brand-blue);
}

.slider-limits {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
}

/* Plazo buttons */
.plazo-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.btn-plazo {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass-strong);
  color: var(--text-light);
  border-radius: var(--radius-xs);
  padding: 12px 6px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  text-align: center;
  transition: var(--transition-smooth);
}

.btn-plazo:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.btn-plazo.active {
  background-color: var(--brand-accent);
  border-color: var(--brand-accent);
  box-shadow: 0 4px 10px rgba(32, 121, 198, 0.3);
}

/* Calculator Results Panel */
.glass-sheet {
  background: rgba(13, 30, 54, 0.55);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
  padding: 40px;
}

.calc-results-sheet {
  max-width: 480px;
  margin-left: auto;
}

.results-sheet-title {
  font-size: 1.3rem;
  color: var(--text-light);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 18px;
  margin-bottom: 25px;
  text-align: center;
}

/* Radial Progress Container */
.visual-chart-box {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.radial-progress-container {
  position: relative;
  width: 190px;
  height: 190px;
}

.radial-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg); /* Start progress at the top center */
}

.radial-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.04);
  stroke-width: 8px;
}

.radial-bar {
  fill: none;
  stroke: var(--brand-accent);
  stroke-width: 8px;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.5s ease-out;
}

.radial-center {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.radial-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}

.radial-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--text-light);
}

/* Detailed Breakdowns List */
.breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.breakdown-label-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.color-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.color-downpayment {
  background-color: var(--text-muted);
}

.color-financed {
  background-color: var(--brand-accent);
}

.icon-interest {
  color: var(--brand-blue);
  font-size: 0.85rem;
  width: 8px;
  text-align: center;
}

.breakdown-value {
  font-weight: 700;
  color: var(--text-light);
}

.total-row {
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  padding-top: 15px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-light);
}

.total-row .breakdown-value {
  font-size: 1.15rem;
  color: var(--brand-blue);
}

.results-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.results-actions button {
  font-size: 0.85rem;
  padding: 12px 20px;
}

.calculator-disclaimer {
  font-size: 0.65rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 18px;
  text-align: center;
}

/* ==========================================================================
   10. VALUES & SERVICES SECTION
   ========================================================================== */
.section-center-header {
  text-align: center;
  max-width: 600px;
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 60px;
}

.section-main-title {
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.section-center-description {
  font-size: 1.05rem;
  color: var(--text-medium);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.value-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 35px 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition-smooth);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(91, 141, 189, 0.3);
}

.value-icon-box {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background-color: rgba(32, 121, 198, 0.08);
  color: var(--brand-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 24px;
  transition: var(--transition-smooth);
}

.value-card:hover .value-icon-box {
  background-color: var(--brand-accent);
  color: var(--text-light);
}

.value-title {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.value-text {
  font-size: 0.88rem;
  color: var(--text-medium);
  line-height: 1.6;
}

/* ==========================================================================
   11. ABOUT US SECTION (EDITORIAL LAYOUT)
   ========================================================================== */
.section-about {
  background-color: var(--bg-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

.about-img-panel {
  position: relative;
  padding-bottom: 40px;
  padding-right: 40px;
}

.about-img-large {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 9;
  height: auto;
}

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

.about-img-small {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 240px;
  height: 220px;
  border-radius: var(--radius-md);
  border: 8px solid var(--bg-white);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

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

.experience-badge {
  position: absolute;
  top: 30px;
  left: -20px;
  background-color: var(--brand-accent);
  color: var(--text-light);
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 10;
}

.exp-num {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
}

.exp-text {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  max-width: 90px;
}

.about-info-panel {
  max-width: 520px;
}

.about-paragraph {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--text-medium);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 35px;
  border-top: 1px solid var(--border-light);
  padding-top: 25px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text-dark);
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ==========================================================================
   12. CONTACT & LOCATION SECTION (GLASS FORM & MAP OVERLAY)
   ========================================================================== */
.section-contact {
  background-color: var(--primary-dark);
  position: relative;
  background-image: linear-gradient(180deg, var(--primary-dark) 0%, #03080e 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: stretch;
}

.form-sheet {
  position: relative;
  padding: 45px;
  height: 100%;
}

.form-sheet-title {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text-light);
  margin-bottom: 8px;
}

.form-sheet-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 35px;
}

/* Floating Input Styling */
.form-group-styled {
  position: relative;
  margin-bottom: 25px;
  width: 100%;
}

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

.form-group-styled input, 
.form-group-styled select, 
.form-group-styled textarea {
  width: 100%;
  padding: 16px 18px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass-strong);
  border-radius: var(--radius-sm);
  color: var(--text-light);
  font-size: 0.92rem;
  transition: var(--transition-smooth);
}

.form-group-styled textarea {
  resize: vertical;
}

.form-group-styled label {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.92rem;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.form-group-styled textarea ~ label {
  top: 24px;
  transform: none;
}

/* Floating behavior */
.form-group-styled input:focus ~ label,
.form-group-styled input:not(:placeholder-shown) ~ label,
.form-group-styled select ~ label,
.form-group-styled textarea:focus ~ label,
.form-group-styled textarea:not(:placeholder-shown) ~ label {
  top: 0;
  left: 14px;
  transform: translateY(-50%) scale(0.85);
  background-color: #0b1526;
  padding: 0 8px;
  color: var(--brand-blue);
  font-weight: 600;
  z-index: 2;
}

.form-group-styled input:focus,
.form-group-styled select:focus,
.form-group-styled textarea:focus {
  border-color: var(--brand-blue);
  background-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(32, 121, 198, 0.2);
}

/* Style Select element specially */
.form-group-styled select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2360a5fa' width='20px' height='20px'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.form-group-styled select option {
  background-color: #0b1526;
  color: #ffffff;
  padding: 10px;
}

.form-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 30px;
}

.form-checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid var(--border-glass-strong);
  background-color: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  margin-top: 3px;
}

.form-checkbox-group label {
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
}

/* Success Message Overlay in form card */
.form-success-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-dark);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  transition: var(--transition-smooth);
  padding: 40px;
}

.form-success-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.success-content {
  text-align: center;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-icon-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: rgba(16, 185, 129, 0.12);
  color: var(--text-success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 24px;
}

.success-content h3 {
  font-size: 1.5rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

.success-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}

.success-content button {
  margin-top: 15px;
}

@keyframes modalPop {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Column 2: Details and Maps */
.contact-info-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info-details {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin: 35px 0;
}

.info-detail-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.info-detail-item i {
  width: 44px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.info-detail-text h4 {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 6px;
}

.info-detail-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.link-light {
  color: var(--text-light);
}

.link-light:hover {
  color: var(--brand-blue);
}

/* Google Map Container with premium hover overlay */
.map-placeholder {
  position: relative;
  height: 230px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-glass);
  border: 1px solid var(--border-glass-strong);
}

.map-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%) contrast(110%);
  transition: var(--transition-slow);
}

.map-placeholder:hover .map-img {
  transform: scale(1.05);
}

.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(8, 18, 35, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: var(--transition-smooth);
}

.map-placeholder:hover .map-overlay {
  background-color: rgba(8, 18, 35, 0.55);
}

/* ==========================================================================
   13. FOOTER
   ========================================================================== */
.main-footer {
  background-color: #040911;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1.1fr;
  gap: 50px;
  padding: 80px 24px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-col-brand {
  max-width: 320px;
}

.footer-logo {
  width: 180px;
  height: 44px;
  object-fit: contain;
  align-self: flex-start;
}

.footer-brand-desc {
  font-size: 0.85rem;
  line-height: 1.6;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icons a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.social-icons a:hover {
  background-color: var(--brand-accent);
  border-color: var(--brand-accent);
  color: var(--text-light);
  transform: translateY(-3px);
}

.footer-title {
  font-size: 1.05rem;
  color: var(--text-light);
  font-weight: 700;
  margin-bottom: 10px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.footer-links a:hover {
  color: var(--text-light);
  padding-left: 5px;
}

.footer-info-line {
  font-size: 0.85rem;
  line-height: 1.5;
}

.footer-large-phone {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-info-email {
  color: var(--text-light);
  font-size: 0.88rem;
  font-weight: 600;
}

.footer-info-email:hover {
  color: var(--brand-blue);
}

/* Footer bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background-color: #03070d;
  padding: 24px 0;
  font-size: 0.78rem;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
}

/* ==========================================================================
   14. NATIVE DIALOG MODAL SPECS & TRANSITIONS
   ========================================================================== */
.detail-modal {
  border: none;
  background: none;
  max-width: 900px;
  width: 90%;
  margin: auto;
  overflow: visible;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.modal-wrapper {
  position: relative;
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-light);
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--bg-light);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  z-index: 100;
  transition: var(--transition-smooth);
}

.modal-close:hover {
  background-color: var(--text-dark);
  color: var(--text-light);
  transform: rotate(90deg);
}

.modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 40px;
  align-items: start;
  overflow-y: auto;
  padding: 40px;
}

.modal-media-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.modal-main-img-box {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 360px;
  background-color: #1e293b;
}

.modal-main-img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #1e293b;
}

.modal-thumbnails-wrapper {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 5px 2px;
  width: 100%;
  min-width: 0;
}

.modal-thumbnail-item {
  width: 70px;
  height: 50px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  flex-shrink: 0;
  transition: all 0.2s ease;
  background-color: #1e293b;
}

.modal-thumbnail-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.modal-thumbnail-item.active {
  border-color: var(--brand-accent);
}

.modal-thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #1e293b;
}

.modal-guarantee-badge {
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: var(--text-medium);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  text-align: center;
  padding: 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.modal-guarantee-badge i {
  color: var(--brand-accent);
  font-size: 1rem;
}

.modal-info-col {
  display: flex;
  flex-direction: column;
}

.modal-badge {
  display: inline-block;
  align-self: flex-start;
  background-color: rgba(32, 121, 198, 0.08);
  color: var(--brand-accent);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.modal-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 6px;
}

.text-regular {
  font-weight: 400;
  color: var(--text-medium);
}

.modal-subtitle-year {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.modal-price-tag {
  font-family: 'Outfit', sans-serif;
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--brand-accent);
  margin-bottom: 30px;
}

.price-currency {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.modal-tabs-wrapper {
  margin-bottom: 25px;
}

.modal-subsection-title {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 8px;
  margin-bottom: 15px;
}

.modal-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.modal-spec-item {
  font-size: 0.85rem;
  color: var(--text-medium);
}

.modal-spec-item strong {
  color: var(--text-dark);
}

.modal-features-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.modal-features-list li {
  font-size: 0.82rem;
  color: var(--text-medium);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-features-list i {
  color: var(--text-success);
}

.modal-action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
  border-top: 1px solid var(--border-light);
  padding-top: 25px;
}

/* NATIVE TOP LAYER TRANSITIONS WITH DISCRETE RENDERING */
dialog,
dialog::backdrop {
  opacity: 0;
  transition-property: opacity, transform, display, overlay;
  transition-duration: 0.35s;
  transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
  transition-behavior: allow-discrete;
}

dialog {
  transform: scale(0.9) translateY(30px);
}

dialog::backdrop {
  background-color: rgba(5, 13, 24, 0);
  transition: 
    display 0.35s allow-discrete,
    overlay 0.35s allow-discrete,
    background-color 0.35s ease-out;
}

/* Trigger transition on open */
dialog[open] {
  opacity: 1;
  transform: scale(1) translateY(0);
}

dialog[open]::backdrop {
  background-color: rgba(5, 13, 24, 0.7);
}

/* Define entry states when display toggles */
dialog[open] {
  @starting-style {
    opacity: 0;
    transform: scale(0.9) translateY(30px);
  }
}

dialog[open]::backdrop {
  @starting-style {
    background-color: rgba(5, 13, 24, 0);
  }
}

/* 15. REDUCED MOTION PREFERENCES */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
  
  dialog,
  dialog[open] {
    transform: none;
    transition-duration: 0.1s;
  }

  @starting-style {
    dialog[open] {
      transform: none;
    }
  }
  
  .vehicle-card:hover, .btn:hover, .value-card:hover {
    transform: none !important;
  }
}

/* ==========================================================================
   16. MEDIA QUERIES (RESPONSIVENESS)
   ========================================================================== */
@media (max-width: 1024px) {
  /* Layout constraints adjustments */
  .hero-slide {
    height: 600px;
  }
  .hero-section {
    height: 600px;
  }
  
  .search-form {
    flex-direction: column;
    align-items: stretch;
  }
  
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .btn-search {
    width: 100%;
    margin-top: 10px;
  }
  
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .calculator-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .calc-results-sheet {
    max-width: 100%;
    margin-left: 0;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .about-img-panel {
    max-width: 580px;
    margin-right: auto;
    margin-left: auto;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .announcement-bar {
    display: none;
  }
  
  .main-header {
    top: 0;
    background-color: var(--primary-dark);
    padding: 12px 0;
  }
  
  .header-scrolled {
    padding: 10px 0;
  }
  
  .nav-menu, .header-ctas .phone-link, .header-ctas .btn-quote {
    display: none;
  }
  
  .mobile-toggle {
    display: block;
    background: none;
    border: none;
  }
  
  .slide-title {
    font-size: 2.2rem;
  }
  
  .slide-bullets {
    margin-bottom: 25px;
  }
  
  .slider-arrow {
    display: none;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .modal-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 30px 20px 20px 20px;
  }
  
  .modal-main-img-box {
    height: 260px;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .slide-title {
    font-size: 1.8rem;
  }
  
  .slide-actions {
    flex-direction: column;
    gap: 12px;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .search-tabs {
    flex-direction: column;
  }
  
  .search-tab {
    width: 100%;
    justify-content: center;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
  }
  
  .about-img-large {
    aspect-ratio: 16 / 9;
    height: auto;
  }
  
  .about-img-small {
    width: 160px;
    height: 140px;
  }
  
  .plazo-buttons {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .form-row-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .modal-action-buttons {
    grid-template-columns: 1fr;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* ==========================================================================
   11. ADMIN PANEL STYLES
   ========================================================================== */
.admin-section {
  padding: 60px 0;
  background-color: var(--primary-dark);
  min-height: 100vh;
  color: var(--text-light);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 20px;
}

.admin-header h1 {
  color: var(--text-light);
  font-size: 2.2rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 992px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

.admin-card {
  background-color: var(--primary-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-glass);
}

.admin-card-title {
  font-family: 'Outfit', sans-serif;
  color: var(--text-light);
  font-size: 1.5rem;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 10px;
}

.admin-form .form-group-styled {
  margin-bottom: 20px;
}

.admin-form .form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 576px) {
  .admin-form .form-row-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Image input group */
.image-input-choice {
  margin-bottom: 15px;
}

.image-toggle-btn {
  background: none;
  border: 1px solid var(--border-glass-strong);
  color: var(--text-light);
  padding: 8px 16px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.image-toggle-btn.active {
  background-color: var(--brand-accent);
  border-color: var(--brand-accent);
}

.image-preview-box {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-sm);
  border: 2px dashed var(--border-glass-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 20px;
  background-color: rgba(0, 0, 0, 0.2);
}

.image-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview-placeholder {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}

.image-preview-placeholder i {
  font-size: 2.5rem;
  margin-bottom: 10px;
  display: block;
}

/* Admin inventory list */
.admin-inventory-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 700px;
  overflow-y: auto;
  padding-right: 5px;
}

/* Custom Scrollbar for list */
.admin-inventory-list::-webkit-scrollbar {
  width: 6px;
}

.admin-inventory-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

.admin-inventory-list::-webkit-scrollbar-thumb {
  background: var(--border-glass-strong);
  border-radius: 3px;
}

.admin-vehicle-item {
  display: flex;
  align-items: center;
  background-color: #111d33;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease-in-out;
  margin-bottom: 12px;
  flex-shrink: 0;
  min-height: 110px;
}

.admin-vehicle-item:hover {
  border-color: var(--brand-blue);
  box-shadow: 0 6px 18px rgba(32, 121, 198, 0.25);
  transform: translateY(-2px);
}

.admin-vehicle-img-wrapper {
  width: 140px;
  height: 110px;
  background-color: #0b1322;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-vehicle-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-vehicle-info {
  padding: 14px 18px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.admin-vehicle-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-vehicle-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.admin-unit-badge {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-unit-badge.badge-custom {
  background-color: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.admin-unit-badge.badge-system {
  background-color: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.admin-vehicle-meta {
  font-size: 0.85rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-vehicle-meta i {
  color: var(--brand-accent);
  font-size: 0.8rem;
}

.admin-vehicle-price {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: #10b981;
  font-size: 1.15rem;
  margin: 0;
}

.admin-vehicle-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  justify-content: center;
}

.btn-admin-action {
  padding: 8px 14px;
  font-size: 0.82rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  transition: var(--transition-fast);
  width: 120px;
  border: none;
}

.btn-admin-qr {
  background-color: var(--brand-blue);
  color: #ffffff;
}

.btn-admin-qr:hover {
  background-color: #1b66a6;
}

.btn-admin-edit {
  background-color: rgba(234, 179, 8, 0.15);
  border: 1px solid rgba(234, 179, 8, 0.4);
  color: #eab308;
}

.btn-admin-edit:hover {
  background-color: #eab308;
  color: #071223;
}

.btn-admin-delete {
  background-color: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

.btn-admin-delete:hover {
  background-color: #ef4444;
  color: #ffffff;
}

/* Features tag input helper */
.features-helper-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: -15px;
  margin-bottom: 15px;
  display: block;
}

/* ==========================================================================
   12. LOGIN SCREEN STYLES
   ========================================================================== */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-dark);
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background-color: var(--primary-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 40px 30px;
  box-shadow: var(--shadow-glass);
  text-align: center;
}

.login-logo {
  height: 45px;
  margin: 0 auto 10px;
  display: block;
}

.login-title {
  font-family: 'Outfit', sans-serif;
  color: var(--text-light);
  font-size: 1.8rem;
  margin-bottom: 25px;
}

.login-error-msg {
  background-color: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 20px;
  text-align: left;
  display: none;
}

.login-error-msg i {
  margin-right: 8px;
}

.login-footer {
  margin-top: 25px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Admin Navigation Tabs
   ========================================================================== */
.admin-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-medium);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.admin-tab-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

.admin-tab-btn.active {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #ffffff;
}

/* ==========================================================================
   Bolsa de Trabajo / Vacancies Public Section
   ========================================================================== */
.vacancies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.vacancies-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background-color: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
}

.vacancies-empty-state i {
  font-size: 3.5rem;
  color: var(--brand-blue);
  margin-bottom: 15px;
  opacity: 0.8;
}

.vacancies-empty-state h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.vacancies-empty-state p {
  color: var(--text-medium);
  font-size: 0.95rem;
}

/* Job Card Component */
.job-card {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.job-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-blue);
}

.job-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.job-badge {
  background-color: rgba(32, 121, 198, 0.1);
  color: var(--brand-blue);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.job-type-tag {
  font-size: 0.8rem;
  color: var(--text-medium);
  font-weight: 500;
}

.job-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 10px;
  line-height: 1.3;
}

.job-card-meta {
  display: flex;
  gap: 15px;
  font-size: 0.85rem;
  color: var(--text-medium);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.job-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.job-card-meta i {
  color: var(--brand-accent);
}

.job-card-body {
  font-size: 0.9rem;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
}

.job-card-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}
