/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #222;
  background: #fff;
  line-height: 1.6;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #000;
  color: #fff;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .logo {
  font-size: 0.9rem;
  font-weight: bold;
  max-width: 250px;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

header nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

header nav a:hover {
  color: #f4c542;
}

/* Hero */
.hero {
  background: url(./imagenes/Portada.jpeg) center/cover no-repeat;
  height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: bold;
}

.hero span {
  color: #f4c542;
}

.hero p {
  font-size: 1.3rem;
  margin-top: 1rem;
}

/* Sección Nosotros */
.nosotros {
  padding: 4rem 2rem;
  text-align: center;
  background: #fafafa;
}

.nosotros h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.nosotros p {
  max-width: 800px;
  margin: 0 auto;
}

.cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

/* Tarjeta */
.card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  width: 280px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  overflow: hidden; /* 🔹 Hace que la imagen se recorte dentro del borde */
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* Imagen dentro de la tarjeta */
.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

/* Texto */
.card h3 {
  font-size: 1.5rem;
  color: #f4c542;
  margin: 1rem 0 0.5rem;
}

.card p {
  padding: 0 1rem 1.5rem;
  color: #555;
  font-size: 0.95rem;
}


/* Productos */
/* Sección Productos */
.productos {
  padding: 4rem 2rem;
  text-align: center;
  background: #1b1b1b;
}

.productos h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #f4f4f4;
}

.productos p {
  max-width: 800px;
  margin: 0 auto 2rem;
  color: #e1e1e1;
}

/* Grid de productos */
.grid-productos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 50px; 
  gap: 2rem;
  justify-items: center;
}

/* Tarjeta del producto */
.producto {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  text-align: center;
  padding: 1.5rem;
  width: 100%;
  max-width: 300px;
}

.producto:hover {
  transform: scale(1.03);
}

/* Imagen del producto */
.producto img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

/* Texto dentro del producto */
.producto h3 {
  margin-top: 1rem;
  color: #333;
  font-size: 1.2rem;
}

.producto p {
  margin-top: 0.5rem;
  color: #555;
  font-size: 0.95rem;
}



/* Contacto */
.contacto {
  padding: 4rem 2rem;
  background: #f4f4f4;
  text-align: center;
}

.contacto h2 {
  margin-bottom: 1rem;
}

.contacto button {
  margin-top: 1.5rem;
  padding: 0.8rem 1.5rem;
  border: none;
  background: #f4c542;
  color: #000;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.contacto button:hover {
  background: #d9a932;
}

/* Footer */
footer {
  text-align: center;
  background: #000;
  color: #fff;
  padding: 1rem;
}

/* Botón flotante WhatsApp */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  z-index: 100;
  transition: transform 0.2s ease-in-out;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* Botón Ver Más */
.btn-ver-mas {
  margin-top: 2rem;
  padding: 0.9rem 2rem;
  background: #f4c542;
  color: #000;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  transition: background 0.3s, transform 0.2s;
}

.btn-ver-mas:hover {
  background: #d9a932;
  transform: scale(1.05);
}

/* Ocultar productos extra */
.oculto {
  display: none;
}

html {
  scroll-behavior: smooth;
}

/* Misión y Visión */
.mision-vision {
  padding: 4rem 2rem;
  background: #1f1f1f;
  text-align: center;
}

.mision-vision h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #222;
}

.contenedor-mv {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.mv-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 2rem;
  max-width: 400px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mv-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.mv-card h3 {
  color: #f4c542;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.mv-card p {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
}
