body {
  font-family: 'Karla', sans-serif;
  color: #111;
  background: #ffffff;
  line-height: 1.4;
}

/* HEADER */
.header {
  background-color: #5ea2f1;
  padding: 10px 40px;
  display: flex;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-inner {
  width: 100%;
  max-width: 1100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  font-size: 16px;
  transition: opacity 0.3s;
}

.nav a:hover {
  opacity: 0.8;
}

.perfil-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

h1 {
    font-family: 'Jomhuria', cursive;
    font-size: 120px;
}

h2 {
    font-family: 'Jomhuria';
    font-size: 80px;
}

.COCHES {
  display: flex;             /* Para que las imágenes estén en línea */
  gap: 15px;                 /* Espacio entre las imágenes */
  justify-content: center;   /* Centrar las imágenes */
  margin-top: 20px;
  flex-wrap: nowrap;          /* Evita que las imágenes bajen a otra línea */
  overflow-x: auto;          /* Permite desplazamiento si no caben en pantalla */
}

.COCHES .foto {
  width: 270px;              /* Ancho del rectángulo */
  height: 400px;             /* Alto del rectángulo */
  object-fit: cover;         /* Ajusta la imagen sin deformar */
  border-radius: 4px;        /* Bordes opcionales */
  flex-shrink: 0;            /* Evita que se encojan */
}









/* FOOTER */
.footer {
  position: relative;
  padding: 36px 20px;
  background: #f2fbff;
}

.footer-shape {
  position: absolute;
  left: 12px;
  bottom: -18px;
  width: 160px;
  height: 80px;
  background: #fff4b0;
  border-radius: 6px;
  transform: rotate(-4deg);
  z-index: 1;
}

.footer-content {
  position: relative;
  z-index: 3;
  text-align: center; /* texto centrado */
  font-family: 'Karla', sans-serif;
}

.small-logo {
  margin-bottom: 12px;
  text-align: left; /* logo a la izquierda */
}

.small-logo img {
  width: 120px; /* logo más grande */
  height: auto;
  display: block;
}

/* =========================
   RESPONSIVE COMPLETO
========================= */

/* TABLET - pantallas ≤ 1024px */
@media (max-width: 1024px) {

  h1 {
    font-size: clamp(50px, 8vw, 100px);
  }

  h2 {
    font-size: clamp(35px, 6vw, 70px);
  }

  .COCHES {
    display: grid;                     /* Grid para formar cuadrado */
    grid-template-columns: repeat(2, 1fr); /* 2 columnas */
    grid-auto-rows: 180px;             /* Altura de las filas */
    gap: 15px;
    justify-items: center;
    overflow: visible;                 /* Quitamos scroll horizontal */
    padding: 0;
  }

  .COCHES .foto {
    width: 100%;                       /* Ocupa toda la celda */
    height: 100%;                      /* Ajusta altura de la celda */
  }

  /* Ocultar la quinta foto para que quede cuadrado 2x2 */
  .COCHES .foto:nth-child(5) {
    display: none;
  }
}

/* MÓVIL - pantallas ≤ 480px */
@media (max-width: 480px) {

  h1 {
    font-size: clamp(30px, 10vw, 50px);
    margin: 20px 0;
  }

  h2 {
    font-size: clamp(20px, 8vw, 40px);
    margin: 15px 0;
  }

  .header-inner {
    flex-direction: column;
    gap: 10px;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .COCHES {
    grid-template-columns: repeat(2, 1fr); /* Mantener 2 columnas */
    grid-auto-rows: 120px;                 /* Ajustar altura para móvil */
    gap: 10px;
    padding: 0 5px;
  }

  .COCHES .foto {
    width: 100%;
    height: 100%;
  }
}
