/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  /* background-color: #2e2e2c;  gris rata */
  background-color: #2e2e2c;
  background-image: radial-gradient(#000 1px, transparent 1px);
  background-size: 10px 10px;
  color: #fff;
}

.contenedor {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* Encabezado */
header {
  /* background-color: #2e2e2c;
    line-height: 1.6;
  /* background-color: #2e2e2c;  gris rata */
  background-color: #2e2e2c;
  background-image: radial-gradient(#000 1px, transparent 1px);
  background-size: 10px 10px;
  color: #fff;
  padding: 20px 0;
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-cat {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-cat2 {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  height: 100px;
}

.catalogo-btn {
  background-color: #e60012;
  color: #fff;
  padding: 8px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
}

/* Hero Section */
.hero {
  background: url('../img/hero.jpg') no-repeat center center/cover;
  color: #fff;
  padding: 100px 0;
  text-align: center;
}

.hero_model {
  background: url('../img/top_model.png') no-repeat center center/cover;
  color: #fff;
  padding: 550px 0;
  text-align: center;
}

.hero2 {
  background: url('../img/tools2.jpg') no-repeat center center/cover;
  color: #fff;
  padding: 110px 0;
  text-align: center;
}


.hero3 {
  background: url('../img/materialesv3.png') no-repeat center center/cover;
  color: #fff;
  padding: 100px 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.boton {
  background-color: #e60012;
  color: #fff;
  padding: 10px 30px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}

/* Sección Modelos */
.modelos {
  padding: 60px 0;
  /*background-color: #2e2e2c;
    line-height: 1.6;
  /* background-color: #2e2e2c;  gris rata */
  background-color: #2e2e2c;
  background-image: radial-gradient(#000 1px, transparent 1px);
  background-size: 10px 10px;
  color: #fff;
}

.modelos h2 {
  text-align: center;
  margin-bottom: 40px;
}

.grid-modelos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.modelo {
  background-color: #fff;
  color: #333;
  padding: 20px;
  text-align: center;
  border-radius: 10px;
}

.modelo img {
  max-width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

/* Pie de página */
footer {
  background-color: #222;
  color: #fff;
  text-align: center;
  padding: 20px 0;
}


  #whatsapp-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
  }

  #whatsapp-icon img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
  }

  #whatsapp-icon img:hover {
    transform: scale(1.1);
  }

/* Tablets (≤768 px) */
@media (max-width: 768px) {
  .header-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .hero,
  .hero2 {
    padding: 60px 0;
  }

  .hero h1,
  .hero2 h2 {
    font-size: 2rem;
  }

  .grid-modelos {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
  }
}

/* Teléfonos (≤480 px) */
@media (max-width: 480px) {
  .hero h1,
  .hero2 h2 {
    font-size: 1.5rem;
  }

  .logo {
    max-width: 120px;
  }

  body {
    font-size: 0.9rem;
  }

  .contenedor {
    width: 95%;
  }
}

 .grid-contacto {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding-top: 1rem;
  }

  @media (max-width: 900px) {
    .grid-contacto {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (max-width: 600px) {
    .grid-contacto {
      grid-template-columns: 1fr;
      text-align: center;
    }
  }

  img {
    max-width: 100%;
    height: auto;
  }