/* ============================== */
/* 🎨 RESET Y ESTILOS GENERALES   */
/* ============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* 
  Forzamos que el body ocupe toda la pantalla 
  y main crezca para empujar el footer hacia abajo
*/
html, body {
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background-color: #f4f4f4;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ============================== */
/* 📌 NAVBAR (opcional)           */
/* ============================== */
.navbar {
  background: #fff;
  padding: 10px 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* Logo */
.logo img {
  height: 40px; 
  width: auto;
  display: block;
}

/* Enlaces del navbar */
.nav-links {
  list-style: none;
  display: none; /* Se mostrará con JavaScript al hacer toggle */
  flex-direction: column;
  align-items: center;
}

.nav-links.active {
  display: flex;
}

.nav-links li {
  margin: 10px 0;
}

.nav-links a {
  color: #1d1d1f;
  text-decoration: none;
  font-size: 1em;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #0071e3;
}

.nav-toggle {
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1.4em;
  color: #1d1d1f;
}

/* ============================== */
/* 👤 USUARIO LOGUEADO (opcional) */
/* ============================== */
.user-info {
  display: flex;
  align-items: center;
  margin-left: 20px;
}

.profile-pic {
  width: 40px; 
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
}

.profile-pic:hover {
  border-color: #005bb5;
}

.user-info span {
  font-size: 1em;
  font-weight: bold;
  color: #1d1d1f;
  margin-right: 10px;
}

.logout-btn {
  background: #dc3545;
  padding: 5px 10px;
  border-radius: 5px;
  color: white;
  font-weight: bold;
  text-decoration: none;
  font-size: 0.9em;
  transition: 0.3s;
}

.logout-btn:hover {
  background: #c82333;
}

.login-btn {
  background: #0071e3;
  padding: 8px 12px;
  border-radius: 5px;
  color: white;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}

.login-btn:hover {
  background: #005bb5;
}

/* ============================== */
/* 🎥 HERO VIDEO (opcional)       */
/* ============================== */
.hero-video {
  position: relative;
  width: 100%;
  height: 50vh; /* Ajuste para pantallas pequeñas */
  overflow: hidden;
}

#bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  padding: 20px;
  border-radius: 10px;
  max-width: 90%; 
}

/* ============================== */
/* 🏪 SECCIÓN DE PRODUCTOS        */
/* ============================== */
/* 
   Importante: tu HTML usa: 
   <div id="productos" class="container"> ... </div>
   Así que apuntamos a #productos.container
*/
#productos.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;

  /* Grid responsivo */
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

/* Tarjeta de producto */
.product-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Imagen del producto: mostramos el iPhone completo */
.product-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain; /* Mantiene la imagen completa sin recortar */
  margin-bottom: 15px;
}

/* Texto y precio */
.product-card h3 {
  font-size: 1.1em;
  color: #333;
  margin-bottom: 10px;
}

.product-card p {
  font-size: 0.95em;
  color: #666;
  margin-bottom: 10px;
}

.price {
  font-size: 1.2em;
  font-weight: bold;
  color: #0071e3;
  margin-bottom: 10px;
}

/* Botón */
.btn {
  display: inline-block;
  background: #0071e3;
  color: #fff;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
  margin-top: 10px;
}

.btn:hover {
  background: #005bb5;
}

/* ============================== */
/* 📌 FOOTER                      */
/* ============================== */
footer {
  background: #f5f5f7;
  color: #6e6e73;
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid #d2d2d7;
  width: 100%;
  margin-top: auto; 
}

/* ============================== */
/* 📱 RESPONSIVE (MOBILE-FIRST)   */
/* ============================== */

/* 
   Estilos base = móvil
   Aumentamos progresivamente para tablets y desktop
*/

/* Tablet vertical (≥ 576px) */
@media (min-width: 576px) {
  /* Ajusta si necesitas algo específico a partir de 576px */
}

/* Tablet horizontal (≥ 768px) */
@media (min-width: 768px) {
  /* Navbar en fila */
  .nav-links {
    display: flex;
    flex-direction: row;
  }
  .nav-links li {
    margin: 0 0 0 20px;
  }
  .logo img {
    height: 50px;
  }
}

/* Desktop mediano (≥ 992px) */
@media (min-width: 992px) {
  .navbar .container {
    padding: 0 20px;
  }
  .hero-video {
    height: 60vh;
  }
}

/* Desktop grande (≥ 1200px) */
@media (min-width: 1200px) {
  .hero-video {
    height: 70vh;
  }
}
