﻿/* =========================
   CATEGORÍAS
========================= */

.categorias {
  background: white;
  padding: 12px 40px;
  border-bottom: 1px solid #eee;
}

.categorias select {
  padding: 10px 18px;
  border-radius: 25px;
}

/* =========================
   CATÁLOGO
========================= */

.catalogo {
  padding: 30px 40px 10px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px,1fr));
  gap: 26px;
}

/* =========================
   TARJETA PRODUCTO
========================= */

.producto {
  background: white;
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);

  display: flex;
  flex-direction: column;

  transition: .25s;
}

.producto:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,.15);
}

.producto .img {
  height: 190px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 14px;
}

.producto .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.producto h4 {
  font-size: 16px;
  margin-bottom: 6px;
}

.precio {
  color: var(--color-principal);
  font-weight: bold;
  margin-bottom: 12px;
}

.producto button {
  margin-top: auto;
  background: var(--color-principal);
  color: white;
  padding: 12px;
  border-radius: 30px;
}

.producto button:hover {
  background: var(--color-hover);
}

/* =========================
   PANEL INFERIOR
========================= */

.panel-inferior {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 30px 40px;
}

.panel {
  background: white;
  padding: 22px;
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

/* =========================
   ADMIN
========================= */

.admin-container {
  padding: 30px;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 30px;
}

.btn-add {
  background: white;
  border: 2px solid var(--color-principal);
  color: var(--color-principal);
  width: 46px;
  height: 46px;
}

.btn-add:hover {
  background: var(--color-principal);
  color: white;
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:900px) {
  .panel-inferior {
    grid-template-columns: 1fr;
  }
}

@media(max-width:600px) {
  .catalogo,
  .categorias,
  .panel-inferior {
    padding-left: 20px;
    padding-right: 20px;
  }
}
/* =========================
   UNIFICACION VISUAL GLOBAL
========================= */
:root {
  --ui-border: #b9c6cc;
  --ui-focus: #147696;
}

input,
select,
textarea {
  border: 1px solid var(--ui-border);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--ui-focus);
  box-shadow: 0 0 0 2px rgba(20, 118, 150, 0.15);
}

button:focus-visible {
  outline: 2px solid rgba(20, 118, 150, 0.45);
  outline-offset: 2px;
}
