/* ==== RESET ==== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Roboto, sans-serif;
}

/* ==== COLORES ==== */
:root {
  --azul: #0077ff;       /* Azul eléctrico */
  --azul-oscuro: #004f9e;
  --gris: #f5f5f5;
  --negro: #222;
  --blanco: #fff;
}

/* ==== NAVBAR ==== */
.navbar {
  background: var(--azul);
  color: var(--blanco);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-links a {
  color: var(--blanco);
  margin-left: 1.5rem;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.nav-links a:hover {
  color: var(--gris);
}

/* ==== HERO ==== */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, var(--azul) 40%, var(--azul-oscuro));
  color: var(--blanco);
}

.hero-text {
  flex: 1 1 400px;
  padding: 1rem;
}

.hero-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.hero-img {
  flex: 1 1 400px;
  text-align: center;
}

.hero-img img {
  width: 100%;
  max-width: 400px;
  border-radius: 20px;
}

/* ==== BOTONES ==== */
.btn {
  background: var(--blanco);
  color: var(--azul);
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  background: var(--azul-oscuro);
  color: var(--blanco);
}

/* ==== PRODUCTOS ==== */
.productos {
  padding: 3rem 2rem;
  background: var(--gris);
  text-align: center;
}

.productos h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--azul-oscuro);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--blanco);
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.product-card:hover {
  transform: translateY(-8px);
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 1rem;
}

.product-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--negro);
}

.product-card p {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: #555;
}

.price {
  font-weight: bold;
  color: var(--azul);
  margin-bottom: 1rem;
}

/* ==== FOOTER ==== */
footer {
  background: var(--azul-oscuro);
  color: var(--blanco);
  text-align: center;
  padding: 1.5rem;
  margin-top: 2rem;
}

footer p {
  margin: 0.3rem 0;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }
  .hero-text h2 {
    font-size: 2rem;
  }
}

.product-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-image img {
  max-width: 400px;
  max-height: 400px;
  object-fit: contain;  /* ✅ muestra todo sin recortar */
  border: 1px solid #ddd;
  border-radius: 10px;
  cursor: pointer;
}

.thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.thumbnails img {
  width: 80px;
  height: 80px;
  object-fit: contain;  /* ✅ miniaturas completas */
  border: 1px solid #ccc;
  border-radius: 8px;
  cursor: pointer;
}

/* Modal (popup) */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;  /* ✅ ocupa la pantalla completa */
  max-height: 90%;
  object-fit: contain;
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
}

