
/* =================== RESET BÁSICO =================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  background-color: #c4c4c4;
  color: #333;
}

h1, h2, h3, nav a, p {
  font-family: 'Poppins', sans-serif;
}


/* =================== HEADER =================== */
header.site-header {
  background-color: #c80000;
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.logo img {
  max-height: 50px;
}

.nav-wrapper {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  position: relative;
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.5rem;
  overflow: hidden;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #610000;
}


/* =================== HERO SECTION =================== */
.hero {
  background: url('fondo.jpg') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 100px 20px;
  background-color: #900;
  margin-top: 20px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.boton {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #c80000;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}

.boton:hover {
  background-color: #a00000;
}


/* =================== SECCIONES GENERALES =================== */
section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: 20px auto;
  background-color: white;
  border-radius: 8px;
}

h2 {
  color: #c80000;
  margin-bottom: 20px;
  font-size: 2rem;
}

.producto, .servicio {
  margin-bottom: 20px;
}


/* =================== FORMULARIOS =================== */
form {
  display: grid;
  gap: 15px;
}

input[type="text"],
input[type="email"],
textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 100%;
}

textarea {
  height: 120px;
}

button {
  background-color: #c80000;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

button:hover {
  background-color: #a00000;
}


/* =================== FOOTER =================== */
footer {
  background-color: #222;
  color: #ddd;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}


/* =================== RESPONSIVE =================== */
@media (max-width: 768px) {
  header.site-header {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
  }

  .logo {
    flex: 1 1 auto;
  }

  .nav-wrapper {
    flex: 1 1 auto;
    position: static;
    transform: none;
    margin-top: 0;
  }

  nav ul {
    flex-direction: row;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
  }
    .productos-grid {
    grid-template-columns: repeat(2, 1fr); /* Ahora 2 columnas en móviles */
    gap: 1rem;
  }
}


/* =================== INTRO SECCIÓN =================== */
.intro-section {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  background-color: #ffffff;
  margin-top: 20px;
}

.intro-image, .intro-text {
  flex: 1 40%;
}

.intro-image img {
  max-width: 70%;
  width: 500px;
  height: auto;
  border-radius: 12px;
  margin-left: 70px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.intro-text {
  font-size: 1.3rem;
  color: #333;
  line-height: 1.8;
  padding: 1rem;
  text-align: center;
}

.veripar-titulo {
  font-size: 3rem;
  color: #c80000;
  margin-bottom: 1rem;
}


/* =================== OFRECEMOS SECCIÓN =================== */
.ofrecemos {
  text-align: center;
  padding: 4rem 2rem;
  background-color: #fff;
}

.ofrecemos h2 {
  font-size: 2.5rem;
  color: #c80000;
  margin-bottom: 2rem;
}


/* =================== SLIDER =================== */
.slider {
  position: relative;
  max-width: 700px;
  margin: auto;
  overflow: hidden;
}

.slider-images {
  display: flex;
  transition: transform 0.5s ease-in-out;
  position: relative;
  height: 400px;
}

.slider-images img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 10px;
  object-fit: contain;
}

.slider-images img.active {
  opacity: 1;
  position: relative;
  z-index: 1;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(200, 0, 0, 0.8);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 10;
}

.slider-btn.prev {
  left: 0;
}

.slider-btn.next {
  right: 0;
}


/* =================== PRODUCTOS =================== */
.productos {
  padding: 4rem 2rem;
  background-color: #fff;
  text-align: center;
  margin-top: 20px;
}

.productos h2 {
  color: #c80000;
  margin-bottom: 2rem;
  font-size: 2.5rem;
}

.productos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  justify-items: center;
}

.producto-item {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  max-width: 300px;
}

.producto-item:hover {
  transform: translateY(-5px);
}

.producto-item img {
   width: 80%;
  height: auto;
  object-fit: cover;
  border-radius: 0px;
  margin-bottom: 0rem;
  margin: auto;
}

.producto-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.producto-item .precio {
  font-weight: bold;
  color: #c80000;
  margin-bottom: 0.5rem;
}

.producto-item p {
  font-size: 1.2rem;
  margin-top: 1rem;
  color: #555;
  margin-bottom: 1rem;
}

.producto-item .boton {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #c80000;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}

.producto-item .boton:hover {
  background-color: #a00000;
}


/* =================== ENLACES INVISIBLES =================== */
.producto-link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

/* =================== MARGEN DESPUÉS DEL HEADER =================== */
.contenido-pagina {
  margin-top: 20px;
  max-width: 1200px;
  padding: 2rem;
  text-align: center;
}

.boton.grande {
  font-size: 1.5rem;
  padding: 1rem 2rem;
  background-color: #c80000;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.boton-ver-catalogo {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 40px;
}


/* =================== RESPONSIVE ADICIONAL =================== */
@media (max-width: 768px) {

  .productos-grid {
    grid-template-columns: repeat(2, 1fr); /* Ahora 2 columnas en móviles */
    gap: 1rem;
  }

  .producto-item {
    max-width: 100%;
    padding: 1rem;
  }

  .producto-item img {
    width: 100%;
    height: auto;
  }

  .nav-wrapper {
    position: static;
    transform: none;
    margin-top: 10px;
  }

 .ofrecemos h2 {
    font-size: 1.8rem;
  }

  
  nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
  }

  nav a {
    font-size: 1.2rem;
  }

  .hero {
    padding: 60px 20px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .veripar-titulo {
    font-size: 2rem;
  }

  .intro-section {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1rem;
  }

  .intro-image img {
    width: 90%;
    margin-left: 0;
  }

  .intro-text {
    font-size: 1rem;
  }

  .productos h2 {
    font-size: 1.8rem;
  }

  .producto-item h3,
  .producto-item p,
  .producto-item .precio {
    font-size: 1rem;
  }

  .producto-item {
    padding: 1rem;
  }

  .contenido-pagina {
    padding: 1rem;
  }

  .boton.grande {
    font-size: 1.2rem;
    padding: 0.75rem 1.5rem;
  }
}


/* =================== f =================== */

.catalogo {
  background-color: #fff;
  padding: 2rem;
  margin: 2rem auto;
  border-radius: 8px;
  max-width: 800px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-left: 5px solid #c80000;
}

.catalogo h2 {
  color: #c80000;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.catalogo p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #333;
}

.catalogo .boton {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #c80000;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.catalogo .boton:hover {
  background-color: #a00000;
}



