* {
  box-sizing: border-box;
}

.logo-centro{
    display:flex;
    justify-content:center;
    margin-top:20px;
    margin-bottom:10px;
}

.logo-centro img{
    width:150px;
    height:auto;
    filter: drop-shadow(0px 0px 10px rgba(255,215,0,0.4));
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #0f0618;
  color: #f3e9ff;
}

.container {
  width: 92%;
  max-width: 1200px;
  margin: auto;
}

.header {
  background: linear-gradient(90deg, #1d0b2d, #2f1049);
  padding: 18px 0;
  border-bottom: 1px solid #5a2f84;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: #ffd369;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: bold;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 18px;
}

.hero {
  text-align: center;
  padding: 40px 0 20px;
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: #ffd369;
}

.filtros {
  margin: 20px 0 30px;
}

.search-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.search-form input,
.search-form select,
.search-form button,
.admin-form input,
.admin-form textarea,
.update-form input {
  padding: 12px;
  border-radius: 10px;
  border: none;
  font-size: 1rem;
}

.search-form input,
.search-form select {
  flex: 1;
}

.search-form button,
.btn {
  background: #6f42c1;
  color: white;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
}

.btn-primary {
  background: #d4a017;
  color: #1a1027;
  font-weight: bold;
}

.danger {
  background: #c0392b;
}

.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.card {
  background: #1b0d29;
  border: 1px solid #3f1e5f;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}

.card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin-top: 0;
  color: #ffd369;
}

.meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #d4b8ff;
  margin: 10px 0;
}

.acciones {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 15px;
}

.producto-detalle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 40px 0;
}

.producto-img img {
  width: 100%;
  border-radius: 18px;
}

.producto-info input[type="number"] {
  padding: 10px;
  border-radius: 8px;
  width: 90px;
  margin-right: 10px;
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-item {
  display: flex;
  gap: 20px;
  background: #1b0d29;
  padding: 15px;
  border-radius: 16px;
  border: 1px solid #3f1e5f;
}

.cart-item img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
}

.cart-total {
  margin-top: 30px;
  padding: 20px;
  background: #1b0d29;
  border-radius: 16px;
}

.cart-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-form {
  display: grid;
  gap: 12px;
  margin-bottom: 35px;
}

.admin-form-section {
  margin-bottom: 32px;
}

.admin-edit-section {
  background: #1b0d29;
  border: 1px solid #3f1e5f;
  border-radius: 18px;
  padding: 22px;
}

.admin-edit-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.admin-edit-header h2 {
  margin: 0 0 6px;
  color: #ffd369;
}

.admin-edit-header p {
  margin: 0;
  color: #d4b8ff;
}

.admin-edit-layout {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.admin-edit-preview img {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid #3f1e5f;
}

.admin-form textarea {
  min-height: 120px;
  resize: vertical;
}

.admin-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.admin-card-actions form {
  margin: 0;
}

.admin-image-note {
  margin-top: 12px;
  font-size: 0.9rem;
  color: #d4b8ff;
}

.flash-box {
  margin: 20px 0;
}

.flash {
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 10px;
  font-weight: bold;
}

.flash.success {
  background: #1e7e34;
}

.flash.error {
  background: #a71d2a;
}

.footer {
  margin-top: 50px;
  padding: 25px 0;
  text-align: center;
  background: #12081d;
  border-top: 1px solid #3f1e5f;
}

@media (max-width: 768px) {
  .producto-detalle {
    grid-template-columns: 1fr;
  }

  .admin-edit-header {
    flex-direction: column;
  }

  .admin-edit-layout {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-direction: column;
    gap: 12px;
  }

  .cart-item {
    flex-direction: column;
  }
}
.login-form{
max-width:400px;
margin:40px auto;
display:flex;
flex-direction:column;
gap:15px;
}

.login-form input{
padding:12px;
border-radius:10px;
border:none;
}

.producto-detalle{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:30px;
  margin-top:40px;
}

.producto-img img{
  width:100%;
  border-radius:20px;
}

.producto-info h1{
  color:#FFD369;
}

.precio{
  font-size:28px;
  margin:10px 0;
}

.nota{
  font-size:13px;
  color:gray;
}

.form-carrito{
  margin-top:15px;
}

.form-carrito input{
  padding:10px;
  border-radius:8px;
  margin-right:10px;
  width:80px;
}

.mayorista-box{
  margin-top:25px;
  padding:15px;
  border:1px solid #3c1a59;
  border-radius:15px;
  background:#1d0d2a;
}

.btn-mayor{
  background:#25D366;
  color:white;
  padding:12px;
  border-radius:10px;
  display:block;
  text-align:center;
  margin-top:10px;
  font-weight:bold;
  border:none;
  cursor:pointer;
}

.btn-mayor:hover{
  background:#1ebe5d;
}

@media (max-width:768px){
  .producto-detalle{
    grid-template-columns:1fr;
  }
}