/* Importación de Noto Sans HK */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+HK:wght@400;700;900&display=swap');

:root {
  --color-principal-menu: #003F6E;
  --color-titulos-texto: #0B1F42;
  --color-secundario-enlaces: #85B5D7;
  --color-blanco: #FFFFFF;
}

/* Reseteo básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans HK', sans-serif;
  color: var(--color-titulos-texto);
}

/* --- HERO BANNER --- */
.hero-banner {
  position: relative;
  width: 100%;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background-image: url('../img/camiones/faw-1810d-principal.jpg'); 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-titulos-texto);
  opacity: 0.84;
}

.hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  z-index: 2;
}

.hero-logos {
  display: flex;
  gap: 35px;
  margin-bottom: 40px;
}

.hero-logos img {
  height: 48px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--color-blanco);
}

.hero-slogan {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-secundario-enlaces);
  margin-bottom: 12px;
}

.hero-title {
  font-weight: 900;
  font-size: 3.8rem;
  text-transform: uppercase;
  margin: 0 0 25px 0;
}

.hero-sticker {
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, #A3050C 0%, #D9141D 100%);
  padding: 10px 22px;
  border-radius: 3px;
  margin-bottom: 35px;
}

.sticker-text, .sticker-arrow {
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: uppercase;
  color: var(--color-blanco);
}

.sticker-arrow {
  margin-left: 12px;
}

.hero-badge {
  font-size: 1rem;
  color: var(--color-secundario-enlaces);
  border-left: 3px solid var(--color-secundario-enlaces);
  padding-left: 12px;
  text-transform: uppercase;
}

/* --- CATÁLOGO --- */
.seccion-catalogo {
  padding: 80px 20px;
  background-color: #F8F9FA;
}

.contenedor-principal {
  max-width: 1200px;
  margin: 0 auto;
}

.cabecera-catalogo {
  text-align: center;
  margin-bottom: 50px;
}

.titulo-seccion {
  font-weight: 900;
  font-size: 2.5rem;
  text-transform: uppercase;
}

.subtitulo-seccion {
  font-size: 1.1rem;
  color: #555;
}

.grid-productos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.card-imagen {
    position: relative;
    height: 420px; /* <- Aumentamos la altura para volverla una tarjeta vertical */
    background-color: #ffffff;
    overflow: hidden;
}

.card-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Al ser la caja vertical, el folleto se adaptará perfectamente de cuerpo entero */
}
.card-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Hace que la imagen llene la tarjeta eliminando las franjas grises */
    object-position: center center; /* Centra el encuadre en el camión */
}

.img-unidad {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sticker-flotante {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 70px;
}

.sticker-flotante-rect {
  position: absolute;
  bottom: 15px;
  left: 15px;
  height: 35px;
}

.card-info {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.etiqueta-categoria {
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--color-secundario-enlaces);
  margin-bottom: 8px;
}

.nombre-modelo {
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.descripcion-modelo {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 25px;
  flex-grow: 1;
}

.btn-catalogo {
  display: inline-block;
  text-align: center;
  background-color: var(--color-principal-menu);
  color: var(--color-blanco);
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 4px;
  text-decoration: none;
  text-transform: uppercase;
}

.btn-catalogo:hover {
  background-color: var(--color-titulos-texto);
}
/* =========================================
   BARRA DE NAVEGACIÓN (HEADER)
   ========================================= */
header {
    background-color: #ffffff;
    display: flex;
    justify-content: space-between; /* Separa el logo a la izq y el menú a la der */
    align-items: center;
    padding: 15px 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Sombra ligera para dar profundidad */
    position: sticky;
    top: 0;
    z-index: 1000; /* Asegura que el menú siempre esté por encima de todo */
}

/* Si tienes una imagen/logo en el header */
header img {
    height: 45px; 
    width: auto;
}

header nav ul {
    list-style-type: none; /* Quita los puntos de la lista */
    display: flex;
    gap: 35px; /* Espacio entre cada opción del menú */
    margin: 0;
    padding: 0;
}

header nav ul li a {
    text-decoration: none; /* Quita la línea subrayada azul */
    color: #003F6E; /* Color Azul Corporativo FAW */
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.3s ease; /* Efecto suave de transición */
}

/* Efecto al pasar el cursor (Hover) */
header nav ul li a:hover {
    color: #E3000F; /* Color Rojo Corporativo FAW */
} 
/* Estilo para avisar al usuario que la imagen es cliqueable */
.img-zoomable {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.img-zoomable:hover {
    transform: scale(1.03); /* Un sutil efecto de acercamiento al pasar el mouse */
}

/* El contenedor del fondo del zoom (oculto por defecto) */
.modal-zoom {
    display: none; 
    position: fixed; 
    z-index: 9999; /* Por encima de todo, incluyendo el header */
    padding-top: 50px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.9); /* Fondo negro semitransparente */
}

/* La imagen expandida con animación de entrada */
.contenido-modal-zoom {
    margin: auto;
    display: block;
    max-width: 85%;
    max-height: 80vh;
    object-fit: contain;
    animation: zoomEfecto 0.3s ease;
}

@keyframes zoomEfecto {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Botón de cerrar (X) */
.btn-cerrar-zoom {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-cerrar-zoom:hover {
    color: #ff3b30; /* Cambia a rojo al pasar el mouse */
}

/* Texto inferior (Nombre del camión) */
#captionModal {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 15px 0;
    font-family: sans-serif;
    font-size: 1.2rem;
}