* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f6f7fb;
  color: #20242c;
}

nav {
  background: #111;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 6%;
}

nav .logo {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

nav a {
  color: #fff;
  text-decoration: none;
}

.menu-toggle {
  display: none;
}

.hero {
  background: #20242c;
  color: white;
  min-height: 360px;
  padding: 80px 6%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.hero h1 {
  font-size: 48px;
  margin: 0 0 12px;
}

.hero p {
  max-width: 560px;
}

.eyebrow {
  color: #79d2ff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.btn-main,
button {
  background: #e63b4a;
  color: white;
  border: 0;
  border-radius: 6px;
  padding: 10px 16px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
}

button.secondary {
  background: #4d5562;
}

button.danger {
  background: #9d1c28;
}

.section {
  width: min(1180px, 92%);
  margin: 0 auto;
  padding: 44px 0;
}

.section.narrow {
  width: min(820px, 92%);
}

.section-title {
  margin-bottom: 24px;
}

.section-title h1,
.section-title h2 {
  margin: 0 0 8px;
}

.grid-productos,
.info-grid,
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

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

.card,
.form-panel {
  background: white;
  border: 1px solid #e1e4ea;
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(20, 25, 35, 0.08);
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  background: #e8ebf0;
}

.card h3 {
  margin-bottom: 6px;
}

.card strong {
  color: #147d3f;
}

.categoria-seccion {
  padding: 28px 0;
  scroll-margin-top: 80px;
}

form {
  display: grid;
  gap: 12px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #cbd1dc;
  border-radius: 6px;
  padding: 11px;
  font: inherit;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

.notice {
  min-height: 22px;
  color: #9d1c28;
  font-weight: 600;
}

.hidden {
  display: none;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 18px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  border-bottom: 1px solid #e1e4ea;
  padding: 10px;
  text-align: left;
}

th {
  background: #f0f3f8;
}

footer {
  background: #111;
  color: white;
  text-align: center;
  padding: 24px 6%;
  margin-top: 40px;
}

@media (max-width: 720px) {
  nav {
    align-items: flex-start;
    flex-direction: column;
  }

  nav ul {
    gap: 10px;
  }

  .hero {
    padding: 56px 6%;
  }

  .hero h1 {
    font-size: 36px;
  }
}
