/* ===========================
   BASE / TIPOGRAFÍA
=========================== */
body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  background: #f9f9f9;
}

h1 {
  font-family: 'Playfair Display', serif;
  color: #C9A646;
}

h2, h3 {
  font-family: 'Playfair Display', serif;
  color: #000;
}

a { text-decoration: none; }

/* ===========================
   HEADER / NAVEGACIÓN
=========================== */
header {
  background: #000;
  color: #E0E0E0;
  padding: 10px 40px;
  position: fixed;
  width: 100%;
  top: 0; left: 0;
  z-index: 10;
  box-sizing: border-box;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo img { height: 70px; cursor: pointer; }
.logo { display: flex; align-items: center; gap: 12px; }

.brand-text {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  color: #C9A646;
  letter-spacing: 0.5px;
}
.brand-text:hover { color: #C9A646; transition: color 0.3s ease; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}
.nav-links a { color: #E0E0E0; font-weight: 600; white-space: nowrap; }
.nav-links a:hover { color: #C9A646; }

.menu-toggle { display: none; font-size: 28px; color: #E0E0E0; cursor: pointer; }

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 20px;
    background: #000;
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
  }
  .nav-links.active { display: flex; align-items: center; }
  .menu-toggle { display: block; }
}

/* ===========================
   HERO / SLIDER
=========================== */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: #000;
}
@media (max-width: 768px) { .hero { height: 70vh; } }

.slider { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.slide { position: absolute; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide.active { opacity: 1; }

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #F5F5F5;
  background: rgba(0,0,0,0.6);
  display: inline-block;
  padding: 20px 40px;
  border-radius: 8px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

/* ===========================
   BOTONES
=========================== */
.btn {
  background: #C9A646;
  color: #000;
  padding: 10px 20px;
  border-radius: 4px;
  display: block;
  margin: 10px auto;
  font-weight: 600;
  text-align: center;
  transition: background 0.3s ease, color 0.3s ease;
}
.btn:hover { background: #E0E0E0; color: #000; }

/* ===========================
   SECCIONES GENERALES
=========================== */
section {
  padding: 100px 20px 80px;
  box-sizing: border-box;
  scroll-margin-top: 80px;
}

.flota, .adicionales, .contacto, .faq, .nosotros {
  background: #fff;
  margin: 0 auto;
  max-width: 1200px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  min-height: 70vh;
}

/* ===========================
   NOSOTROS
=========================== */
.nosotros-contenido.fullwidth { max-width: 100%; text-align: justify; margin-bottom: 30px; }

.nosotros-grilla {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  border-top: 1px solid #ccc;
  padding-top: 30px;
}
.grilla-item {
  flex: 1;
  padding: 0 20px;
  border-right: 1px solid #ccc;
  display: flex; flex-direction: column;
  box-sizing: border-box;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.grilla-item:last-child { border-right: none; }
.grilla-item.active { background-color: #f5f0e3; }
.grilla-item:hover { background-color: #fafafa; }
.grilla-item h3 { font-size: 20px; font-family: 'Cormorant Garamond', serif; font-weight: 500; color: #000; margin: 0; text-align: left;  }
.grilla-item p {
  font-size: 13px; color: #444; text-align: center;
  margin: 4px 0;   /* reduce el espacio arriba y abajo */
  line-height: 1.4; /* ajusta la altura de línea para que no quede muy apretado */
  text-align: center; /* asegura alineación a la izquierda */
}

/* Header con ícono + título */
.grilla-header {
  display: flex;
  align-items: center;       /* ícono y texto en la misma línea */
  justify-content: flex-start; /* alineados a la izquierda */
  gap: 8px;                  /* espacio entre ícono y título */
  margin-bottom: 10px;
}

/* Ícono */
.grilla-header svg {
  flex-shrink: 0;            /* evita que se deforme */
}

@media (max-width: 768px) {
  .nosotros-grilla { flex-direction: column; border-top: none; }
  .grilla-item { border-right: none; border-bottom: none; padding: 20px 0; }
  .grilla-item:last-child { border-bottom: none; }
}

/* ===========================
   FLOTA
=========================== */
/* Buscador */
#buscadorFlota { padding:10px; width:100%; max-width:400px; }

/* Grillas */
.flota-grilla-transmision {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 20px;
  margin-top: 20px;
  padding-bottom: 10px;
  border-bottom:none;
}

.flota-grilla {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

@media (min-width: 1024px) {
  .flota-grilla {
    grid-template-columns: repeat(6, 1fr); /* 6 categorías fijas */
  }
}

/* Centrar los checks dentro de cada celda */
.flota-grilla-header {
  display: flex;
  justify-content: center;   /* centra horizontalmente */
  align-items: center;       /* centra verticalmente */
}

.flota-grilla-header input[type="checkbox"] {
  transform: scale(1.2);     /* opcional: agranda un poco el check */
  cursor: pointer;
}


.grid-flota {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}
@media (min-width: 1024px) { .grid-flota { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px) { .grid-flota { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .grid-flota { grid-template-columns: 1fr; } }

/* Cards */
.card, .card_cotiza {
  background: linear-gradient(180deg, rgb(120, 92, 3) 0%, #eee2bb 60%);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 10px;
  display: flex; flex-direction: column;
  transition: transform 0.2s ease;
}
.card img {
  width: 100%; aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}
.card h3 { margin: 6px 0; font-size: 16px; }
.card:hover { transform: translateY(-5px); box-shadow: 0 4px 10px rgba(201,166,70,0.4); }

/* Specs */
.vehiculoSpecs { list-style: none; padding: 0; margin: 6px 0 10px 0; font-size: 14px; text-align: left;
  margin-left: 0;   /* evita que se desplace */}
.vehiculoSpecs li { margin: 2px 0; }
.vehiculoSpecs img { width: 18px; height: 18px; margin-right: 6px; }
.icono { width: 20px; height: 20px; margin-right: 6px; }



/* ===========================
   CONTACTO / REDES
=========================== */
.contacto p {
  text-align: center;
  font-size: 18px;
  color: #333;
}

.social-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-btn img {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}
.social-btn img:hover { transform: scale(1.2); }

/* ===========================
   ANIMACIONES
=========================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 0.5s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

.fade-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 1s ease, transform 1s ease;
}
.fade-left.visible { opacity: 1; transform: translateX(0); }

.fade-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 1s ease, transform 1s ease;
}
.fade-right.visible { opacity: 1; transform: translateX(0); }

html { scroll-behavior: smooth; }

/* ===========================
   DIVISOR ENTRE SECCIONES
=========================== */
.divisor {
  width: 100%;
  height: 20vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  margin: 40px 0;
}

/* ===========================
   FOOTER
=========================== */
:root {
  --footer-bg: #000000;
  --white: #ffffff;
  --muted: rgba(255,255,255,0.85);
  --gap: 18px;
  --max-width: 1200px;
}

.site-footer {
  background: var(--footer-bg);
  color: var(--white);
  padding: 28px 20px;
  font-family: Inter, system-ui, -apple-system, "Helvetica Neue", Arial;
  font-size: 14px;
}

.footer-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: var(--gap);
}

.footer-left { display: flex; align-items: flex-start; gap: 18px; flex: 1 1 auto; }
.footer-logo img { height: 70px; display: block; }

.footer-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.footer-nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: opacity .12s, transform .08s;
}
.footer-nav a:hover, .footer-nav a:focus {
  opacity: 1;
  transform: translateX(4px);
}

.footer-divider { width: 1px; height: 70px; background: var(--white); margin-top: 4px; }

.footer-contacts {
  display: flex; flex-direction: column;
  gap: 12px; align-items: flex-start;
}
.contact-icon {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--white); text-decoration: none;
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-data { color: var(--white); font-size: 14px; line-height: 1; white-space: nowrap; }

.footer-bottom {
  max-width: var(--max-width);
  margin: 18px auto 0;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.03);
  text-align: center;
  font-size: 13px;
}

@media (max-width: 720px) {
  .footer-wrap { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-white { display: none; }
}
@media (max-width: 420px) {
  .contact-data { display: none; }
  .footer-nav a { font-size: 14px; }
  .footer-logo img { height: 40px; }
}

/* ===========================
   POPUP (FORMULARIO)
=========================== */
.popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.popup-content {
  position: relative;
  background: #fff;
  padding: 20px 30px;
  border-radius: 8px;
  text-align: center;
  max-width: 400px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
#popup-close {
  position: absolute; top: 10px; right: 15px;
  cursor: pointer; font-size: 24px; font-weight: bold; color: #333;
}
.popup.success .popup-content { border: 2px solid #28a745; color: #155724; }
.popup.error .popup-content { border: 2px solid #dc3545; color: #721c24; }

/* ===========================
   CHECKBOXES / INTERACCIÓN
=========================== */
input[type="checkbox"] { accent-color: #C9A646; }

