* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background: #ffffff;
  color: #222;
}

/* NAVBAR */

.navbar {
  width: 100%;
  background: #b91f2e;
  padding: 0.7rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-left,
.nav-center,
.nav-right {
  display: flex;
  align-items: center;
}

/* LOGO */
.nav-logo {
  height: 48px;
  object-fit: contain;
}

/* MENÚ CENTRAL */
.nav-center {
  gap: 2rem;
}

.nav-center a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: 0.2s ease;
}

.nav-center a:hover {
  color: #38bdf8;
}

/* ICONOS DERECHA */
.nav-right {
  gap: 1rem;
}

.nav-icon {
  width: 24px;
  filter: brightness(0) invert(1); /* Blanco */
  transition: 0.2s ease;
}

.nav-icon:hover {
  transform: scale(1.1);
  filter: brightness(0) invert(0.7);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-center {
    display: none; /* Luego hacemos hamburguesa si querés */
  }

  .nav-logo {
    height: 42px;
  }
}








/* HERO / BANNER PRINCIPAL */

.hero-banner {
  position: relative;
  min-height: 420px;
  background-image: url("../img/hero-autos.jpg"); /* cambia por tu imagen */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.45); /* negro transparente */
  width: 100%;
  height: 100%;
  padding: 3rem 0;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

/* COLUMNA IZQUIERDA */

.hero-left h1 {
  font-size: 2.6rem;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.hero-left h1 span {
  color: #b91f2e; /* rojo de acento */
}

.hero-subtitle {
  font-size: 1rem;
  max-width: 26rem;
  color: #e5e7eb;
  margin-bottom: 0.75rem;
}

.hero-slogan {
  font-size: 0.95rem;
  font-style: italic;
  color: #f9fafb;
  margin-bottom: 1.25rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ya tenés .btn-primary y .btn-secondary, pero las reforzamos un poco */
.btn-primary,
.btn-secondary {
  border-radius: 999px;
  padding: 0.65rem 1.4rem;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}

.btn-primary {
  background: #b91f2e;
  color: #ffffff;
}

.btn-primary:hover {
  filter: brightness(0.95);
}

.btn-secondary {
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #b91f2e;
}

.btn-secondary:solid{
  background: rgba(255, 255, 255, 0.1);
}

/* COLUMNA DERECHA – BÚSQUEDA RÁPIDA */

.hero-right {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 1.5rem 1.4rem;
  border-radius: 18px;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.6);
}

.hero-right h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.hero-search-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-search-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.hero-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #d1d5db;
}

.hero-field input,
.hero-field select {
  width: 100%;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 0.9rem;
  color: #111827;
}

.hero-field input::placeholder {
  color: #9ca3af;
}

.hero-field-button {
  align-self: flex-end;
}

.btn-search {
  width: 100%;
  padding: 0.55rem 0.6rem;
  border-radius: 999px;
  border: none;
  background: #ffffff;
  color: #b91f2e;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.btn-search:hover {
  filter: brightness(0.95);
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 3rem 1.25rem 2.5rem;
  }

  .hero-right {
    margin-top: 0.5rem;
  }

  .hero-left h1 {
    font-size: 2.1rem;
  }
}

@media (max-width: 600px) {
  .hero-search-row {
    grid-template-columns: 1fr;
  }

  .hero-banner {
    min-height: auto;
  }
}

/* SECCIÓN VEHÍCULOS DESTACADOS */

.featured-vehicles {
  background: #ffffff;
  padding: 3rem 0 3.5rem;
}

.featured-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.featured-header {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1.5rem;
}

.featured-header h2 {
  font-size: 1.6rem;
  color: #111827;
}

.featured-header p {
  font-size: 0.95rem;
  color: #6b7280;
}

/* CARRUSEL */

.featured-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.carousel-track {
  flex: 1;
  display: flex;           /* 👉 ahora las tarjetas se ponen una al lado de la otra */
  gap: 1rem;
  overflow-x: auto;        /* 👉 permite scroll horizontal */
  overflow-y: hidden;
  scroll-behavior: smooth; /* 👉 scroll suave con las flechas */
}

/* Esta clase ya casi no la usamos, pero la dejo por si acaso */
.carousel-track-inner {
  display: flex;
  gap: 1rem;
  transition: transform 0.35s ease;
}

/* Tarjetas de autos dentro del carrusel */
.featured-card {
  min-width: 280px;
  max-width: 280px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer; /* para que se note que es clickeable */
}

.featured-card img {
  width: 100%;
  height: 200px; /* antes 160px */
  object-fit: cover;
}

.featured-card-body {
  padding: 0.75rem 0.9rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.featured-card-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: #111827;
}

.featured-card-meta {
  font-size: 0.8rem;
  color: #6b7280;
  display: flex;
  justify-content: space-between;
}

.featured-card-price {
  font-size: 1rem;
  font-weight: 700;
  color: #f97316;
  margin-top: 0.3rem;
}

.featured-card-cta {
  margin-top: 0.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.featured-card-cta a {
  font-size: 0.8rem;
}

/* Flechas del carrusel */

.carousel-arrow {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: #111827;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.35rem;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.carousel-arrow:hover {
  background: #f97316;
  transform: translateY(-1px);
}

.carousel-arrow[disabled] {
  opacity: 0.35;
  cursor: default;
}

/* Footer de la sección */

.featured-footer {
  margin-top: 1.8rem;
  display: flex;
  justify-content: center;
}

.featured-all-btn {
  padding-inline: 1.8rem;
}

/* Responsive */

@media (max-width: 768px) {
  .featured-card {
    min-width: 220px;
    max-width: 220px;
  }

  .featured-vehicles {
    padding: 2.2rem 0 2.7rem;
  }
}


/* SECCIONES GENERALES */

.section {
  max-width: 1200px;
  margin: 1.5rem auto 2rem;
  padding: 0 1.5rem;
}

.section h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.section p.section-subtitle {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1.5rem;
}

/* CARDS VEHÍCULOS */

.vehicles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.vehicle-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.vehicle-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.vehicle-card-body {
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.vehicle-title {
  font-weight: 600;
  font-size: 1rem;
}

.vehicle-meta {
  font-size: 0.85rem;
  color: #555;
}

.vehicle-meta span {
  margin-right: 0.75rem;
}

.vehicle-price {
  font-weight: 700;
  color: #0b1c2f;
  margin-top: 0.4rem;
}

.vehicle-actions {
  margin-top: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* FILTROS */

.filters-bar {
  background: #fff;
  padding: 1rem;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}

.filters-bar label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #555;
  display: block;
  margin-bottom: 0.3rem;
}

.filters-bar select,
.filters-bar input {
  width: 100%;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 0.9rem;
}

/* CONTACTO */

.contact-wrapper {
  background: #fff;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.5rem;
}

.contact-form-group {
  margin-bottom: 0.8rem;
}

.contact-form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #555;
  display: block;
  margin-bottom: 0.3rem;
}

.contact-form-group input,
.contact-form-group textarea {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 0.9rem;
}

.contact-form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-info {
  font-size: 0.9rem;
  color: #444;
}

.contact-info p {
  margin-bottom: 0.5rem;
}

/* PANEL ADMIN */

.table-wrapper {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
  overflow-x: auto;
}

/* Encabezado del panel */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-header-text h2 {
  margin-bottom: 0.3rem;
}

.admin-header-text p {
  font-size: 0.9rem;
  color: #6b7280;
}

.admin-badge {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 500;
}

/* Tabla */

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.admin-table th,
.admin-table td {
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

.admin-table th {
  background: #0b1c2f;
  color: #e5e7eb;
  font-weight: 500;
}

.admin-table tbody tr:nth-child(odd) {
  background: #f9fafb;
}

.admin-table tbody tr:hover {
  background: #e5f2ff;
}

.admin-img-path {
  font-size: 0.73rem;
  color: #6b7280;
}

/* Thumbnail de foto */

.admin-thumb {
  width: 70px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

/* Acciones */

.admin-actions {
  display: flex;
  gap: 0.4rem;
}

.admin-actions button {
  border: none;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  cursor: pointer;
}

.btn-small-primary {
  background: #0b1c2f;
  color: #fff;
}

.btn-small-danger {
  background: #e11d48;
  color: #fff;
}

/* Formulario */

.admin-form {
  background: #f9fafb;
  padding: 1.1rem 1rem 1.2rem;
  border-radius: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.9rem 0.9rem;
  border: 1px solid #e5e7eb;
}

.admin-form h3 {
  grid-column: 1 / -1;
  font-size: 1rem;
  margin-bottom: 0.1rem;
}

.admin-form p {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 0.45rem;
}

.admin-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.admin-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #4b5563;
}

.admin-field input[type="text"],
.admin-field input[type="number"] {
  width: 100%;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 0.85rem;
  background: #ffffff;
}

.admin-field small {
  font-size: 0.75rem;
  color: #6b7280;
}

.admin-field-full {
  grid-column: 1 / -1;
}

.admin-submit-btn {
  grid-column: 1 / -1;
  justify-self: flex-start;
  margin-top: 0.2rem;
}

/* SECCIÓN VENTAJAS / BENEFICIOS */

.benefits {
  background: #ffffff;
  padding: 3.5rem 0 4rem;
}

.benefits-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.benefits-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 2.5rem;
}

.benefits-header h2 {
  font-size: 1.8rem;
  color: #111827;
  margin-bottom: 0.6rem;
}

.benefits-header p {
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.6;
}

/* Grid de tarjetas */

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.benefit-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.9rem 1.4rem 1.7rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.benefit-icon {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: #fef3c7; /* fondo suave */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}

.benefit-icon span {
  font-size: 1.7rem;
}

.benefit-card h3 {
  font-size: 1rem;
  color: #111827;
}

.benefit-card p {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.5;
}

/* Hover */
.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  transition: 0.2s ease;
}

/* Responsive */

@media (max-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .benefits {
    padding: 3rem 0 3.2rem;
  }
}

/* SECCIÓN CONTACTO */

.contact-section {
  background: #f9fafb;
  padding: 3.5rem 0 4rem;
}

.contact-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.contact-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.contact-header h1 {
  font-size: 1.9rem;
  color: #111827;
  margin-bottom: 0.5rem;
}

.contact-header p {
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.6;
}

/* GRID TARJETAS */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
  gap: 1.5rem;
}

.contact-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.9rem 1.6rem 1.7rem;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12);
}

.contact-card h2 {
  font-size: 1.2rem;
  margin-bottom: 1.3rem;
  color: #111827;
}

/* INFO DE CONTACTO */

.contact-info-item {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.contact-info-item h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.15rem;
}

.contact-info-item p {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.5;
}

.contact-info-note {
  display: block;
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 0.1rem;
}

.contact-divider {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 1.3rem 0 1.2rem;
}

/* FORMULARIO */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #4b5563;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 0.9rem;
  font-family: inherit;
  background: #f9fafb;
}

.contact-field textarea {
  resize: vertical;
  min-height: 130px;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: #f97316;
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.25);
  background: #ffffff;
}

.contact-field-full {
  grid-column: 1 / -1;
}

.contact-submit-btn {
  margin-top: 0.3rem;
  padding-inline: 1.8rem;
  align-self: flex-start;
  border-radius: 999px;
}

/* responsive */

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 1.6rem 1.4rem 1.6rem;
  }

  .contact-section {
    padding: 3rem 0 3.4rem;
  }
}

@media (max-width: 600px) {
  .contact-form-row {
    grid-template-columns: 1fr;
  }

  .contact-submit-btn {
    width: 100%;
    justify-content: center;
  }
}


/* FOOTER */

.site-footer {
  background: #f8f9fa;
  padding-top: 2.5rem;
  padding-bottom: 1.5rem;
  margin-top: 3rem;
  border-top: 1px solid #e5e7eb;
  color: #4b5563;
  font-size: 0.95rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.footer-col h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #111827;
}

.footer-logo {
  width: 170px;
  margin-bottom: 1rem;
}

.footer-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.footer-icon {
  font-size: 1.2rem;
}

.footer-item p {
  margin: 0;
  line-height: 1.4;
}

.footer-social {
  margin-top: 1rem;
  display: flex;
  gap: 0.8rem;
}

.footer-social a {
  font-size: 1.25rem;
  color: #111827;
  text-decoration: none;
  transition: 0.2s ease;
}

.footer-social a:hover {
  color: #f97316;
}

.footer-right ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-right li {
  margin-bottom: 0.5rem;
}

.footer-right a {
  text-decoration: none;
  color: #4b5563;
  transition: 0.2s ease;
}

.footer-right a:hover {
  color: #f97316;
}

/* COPYRIGHT */
.footer-bottom {
  text-align: center;
  padding-top: 1.3rem;
  border-top: 1px solid #e5e7eb;
  margin-top: 2rem;
  color: #6b7280;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-item {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }
}






/* PÁGINA VEHÍCULOS */

.vehicles-page {
  background: #f3f4f6;
  padding: 2.5rem 0 3rem;
}

.vehicles-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

/* FILTROS LATERALES */

.vehicles-filters {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.5rem 1.4rem 1.6rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.vehicles-filters h1 {
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
  color: #111827;
}

.vehicles-filters p {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 1.1rem;
}

#filters-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.filter-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #4b5563;
}

.filter-group input,
.filter-group select {
  width: 100%;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 0.9rem;
  background: #f9fafb;
}

.filter-group input:focus,
.filter-group select:focus {
  outline: none;
  border-color: #f97316;
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.25);
  background: #ffffff;
}

.filters-clear-btn {
  margin-top: 0.4rem;
  width: 100%;
  border-radius: 999px;
  font-size: 0.85rem;
}

/* LISTA DE AUTOS */

.vehicles-content {
  min-height: 300px;
}

.vehicles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.vehicle-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.vehicle-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.vehicle-body {
  padding: 0.9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.vehicle-title {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
}

.vehicle-meta {
  font-size: 0.83rem;
  color: #6b7280;
  display: flex;
  justify-content: space-between;
}

.vehicle-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f97316;
  margin-top: 0.25rem;
}

.vehicle-footer {
  margin-top: 0.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.vehicle-footer span {
  color: #6b7280;
}

.vehicle-footer a {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
}

/* MENSAJE VACÍO */

.vehicles-empty {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #6b7280;
  display: none;
}

/* PAGINACIÓN */

.vehicles-pagination {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.page-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 0.6rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  font-size: 0.85rem;
  cursor: pointer;
}

.page-btn.active {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
}

.page-btn:hover:not(.active) {
  border-color: #f97316;
}

/* FOOTER SIMPLE DE ESTA PÁGINA */

.simple-footer {
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  padding: 1rem 0;
  margin-top: 2rem;
}

.simple-footer .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  font-si
  
}
  
  
  
  
  
  
  /* SECCIÓN EQUIPO */

.team-section {
  background: #ffffff;
  padding: 3rem 0 3.5rem;
}

.team-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.team-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2rem;
}

.team-header h2 {
  font-size: 1.6rem;
  color: #111827;
  margin-bottom: 0.4rem;
}

.team-header p {
  font-size: 0.95rem;
  color: #6b7280;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.team-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.5rem 1.3rem 1.6rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  text-align: center;
}

.team-photo {
  width: 120px;
  height: 120px;
  border-radius: 999px;
  object-fit: cover;
  margin-bottom: 0.7rem;
}

.team-card h3 {
  font-size: 1rem;
  color: #111827;
  margin-bottom: 0.15rem;
}

.team-role {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 0.4rem;
}

.team-contact {
  font-size: 0.9rem;
  color: #4b5563;
}

/* Responsive */
@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}



/* =========================================================
   DETALLE DE VEHÍCULO – CONTENEDOR GENERAL
========================================================= */
.vehicle-detail-page {
  background: #f3f4f6;
  padding: 2.5rem 0 3rem;
}

.vehicle-detail-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.vehicle-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

/* =========================================================
   GALERÍA IZQUIERDA
========================================================= */
.vehicle-detail-media {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12);
  padding: 0.75rem;
}

.vehicle-detail-main {
  border-radius: 16px;
  overflow: hidden;
}

.vehicle-detail-main-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

.vehicle-detail-thumbs {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
}

.vehicle-thumb {
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 0;
  background: transparent;
  cursor: pointer;
  flex: 0 0 auto;
  transition: 0.2s;
}

.vehicle-thumb img {
  display: block;
  width: 90px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
}

.vehicle-thumb.active {
  border-color: #f97316;
}

/* =========================================================
   PANEL DERECHA – INFORMACIÓN
========================================================= */
.vehicle-detail-info {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12);
  padding: 1.6rem 1.5rem 1.7rem;
}

.vehicle-detail-info h1 {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
  color: #111827;
  font-weight: 700;
}

/* =========================================================
   PILLS DE AÑO / KM / CAJA / COMBUSTIBLE
========================================================= */
.vehicle-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.75rem 0 1rem;
}

.vehicle-pill {
  background: #f9fafb;
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  border: 1px solid #e5e7eb;
}

.vehicle-pill-label {
  font-size: 0.75rem;
  color: #6b7280;
  display: block;
  margin-bottom: 0.25rem;
}

.vehicle-pill-value {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: #111827;
  font-size: 0.95rem;
}

.vehicle-pill-icon {
  font-size: 1rem;
}

/* =========================================================
   PRECIO + BOTÓN WHATSAPP
========================================================= */
.vehicle-detail-price {
  font-size: 1.7rem;
  font-weight: 700;
  color: #f97316;
  margin: 0.5rem 0 1.3rem;
}

.btn-whatsapp-big {
  width: 100%;
  text-align: center;
  background: #0b1c2f;
  color: white;
  padding: 0.8rem;
  border-radius: 10px;
  font-weight: 600;
  display: block;
  transition: 0.2s;
}

.btn-whatsapp-big:hover {
  background: #14324f;
}

/* =========================================================
   DESCRIPCIÓN
========================================================= */
.vehicle-detail-description {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  padding: 1.5rem 1.6rem;
}

.vehicle-detail-description h2 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  color: #111827;
}

.vehicle-detail-description p {
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.6;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 900px) {
  .vehicle-detail-grid {
    grid-template-columns: 1fr;
  }

  .vehicle-detail-main-img {
    height: 260px;
  }

  .vehicle-summary {
    grid-template-columns: 1fr 1fr;
  }
}


/* =========================================================
   PANEL ADMIN – TABLA Y FORMULARIO
========================================================= */

.table-wrapper {
  background: #ffffff;
  padding: 1.25rem;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  overflow-x: auto;
  margin-top: 1rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 700px;
}

.admin-table th,
.admin-table td {
  padding: 0.6rem 0.7rem;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

.admin-table th {
  background: #0b1c2f;
  color: #e5e7eb;
  font-weight: 500;
}

.admin-table tbody tr:nth-child(odd) {
  background: #f9fafb;
}

.admin-table tbody tr:hover {
  background: #e8f1ff;
}

/* BOTONES PEQUEÑOS DEL ADMIN */

.btn-small-primary,
.btn-small-danger {
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  font-size: 0.75rem;
  border: none;
  cursor: pointer;
  transition: 0.2s;
  display: inline-block;
  text-decoration: none;
}

.btn-small-primary {
  background: #0b1c2f;
  color: #ffffff;
}

.btn-small-primary:hover {
  background: #14324f;
}

.btn-small-danger {
  background: #e11d48;
  color: #ffffff;
}

.btn-small-danger:hover {
  background: #be123c;
}

/* FORM DEL ADMIN */

.admin-form {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.08);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem 1.2rem;
  margin-top: 1.5rem;
}

.admin-form label {
  font-weight: 500;
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
  display: block;
  color: #374151;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.9rem;
  background: #f8fafc;
  color: #111827;
  transition: 0.15s;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
  outline: none;
  border-color: #0b1c2f;
  background: #ffffff;
}

.admin-form textarea {
  resize: vertical;
}

.admin-form button[type="submit"] {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
}

/* RESPONSIVE PANEL ADMIN */

@media (max-width: 700px) {
  .admin-form {
    grid-template-columns: 1fr;
  }

  .admin-table {
    min-width: 0;
  }
}


  
