/* Variables generales y estilos base de la tienda. */
:root {
  --ink: #30261f;
  --clay: #b85f42;
  --cream: #f8f1e7;
  --white: #fffdf9;
}
* {
  box-sizing: border-box;
  margin: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Nunito", sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-size: 16px;
}
.site-header {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: auto;
  padding: 0 28px;
}
.brand {
  font-family: "Fraunces", serif;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.7px;
  color: var(--ink);
  text-decoration: none;
}
.brand span {
  color: var(--clay);
  font-size: 34px;
  vertical-align: -3px;
}
nav {
  display: flex;
  gap: 30px;
}
nav a,
footer a {
  color: inherit;
  text-decoration: none;
  font-size: 14px;
}
nav a:hover,
footer a:hover {
  color: var(--clay);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.icon-button,
.access-button {
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  color: var(--ink);
}
.icon-button {
  font-size: 18px;
  position: relative;
}
.icon-button span {
  font-size: 10px;
  background: var(--clay);
  color: #fff;
  border-radius: 20px;
  padding: 2px 5px;
  position: absolute;
  top: -10px;
  right: -12px;
}
.access-button {
  border: 1px solid #bba896;
  border-radius: 30px;
  padding: 10px 16px;
  font-size: 14px;
}
.hero {
  max-width: 1180px;
  min-height: 560px;
  margin: auto;
  padding: 80px 70px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  background: #e8d2b7;
  border-radius: 5px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--clay);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 16px;
}
.hero h1,
h2 {
  font-family: "Fraunces", serif;
  font-weight: 600;
  letter-spacing: -1.6px;
}
.hero h1 {
  font-size: 64px;
  line-height: 1.05;
  max-width: 580px;
}
.lead {
  max-width: 470px;
  font-size: 18px;
  line-height: 1.6;
  margin: 24px 0 30px;
}
.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: 0;
  background: var(--clay);
  color: #fff;
  text-decoration: none;
  padding: 15px 23px;
  border-radius: 2px;
  font-weight: 600;
  cursor: pointer;
}
.primary-button:hover {
  background: #93472f;
}
.hero-art {
  height: 390px;
  position: relative;
}
.sun {
  position: absolute;
  width: 215px;
  height: 215px;
  border-radius: 50%;
  background: #e8aa60;
  right: 42px;
  top: 18px;
}
.vase-one {
  position: absolute;
  width: 150px;
  height: 238px;
  background: #a94e37;
  border-radius: 47% 47% 14% 14%/30% 30% 12% 12%;
  bottom: 0;
  right: 86px;
  z-index: 2;
}
.vase-one:before {
  content: "";
  position: absolute;
  width: 82px;
  height: 48px;
  background: #a94e37;
  left: 34px;
  top: -33px;
  border-radius: 11px 11px 0 0;
}
.vase-two {
  position: absolute;
  width: 104px;
  height: 180px;
  background: #eee1d0;
  border-radius: 43% 43% 18% 18%;
  bottom: 0;
  right: 242px;
}
.vase-two:before {
  content: "";
  position: absolute;
  width: 55px;
  height: 42px;
  background: #eee1d0;
  left: 24px;
  top: -30px;
  border-radius: 9px 9px 0 0;
}
.plate {
  position: absolute;
  width: 210px;
  height: 27px;
  border-radius: 50%;
  background: #927159;
  right: 57px;
  bottom: -9px;
}
.intro {
  padding: 110px 28px 100px;
  max-width: 820px;
  margin: auto;
  text-align: center;
}
.intro h2,
.collection h2 {
  font-size: 43px;
  line-height: 1.14;
}
.intro > p:not(.eyebrow) {
  line-height: 1.7;
  color: #65584d;
  max-width: 650px;
  margin: 22px auto 0;
}
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 62px;
  text-align: left;
}
.values div {
  border-top: 1px solid #cfb89d;
  padding-top: 18px;
  display: grid;
  grid-template-columns: 38px 1fr;
  column-gap: 10px;
}
.values i {
  color: var(--clay);
  grid-row: span 2;
  font-size: 20px;
}
.values b {
  font-size: 14px;
}
.values span {
  font-size: 12px;
  color: #75695f;
  margin-top: 4px;
}
.collection {
  background: #fffaf3;
  padding: 83px max(28px, calc((100% - 1180px) / 2)) 95px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 35px;
}
.section-heading a {
  color: var(--clay);
  font-size: 14px;
  text-decoration: none;
  font-weight: 600;
}
.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 23px;
}
.product-card {
  background: var(--white);
  padding: 14px;
}
.product-art {
  height: 270px;
  position: relative;
  overflow: hidden;
  background: #e4d1ba;
}
.product-art:before {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: #d48a68;
  top: 36px;
  left: calc(50% - 85px);
}
.product-art span {
  position: absolute;
  z-index: 1;
  left: 50%;
  transform: translateX(-50%);
  bottom: 37px;
}
.mug span {
  width: 110px;
  height: 103px;
  background: #f3ede4;
  border-radius: 8px 8px 30px 30px;
}
.mug span:after {
  content: "";
  position: absolute;
  width: 42px;
  height: 54px;
  border: 13px solid #f3ede4;
  border-left: 0;
  border-radius: 0 28px 28px 0;
  right: -38px;
  top: 21px;
}
.bowl {
  background: #d9c6a9;
}
.bowl:before {
  background: #98a182;
}
.bowl span {
  width: 165px;
  height: 82px;
  background: #b96043;
  border-radius: 0 0 90px 90px;
  bottom: 70px;
}
.bowl span:after {
  content: "";
  position: absolute;
  background: #ead5bc;
  width: 165px;
  height: 24px;
  border-radius: 50%;
  top: -12px;
}
.product-art.vase {
  background: #e9ded0;
}
.product-art.vase:before {
  background: #d8b050;
}
.product-art.vase span {
  width: 103px;
  height: 160px;
  background: #6f7c5e;
  border-radius: 48% 48% 17% 17%/24% 24% 10% 10%;
  bottom: 30px;
}
.product-art.vase span:after {
  content: "";
  position: absolute;
  width: 51px;
  height: 42px;
  background: #6f7c5e;
  left: 26px;
  top: -29px;
  border-radius: 7px 7px 0 0;
}
.product-info {
  padding: 18px 4px 4px;
  position: relative;
}
.product-info p {
  font-size: 12px;
  color: #907b6b;
}
.product-info h3 {
  font-family: "Fraunces", serif;
  font-size: 22px;
  margin: 4px 0 8px;
}
.product-info strong {
  font-size: 14px;
}
.add-to-cart {
  position: absolute;
  right: 0;
  bottom: 1px;
  background: none;
  border: 0;
  color: var(--clay);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.add-to-cart:hover {
  color: var(--ink);
}
footer {
  background: #32261f;
  color: #f5e9dd;
  min-height: 220px;
  padding: 55px max(28px, calc((100% - 1180px) / 2));
  display: flex;
  flex-direction: column;
  gap: 12px;
}
footer .brand {
  color: #fff1e5;
}
footer p {
  color: #cdb9a7;
  font-size: 14px;
}
footer a {
  color: #e5a07e;
}
footer small {
  color: #998272;
  margin-top: 17px;
  font-size: 11px;
}
.modal {
  opacity: 0;
  visibility: hidden;
  position: fixed;
  inset: 0;
  z-index: 10;
  background: #2c211bbd;
  display: grid;
  place-items: center;
  padding: 20px;
  transition: 0.2s;
}
.modal.open {
  opacity: 1;
  visibility: visible;
}
.modal-box {
  background: var(--white);
  width: min(550px, 100%);
  padding: 50px;
  position: relative;
  box-shadow: 0 15px 60px #1a110a88;
}
.modal-box h2 {
  font-size: 37px;
}
.modal-copy {
  color: #76685c;
  margin: 12px 0 28px;
}
.close-modal,
.close-dashboard {
  position: absolute;
  right: 18px;
  top: 13px;
  border: 0;
  background: none;
  font-size: 31px;
  color: #735f50;
  cursor: pointer;
}
.role-options {
  display: grid;
  gap: 11px;
}
.role-card {
  display: grid;
  grid-template-columns: 45px 1fr 18px;
  align-items: center;
  gap: 13px;
  text-align: left;
  padding: 18px;
  border: 1px solid #e4d4c3;
  background: #fffdf9;
  cursor: pointer;
  color: var(--ink);
  font: inherit;
}
.role-card:hover {
  border-color: var(--clay);
  background: #fff8f1;
}
.role-card > i:first-child {
  font-size: 19px;
  color: var(--clay);
}
.role-card b,
.role-card small {
  display: block;
}
.role-card small {
  font-size: 12px;
  color: #7d6d60;
  margin-top: 4px;
  line-height: 1.35;
}
.dashboard {
  display: none;
  position: fixed;
  z-index: 12;
  inset: 0;
  background: #2c211bbd;
  padding: 20px;
  overflow: auto;
}
.dashboard.open {
  display: grid;
  place-items: center;
}
.dashboard-panel {
  background: var(--white);
  width: min(700px, 100%);
  min-height: 380px;
  padding: 53px;
  position: relative;
}
.dashboard h2 {
  font-size: 38px;
}
.dashboard-panel > p:not(.eyebrow) {
  color: #706257;
  margin: 12px 0 25px;
}
.summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 25px 0;
}
.summary div {
  padding: 19px;
  background: #f8eee3;
}
.summary b {
  display: block;
  font:
    600 27px "Fraunces",
    serif;
  color: var(--clay);
}
.summary span {
  font-size: 12px;
  color: #705e50;
}
.welcome-list {
  padding: 0;
  list-style: none;
  margin: 22px 0;
}
.welcome-list li {
  border-bottom: 1px solid #eadbcd;
  padding: 13px 0;
  font-size: 14px;
}
@media (max-width: 760px) {
  .site-header {
    height: 70px;
    padding: 0 18px;
  }
  .brand {
    font-size: 20px;
  }
  .brand span {
    font-size: 26px;
  }
  nav {
    display: none;
  }
  .access-button {
    font-size: 0;
    padding: 10px;
  }
  .access-button i {
    font-size: 16px;
  }
  .hero {
    margin: 0;
    min-height: 600px;
    border-radius: 0;
    padding: 55px 28px 0;
    display: block;
    overflow: hidden;
  }
  .hero h1 {
    font-size: 45px;
  }
  .hero-art {
    height: 270px;
    margin-top: 28px;
    transform: scale(0.8);
    transform-origin: center bottom;
  }
  .intro {
    padding: 75px 26px;
  }
  .intro h2,
  .collection h2 {
    font-size: 34px;
  }
  .values,
  .products {
    grid-template-columns: 1fr;
  }
  .values {
    margin-top: 40px;
    gap: 25px;
  }
  .collection {
    padding: 65px 20px;
  }
  .section-heading {
    align-items: start;
  }
  .section-heading a {
    padding-top: 25px;
  }
  .products {
    gap: 19px;
  }
  .product-art {
    height: 260px;
  }
  .modal-box,
  .dashboard-panel {
    padding: 42px 25px;
  }
  .modal-box h2,
  .dashboard h2 {
    font-size: 31px;
  }
  .summary {
    grid-template-columns: 1fr;
  }
  .header-actions {
    gap: 10px;
  }
}
.auth-box {
  max-height: 94vh;
  overflow: auto;
}
.role-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #e4d4c3;
  margin: 22px 0;
}
.role-switch button {
  border: 0;
  padding: 11px;
  background: #fffaf3;
  font:
    600 13px "Nunito",
    sans-serif;
  cursor: pointer;
  color: #735f50;
}
.role-switch button.active {
  color: #fff;
  background: var(--clay);
}
.auth-form {
  display: grid;
  gap: 14px;
}
.auth-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}
.auth-form input,
.auth-form select {
  width: 100%;
  border: 1px solid #d9c7b4;
  padding: 12px;
  font:
    14px "Nunito",
    sans-serif;
  color: var(--ink);
  background: #fff;
}
.auth-form input:focus,
.auth-form select:focus {
  outline: 2px solid #e4a487;
  border-color: var(--clay);
}
.auth-form .primary-button {
  justify-content: center;
  margin-top: 5px;
}
.form-message {
  min-height: 16px;
  color: #a13d2e;
  font-size: 12px;
}
.auth-toggle {
  text-align: center;
  margin-top: 21px;
  font-size: 13px;
  color: #6d5e53;
}
.auth-toggle button,
.text-button {
  border: 0;
  background: none;
  color: var(--clay);
  font: 600 inherit;
  cursor: pointer;
}
.admin-note {
  font-size: 11px;
  color: #8c7a6d;
  text-align: center;
  margin-top: 14px;
}
.admin-shell {
  width: min(1120px, 100%);
  min-height: min(700px, 94vh);
  background: #fffdf9;
  display: grid;
  grid-template-columns: 230px 1fr;
  position: relative;
}
.admin-side {
  background: #33271f;
  color: #f7eee6;
  padding: 30px 17px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.admin-side .brand {
  color: #fff;
  font-size: 21px;
  margin-bottom: 36px;
}
.side-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: #c8a990;
  margin: 0 12px 7px;
}
.admin-tab,
.logout-side {
  border: 0;
  background: transparent;
  color: #e6d6c8;
  text-align: left;
  padding: 12px;
  font:
    14px "Nunito",
    sans-serif;
  cursor: pointer;
  border-radius: 2px;
}
.admin-tab i,
.logout-side i {
  width: 24px;
  color: #e0a079;
}
.admin-tab:hover,
.admin-tab.active {
  background: #4a382c;
  color: #fff;
}
.logout-side {
  margin-top: auto;
  border-top: 1px solid #5d493b;
  padding-top: 20px;
}
.admin-content {
  padding: 54px;
  position: relative;
  overflow: auto;
}
.admin-content h2,
.client-panel h2 {
  font-size: 38px;
}
.admin-intro {
  color: #76675d;
  margin: 10px 0 28px;
}
.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}
.admin-card {
  padding: 20px;
  background: #f6ebdf;
}
.admin-card strong {
  display: block;
  font:
    600 29px "Fraunces",
    serif;
  color: var(--clay);
  margin-bottom: 4px;
}
.admin-card span {
  font-size: 12px;
  color: #715f50;
}
.panel {
  border: 1px solid #eadacd;
  padding: 20px;
  margin-top: 20px;
}
.panel h3 {
  font:
    600 23px "Fraunces",
    serif;
  margin-bottom: 16px;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table th {
  text-align: left;
  color: #806d5d;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.data-table th,
.data-table td {
  padding: 11px 7px;
  border-bottom: 1px solid #eee2d6;
}
.stock-ok {
  color: #557049;
  font-weight: 600;
}
.stock-low {
  color: #a94832;
  font-weight: 600;
}
.form-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}
.form-grid label {
  display: grid;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
}
.form-grid input {
  border: 1px solid #d9c7b4;
  padding: 10px;
  font:
    13px "Nunito",
    sans-serif;
}
.form-grid button {
  padding: 11px 14px;
  white-space: nowrap;
}
.bar-list {
  display: grid;
  gap: 17px;
}
.bar-row {
  display: grid;
  grid-template-columns: 130px 1fr 50px;
  gap: 12px;
  align-items: center;
  font-size: 13px;
}
.bar {
  height: 9px;
  background: #eadacd;
}
.bar i {
  display: block;
  height: 100%;
  background: var(--clay);
}
.client-panel {
  background: var(--white);
  width: min(1040px, 100%);
  max-height: 94vh;
  overflow-y: auto;
  padding: 54px;
  position: relative;
}
.client-panel > p:not(.eyebrow) {
  color: #706257;
  line-height: 1.6;
  margin: 12px 0 20px;
}
.client-panel .text-button {
  margin: 0;
}
.client-orders-section {
  margin-top: 35px;
  border-top: 1px solid #eadbcd;
  padding-top: 28px;
}
.client-orders-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.client-orders-heading h3 {
  font: 600 29px "Fraunces", serif;
}
.client-orders-heading button {
  border: 1px solid #d9b9c8;
  background: #fff8fb;
  padding: 9px 13px;
  color: var(--clay);
  font: 700 11px "Nunito", sans-serif;
  cursor: pointer;
}
.client-orders-list {
  display: grid;
  gap: 17px;
}
.client-orders-loading,
.client-orders-error {
  border: 1px dashed #d8c2b4;
  padding: 28px;
  color: #78665a;
  text-align: center;
}
.client-orders-error {
  color: #a13d2e;
}
.client-orders-empty {
  display: grid;
  justify-items: center;
  gap: 6px;
  border: 1px dashed #d8c2b4;
  padding: 36px;
  color: #78665a;
  text-align: center;
}
.client-orders-empty i {
  margin-bottom: 5px;
  color: #bb7896;
  font-size: 27px;
}
.client-orders-empty span {
  font-size: 12px;
}
.client-order-card {
  border: 1px solid #e4d2c6;
  background: #fffdfb;
  box-shadow: 0 7px 20px #4d25120a;
}
.client-order-card > header,
.client-order-card > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 19px;
}
.client-order-card > header {
  border-bottom: 1px solid #eee0d7;
  background: #fbf1e9;
}
.client-order-card > header div {
  display: grid;
  gap: 3px;
}
.client-order-card > header span {
  color: var(--ink);
  font: 600 19px "Fraunces", serif;
}
.client-order-card time,
.client-order-card > footer span {
  color: #7b6a5f;
  font-size: 11px;
  line-height: 1.5;
}
.client-order-status {
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.45px;
  white-space: nowrap;
}
.client-order-status.pending {
  background: #fff0c9;
  color: #7e5b08;
}
.client-order-status.preparing {
  background: #f7dceb;
  color: #87385d;
}
.client-order-status.shipped {
  background: #dcebf7;
  color: #315f7d;
}
.client-order-status.delivered {
  background: #dfeedb;
  color: #477448;
}
.client-order-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 18px 22px 8px;
}
.client-order-progress span {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: #a38f82;
  text-align: center;
}
.client-order-progress span::before {
  content: "";
  position: absolute;
  top: 5px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: #e4d7ce;
}
.client-order-progress span:first-child::before {
  display: none;
}
.client-order-progress i {
  z-index: 1;
  width: 12px;
  height: 12px;
  border: 2px solid #d8c8bd;
  border-radius: 50%;
  background: #fff;
}
.client-order-progress .reached::before,
.client-order-progress .reached i {
  border-color: #a34870;
  background: #a34870;
}
.client-order-progress .current small {
  color: #82385a;
  font-weight: 800;
}
.client-order-progress small {
  font-size: 9px;
}
.client-order-items {
  padding: 5px 19px 13px;
}
.client-order-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #eee3dc;
  padding: 13px 0;
}
.client-order-item > div:nth-child(2) {
  display: grid;
  gap: 4px;
}
.client-order-item span {
  color: #806e62;
  font-size: 11px;
}
.client-order-item > strong {
  color: var(--clay);
  font-size: 13px;
}
.client-order-thumb {
  position: relative;
  width: 72px;
  height: 64px;
  overflow: hidden;
  background: #ead9ca;
}
.client-order-thumb > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.client-order-illustration {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.client-order-illustration .product-art {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 250px;
  height: 250px;
  margin: -125px;
  transform: scale(0.34);
}
.client-order-card > footer {
  min-height: auto;
  border-top: 1px solid #eee0d7;
  background: #fff8f4;
  color: var(--ink);
}
.client-order-card > footer > div:last-child {
  display: grid;
  text-align: right;
}
.client-order-card > footer small {
  color: #876f62;
  font-size: 9px;
  text-transform: uppercase;
}
.client-order-card > footer strong {
  color: var(--clay);
  font: 600 21px "Fraunces", serif;
}
.client-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 25px;
}
.dashboard.open {
  display: grid;
}
@media (max-width: 760px) {
  .admin-shell {
    grid-template-columns: 1fr;
    min-height: 100vh;
  }
  .admin-side {
    padding: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
  }
  .admin-side .brand {
    grid-column: span 2;
    margin: 0 0 8px;
  }
  .side-label {
    display: none;
  }
  .logout-side {
    margin: 0;
    border: 0;
  }
  .admin-content {
    padding: 45px 22px;
  }
  .admin-content h2,
  .client-panel h2 {
    font-size: 31px;
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .data-table {
    font-size: 11px;
  }
  .bar-row {
    grid-template-columns: 95px 1fr 35px;
  }
  .client-panel {
    padding: 44px 25px;
  }
  .client-orders-heading,
  .client-order-card > header,
  .client-order-card > footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .client-order-card > footer > div:last-child {
    text-align: left;
  }
  .client-order-progress {
    padding-inline: 10px;
  }
  .client-order-progress small {
    font-size: 8px;
  }
  .client-order-item {
    grid-template-columns: 60px minmax(0, 1fr);
  }
  .client-order-thumb {
    width: 60px;
    height: 56px;
  }
  .client-order-item > strong {
    grid-column: 2;
  }
  .client-actions {
    align-items: stretch;
    flex-direction: column;
  }
}
.cart-drawer {
  position: fixed;
  z-index: 15;
  inset: 0;
  display: none;
  justify-content: flex-end;
  background: #2c211b73;
}
.cart-drawer.open {
  display: flex;
}
.cart-panel {
  background: #fffdf9;
  width: min(430px, 100%);
  height: 100%;
  padding: 50px 30px;
  position: relative;
  overflow: auto;
}
.cart-panel h2,
.checkout-panel h2 {
  font-size: 38px;
}
.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 16px 0;
  border-bottom: 1px solid #eadacd;
}
.cart-line b {
  font:
    600 18px "Fraunces",
    serif;
}
.cart-line small {
  display: block;
  color: #7a695d;
  margin-top: 4px;
}
.cart-line button {
  border: 0;
  background: none;
  color: #a34732;
  font:
    12px "Nunito",
    sans-serif;
  cursor: pointer;
  padding: 0;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 16px;
}
.cart-total strong {
  font:
    600 24px "Fraunces",
    serif;
}
.full-button {
  width: 100%;
  justify-content: center;
}
.empty-cart {
  text-align: center;
  color: #79695c;
  padding: 45px 0;
  line-height: 1.6;
}
.checkout-panel {
  background: #fffdf9;
  width: min(600px, 100%);
  padding: 50px;
  position: relative;
}
.location-button {
  border: 1px solid #caa890;
  background: #fff8f1;
  color: #945039;
  padding: 11px;
  font:
    600 13px "Nunito",
    sans-serif;
  cursor: pointer;
}
.location-result {
  color: #64714f;
  font-size: 12px;
  min-height: 16px;
}
.access-button.logged {
  border-color: var(--clay);
  color: var(--clay);
}
@media (max-width: 760px) {
  .cart-panel {
    padding: 43px 23px;
  }
  .checkout-panel {
    padding: 44px 25px;
  }
  .cart-panel h2,
  .checkout-panel h2 {
    font-size: 31px;
  }
}
.product-card {
  cursor: pointer;
}
.product-photo {
  height: 270px;
  width: 100%;
  object-fit: cover;
  display: block;
  background: #e4d1ba;
}
.product-art.custom-art {
  height: 270px;
  background: #e4d1ba;
}
.product-art.custom-art:before {
  display: none;
}
.product-art.custom-art span {
  display: none;
}
.detail-panel {
  background: #fffdf9;
  width: min(860px, 100%);
  padding: 48px;
  position: relative;
}
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px;
}
.detail-image {
  width: 100%;
  height: 390px;
  object-fit: cover;
  background: #e4d1ba;
}
.detail-layout h2 {
  font-size: 42px;
  margin: 5px 0 16px;
}
.detail-layout p {
  line-height: 1.65;
  color: #6d5d51;
}
.detail-price {
  display: block;
  font:
    600 28px "Fraunces",
    serif;
  margin: 21px 0 9px;
}
.shipping {
  font-size: 13px !important;
  color: #8d4b37 !important;
  margin-bottom: 22px;
}
.detail-gallery {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.detail-gallery img {
  width: 62px;
  height: 55px;
  object-fit: cover;
  border: 2px solid #d7b08e;
}
.notification {
  background: #fff1e7;
  border-left: 4px solid var(--clay);
  padding: 14px 16px;
  font-size: 13px;
  margin-bottom: 18px;
}
.order-name {
  font-size: 12px;
  color: #6e5d51;
}
.status-select {
  border: 1px solid #d8c1ad;
  background: #fff;
  padding: 6px;
  font:
    12px "Nunito",
    sans-serif;
}
.mail-button {
  border: 0;
  background: none;
  color: var(--clay);
  font:
    600 11px "Nunito",
    sans-serif;
  cursor: pointer;
  margin-top: 5px;
}
.report-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 23px;
}
.report-card {
  padding: 20px;
  background: #f6ebdf;
}
.report-card span {
  display: block;
  font-size: 12px;
  color: #725f50;
}
.report-card strong {
  font:
    600 27px "Fraunces",
    serif;
  color: var(--clay);
}
.chart-wrap {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 35px;
  align-items: center;
}
.pie-chart {
  width: 175px;
  height: 175px;
  border-radius: 50%;
  background: conic-gradient(
    var(--clay) 0 45%,
    #d9b569 45% 76%,
    #77725e 76% 100%
  );
  position: relative;
}
.pie-chart:after {
  content: "Ventas";
  position: absolute;
  inset: 35px;
  background: #fffdf9;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font:
    600 16px "Fraunces",
    serif;
}
.legend {
  display: grid;
  gap: 10px;
  font-size: 13px;
}
.legend i {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 7px;
}
.legend i.a {
  background: var(--clay);
}
.legend i.b {
  background: #d9b569;
}
.legend i.c {
  background: #77725e;
}
@media (max-width: 760px) {
  .detail-panel {
    padding: 42px 24px;
  }
  .detail-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .detail-image {
    height: 270px;
  }
  .detail-layout h2 {
    font-size: 32px;
  }
  .chart-wrap {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .report-grid {
    grid-template-columns: 1fr;
  }
}
.product-form {
  grid-template-columns: repeat(3, 1fr);
}
.product-form .wide-field {
  grid-column: span 2;
}
.product-form label small {
  font-weight: 400;
  color: #806d5d;
}
.table-scroll {
  overflow-x: auto;
}
.inventory-images {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 7px;
}
.inventory-images img {
  width: 38px;
  height: 38px;
  border-radius: 3px;
  object-fit: cover;
  border: 1px solid #e2cdbb;
}
.inventory-images span {
  font-size: 11px;
  color: #806d5d;
}
.no-photo {
  display: block;
  color: #927f70;
  font-size: 11px;
  margin-bottom: 7px;
}
.image-upload {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--clay);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.image-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.gallery-thumb {
  padding: 0;
  border: 2px solid transparent;
  background: none;
  cursor: pointer;
}
.gallery-thumb img {
  display: block;
}
.gallery-thumb.active {
  border-color: var(--clay);
}
@media (max-width: 760px) {
  .product-form {
    grid-template-columns: 1fr;
  }
  .product-form .wide-field {
    grid-column: auto;
  }
}
.material-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.material-summary > div {
  background: #f6ebdf;
  padding: 17px;
}
.material-summary span,
.material-summary small {
  display: block;
  color: #756354;
  font-size: 11px;
}
.material-summary b {
  display: block;
  color: var(--clay);
  font:
    600 23px "Fraunces",
    serif;
  margin: 5px 0;
}
.material-form {
  grid-template-columns: 1.5fr 1fr 0.7fr 0.8fr 0.9fr auto;
}
.form-grid select {
  border: 1px solid #d9c7b4;
  padding: 10px;
  background: #fff;
  font:
    13px "Nunito",
    sans-serif;
}
.reference-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.reference-grid .panel {
  min-width: 0;
}
.panel-help {
  color: #806d5d;
  font-size: 12px;
  margin: -7px 0 14px;
}
.panel details summary {
  color: var(--clay);
  font-weight: 600;
  cursor: pointer;
}
.pigment-table {
  margin-top: 15px;
  max-height: 360px;
  overflow: auto;
}
.performance-summary {
  grid-template-columns: repeat(4, 1fr);
}
.cost-table th,
.cost-table td {
  white-space: nowrap;
}
.result-lines {
  display: grid;
  gap: 12px;
}
.result-lines span {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #eee2d6;
  padding-bottom: 10px;
}
.result-lines .result-total {
  font-size: 16px;
  color: var(--clay);
  border-bottom: 0;
}
@media (max-width: 900px) {
  .material-form {
    grid-template-columns: 1fr 1fr;
  }
  .performance-summary {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  .material-summary,
  .reference-grid,
  .material-form,
  .performance-summary {
    grid-template-columns: 1fr;
  }
}
/* Área integrada de administración: no se abre como ventana emergente. */
body.admin-mode main,
body.admin-mode footer {
  display: none;
}
#admin-dashboard.open {
  position: relative;
  inset: auto;
  z-index: auto;
  display: block;
  background: var(--cream);
  padding: 0;
  overflow: visible;
  min-height: calc(100vh - 84px);
}
#admin-dashboard.open .admin-shell {
  width: 100%;
  min-height: calc(100vh - 84px);
  max-width: none;
}
.admin-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.return-store {
  border: 1px solid #c9aa92;
  background: #fffaf3;
  color: var(--clay);
  padding: 11px 14px;
  font:
    600 13px "Nunito",
    sans-serif;
  cursor: pointer;
  white-space: nowrap;
}
.return-store:hover {
  background: #f6e7da;
}
@media (max-width: 760px) {
  #admin-dashboard.open {
    min-height: calc(100vh - 70px);
  }
  #admin-dashboard.open .admin-shell {
    min-height: calc(100vh - 70px);
  }
  .admin-top {
    align-items: flex-start;
  }
  .return-store {
    font-size: 11px;
    padding: 9px;
  }
  .admin-top h2 {
    font-size: 29px;
  }
}
.shipping-estimate {
  background: #f8eee3;
  color: #7a5140;
  font-size: 13px;
  line-height: 1.45;
  padding: 11px 13px;
  min-height: 42px;
}
.admin-toggle {
  border-color: #8f745e;
  color: #765440;
}
:root {
  --ink: #492719;
  --clay: #9b4a6f;
  --cream: #fff3f8;
  --white: #fffafd;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #f2a4c9;
}
.brand-name {
  color: var(--ink);
  font-size: 23px;
}
.hero {
  background: #f3b0cf;
}
.collection {
  background: #fff8fb;
}
.intro {
  background: #fff3f8;
}
.primary-button {
  background: #9b4a6f;
}
.primary-button:hover {
  background: #713048;
}
.product-card {
  box-shadow: 0 5px 18px #9b4a6f12;
}
.admin-side {
  background: #492719;
}
.admin-card,
.report-card {
  background: #fbe1ed;
}
.pie-chart {
  background: conic-gradient(#9b4a6f 0 45%, #f1a4c8 45% 76%, #7d654f 76% 100%);
}
footer {
  background: #492719;
}
footer .brand-name {
  color: #fff4f8;
}
@media (max-width: 760px) {
  .brand-logo {
    width: 38px;
    height: 38px;
  }
  .brand-name {
    font-size: 19px;
  }
}
body.product-mode .hero,
body.product-mode .intro,
body.product-mode .collection,
body.product-mode footer {
  display: none;
}
.product-page {
  display: none;
  max-width: 1180px;
  margin: 0 auto;
  padding: 55px 70px 90px;
}
.product-page.open {
  display: block;
}
.back-catalog {
  border: 0;
  background: none;
  color: var(--clay);
  font:
    600 14px "Nunito",
    sans-serif;
  cursor: pointer;
  margin-bottom: 32px;
}
.product-page .detail-layout {
  max-width: 900px;
  margin: auto;
}
.admin-status {
  color: #765440;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .product-page {
    padding: 40px 24px 70px;
  }
  .admin-status {
    font-size: 0;
  }
  .admin-status i {
    font-size: 17px;
  }
}
.panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 14px;
}
.panel-title h3 {
  margin: 0;
}
.table-input {
  width: 100%;
  min-width: 90px;
  border: 1px solid #dfcbbb;
  background: #fff;
  padding: 8px;
  font:
    12px "Nunito",
    sans-serif;
  color: var(--ink);
}
.editable-table td {
  vertical-align: middle;
}
.delete-row,
.add-row {
  border: 0;
  background: none;
  color: #a13d2e;
  font:
    600 11px "Nunito",
    sans-serif;
  cursor: pointer;
  white-space: nowrap;
}
.add-row {
  color: var(--clay);
  border: 1px solid #d8b7c7;
  padding: 8px 10px;
  background: #fff8fb;
}
.delete-row:hover,
.add-row:hover {
  text-decoration: underline;
}
.compact-product-form {
  grid-template-columns: repeat(3, 1fr);
}
.stock-select {
  border: 1px solid #d9c7b4;
  background: #fff;
  padding: 8px;
  color: var(--ink);
  font:
    12px "Nunito",
    sans-serif;
}
.catalog-stock {
  display: inline-block;
  margin: 7px 0 11px;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}
.catalog-stock.available {
  background: #e8f2e4;
  color: #557049;
}
.catalog-stock.unavailable {
  background: #f7e3df;
  color: #a94832;
}
.product-info .catalog-stock {
  display: block;
  width: max-content;
}
.add-to-cart:disabled,
.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.product-unavailable .product-photo,
.product-unavailable .product-art {
  filter: grayscale(0.5);
  opacity: 0.75;
}
.product-postal {
  margin: 18px 0;
  background: #f8eee3;
  padding: 13px;
}
.product-postal label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
}
.product-postal input {
  border: 1px solid #d9c7b4;
  padding: 10px;
  background: #fff;
  font:
    13px "Nunito",
    sans-serif;
}
.product-postal p {
  font-size: 12px !important;
  margin: 8px 0 0 !important;
  color: var(--clay) !important;
  font-weight: 600;
}
@media (max-width: 760px) {
  .compact-product-form {
    grid-template-columns: 1fr;
  }
}
.edit-row,
.save-row,
.cancel-row {
  border: 0;
  background: none;
  color: var(--clay);
  font:
    600 11px "Nunito",
    sans-serif;
  cursor: pointer;
  white-space: nowrap;
  margin-right: 8px;
}
.save-row {
  color: #557049;
}
.cancel-row {
  color: #8a7565;
}
.inventory-description {
  display: block;
  max-width: 260px;
  margin-top: 5px;
  color: #8a7565;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.35;
  white-space: normal;
}
.product-edit-description {
  min-width: 220px;
  min-height: 70px;
  margin-top: 7px;
  resize: vertical;
}
.product-row-actions {
  min-width: 145px;
  white-space: nowrap;
}
.package-summary,
.package-summary small {
  display: block;
  white-space: nowrap;
}
.package-summary small {
  margin-top: 4px;
  color: #8a7565;
  font-size: 10px;
}
.package-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(90px, 1fr));
  gap: 6px;
  min-width: 210px;
}
.package-edit-grid label {
  display: grid;
  gap: 3px;
  color: #765f52;
  font-size: 9px;
}
.editing-row {
  background: #fff8fb;
}
.editing-row .table-input {
  background: #fff;
}
.editable-table td:last-child {
  white-space: nowrap;
}
.performance-help {
  margin: 4px 0 0;
}
.performance-summary + .panel .panel-title {
  align-items: flex-start;
}
.cost-table .table-input {
  min-width: 105px;
}
.cost-table select.table-input {
  min-width: 170px;
}
.calculation-note {
  display: block;
  margin-top: 4px;
  color: #8a7565;
  font-size: 9px;
  font-weight: 400;
  white-space: normal;
  line-height: 1.25;
}
.editing-row [data-performance-final],
.editing-row [data-performance-price] {
  color: var(--clay);
  font-size: 14px;
}
.footer-contact {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 45px;
}
.footer-intro {
  display: grid;
  gap: 15px;
}
.footer-intro p {
  max-width: 330px;
  font-size: 16px;
  line-height: 1.55;
}
.contact-links {
  display: grid;
  gap: 13px;
  min-width: 260px;
}
.contact-links > a,
.contact-links > span {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #f5e9dd;
  font-size: 14px;
}
.contact-links i {
  width: 22px;
  color: #f1a4c8;
  font-size: 17px;
  text-align: center;
}
.contact-links a:hover {
  color: #f1a4c8;
}
.instagram-link {
  padding: 12px 15px;
  border: 1px solid #8b5b70;
  background: #5a2e40;
}
.instagram-link > i {
  font-size: 27px;
  color: #fff;
}
.instagram-link span {
  display: grid;
  gap: 2px;
}
.instagram-link b {
  font-size: 14px;
}
.instagram-link small {
  margin: 0;
  color: #dcbac9;
  font-size: 10px;
}
.footer-copy {
  margin-top: 15px;
}
@media (max-width: 760px) {
  .footer-contact {
    flex-direction: column;
  }
  .contact-links {
    width: 100%;
    min-width: 0;
  }
  .instagram-link {
    width: 100%;
  }
}
.header-orders {
  display: flex;
  gap: 7px;
}
.header-orders button {
  border: 0;
  background: #fbe1ed;
  color: var(--clay);
  padding: 9px 11px;
  font:
    600 11px "Nunito",
    sans-serif;
  cursor: pointer;
  white-space: nowrap;
}
.header-orders button:hover {
  background: #f2cada;
}
.close-request {
  position: absolute;
  right: 18px;
  top: 13px;
  border: 0;
  background: none;
  font-size: 31px;
  color: #735f50;
  cursor: pointer;
}
.request-box textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid #d9c7b4;
  padding: 12px;
  font:
    14px "Nunito",
    sans-serif;
  color: var(--ink);
  background: #fff;
}
.request-box textarea:focus {
  outline: 2px solid #e4a487;
  border-color: var(--clay);
}
@media (max-width: 1040px) {
  .site-header {
    height: auto;
    min-height: 84px;
    flex-wrap: wrap;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .header-orders {
    order: 3;
    width: 100%;
    justify-content: center;
  }
}
@media (max-width: 600px) {
  .header-orders {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .header-orders button {
    white-space: normal;
  }
  nav {
    display: none;
  }
}
.request-box {
  max-height: 92vh;
  overflow: auto;
}
.request-box [hidden] {
  display: none !important;
}
.optional-field {
  font-size: 11px;
  font-weight: 400;
  color: #8b7565;
}
.request-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff3f8;
  padding: 10px;
}
.request-preview img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 3px;
}
.request-preview span {
  font-size: 11px;
  color: #765f51;
  word-break: break-all;
}
.request-conditions {
  background: #f8eee3;
  padding: 16px 18px;
}
.request-conditions h3 {
  font:
    600 18px "Fraunces",
    serif;
  margin-bottom: 10px;
}
.request-conditions ol {
  padding-left: 20px;
  display: grid;
  gap: 7px;
  color: #68584d;
  font-size: 11px;
  line-height: 1.45;
}
.product-postal h3 {
  font:
    600 17px "Fraunces",
    serif;
  margin-bottom: 11px;
}
.shipping-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}
.product-postal select {
  border: 1px solid #d9c7b4;
  padding: 10px;
  background: #fff;
  font:
    13px "Nunito",
    sans-serif;
}
.product-postal > small {
  display: block;
  color: #806d5d;
  font-size: 9px;
  line-height: 1.4;
  margin-top: 9px;
}
.carrier-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 10px;
}
.carrier-results > div {
  background: #fff;
  padding: 9px;
}
.carrier-results span,
.carrier-results b {
  display: block;
}
.carrier-results span {
  font-size: 10px;
  color: #806d5d;
}
.carrier-results b {
  color: var(--clay);
  font-size: 15px;
  margin-top: 3px;
}
.carrier-results p,
.carrier-results em {
  grid-column: 1/-1;
}
.carrier-results em {
  font-size: 9px;
  color: #806d5d;
  font-style: normal;
}
.carrier-results .pickup-result {
  grid-column: 1/-1;
  background: #eaf3e7;
}
.pickup-result {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3px 12px;
}
.pickup-result span {
  color: #557049;
  font-weight: 700;
}
.pickup-result b {
  color: #557049;
}
.pickup-result small {
  grid-column: 1/-1;
  color: #69805e;
  font-size: 9px;
}
.location-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.sales-help {
  margin-top: 5px;
}
.empty-orders {
  text-align: center;
  color: #806d5d;
  padding: 30px !important;
}
/* Encabezado y barra lateral exclusivos de la vista de administración. */
body.admin-mode .site-header {
  position: absolute;
  z-index: 15;
  top: 0;
  left: 230px;
  right: 0;
  width: auto;
  max-width: none;
  height: 92px;
  padding: 18px 58px 18px 66px;
  background: var(--cream);
  justify-content: flex-start;
  gap: 10px;
}
body.admin-mode .site-header > .brand,
body.admin-mode .header-actions {
  display: none;
}
body.admin-mode .site-header nav {
  display: flex;
  gap: 7px;
}
body.admin-mode .site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 13px;
  background: #fbe1ed;
  color: var(--clay);
  font-size: 11px;
  font-weight: 600;
}
body.admin-mode .site-header nav a:hover {
  background: #f2cada;
}
.site-header nav {
  gap: 7px;
}
.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 13px;
  background: #fbe1ed;
  color: var(--clay);
  font-size: 11px;
  font-weight: 600;
}
.site-header nav a:hover {
  background: #f2cada;
  color: var(--clay);
}
.transfer-details {
  background: #f8eee3;
  padding: 15px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.transfer-details[hidden] {
  display: none;
}
.transfer-details h3 {
  grid-column: 1/-1;
  font:
    600 17px "Fraunces",
    serif;
}
.transfer-details > div {
  background: #fff;
  padding: 9px;
}
.transfer-details span,
.transfer-details b {
  display: block;
}
.transfer-details span {
  font-size: 9px;
  color: #806d5d;
}
.transfer-details b {
  font-size: 12px;
  margin-top: 3px;
}
.transfer-details > a {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: #e5f3e2;
  color: #46633c;
  text-decoration: none;
  font-size: 11px;
}
.transfer-details > a i {
  font-size: 20px;
}
.checkout-price-summary {
  display: grid;
  gap: 8px;
  border-top: 1px solid #e6d3c4;
  border-bottom: 1px solid #e6d3c4;
  padding: 14px 0;
}
.checkout-price-summary > span,
.checkout-price-summary > strong {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 12px;
}
.checkout-price-summary > strong {
  font-size: 15px;
  color: var(--clay);
}
@media (max-width: 500px) {
  .transfer-details {
    grid-template-columns: 1fr;
  }
  .transfer-details h3,
  .transfer-details > a {
    grid-column: auto;
  }
}
.checkout-panel [hidden] {
  display: none !important;
}
.checkout-panel {
  width: min(1180px, 96vw);
  max-height: 94vh;
  overflow: auto;
  padding: 38px 42px;
}
.checkout-panel > h2 {
  margin-bottom: 24px;
}
.checkout-form-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.75fr);
  gap: 30px;
  align-items: start;
}
.checkout-main {
  display: grid;
  gap: 13px;
}
.checkout-order-summary {
  position: sticky;
  top: 0;
  border: 1px solid #e3d8d0;
  border-radius: 5px;
  padding: 18px;
  background: #fff;
}
.checkout-order-summary > h3,
.payment-methods > h3 {
  font:
    600 21px "Fraunces",
    serif;
  margin-bottom: 13px;
}
.checkout-order-items {
  display: grid;
}
.checkout-order-item {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid #eee2d9;
}
.checkout-order-item img,
.checkout-item-placeholder {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 3px;
  background: #f5e9df;
}
.checkout-item-placeholder {
  display: grid;
  place-items: center;
  color: var(--clay);
}
.checkout-order-item b {
  font-size: 12px;
}
.checkout-order-item small {
  display: block;
  color: #806d5d;
  font-size: 10px;
  margin-top: 3px;
}
.checkout-order-item > strong {
  font-size: 12px;
}
.checkout-order-summary .checkout-price-summary {
  margin: 12px 0 15px;
}
.payment-methods {
  display: grid;
  border: 1px solid #dfd4cc;
  border-radius: 5px;
  overflow: hidden;
}
.payment-methods > h3 {
  padding: 14px 15px 4px;
}
.payment-methods button {
  display: grid;
  grid-template-columns: 28px 1fr 20px;
  align-items: center;
  gap: 9px;
  padding: 13px 15px;
  border: 0;
  border-top: 1px solid #eee3dc;
  background: #fff;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}
.payment-methods button > i:first-child {
  color: #826d5e;
  font-size: 16px;
}
.payment-methods button > i:last-child {
  color: #c9bbb1;
}
.payment-methods button span b,
.payment-methods button span small {
  display: block;
}
.payment-methods button span b {
  font-size: 13px;
}
.payment-methods button span small {
  font-size: 10px;
  color: #75806d;
  margin-top: 3px;
}
.payment-methods button.selected {
  background: #eef9f3;
  box-shadow: inset 3px 0 #40a879;
}
.payment-methods button.selected > i:last-child {
  color: #40a879;
  font-weight: 700;
}
.checkout-main .transfer-details {
  margin-top: -5px;
}
.checkout-main .location-result {
  margin-top: -8px;
}
@media (max-width: 800px) {
  .checkout-panel {
    padding: 38px 22px;
  }
  .checkout-form-layout {
    grid-template-columns: 1fr;
  }
  .checkout-order-summary {
    position: static;
    order: -1;
  }
}
.checkout-customer-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 0.8fr;
  gap: 10px;
}
@media (max-width: 560px) {
  .checkout-customer-fields {
    grid-template-columns: 1fr;
  }
}

/* Calculadora detallada de costos por pieza. */
.labor-rates-panel,
.performance-calculator-panel {
  margin-top: 20px;
}
.labor-rate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.labor-rate-grid label {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 12px;
  padding: 15px;
  border: 1px solid #e3cbd7;
  background: #fff8fb;
}
.labor-rate-grid label > span {
  color: var(--ink);
  font-weight: 700;
}
.labor-rate-grid input {
  width: 130px;
  border: 1px solid #d9bdca;
  background: #fff;
  padding: 9px 10px;
  color: var(--ink);
  font: 600 14px "Nunito", sans-serif;
  text-align: right;
}
.labor-rate-grid small {
  grid-column: 2;
  color: #866a77;
  font-size: 9px;
  text-align: right;
}
.performance-editor-card {
  margin: 20px 0 25px;
  padding: 22px;
  border: 1px solid #d8b7c7;
  border-left: 4px solid var(--clay);
  background: #fff8fb;
}
.performance-editor-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.performance-editor-heading .eyebrow {
  margin-bottom: 4px;
}
.performance-editor-heading h3 {
  margin: 0;
  font: 600 24px "Fraunces", serif;
}
.performance-done {
  padding: 10px 13px;
  border: 1px solid #b8d1ae;
  background: #f4fbf1;
}
.performance-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.performance-fields > label,
.cost-check-group {
  display: grid;
  align-content: start;
  gap: 7px;
  color: #684f5b;
  font-size: 11px;
  font-weight: 700;
}
.labor-hours-display {
  display: grid;
  align-content: center;
  gap: 3px;
  min-height: 61px;
  padding: 9px 11px;
  border: 1px solid #e2ccd6;
  background: #fff;
  color: #684f5b;
}
.labor-hours-display span,
.labor-hours-display small {
  font-size: 9px;
}
.labor-hours-display b {
  color: var(--clay);
  font-size: 15px;
}
.labor-hours-display small {
  color: #866a77;
  font-weight: 500;
}
.performance-fields .wide-cost-field {
  grid-column: span 2;
}
.performance-fields .table-input {
  min-height: 39px;
  min-width: 0;
}
.cost-check-group {
  grid-template-columns: 1fr 1fr;
  padding: 9px 11px;
  border: 1px solid #e2ccd6;
  background: #fff;
}
.cost-check-group > span {
  grid-column: 1 / -1;
}
.cost-check {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #684f5b;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.cost-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--clay);
}
.cost-check small {
  color: #9a7184;
  font-size: 9px;
  font-weight: 500;
}
.packaging-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px 18px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px dashed #d5aabd;
  background: #fff;
}
.packaging-picker > span {
  width: 100%;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}
.pigment-picker {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #e2c8d4;
  background: #fff;
}
.pigment-picker-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.pigment-picker-heading span,
.pigment-picker-heading small {
  display: block;
}
.pigment-picker-heading span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}
.pigment-picker-heading small {
  margin-top: 3px;
  color: #866a77;
  font-size: 10px;
}
.selected-pigments {
  display: grid;
  gap: 9px;
}
.selected-pigments .panel-help {
  margin: 3px 0;
}
.pigment-selection-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 110px 115px auto;
  align-items: end;
  gap: 10px;
  padding: 10px;
  background: #fff8fb;
}
.pigment-selection-row > label {
  display: grid;
  gap: 5px;
  color: #684f5b;
  font-size: 10px;
  font-weight: 700;
}
.pigment-line-cost {
  display: grid;
  gap: 3px;
  padding-bottom: 8px;
  color: #866a77;
  font-size: 9px;
}
.pigment-line-cost b {
  color: var(--clay);
  font-size: 13px;
}
.pigment-selection-row .delete-row {
  min-height: 38px;
}
.packaging-empty {
  margin: 16px 0 0;
}
.calculation-breakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin-top: 20px;
  padding: 18px;
  background: #f7e5ed;
}
.calculation-breakdown h4 {
  grid-column: 1 / -1;
  margin-bottom: 8px;
  font: 600 18px "Fraunces", serif;
}
.calculation-breakdown > span {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid #e1c5d1;
  color: #765462;
  font-size: 11px;
}
.calculation-breakdown > span b {
  color: var(--ink);
  white-space: nowrap;
}
.calculation-breakdown .cost-subtotal,
.calculation-breakdown .price-total {
  grid-column: 1 / -1;
  align-items: center;
  padding-top: 13px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}
.calculation-breakdown .price-total {
  border-bottom: 0;
  color: var(--clay);
  font-size: 17px;
}
.price-total span small {
  display: block;
  margin-top: 2px;
  color: #866a77;
  font-size: 9px;
}
.price-total b {
  color: var(--clay) !important;
  font: 600 25px "Fraunces", serif;
}
.performance-cost-table .performance-price {
  color: var(--clay);
}
.performance-cost-table td:first-child {
  min-width: 170px;
}
.performance-cost-table td:last-child {
  min-width: 170px;
}
@media (max-width: 1050px) {
  .performance-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .labor-rate-grid,
  .performance-fields,
  .calculation-breakdown {
    grid-template-columns: 1fr;
  }
  .performance-fields .wide-cost-field,
  .calculation-breakdown h4,
  .calculation-breakdown .cost-subtotal,
  .calculation-breakdown .price-total {
    grid-column: auto;
  }
  .labor-rate-grid label {
    grid-template-columns: 1fr minmax(110px, 0.7fr);
  }
  .labor-rate-grid input {
    width: 100%;
  }
  .performance-editor-card {
    padding: 17px;
  }
  .performance-editor-heading {
    display: grid;
  }
  .pigment-picker-heading {
    display: grid;
  }
  .pigment-selection-row {
    grid-template-columns: 1fr 1fr;
  }
  .pigment-selection-row > label:first-child {
    grid-column: 1 / -1;
  }
  .performance-done {
    width: 100%;
  }
}
@media (max-width: 480px) {
  .pigment-selection-row {
    grid-template-columns: 1fr;
  }
  .pigment-selection-row > label:first-child {
    grid-column: auto;
  }
}
body.admin-mode .header-orders {
  margin-left: 0;
}
body.admin-mode #admin-dashboard.open {
  min-height: 100vh;
}
body.admin-mode #admin-dashboard.open .admin-shell {
  min-height: 100vh;
}

/* Buscador y categorías del catálogo. */
.catalog-searchbar {
  display: flex;
  align-items: end;
  gap: 14px;
  margin-bottom: 26px;
}
.catalog-searchbar label {
  display: grid;
  gap: 7px;
  width: min(620px, 100%);
  color: #674b3e;
  font-size: 12px;
  font-weight: 700;
}
.catalog-search-input {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #dec7d2;
  border-radius: 4px;
  background: #fff;
  padding: 0 14px;
}
.catalog-search-input:focus-within {
  border-color: var(--clay);
  box-shadow: 0 0 0 3px #9b4a6f16;
}
.catalog-search-input i {
  color: var(--clay);
}
.catalog-search-input input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 13px 0;
  color: var(--ink);
  font: 14px "Nunito", sans-serif;
}
#catalog-clear-filters {
  border: 0;
  background: transparent;
  padding: 13px 4px;
  color: var(--clay);
  font: 700 12px "Nunito", sans-serif;
  cursor: pointer;
  white-space: nowrap;
}
.catalog-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}
.catalog-filters {
  position: sticky;
  top: 22px;
  border: 1px solid #ecdbe3;
  background: #fffafd;
  padding: 21px 18px;
}
.catalog-filters h3 {
  margin-bottom: 12px;
  font: 600 21px "Fraunces", serif;
}
.catalog-category-list {
  display: grid;
  gap: 2px;
}
.catalog-category-list button {
  border: 0;
  border-left: 3px solid transparent;
  background: transparent;
  padding: 9px 9px 9px 11px;
  color: var(--ink);
  text-align: left;
  font: 700 13px "Nunito", sans-serif;
  cursor: pointer;
}
.catalog-category-list button:hover {
  color: var(--clay);
  background: #fff1f7;
}
.catalog-category-list button.active {
  border-left-color: var(--clay);
  background: #fbe1ed;
  color: #713048;
}
.catalog-results {
  min-width: 0;
}
.catalog-result-count {
  min-height: 20px;
  margin-bottom: 12px;
  color: #826c77;
  font-size: 12px;
  font-weight: 700;
}
.product-category-label {
  color: var(--clay) !important;
  font-weight: 700;
}
.catalog-empty {
  border: 1px dashed #d9b7c7;
  background: #fffafd;
  padding: 55px 24px;
  text-align: center;
}
.catalog-empty > i {
  margin-bottom: 14px;
  color: #c689a6;
  font-size: 27px;
}
.catalog-empty h3 {
  margin-bottom: 7px;
  font: 600 25px "Fraunces", serif;
}
.catalog-empty p {
  margin-bottom: 18px;
  color: #826c77;
  font-size: 13px;
}
.catalog-empty button {
  border: 1px solid #d2a8bc;
  background: #fff;
  padding: 10px 14px;
  color: var(--clay);
  font: 700 12px "Nunito", sans-serif;
  cursor: pointer;
}
.inventory-category {
  display: inline-block;
  max-width: 150px;
  border-radius: 20px;
  background: #fbe1ed;
  padding: 6px 9px;
  color: #713048;
  font-size: 10px;
  font-weight: 700;
  white-space: normal;
}

@media (max-width: 900px) {
  .catalog-layout {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 20px;
  }
}

@media (max-width: 760px) {
  .catalog-searchbar {
    display: grid;
    align-items: stretch;
    margin-bottom: 20px;
  }
  #catalog-clear-filters {
    justify-self: start;
    padding: 3px 0;
  }
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  .catalog-filters {
    position: static;
    padding: 17px;
  }
  .catalog-category-list {
    grid-template-columns: 1fr 1fr;
    gap: 3px 8px;
  }
  .catalog-category-list button {
    font-size: 12px;
  }
}

@media (max-width: 460px) {
  .catalog-category-list {
    grid-template-columns: 1fr;
  }
}

/* Menú móvil. */
.mobile-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d5adbf;
  border-radius: 50%;
  background: #fffafd;
  color: var(--clay);
  font-size: 18px;
  cursor: pointer;
}
.mobile-menu[hidden] {
  display: none !important;
}
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 50;
}
.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: #2f1723b8;
}
.mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(88vw, 390px);
  height: 100%;
  overflow-y: auto;
  background: #fff8fb;
  padding: 68px 28px 32px;
  box-shadow: -12px 0 35px #35132338;
}
.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 20px;
  border: 0;
  background: transparent;
  color: var(--clay);
  font-size: 34px;
  cursor: pointer;
}
.mobile-menu nav {
  display: grid;
  gap: 0;
}
.mobile-menu nav a {
  border-bottom: 1px solid #edd9e2;
  padding: 15px 2px;
  color: var(--ink);
  text-decoration: none;
  font: 600 22px "Fraunces", serif;
}
.mobile-order-actions {
  display: grid;
  gap: 9px;
  margin-top: 25px;
}
.mobile-order-actions button {
  border: 1px solid #d8afc1;
  background: #fff;
  padding: 12px;
  color: var(--clay);
  font: 700 13px "Nunito", sans-serif;
  text-align: left;
}
body.mobile-menu-open {
  overflow: hidden;
}

/* Reseñas públicas. */
.reviews-section {
  padding: 88px max(28px, calc((100% - 1180px) / 2));
  background: #fff3f8;
}
.reviews-heading {
  align-items: center;
}
.reviews-average {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 3px 9px;
  text-align: right;
}
.reviews-average strong {
  grid-row: span 2;
  color: var(--clay);
  font: 600 40px "Fraunces", serif;
}
.reviews-average span,
.reviews-average small {
  display: block;
  color: #795f6c;
  font-size: 11px;
}
.review-stars {
  color: #c06d35 !important;
  letter-spacing: 1px;
}
.reviews-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
  gap: 28px;
  align-items: start;
}
.reviews-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.reviews-empty {
  grid-column: 1 / -1;
  border: 1px dashed #d8afc1;
  background: #fffafd;
  padding: 40px 25px;
  color: #846d78;
  text-align: center;
}
.review-card {
  background: #fffafd;
  padding: 22px;
  box-shadow: 0 6px 20px #6a28470d;
}
.review-card > div,
.review-card footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.review-card > div small {
  color: #9a8590;
  font-size: 10px;
}
.review-card-product {
  align-items: center;
  justify-content: flex-start !important;
  margin-top: 16px;
  border: 1px solid #edd8e2;
  background: #fff5f9;
  padding: 10px;
}
.review-card-product > div:last-child {
  display: grid;
  gap: 3px;
}
.review-card-product strong {
  color: var(--ink);
  font: 600 16px "Fraunces", serif;
}
.review-card > p {
  min-height: 72px;
  margin: 16px 0;
  color: #634e58;
  line-height: 1.55;
  font-size: 14px;
}
.review-card footer {
  min-height: auto;
  padding: 0;
  background: none;
  color: var(--ink);
}
.review-card footer b,
.review-card footer span {
  font-size: 11px;
}
.review-card footer span {
  color: #8d7380;
}
.review-form {
  display: grid;
  gap: 13px;
  background: #fbe1ed;
  padding: 25px;
}
.review-form h3 {
  font: 600 25px "Fraunces", serif;
}
.review-form > p {
  color: #785f6b;
  font-size: 12px;
  line-height: 1.45;
}
.review-product-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #d9afc2;
  background: #fff9fc;
  padding: 10px;
}
.review-product-preview[hidden] {
  display: none;
}
.review-product-preview > div:last-child {
  display: grid;
  gap: 3px;
}
.review-product-preview small,
.review-product-preview span {
  color: #8a6f7c;
  font-size: 10px;
  line-height: 1.35;
}
.review-product-preview strong {
  color: var(--ink);
  font: 600 17px "Fraunces", serif;
}
.review-product-visual {
  position: relative;
  flex: 0 0 92px;
  width: 92px;
  height: 82px;
  overflow: hidden;
  background: #ead9ca;
}
.review-product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.review-product-illustration {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.review-product-illustration .product-art {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 250px;
  height: 250px;
  margin: -125px;
  transform: scale(0.42);
}
.review-product-visual.compact {
  flex-basis: 58px;
  width: 58px;
  height: 52px;
}
.admin-review-product {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 210px;
}
.admin-review-product > div:last-child {
  display: grid;
}
.review-form label,
.withdrawal-form label,
.billing-fields label {
  display: grid;
  gap: 6px;
  color: #634e58;
  font-size: 12px;
  font-weight: 700;
}
.review-form input,
.review-form select,
.review-form textarea,
.withdrawal-form input,
.withdrawal-form textarea,
.billing-fields input,
.billing-fields select {
  width: 100%;
  border: 1px solid #dabfcb;
  background: #fff;
  padding: 11px;
  color: var(--ink);
  font: 13px "Nunito", sans-serif;
}
.form-message.success {
  color: #477448;
}

/* Formulario visible del Botón de arrepentimiento. */
.withdrawal-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 65px;
  padding: 92px max(28px, calc((100% - 1080px) / 2));
  background: #f4dfd2;
}
.withdrawal-copy h2 {
  margin-bottom: 20px;
  font-size: 43px;
}
.withdrawal-copy > p:not(.eyebrow) {
  color: #6f594c;
  line-height: 1.65;
}
.withdrawal-note {
  margin-top: 20px;
  border-left: 3px solid var(--clay);
  padding-left: 14px;
  font-size: 12px;
}
.withdrawal-form {
  display: grid;
  gap: 17px;
}
.withdrawal-form label > span {
  color: #92796d;
  font-weight: 400;
}
.withdrawal-form textarea {
  resize: vertical;
}
.withdrawal-form .primary-button {
  justify-content: center;
  width: 100%;
}
.withdrawal-document-page {
  min-height: 100vh;
  background: #f4dfd2;
}
.withdrawal-page-header {
  max-width: 1260px;
  border-bottom: 1px solid #dfc3b4;
}
.withdrawal-page-main {
  max-width: 1260px;
  margin: 0 auto;
  padding: 62px 40px 82px;
}
.withdrawal-page-main .withdrawal-section {
  grid-template-columns: minmax(300px, 0.78fr) minmax(500px, 1.22fr);
  gap: 74px;
  padding: 0;
  background: transparent;
}
.withdrawal-page-main .withdrawal-copy h1 {
  max-width: 420px;
  margin: 20px 0 22px;
  color: #4b281d;
  font: 600 45px/1.18 "Fraunces", serif;
}
.withdrawal-page-main .withdrawal-form {
  gap: 16px;
}
.withdrawal-page-main .withdrawal-form input {
  min-height: 42px;
}
.withdrawal-page-main .withdrawal-form textarea {
  min-height: 114px;
}
.withdrawal-page-main .withdrawal-form .primary-button {
  min-height: 45px;
  margin-top: 18px;
  border-radius: 1px;
  background: #9f456d;
}
.withdrawal-confirmation {
  display: grid;
  gap: 5px;
  border-left: 4px solid #568653;
  background: #fff8f2;
  padding: 16px 18px;
  color: #523c32;
}
.withdrawal-confirmation[hidden] {
  display: none;
}
.withdrawal-confirmation small {
  color: #756157;
  line-height: 1.45;
}
.withdrawal-page-footer {
  border-top: 1px solid #dfc3b4;
  background: #ecd2c3;
}
.withdrawal-page-footer a {
  color: #713048;
}

/* Footer legal. */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  width: 100%;
  margin-top: 18px;
  border-top: 1px solid #704355;
  padding-top: 22px;
}
.footer-legal h3 {
  width: 100%;
  color: #fff4f8;
  font: 600 18px "Fraunces", serif;
}
.footer-legal a {
  color: #eab7cf;
  font-size: 12px;
}

/* Modal de confirmación. */
.confirmation-modal {
  z-index: 70;
}
.confirmation-box {
  width: min(470px, 100%);
  padding: 43px;
  text-align: center;
}
.confirmation-icon {
  margin-bottom: 18px;
  color: #568653;
  font-size: 45px;
}
.confirmation-box h2 {
  margin-bottom: 12px;
  font-size: 34px;
}
.confirmation-box > p:not(.eyebrow) {
  color: #745f69;
  line-height: 1.5;
}
.confirmation-code {
  display: grid;
  gap: 5px;
  margin: 23px 0;
  border: 1px dashed #c184a0;
  background: #fff1f7;
  padding: 17px;
}
.confirmation-code span {
  color: #8c6c7a;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.confirmation-code strong {
  color: var(--clay);
  font: 600 23px "Fraunces", serif;
}
.confirmation-email {
  margin-bottom: 20px;
  font-size: 11px;
}

/* Datos de facturación del checkout. */
.billing-request {
  margin: 20px 0;
  border: 1px solid #e0c8d3;
  background: #fffafd;
  padding: 17px;
}
.billing-toggle {
  display: flex !important;
  align-items: flex-start;
  gap: 11px !important;
  cursor: pointer;
}
.billing-toggle input {
  width: auto !important;
  margin-top: 3px;
}
.billing-toggle span {
  display: grid;
  gap: 3px;
}
.billing-toggle small {
  color: #806875;
  font-size: 10px;
  font-weight: 400;
}
.billing-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 15px;
}
.billing-fields[hidden] {
  display: none;
}
.billing-fields label:last-child {
  grid-column: 1 / -1;
}

/* Administración de métricas y facturación. */
.insights-loading {
  display: flex;
  align-items: center;
  gap: 10px;
}
.insights-columns {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 18px;
}
.insight-status {
  display: block;
  width: max-content;
  border-radius: 20px;
  background: #e9f2e5;
  padding: 4px 8px;
  color: #52704d;
  font-size: 10px;
  font-weight: 700;
}
.insight-status.alert {
  background: #f7dfda;
  color: #a14938;
}
.data-table td small {
  display: block;
  margin-top: 4px;
  color: #88727d;
  font-size: 10px;
  line-height: 1.4;
}
.data-table td select {
  border: 1px solid #d6bec9;
  background: #fff;
  padding: 8px;
  color: var(--ink);
  font: 11px "Nunito", sans-serif;
}
.invoice-warning {
  line-height: 1.55;
}
.arca-link {
  color: var(--clay);
  font-size: 11px;
  font-weight: 700;
}
.invoice-fields {
  display: grid;
  grid-template-columns: 90px 75px 1fr 1fr;
  gap: 7px;
  min-width: 520px;
}
.invoice-fields input,
.invoice-fields select {
  min-width: 0;
  border: 1px solid #d6bec9;
  padding: 8px;
  background: #fff;
  font: 11px "Nunito", sans-serif;
}
.invoice-fields label {
  display: grid;
  gap: 3px;
  font-size: 9px;
}
.save-invoice,
.print-receipt {
  display: block;
  width: 100%;
  margin-bottom: 7px;
  border: 1px solid #d1a8ba;
  background: #fff;
  padding: 8px;
  color: var(--clay);
  font: 700 10px "Nunito", sans-serif;
  cursor: pointer;
  white-space: nowrap;
}

/* Páginas legales independientes. */
.legal-document-page {
  background: #fff8fb;
}
.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 980px;
  margin: auto;
  padding: 25px 28px;
}
.legal-header > a:last-child {
  color: var(--clay);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.legal-shell {
  max-width: 820px;
  margin: 0 auto;
  padding: 55px 28px 85px;
}
.legal-shell h1 {
  margin-bottom: 8px;
  font: 600 49px "Fraunces", serif;
}
.legal-updated {
  margin-bottom: 30px;
  color: #8d7480;
  font-size: 11px;
}
.legal-warning {
  margin-bottom: 35px;
  border-left: 4px solid #c2833e;
  background: #fff2dd;
  padding: 18px 20px;
}
.legal-warning strong {
  display: block;
  margin-bottom: 4px;
}
.legal-warning p {
  color: #765b3d;
  font-size: 12px;
  line-height: 1.5;
}
.legal-shell section {
  margin-top: 30px;
  border-top: 1px solid #ead8e1;
  padding-top: 22px;
}
.legal-shell section h2 {
  margin-bottom: 10px;
  font-size: 25px;
}
.legal-shell section p {
  color: #654f5a;
  line-height: 1.75;
  font-size: 14px;
}
.legal-shell section a:not(.primary-button) {
  color: var(--clay);
}
.legal-shell section .primary-button {
  margin-top: 18px;
}
.legal-footer {
  min-height: 0;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  padding: 27px;
}

body.product-mode .reviews-section,
body.product-mode .withdrawal-section {
  display: none;
}

@media (max-width: 900px) {
  .reviews-layout,
  .withdrawal-section,
  .insights-columns {
    grid-template-columns: 1fr;
  }
  .withdrawal-section {
    gap: 35px;
  }
}

@media (max-width: 760px) {
  .site-header #desktop-navigation,
  .site-header .header-orders {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }
  .site-header {
    flex-wrap: nowrap;
    gap: 9px;
  }
  .site-header > .brand {
    min-width: 0;
  }
  .site-header .brand-name {
    display: none;
  }
  .site-header .header-actions {
    gap: 5px;
  }
  .reviews-section,
  .withdrawal-section {
    padding: 65px 20px;
  }
  .reviews-heading {
    display: grid;
    gap: 15px;
  }
  .reviews-average {
    justify-self: start;
    text-align: left;
  }
  .reviews-list {
    grid-template-columns: 1fr;
  }
  .withdrawal-copy h2 {
    font-size: 35px;
  }
  .withdrawal-page-main {
    padding: 45px 20px 65px;
  }
  .withdrawal-page-main .withdrawal-section {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .withdrawal-page-main .withdrawal-copy h1 {
    font-size: 38px;
  }
  .billing-fields {
    grid-template-columns: 1fr;
  }
  .billing-fields label:last-child {
    grid-column: auto;
  }
  .footer-legal {
    display: grid;
  }
  .confirmation-box {
    padding: 36px 23px;
  }
  .legal-shell {
    padding-top: 35px;
  }
  .legal-shell h1 {
    font-size: 38px;
  }
  .legal-header .brand-name {
    display: none;
  }
  .legal-footer {
    display: grid;
    text-align: center;
  }
}
body.admin-mode .admin-side {
  min-height: 100vh;
  padding-top: 35px;
}
body.admin-mode .admin-content {
  padding-top: 125px;
}
body.admin-mode .logout-side {
  margin-top: auto;
  align-self: stretch;
  border-top: 1px solid #6b4535;
  padding: 22px 12px 6px;
}
@media (max-width: 900px) {
  body.admin-mode .site-header {
    left: 230px;
    padding-left: 28px;
    padding-right: 28px;
  }
  body.admin-mode .site-header nav {
    display: none;
  }
  body.admin-mode .admin-content {
    padding-top: 115px;
  }
}
@media (max-width: 760px) {
  body.admin-mode .site-header {
    display: none;
  }
  body.admin-mode .admin-side {
    min-height: auto;
    padding-top: 18px;
  }
  body.admin-mode .admin-content {
    padding-top: 45px;
  }
  body.admin-mode .logout-side {
    margin-top: 0;
    padding: 12px;
    border-top: 0;
  }
}
/* Estado de la conexión con MySQL. Solo aparece cuando requiere atención. */
.database-status {
  position: sticky;
  top: 0;
  z-index: 2000;
  padding: 0.7rem 1rem;
  background: #fff2cc;
  color: #6f4d00;
  border-bottom: 1px solid #e5c76b;
  text-align: center;
  font-weight: 700;
}

.database-status.error {
  background: #ffe6e1;
  color: #802d22;
  border-bottom-color: #e9aaa0;
}

/* Cotización y gestión de envíos con MiCorreo. */
.shipping-address-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.shipping-address-fields label:last-child {
  grid-column: 1 / -1;
}
.shipping-address-fields select {
  width: 100%;
  border: 1px solid #d9c7b4;
  padding: 12px;
  background: #fff;
  color: var(--ink);
  font: 14px "Nunito", sans-serif;
}
.shipping-estimate .shipping-provider,
.shipping-estimate > b,
.shipping-estimate > small {
  display: block;
}
.shipping-estimate > b {
  margin: 5px 0 3px;
  color: #557049;
  font-size: 19px;
}
.shipping-estimate > small {
  color: #765f52;
  font-size: 11px;
}
.shipping-warning {
  color: #a15b24 !important;
}
.shipment-admin {
  display: grid;
  gap: 7px;
  min-width: 230px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid #ead8ca;
  border-radius: 10px;
  background: #fffaf6;
}
.shipping-integration-notice a {
  color: inherit;
  text-decoration: underline;
}
.shipment-admin > small,
.shipment-note {
  color: #765f52;
  font-size: 10px;
  line-height: 1.35;
}
.shipment-badge {
  width: max-content;
  padding: 4px 7px;
  border-radius: 999px;
  background: #f8e5d9;
  color: #94492f;
  font-size: 10px;
  font-weight: 800;
}
.shipment-badge.ready {
  background: #e5f0df;
  color: #557049;
}
.create-shipment,
.micorreo-link,
.tracking-label button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 7px;
  padding: 8px 10px;
  background: #5d733f;
  color: #fff;
  font: 700 11px "Nunito", sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.create-shipment:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.tracking-label {
  display: grid;
  gap: 5px;
  color: #765f52;
  font-size: 10px;
  font-weight: 700;
}
.tracking-label div {
  display: flex;
}
.tracking-label input {
  min-width: 0;
  flex: 1;
  border: 1px solid #ddc9bc;
  border-radius: 7px 0 0 7px;
  padding: 8px;
  font: 11px "Nunito", sans-serif;
}
.tracking-label button {
  border-radius: 0 7px 7px 0;
}
@media (max-width: 760px) {
  .shipping-address-fields {
    grid-template-columns: 1fr;
  }
  .shipping-address-fields label:last-child {
    grid-column: auto;
  }
}

.missing-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.missing-product {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #ead8ca;
  border-radius: 14px;
  background: #fffaf6;
}

.missing-product img,
.request-admin-image {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
}

.missing-product > i {
  width: 64px;
  color: var(--clay);
  font-size: 28px;
  text-align: center;
}

.missing-product div,
.request-kind + small {
  display: grid;
  gap: 4px;
}

.missing-product span,
.requests-table small {
  color: #765f52;
  font-size: 12px;
}

.request-kind {
  display: inline-block;
  margin-bottom: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f5dfec;
  color: #6e3154;
  font-size: 11px;
  font-weight: 800;
}

.request-kind.stock {
  background: #ffe4d7;
  color: #91401f;
}

.whatsapp-order {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: #187747;
  font-size: 12px;
  font-weight: 800;
}

.delivery-date-label {
  display: grid;
  gap: 4px;
  margin-top: 9px;
  color: #765f52;
  font-size: 11px;
  font-weight: 700;
}

.delivery-date-label input {
  min-width: 145px;
  padding: 7px;
  border: 1px solid #ddc9bc;
  border-radius: 8px;
  background: #fff;
}
