/* css/estilo.css */

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Fuente y colores principales */
body {
  font-family: Arial, sans-serif;
  background: linear-gradient(to bottom, #f9f9f9, #eeeeee);
  color: #222;
}

/* Colores de marca */
:root {
  --rojo: #ff0000;
  --naranja: #ff7b00;
  --negro: #000000;
  --blanco: #ffffff;
  --azul: #008cff;
  --gris: #505050;
}

/* Header */
header {
  background-color: var(--negro);
  color: var(--blanco);
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo img {
  max-height: 70px;
  height: auto;
  width: auto;
  margin-left: 30px;
}

.logo h2 {
  font-size: 24px;
}

.logo span {
  color: var(--naranja);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin-right: 30px;
}

nav ul li a {
  color: var(--blanco);
  text-decoration: none;
  font-weight: bold;
}

nav ul li a:hover {
  color: var(--gris);
}

/* Hero principal */
.hero {
  background: url('../img/banner.jpg') center 70% / cover no-repeat;
  min-height: 400px;
  padding: 40px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.contenido-hero {
  background-color: rgba(255, 255, 255, 0.85);
  padding: 30px;
  border-radius: 12px;
}

.contenido-hero h1 {
  font-size: 36px;
  color: var(--naranja);
  margin-bottom: 15px;
}

.contenido-hero p {
  font-size: 18px;
  margin-bottom: 20px;
}

/* Botones */
.btn-principal, .btn-descargar {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 25px;
  background-color: var(--negro);
  color: var(--blanco);
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s ease;
  text-align: center;
}

.btn-principal:hover, .btn-descargar:hover {
  background-color: #333333;
}

.btn-descargar:hover {
  background-color: #ff5967;
}

a.btn {
  padding: 6px 12px;
  text-decoration: none;
  background-color: var(--negro);
  color: var(--blanco);
  border-radius: 5px;
  font-weight: bold;
  margin: 2px;
  display: inline-block;
  transition: background 0.3s ease;
}

a.btn:hover {
  background-color: #333333;
}

.btn-verde { 
  background-color: #28a745; 
}
.btn-verde:hover { 
  background-color: #218838; 
}

.btn-azul { 
  background-color: #007bff; 
}
.btn-azul:hover { 
  background-color: #0056b3; 
}

/* Contenedor general */
.contenedor {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Secciones */
main section {
  margin: 30px 0;
}

.titulo-seccion {
  text-align: center;
  font-size: 32px;
  margin: 20px 0;
  color: var(--azul);
}

/* Productos */
.grid-productos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.producto {
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 15px;
  text-align: center;
  transition: transform 0.3s ease;
}

.producto:hover {
  transform: scale(1.03);
}

.producto img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
}

.producto h2 {
  font-size: 20px;
  color: var(--negro);
  margin-bottom: 8px;
}

.producto p {
  font-size: 16px;
  color: #333;
}

/* Galería */
.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.galeria-item {
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.galeria-item:hover {
  transform: scale(1.03);
}

.galeria-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin-bottom: 10px;
}

/* Servicios */
.servicios {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

/* Estilos para Servicios (igual a Productos) */
.servicios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.service {
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

.service:hover {
  transform: scale(1.03);
}

.service h3 {
  font-size: 20px;
  color: var(--negro);
  margin-bottom: 10px;
}

.service p {
  font-size: 16px;
  color: #333;
  line-height: 1.5;
}

/* Slider */
.slider {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 15px;
}

.slider .slide {
  display: none;
  width: 100%;
  height: 100%;
  transition: opacity 0.5s ease-in-out;
}

.slider .slide.active {
  display: block;
}

.slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* Formulario de contacto */
.formulario-contacto {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background-color: #f8f8f8;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.formulario-contacto label {
  font-weight: bold;
}

.formulario-contacto input,
.formulario-contacto textarea {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.formulario-contacto button {
  padding: 10px;
  background-color: var(--negro);
  color: var(--blanco);
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

.formulario-contacto button:hover {
  background-color: #807d7d;
}

.mensaje-exito {
  text-align: center;
  background-color: #e6ffe6;
  border: 1px solid var(--negro);
  padding: 10px;
  color: #006600;
  border-radius: 6px;
  margin-bottom: 20px;
}

/* Tablas */
th {
  background-color: var(--negro);
  color: white;
}

/* Sobre Nosotros */
.nosotros {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 30px;
}

.nosotros h2 {
  color: var(--azul);
  font-size: 24px;
  margin-bottom: 10px;
}

.nosotros p {
  font-size: 16px;
  line-height: 1.6;
  color: #333333;
}

/* Top bar */
.top-bar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.top-bar a {
  color: var(--rojo);
  text-decoration: none;
  font-weight: bold;
}

/* Footer */
footer {
  background-color: var(--negro);
  color: var(--blanco);
  text-align: center;
  padding: 15px;
  margin-top: 30px;
}

footer .social-media {
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 25px;
}

footer .social-media a {
  color: var(--blanco);
  font-size: 32px;
  text-decoration: none;
  transition: transform 0.3s ease, color 0.3s ease;
}

footer .social-media a:hover {
  transform: scale(1.2);
  color: var(--naranja);
}

/* Media Queries */
@media (min-width: 768px) {
  .nosotros {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  nav ul {
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
    margin-right: 0;
  }
  
  .logo img {
    margin-left: 0;
  }
  
  .contenido-hero {
    padding: 20px;
  }
  
  .contenido-hero h1 {
    font-size: 28px;
  }
  
  .contenido-hero p {
    font-size: 16px;
  }
  
  .btn-principal {
    width: 100%;
    font-size: 16px;
  }
  
  .formulario-contacto {
    padding: 15px;
  }
  
  .grid-productos,
  .galeria {
    grid-template-columns: 1fr;
  }
  
  .nosotros {
    grid-template-columns: 1fr;
  }
}


/* Responsive */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
    margin-right: 0;
  }

  .logo img {
    margin-left: 0;
  }

  .contenido-hero h1 {
    font-size: 28px;
  }

  .contenido-hero p {
    font-size: 16px;
  }

  .btn-principal {
    width: 100%;
    font-size: 16px;
  }

  .formulario-contacto {
    padding: 15px;
  }

  .grid-productos,
  .galeria,
  .servicios,
  .nosotros {
    grid-template-columns: 1fr;
  }
}
