:root {
  --brand-blue: #075b7f;
  --brand-blue-dark: #063d59;
  --brand-gold: #c99721;
  --ink: #17202a;
  --muted: #657282;
  --line: #dfe6ee;
  --soft: #f4f7fa;
  --white: #ffffff;
  --green: #148f50;
  --danger: #b42318;
  --shadow: 0 18px 45px rgba(11, 38, 56, 0.12);
  --radius: 8px;
  --max: 1180px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-row {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 86px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 104px;
  height: auto;
  border-radius: var(--radius);
}

.nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.nav a {
  border-radius: 999px;
  color: #25313d;
  font-size: 0.94rem;
  font-weight: 700;
  padding: 10px 14px;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: #eaf4f8;
  color: var(--brand-blue-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-size: 1.2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: var(--radius);
  background: var(--brand-blue);
  color: var(--white);
  font-weight: 800;
  padding: 11px 18px;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover {
  background: var(--brand-blue-dark);
  box-shadow: 0 10px 24px rgba(7, 91, 127, 0.2);
  transform: translateY(-1px);
}

.button.secondary {
  background: var(--white);
  color: var(--brand-blue-dark);
  border: 1px solid var(--line);
}

.button.secondary:hover {
  background: #f7fbfd;
  box-shadow: none;
}

.button.whatsapp {
  background: var(--green);
}

.button.whatsapp:hover {
  background: #0f7440;
  box-shadow: 0 10px 24px rgba(20, 143, 80, 0.2);
}

.button.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--white);
}

.section {
  padding: 72px 0;
}

.section.soft {
  background: var(--soft);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 32px;
  border-radius: 999px;
  background: #fff5df;
  color: var(--brand-gold);
  font-size: 0.94rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  margin-bottom: 18px;
  padding: 7px 12px;
  text-transform: uppercase;
}

.hero .eyebrow,
.page-hero .eyebrow,
.cta-band .eyebrow {
  background: rgba(255, 245, 223, 0.14);
  color: #a46f00;
  color: var(--brand-gold);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 7vw, 5.6rem);
  line-height: 0.96;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1.04;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.12rem;
}

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  color: var(--white);
  background: var(--brand-blue-dark);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 26, 39, 0.88), rgba(4, 26, 39, 0.55) 48%, rgba(4, 26, 39, 0.16)),
    linear-gradient(0deg, rgba(4, 26, 39, 0.36), rgba(4, 26, 39, 0.12));
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  align-items: center;
  min-height: 660px;
  padding: 74px 0 96px;
}

.hero p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.18rem;
}

.hero h1,
.page-hero h1,
.section h2 {
  margin-top: 0;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 680px;
  margin-top: 44px;
}

.metric {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  padding: 16px;
}

.metric strong {
  display: block;
  font-size: 1.45rem;
}

.metric span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
}

.banner-tabs {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 30px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.banner-tabs button {
  width: 38px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.44);
  padding: 0;
}

.banner-tabs button.active {
  background: var(--brand-gold);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.category-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--brand-blue-dark);
  color: var(--white);
  box-shadow: var(--shadow);
}

.category-card img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  opacity: 0.72;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.category-card:hover img {
  opacity: 0.58;
  transform: scale(1.04);
}

.category-card-body {
  position: absolute;
  inset: auto 0 0;
  padding: 18px;
  background: linear-gradient(0deg, rgba(3, 24, 36, 0.96), rgba(3, 24, 36, 0));
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
}

.feature-band {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
}

.feature-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #e9f4ef;
  color: var(--green);
  font-weight: 900;
}

.feature-image {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.contact-stack {
  display: grid;
  gap: 16px;
}

.map-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(20, 35, 50, 0.06);
}

.map-card iframe {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  min-height: 290px;
  border: 0;
  background: transparent;
}

.map-card .button {
  position: relative;
  z-index: 3;
  width: calc(100% - 32px);
  margin: 16px;
}

.map-fallback {
  position: absolute;
  inset: 0 0 64px;
  z-index: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  background:
    linear-gradient(135deg, rgba(7, 91, 127, 0.12), rgba(201, 151, 33, 0.12)),
    #f4f7fa;
  color: var(--brand-blue-dark);
  padding: 24px;
  text-align: center;
}

.map-fallback strong {
  font-size: 1.1rem;
}

.map-fallback span {
  max-width: 320px;
  color: var(--muted);
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 14px;
  margin-bottom: 22px;
}

.field,
.select,
.textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  padding: 11px 13px;
}

.textarea {
  min-height: 96px;
  resize: vertical;
}

.filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: #2f3c48;
  font-size: 0.92rem;
  font-weight: 800;
  padding: 9px 13px;
}

.chip.active,
.chip:hover {
  border-color: var(--brand-blue);
  background: #eaf4f8;
  color: var(--brand-blue-dark);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.product-card:hover {
  border-color: #c8d9e5;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.product-media {
  position: relative;
  display: grid;
  aspect-ratio: 1 / 1;
  place-items: center;
  background: #f8fafc;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  background: var(--brand-gold);
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 900;
  padding: 6px 9px;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.product-category {
  color: var(--brand-blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-title {
  display: -webkit-box;
  min-height: 48px;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 1rem;
  line-height: 1.25;
}

.product-description {
  display: -webkit-box;
  min-height: 42px;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.92rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-footer {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.price {
  color: var(--ink);
  font-weight: 900;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.cta-band {
  background: var(--brand-blue-dark);
  color: var(--white);
}

.cta-band .container {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
}

.cta-band p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.footer {
  background: #111820;
  color: var(--white);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}

.footer img {
  width: 150px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: var(--white);
  padding: 8px;
}

.footer h3 {
  color: var(--white);
  font-size: 0.98rem;
}

.footer p,
.footer a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-contact-list {
  display: grid;
  gap: 8px;
}

.footer a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 34px;
  padding-top: 20px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
}

.page-hero {
  background: var(--brand-blue-dark);
  color: var(--white);
  padding: 78px 0;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.78);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(9, 22, 33, 0.72);
  padding: 20px;
}

.modal.open {
  display: flex;
}

.modal-panel {
  width: min(100%, 920px);
  max-height: min(90vh, 860px);
  overflow: auto;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
}

.modal-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
}

.modal-image {
  display: grid;
  min-height: 420px;
  place-items: center;
  background: #f7fafc;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 28px;
}

.modal-content {
  padding: 28px;
}

.modal-close {
  float: right;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  font-size: 1.2rem;
}

.empty {
  border: 1px dashed #c7d4df;
  border-radius: var(--radius);
  background: #fbfdff;
  color: var(--muted);
  padding: 28px;
  text-align: center;
}

.admin-body {
  background: #edf2f7;
}

.admin-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: #0f1a24;
  color: var(--white);
  padding: 24px;
}

.admin-sidebar img {
  width: 150px;
  margin-bottom: 22px;
  border-radius: var(--radius);
  background: var(--white);
  padding: 8px;
}

.admin-nav {
  display: grid;
  gap: 8px;
}

.admin-nav button,
.admin-link {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 800;
  padding: 11px 12px;
  text-align: left;
}

.admin-nav button.active,
.admin-nav button:hover,
.admin-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.admin-main {
  min-width: 0;
  padding: 28px;
}

.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.admin-panel {
  display: none;
}

.admin-panel.active {
  display: block;
}

.admin-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(20, 35, 50, 0.06);
  padding: 20px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 18px;
  align-items: start;
}

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

.form-grid label {
  display: grid;
  gap: 6px;
  color: #344150;
  font-size: 0.88rem;
  font-weight: 800;
}

.form-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-grid label.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-list-item {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 10px;
}

.admin-list-item img {
  width: 54px;
  height: 54px;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--soft);
}

.admin-list-actions {
  display: flex;
  gap: 8px;
}

.small-button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
  padding: 7px 10px;
}

.small-button.danger {
  border-color: #f4c7c3;
  color: var(--danger);
}

.notice {
  border: 1px solid #b9d9e8;
  border-radius: var(--radius);
  background: #edf8fc;
  color: #16475f;
  margin-bottom: 18px;
  padding: 14px 16px;
}

.login-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background: linear-gradient(135deg, #f4f8fb, #e5eef5);
  padding: 24px;
}

.login-card {
  width: min(100%, 420px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 28px;
}

.login-card img {
  width: 150px;
  margin-bottom: 20px;
}

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .header-row {
    grid-template-columns: 130px 1fr auto;
  }

  .nav {
    position: absolute;
    top: 86px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid var(--line);
    background: var(--white);
    padding: 12px 16px 18px;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    border-radius: var(--radius);
  }

  .mobile-menu-button {
    display: inline-flex;
  }

  .category-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-band,
  .cta-band .container,
  .footer-grid,
  .admin-shell,
  .admin-grid,
  .modal-grid {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
  }

  .admin-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, var(--max));
  }

  .header-row {
    grid-template-columns: 1fr auto;
    min-height: 76px;
  }

  .brand img {
    width: 76px;
  }

  .header-actions .button {
    display: none;
  }

  .nav {
    top: 76px;
  }

  .hero,
  .hero .container {
    min-height: 620px;
  }

  .hero .container {
    padding: 56px 0 84px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 52px 0;
  }

  .eyebrow {
    min-height: 30px;
    margin-bottom: 14px;
    padding: 6px 10px;
    font-size: 0.82rem;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .category-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-actions {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    gap: 18px;
  }

  .modal {
    padding: 10px;
  }

  .modal-image {
    min-height: 300px;
  }

  .admin-main {
    padding: 18px;
  }

  .admin-top {
    align-items: start;
    flex-direction: column;
  }

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

  .admin-list-item {
    grid-template-columns: 48px 1fr;
  }

  .admin-list-actions {
    grid-column: 1 / -1;
  }

  .form-inline {
    grid-template-columns: 1fr;
  }
}
