/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* Tipografía y colores principales */
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f9f4;
    color: #333;
  }
  
  /* Header */
  header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
  }
  
  .logo img {
    height: 50px;
  }
  
  .main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
  }
  
  .main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 6px 12px;
  }
  
  .main-nav a:hover {
    background-color: #e0f2e0;
    border-radius: 4px;
  }
  
  /* Botones */
  .btn {
    background-color: #6BA534;
    color: #fff;
    padding: 10px 16px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .btn:hover {
    background-color: #5a9130;
  }

  /* Estilos Password ojo */
  .password-container {
    position: relative;
    width: 100%;
}

.password-container input[type="password"],
.password-container input[type="text"] {
    padding-right: 40px;
    width: 100%;
    box-sizing: border-box;
}

.toggle-password-img {
  position: absolute;
  right: 10px;
  top: 42%; /* un poco más arriba que 50% */
  transform: translateY(-50%);
  height: 20px;
  width: 20px;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
  opacity: 0.8;
}

.toggle-password-img:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}



  
  /* Contenedor general */
  main {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
  }
  
  /* Tablas */
  table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
  }
  
  table th, table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
  }
  
  table th {
    background-color: #f1f1f1;
    font-weight: bold;
  }
  
  /* Footer */
  footer {
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    color: #555;
    border-top: 1px solid #ddd;
    background-color: #f8f8f8;
    margin-top: 40px;
  }
  
  /* Formularios */
  form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
  }
  
  form input, form textarea, form select {
    width: 100%;
    padding: 8px;
    margin-bottom: 12px;
    border-radius: 4px;
    border: 1px solid #ccc;
  }
  
  /* Grid de productos */
  .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
  
  .product-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 340px; /* Ajusta según tu diseño */
    padding: 20px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    width: 100%;
    max-width: 260px;
  }
  
  .product-item img {
    max-width: 120px;
    margin-bottom: 10px;
  }
  
  .product-item h3 {
    margin-bottom: 6px;
    font-size: 1.1rem;
    color: #333;
  }
  
  .product-item p {
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: #555;
  }
  
  /* Hero Banner */
  .hero-banner {
    background-color: #d7e4d2;
    border-radius: 8px;
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 30px;
  }
  
  .hero-banner h1 {
    font-size: 2.5rem;
    color: #2f4f2f;
    margin-bottom: 10px;
  }
  
  .hero-banner p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
  }

/* Uniformiza el tamaño de las imágenes */
.img-producto {
    width: 150px;
    height: 150px;
    object-fit: cover;
    display: block;
    margin: 0 auto 10px auto;
}


