:root {
  --ink: #071a2f;
  --muted: #647080;
  --paper: #f4f1e9;
  --surface: #ffffff;
  --line: #d8d9d3;
  --brand: #c8ff3d;
  --brand-dark: #a9dc25;
  --accent: #c8ff3d;
  --navy: #071a2f;
  --navy-soft: #0b2340;
  --danger: #b42318;
  --shadow: 0 18px 50px rgba(7, 26, 47, 0.11);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.5;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
button, .button { cursor: pointer; }

.site-header, .admin-header {
  min-height: 82px;
  padding: 14px clamp(20px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  text-decoration: none;
  line-height: 1.1;
}
.brand small { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; font-weight: 600; }
.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--brand);
  border-radius: 14px;
  font-size: 22px;
}
.site-header nav, .admin-header nav { display: flex; align-items: center; gap: 22px; }
.site-header nav a, .admin-header nav a, .link-button {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.site-header nav a:hover, .admin-header nav a:hover, .link-button:hover { color: var(--brand); }
.cart-link span {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  margin-left: 4px;
  border-radius: 999px;
  color: #fff;
  background: var(--brand);
  font-size: 11px;
}
.link-button { border: 0; padding: 0; background: none; }
.admin-header nav form { margin: 0; }

.hero {
  padding: clamp(64px, 10vw, 120px) clamp(20px, 7vw, 110px);
  background:
    radial-gradient(circle at 82% 18%, rgba(233, 185, 73, .26), transparent 24%),
    linear-gradient(135deg, #edf5ed, #f8f4e7);
}
.hero-inner { max-width: 780px; }
.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 740px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 7vw, 84px);
  line-height: .98;
  letter-spacing: -.045em;
}
.hero p { max-width: 610px; margin: 26px 0 0; color: var(--muted); font-size: clamp(17px, 2vw, 21px); }

.section, .product-detail, .cart-page, .admin-main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 90px;
}
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading h2, .page-heading h1 { margin: 0; font-size: clamp(30px, 4vw, 44px); letter-spacing: -.035em; }
.section-heading p, .page-heading p { margin: 7px 0 0; color: var(--muted); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 30px rgba(30, 48, 35, .05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card-image { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #edf0e9; }
.product-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover img { transform: scale(1.03); }
.product-card-body { padding: 20px; }
.product-meta { color: var(--muted); font-size: 13px; }
.product-card h3 { margin: 5px 0 9px; font-size: 21px; }
.product-card h3 a { text-decoration: none; }
.product-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.price { color: var(--brand-dark); font-size: 23px; font-weight: 900; }

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--brand);
  font-weight: 800;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
.button:hover { background: var(--brand-dark); }
.button:active { transform: translateY(1px); }
.button.added { background: #15803d; }
.button-secondary { color: var(--brand); background: #e7f0e9; }
.button-secondary:hover { color: #fff; background: var(--brand); }
.button-danger { background: var(--danger); }
.button-danger:hover { background: #8f1c14; }
.button-small { min-height: 36px; padding: 7px 12px; font-size: 13px; }
.button-full { width: 100%; }
.button[disabled] { cursor: not-allowed; opacity: .55; }

.product-detail { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.product-detail-image { overflow: hidden; aspect-ratio: 4 / 3; border-radius: 28px; background: #edf0e9; box-shadow: var(--shadow); }
.product-detail-image img { width: 100%; height: 100%; object-fit: cover; }
.product-detail h1 { margin: 8px 0 16px; font-size: clamp(38px, 5vw, 62px); line-height: 1.02; letter-spacing: -.04em; }
.product-detail-description { color: var(--muted); font-size: 18px; white-space: pre-line; }
.stock { margin: 20px 0; color: var(--muted); font-weight: 700; }

.cart-page h1 { margin: 0 0 28px; font-size: 44px; }
.cart-layout { display: grid; grid-template-columns: 1fr 330px; gap: 28px; align-items: start; }
.cart-items { display: grid; gap: 12px; }
.cart-item {
  display: grid;
  grid-template-columns: 86px 1fr 100px 110px 38px;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.cart-item img { width: 86px; height: 72px; object-fit: cover; border-radius: 10px; }
.cart-item h3, .cart-item p { margin: 0; }
.cart-item p { color: var(--muted); font-size: 13px; }
.cart-item label { color: var(--muted); font-size: 12px; }
.cart-item input { width: 74px; margin-top: 3px; padding: 7px; border: 1px solid var(--line); border-radius: 8px; }
.icon-button { width: 34px; height: 34px; border: 0; border-radius: 10px; background: #edf0eb; font-size: 20px; }
.icon-button.danger { color: var(--danger); background: #fff0ee; }
.cart-summary { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.cart-summary > span, .cart-summary > strong { display: block; }
.cart-summary > span { color: var(--muted); }
.cart-summary > strong { margin: 4px 0 22px; font-size: 32px; }
.cart-summary small { display: block; margin-top: 12px; color: var(--muted); text-align: center; }
.empty-state { padding: 60px 24px; border: 1px dashed #c6cec3; border-radius: 20px; text-align: center; background: #fff; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: #bac7bd;
  background: #18251d;
  font-size: 13px;
}

.admin-body { background: #f3f5f1; }
.admin-main { padding-top: 40px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 30px; }
.stat-card, .panel-card, .login-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(30, 48, 35, .04);
}
.stat-card span { display: block; color: var(--muted); font-size: 13px; font-weight: 700; }
.stat-card strong { display: block; margin-top: 5px; font-size: 34px; }
.panel-card h2 { margin-top: 0; }
.alert { margin-bottom: 22px; padding: 14px 17px; border-radius: 12px; font-weight: 700; }
.alert-success { color: #17603a; background: #dcf4e5; }
.alert-error { color: #8f1c14; background: #ffded9; }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.data-table th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.data-table tr:last-child td { border-bottom: 0; }
.table-product { display: flex; align-items: center; gap: 12px; }
.table-product img { width: 58px; height: 48px; border-radius: 9px; object-fit: cover; background: #edf0e9; }
.table-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.status { display: inline-flex; padding: 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.status-active { color: #17603a; background: #dcf4e5; }
.status-hidden { color: #785a00; background: #fff2c7; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 800; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cad2c8;
  border-radius: 11px;
  color: var(--ink);
  background: #fff;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid rgba(39, 103, 73, .15); border-color: var(--brand); }
.form-actions { display: flex; gap: 10px; margin-top: 24px; }
.image-preview { width: 180px; height: 135px; margin-top: 8px; object-fit: cover; border-radius: 12px; background: #edf0e9; }

.login-page, .install-page { min-height: 100vh; display: grid; place-items: center; padding: 30px 20px; background: linear-gradient(135deg, #eaf2e9, #f7f1df); }
.login-card, .install-card { width: min(520px, 100%); }
.install-card { padding: 30px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.login-card h1, .install-card h1 { margin: 18px 0 7px; font-size: 34px; letter-spacing: -.03em; }
.login-card > p, .install-card > p { color: var(--muted); margin-top: 0; }
.login-card form, .install-card form { display: grid; gap: 16px; margin-top: 24px; }
.hint { padding: 13px; border-radius: 10px; color: #675100; background: #fff4c7; font-size: 13px; }

@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-detail { grid-template-columns: 1fr; gap: 30px; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 72px 1fr 80px 36px; }
  .cart-item > strong { grid-column: 2; }
  .stats-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .site-header, .admin-header { align-items: flex-start; flex-direction: column; }
  .site-header nav, .admin-header nav { width: 100%; gap: 14px; overflow-x: auto; }
  .hero { padding-top: 64px; }
  .product-grid { grid-template-columns: 1fr; }
  .section-heading, .page-heading { align-items: flex-start; flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .data-table thead { display: none; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .data-table td { padding: 7px 0; border: 0; }
  .cart-item { grid-template-columns: 64px 1fr 36px; }
  .cart-item label, .cart-item > strong { grid-column: 2; }
  .site-footer { flex-direction: column; }
}

/* Identidad visual CreaWebUY */
h1, h2, h3, .price, .stat-card strong, .brand {
  font-family: "Manrope", "DM Sans", sans-serif;
}

.site-header, .admin-header {
  min-height: 82px;
  color: #fff;
  background: rgba(7, 26, 47, .97);
  border-bottom-color: rgba(255, 255, 255, .1);
}
.brand-mark {
  width: 38px;
  height: 38px;
  color: var(--navy);
  background: var(--brand);
  border-radius: 10px;
  transform: rotate(-7deg);
}
.brand-accent { color: var(--brand); }
.brand small { color: #98a7b6; }
.site-header nav a, .admin-header nav a, .admin-header .link-button { color: #c8d0d9; }
.site-header nav a:hover, .admin-header nav a:hover, .admin-header .link-button:hover { color: var(--brand); }
.site-header .cart-link span {
  color: var(--navy);
  background: var(--brand);
}
.site-header .header-cta {
  padding: 9px 15px;
  color: #fff;
  border: 1px solid #536273;
  border-radius: 9px;
}

.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7vw;
  align-items: center;
  padding: 70px max(5vw, 24px) 90px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 44%, rgba(40, 80, 108, .75), transparent 32%),
    var(--navy);
  overflow: hidden;
}
.hero-inner { max-width: 720px; }
.hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 0;
  color: #b8c3ce;
}
.hero .eyebrow::before {
  content: "";
  width: 25px;
  height: 2px;
  background: var(--brand);
}
.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid #40546a;
  border-radius: 999px;
  color: #dbe3ea;
  font: 700 10px "Manrope", sans-serif;
  letter-spacing: 1.25px;
}
.product-badge i { width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.hero h1 {
  margin-top: 20px;
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-size: clamp(45px, 5.2vw, 76px);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -3px;
}
.hero h1 em { color: var(--brand); font-style: normal; }
.hero p { margin-top: 24px; color: #afbbc7; font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 25px; margin-top: 32px; }
.hero-link { color: #dce2e8; font-size: 14px; font-weight: 700; text-decoration: none; }
.hero-link:hover { color: var(--brand); }

.hero-showcase { min-height: 470px; position: relative; }
.showcase-window {
  width: 92%;
  height: 390px;
  position: absolute;
  top: 30px;
  left: 0;
  overflow: hidden;
  color: #2a302c;
  background: #f0e9df;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 15px;
  box-shadow: 0 42px 100px rgba(0, 0, 0, .55);
}
.showcase-bar {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  background: #e6e6e3;
}
.showcase-bar i { width: 7px; height: 7px; border-radius: 50%; background: #a4a8a4; }
.showcase-bar span {
  margin: auto;
  padding: 4px 62px;
  color: #7f8580;
  background: #f8f8f6;
  border-radius: 10px;
  font-size: 8px;
}
.showcase-content { position: absolute; left: 38px; top: 110px; z-index: 2; }
.showcase-content small { color: #715f52; font-size: 8px; font-weight: 800; letter-spacing: 1.8px; }
.showcase-content strong { display: block; margin: 14px 0 20px; font: 700 35px/1.04 "Manrope", sans-serif; letter-spacing: -1.5px; }
.showcase-content span { display: inline-block; padding: 10px 14px; color: #fff; background: #173536; font-size: 9px; font-weight: 700; }
.showcase-shape { position: absolute; border-radius: 50% 50% 4px 4px; }
.shape-one { width: 220px; height: 320px; right: 38px; bottom: -25px; background: #75887b; transform: rotate(8deg); }
.shape-two { width: 145px; height: 235px; right: 142px; bottom: -18px; background: #c9b8a4; transform: rotate(-8deg); }
.showcase-note {
  position: absolute;
  right: 0;
  top: 8px;
  z-index: 3;
  padding: 10px 14px;
  color: var(--navy);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
  font-size: 11px;
  font-weight: 700;
}
.showcase-price {
  min-width: 215px;
  position: absolute;
  left: -18px;
  bottom: -10px;
  z-index: 4;
  padding: 20px 23px;
  color: var(--navy);
  background: var(--brand);
  border-radius: 13px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, .42);
}
.showcase-price small, .showcase-price span { display: block; font-size: 9px; font-weight: 800; letter-spacing: 1.3px; }
.showcase-price strong { display: block; font: 800 42px "Manrope", sans-serif; letter-spacing: -2px; }

.catalog-strip {
  display: flex;
  justify-content: space-around;
  gap: 28px;
  min-width: 900px;
  padding: 18px 20px;
  color: var(--navy);
  background: var(--brand);
  font: 800 12px "Manrope", sans-serif;
  letter-spacing: 1px;
}
.catalog-strip i { font-style: normal; }

.section { padding-top: 90px; }
.section .eyebrow { color: #637080; }
.section .eyebrow::before { content: ""; display: inline-block; width: 25px; height: 2px; margin-right: 9px; background: var(--brand-dark); vertical-align: middle; }
.product-card { border-radius: 14px; }
.product-card-image { background: #e9e9e3; }
.product-card h3 { font-family: "Manrope", sans-serif; }
.price { color: var(--navy); }

.button {
  color: var(--navy);
  background: var(--brand);
  border-radius: 9px;
}
.button:hover { color: var(--navy); background: #d8ff76; transform: translateY(-2px); }
.button-secondary { color: var(--navy); background: #e9eee8; }
.button-secondary:hover { color: #fff; background: var(--navy-soft); }
.button-danger { color: #fff; background: var(--danger); }
.button-danger:hover { color: #fff; background: #8f1c14; }

.site-footer {
  align-items: center;
  color: #93a1ae;
  background: #051523;
}
.site-footer .brand { color: #fff; text-decoration: none; }
.site-footer .brand-mark { width: 34px; height: 34px; }

.admin-body { background: var(--paper); }
.admin-header { position: relative; }
.admin-main .eyebrow { color: #637080; }
.admin-main .eyebrow::before { content: ""; display: inline-block; width: 25px; height: 2px; margin-right: 9px; background: var(--brand-dark); vertical-align: middle; }
.stat-card, .panel-card, .login-card, .install-card { border-radius: 14px; }
.stat-card { border-top: 4px solid var(--brand); }
.status-active { color: #385500; background: #e6f7b8; }
.status-hidden { color: #735a00; background: #fff0ba; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline-color: rgba(200, 255, 61, .42);
  border-color: #88a92c;
}
.login-page, .install-page {
  background:
    radial-gradient(circle at 75% 25%, rgba(40, 80, 108, .8), transparent 28%),
    var(--navy);
}
.login-card, .install-card { border: 1px solid rgba(255, 255, 255, .13); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-showcase { min-height: 500px; }
  .site-header .header-cta { display: none; }
}

@media (max-width: 680px) {
  .site-header, .admin-header { align-items: center; flex-direction: row; }
  .site-header nav, .admin-header nav {
    width: auto;
    max-width: 62%;
    justify-content: flex-end;
    gap: 14px;
  }
  .site-header nav a:not(.cart-link):not(:first-child),
  .admin-header nav a:first-child,
  .admin-header nav a:nth-child(3) { display: none; }
  .hero { min-height: auto; padding: 60px 20px 75px; }
  .hero h1 { font-size: 44px; letter-spacing: -1.8px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-showcase { min-height: 390px; }
  .showcase-window { width: 105%; height: 310px; left: -4%; }
  .showcase-content { left: 22px; top: 88px; }
  .showcase-content strong { font-size: 25px; }
  .shape-one { width: 150px; height: 250px; right: 15px; }
  .shape-two { width: 105px; height: 190px; right: 95px; }
  .showcase-price { left: 0; bottom: 0; }
  .showcase-note { display: none; }
  .catalog-strip { animation: brand-ticker 16s linear infinite; }
  .site-footer { align-items: flex-start; }
  @keyframes brand-ticker { to { transform: translateX(-45%); } }
}
