/* ===== General ===== */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fff;
  color: #000;
  line-height: 1.6;
}

/* ===== Header ===== */
header {
  background-color: #fff;
  padding: 20px 0;
  text-align: center;
  border-bottom: 2px solid #FA0F0A;
  position: relative;
}
header .logo {
  width: 400px;
  height: auto;
  display: block;
  margin: 0 auto 15px auto;
}
header nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
header nav ul li {
  display: inline-block;
  margin: 0 15px;
}
header nav ul li a {
  text-decoration: none;
  color: #000;
  font-weight: bold;
  font-size: 24px;   /* antes estaba en ~16px, ahora 50% más grande */
}

header nav ul li a:hover {
  color: #FA0F0A;
}

/* ===== Redes sociales arriba ===== */
.social-top {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
}
.social-top img {
  width: 40px;
  height: 40px;
  border-radius: 5px;
  transition: transform 0.3s;
}
.social-top img:hover {
  transform: scale(1.1);
}

/* ===== Hero ===== */
.hero {
  background-color: #fff;
  padding: 40px 0;
  text-align: center;
}
.slider {
  position: relative;
  max-width: 100%;
  margin: auto;
  overflow: hidden;
}
.slide {
  display: none;
  width: 100%;
  height: auto;
}
.slide.active {
  display: block;
  animation: fade 1s;
}
@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}
.hero-text {
  margin-top: 20px;
}

/* ===== Catálogo principal ===== */
.catalogo {
  background-color: #FA0F0A;
  padding: 40px;
  text-align: center;
}
.catalogo h2 {
  color: #fff;
  margin-bottom: 20px;
}
.categorias {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.card {
  border: 2px solid #fff;
  padding: 15px;
  border-radius: 10px;
  width: 200px;
  text-align: center;
  background-color: #f9f9f9;
  transition: transform 0.3s;
}
.card:hover {
  transform: scale(1.05);
}
.card img {
  width: 100%;
  height: auto;
  margin-bottom: 10px;
}

/* ===== Subcatálogo ===== */
.grid-catalogo {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin: 30px auto;
  max-width: 1200px;
  align-items: stretch;
}
.producto-item { display: flex; }
.producto-lienzo {
  flex: 1;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 15px;
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.producto-item img {
  width: 250px;
  height: auto;
  object-fit: contain;
}
.producto-info h3 { margin-bottom: 8px; font-size: 1.1em; color: #333; }
.producto-info p { margin: 4px 0; }

/* ===== Paginación ===== */
.pagination { margin-top: 20px; text-align: center; }
.pagination button {
  background-color: #e60000;
  color: #fff;
  border: none;
  padding: 10px 15px;
  margin: 0 5px;
  cursor: pointer;
  border-radius: 6px;
}

/* ===== Historia ===== */
.seccion-roja { background-color: #FA0F0A; padding: 60px 0; }
.contenido-blanco {
  background-color: #fff;
  border-radius: 40px;
  padding: 50px;
  max-width: 1200px;
  margin: auto;
  box-shadow: 0 0 15px rgba(0,0,0,0.25);
}
.historia h2 { color: #FA0F0A; margin-bottom: 20px; }
/* Historia de Hoy */
.historia-box {
  border: 3px solid #FA0F0A;
  border-radius: 30px;   /* ✅ bordes redondeados */
  padding: 25px;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.3); /* sombra elegante */
}

.historia-contenido {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;

  border: 3px solid #FA0F0A;   /* línea roja delgada */
  border-radius: 30px;         /* bordes redondeados */
  padding: 25px;
  background-color: #fff;
}

.historia-imagen {
  width: 40%;
}

.historia-img {
  width: 100%;
  border-radius: 20px;
}

.historia-texto {
  width: 50%;
  text-align: left;
  font-size: 24px;
  color: #333;
}

/* Botón Me gusta */
.me-gusta {
  text-align: center;
  margin-top: 20px;
}

.btn-like {
  font-size: 20px;
  padding: 10px 20px;
  background-color: #FA0F0A;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-like:hover {
  background-color: #fff;
  color: #FA0F0A;
  box-shadow: 0 0 12px rgba(250,15,10,0.6);
  transform: scale(1.1);
}

/* Quiénes Somos */
.quienes {
  background-color: #fff;
  border-radius: 40px;       /* bordes ovalados externos */
  padding: 40px;
  max-width: 1200px;
  margin: auto;
  box-shadow: 0 0 15px rgba(0,0,0,0.25);
}

.quienes h2 {
  color: #FA0F0A;
  margin-bottom: 20px;
  text-align: center;
}

.quienes-contenido {
  display: flex;             /* ✅ lado a lado */
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 3px solid #FA0F0A;
  border-radius: 30px;       /* bordes redondeados internos */
  padding: 25px;
  background-color: #fff;
}

.quienes-contenido img {
  max-width: 40%;            /* imagen ocupa 40% */
  border-radius: 20px;
}

.quienes-contenido p {
  max-width: 50%;
  text-align: justify;
  font-size: 24px;   /* antes era ~16px, ahora 50% más grande */
  line-height: 1.8;  /* más espacio entre líneas */
  color: #333;
}

.btn-like:hover {
  background-color: #ff1a1a;   /* rojo más brillante */
  transform: scale(1.05);      /* se agranda un poco */
  transition: all 0.3s ease;
}
/* Contacto */
.contacto {
  text-align: center;
  max-width: 700px;
  margin: auto;
}
.contacto-opciones {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.contacto-opciones a {
  text-decoration: none;
  color: #000;
  font-weight: bold;
  font-size: 15px;
  padding: 8px 18px;
  border: 2px solid #FA0F0A;
  border-radius: 20px;
  background-color: #fff;
  transition: all 0.3s ease;
}

.contacto-opciones a:hover {
  background-color: #FA0F0A;
  color: #fff;
  transform: scale(1.05);
}

/* WhatsApp discreto */
.contacto-whatsapp {
  font-size: 18px;
  padding: 6px 14px;
  border-radius: 12px;
  background-color: #25D366;
  color: #fff;
  border: none;
}
.contacto-whatsapp:hover {
  background-color: #20b858;
}

.historia-link {
  text-decoration: none;
  color: #FA0F0A;
  font-weight: bold;
  transition: all 0.3s ease;
}

.historia-link:hover {
  color: #fff;
  background-color: #FA0F0A;
  padding: 4px 8px;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(250,15,10,0.6);
}

/* Botón Me gusta */
.me-gusta {
  text-align: center;
  margin-top: 20px;
}

.btn-like {
  font-size: 20px;
  padding: 10px 20px;
  background-color: #FA0F0A;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-like:hover {
  background-color: #fff;
  color: #FA0F0A;
  box-shadow: 0 0 12px rgba(250,15,10,0.6);
  transform: scale(1.1);
}

/* ===== Modelismo ===== */
.modelismo h2 {
  color: #FA0F0A;
  margin-bottom: 20px;
  text-align: center;
}

.modelismo-contenido {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 3px solid #FA0F0A;
  border-radius: 30px;
  padding: 25px;
  background-color: #fff;
}

.modelismo-imagen {
  max-width: 40%;
}

.modelismo-img {
  width: 100%;
  border-radius: 20px;
}

.modelismo-texto {
  max-width: 50%;
  text-align: justify;
  font-size: 24px;
  color: #333;
}

.hero-text p {
  font-size: 22px;   /* antes estaba en tamaño normal (~16px), ahora 50% más grande */
  line-height: 1.8;  /* más espacio entre líneas para que se vea elegante */
}

/* Encabezados principales */
h1 {
  font-size: 48px;   /* título principal más grande */
  line-height: 1.3;
  font-weight: bold;
}

h2 {
  font-size: 36px;   /* secciones más grandes */
  line-height: 1.3;
  font-weight: bold;
  color: #FA0F0A;    /* mantiene el rojo corporativo */
}

h3 {
  font-size: 28px;   /* categorías del catálogo más grandes */
  line-height: 1.3;
  font-weight: bold;
}

/* ===== Responsive ajustes ===== */
@media (max-width: 768px) {
  /* Hero text */
  .hero-text p {
    font-size: 18px;   /* más pequeño en móviles para que no se desborde */
    line-height: 1.6;
  }

  /* Historia */
  .historia-contenido {
    flex-direction: column;   /* imagen arriba, texto abajo */
    align-items: center;
  }
  .historia-imagen, .historia-texto {
    max-width: 100%;
  }

  /* Modelismo */
  .modelismo-contenido {
    flex-direction: column;
    align-items: center;
  }
  .modelismo-imagen, .modelismo-texto {
    max-width: 100%;
  }

  /* Quiénes Somos */
  .quienes-contenido {
    flex-direction: column;
    align-items: center;
  }
  .quienes-contenido img, .quienes-contenido p {
    max-width: 100%;
  }

  /* Catálogo */
  .categorias {
    flex-direction: column;
    align-items: center;
  }
  .card {
    width: 90%;   /* cada tarjeta ocupa casi todo el ancho en móvil */
    margin-bottom: 20px;
  }

  /* Menú de navegación */
  header nav ul li {
    display: block;   /* cada enlace en una línea */
    margin: 10px 0;
  }
  header nav ul li a {
    font-size: 20px;  /* un poco más grande pero legible en móvil */
  }
}

/* ===== Logos de marcas ===== */
.logos-marcas {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;              /* espacio entre logos */
  flex-wrap: wrap;        /* permite que bajen a otra línea si son muchos */
  margin: 20px 0;
}

.logo-marca {
  width: 30%;             /* cada logo ocupa el 30% del ancho de la imagen principal */
  max-width: 200px;       /* límite para que no se vean gigantes */
  height: auto;
  transition: transform 0.3s;
}

.logo-marca:hover {
  transform: scale(1.1);  /* efecto al pasar el mouse */
}

