@font-face {
  font-family: "Demo Display";
  src: url("../fonts/PlayfairDisplay-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Demo Sans";
  src: url("../fonts/Inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Demo Sans";
  src: url("../fonts/Inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --fondo: #fbf7ef;
  --papel: #fffdf8;
  --papel-calido: #f4ece0;
  --texto: #241a14;
  --texto-suave: #5f5045;
  --texto-muted: #928170;
  --linea: rgba(36, 26, 20, 0.14);
  --linea-suave: rgba(36, 26, 20, 0.08);
  --barro: #a6452a;
  --barro-profundo: #7c2f1f;
  --cochinilla: #b6204d;
  --anil: #173c4f;
  --cempasuchil: #d89422;
  --nopal: #55724a;
  --danger: #a83232;
  --header-height: 74px;
  --nav-height: 74px;
  --radius: 2px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  padding: 0;
}

body {
  background:
    linear-gradient(90deg, rgba(36, 26, 20, 0.025) 0 1px, transparent 1px 100%),
    var(--fondo);
  background-size: 36px 36px;
  color: var(--texto);
  font-family: "Demo Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3 {
  color: var(--texto);
  font-family: "Demo Display", Georgia, serif;
  font-weight: 700;
  line-height: 1.06;
  margin: 0;
}

p {
  line-height: 1.58;
  margin: 0;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

#app-header {
  align-items: center;
  background: rgba(251, 247, 239, 0.94);
  border-bottom: 1px solid var(--linea);
  display: flex;
  gap: 8px;
  height: var(--header-height);
  left: 0;
  margin: 0 auto;
  max-width: 480px;
  padding: 0 18px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

.header-title {
  color: var(--texto);
  flex: 1;
  font-family: "Demo Display", Georgia, serif;
  font-size: 1.72rem;
  font-weight: 700;
  line-height: 1;
  min-width: 0;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-btn {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--texto);
  display: flex;
  flex: 0 0 38px;
  height: 38px;
  justify-content: center;
  padding: 0;
  position: relative;
  width: 38px;
}

.icon-btn svg {
  height: 22px;
  width: 22px;
}

.icon-btn:active {
  color: var(--barro);
}

#app-main {
  background: var(--fondo);
  margin: 0 auto;
  max-width: 480px;
  min-height: 100vh;
  padding: calc(var(--header-height) + 24px) 22px calc(var(--nav-height) + 92px);
}

.screen {
  display: none;
}

.screen.active {
  animation: fadeIn 0.18s ease-out;
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-intro {
  padding: 4px 0 22px;
}

.screen-intro {
  border-bottom: 1px solid var(--linea);
  margin-bottom: 24px;
  padding: 4px 0 20px;
}

.screen-intro h1 {
  font-size: 2.08rem;
  margin-top: 10px;
}

.screen-intro p {
  color: var(--texto-suave);
  font-size: 0.94rem;
  margin-top: 14px;
}

.kicker,
.product-card-eyebrow,
.variant-label,
.field-label,
.service-kicker {
  color: var(--texto-muted);
  font-family: "Demo Sans", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.home-intro h1 {
  font-size: 2.2rem;
  margin-top: 10px;
  max-width: 10.8ch;
}

.home-story {
  color: var(--texto-suave);
  font-size: 0.93rem;
  margin-top: 16px;
  max-width: 36ch;
}

.hero {
  border-radius: var(--radius);
  margin: 0 -6px 24px;
  overflow: hidden;
  position: relative;
}

.hero img {
  aspect-ratio: 4 / 5;
  filter: saturate(0.96) contrast(1.03);
  height: auto;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.hero-overlay {
  background: linear-gradient(0deg, rgba(36, 26, 20, 0.76), rgba(36, 26, 20, 0.05) 72%);
  bottom: 0;
  left: 0;
  padding: 22px 20px;
  position: absolute;
  right: 0;
}

.hero-label-row {
  align-items: baseline;
  display: flex;
  gap: 10px;
}

.hero-label {
  color: var(--papel);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.accent-underline {
  background: var(--barro);
  display: block;
  height: 2px;
  margin-top: 10px;
  width: 38px;
}

.info-row {
  align-items: stretch;
  border-bottom: 1px solid var(--linea);
  border-top: 1px solid var(--linea);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.35fr) 1px minmax(102px, 0.72fr);
  margin-bottom: 30px;
  padding: 18px 0;
}

.info-row .story {
  color: var(--texto-suave);
  font-size: 0.84rem;
}

.divider-v {
  background: var(--linea);
  width: 1px;
}

.shipping-note {
  align-items: center;
  color: var(--texto);
  display: flex;
  font-size: 0.78rem;
  font-weight: 600;
  gap: 9px;
}

.shipping-note svg {
  color: var(--barro);
  flex: 0 0 24px;
  height: 24px;
  width: 24px;
}

.section-header {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-title {
  font-size: 1.55rem;
}

.link-accent,
.story-banner-link {
  align-items: center;
  background: none;
  border: 0;
  color: var(--barro-profundo);
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 600;
  gap: 8px;
  padding: 0;
}

.link-accent svg {
  height: 17px;
  width: 28px;
}

.product-grid {
  display: grid;
  gap: 30px 16px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 28px;
}

.compact-grid {
  margin-bottom: 24px;
}

.product-card {
  background: transparent;
  border: 0;
  color: inherit;
  padding: 0;
  text-align: left;
}

.product-card img {
  aspect-ratio: 1 / 1.12;
  border-radius: var(--radius);
  filter: saturate(0.98) contrast(1.04);
  margin-bottom: 12px;
  object-fit: cover;
  width: 100%;
}

.product-card:active img {
  opacity: 0.9;
}

.product-card-eyebrow-row,
.eyebrow-row {
  align-items: center;
  display: flex;
  gap: 7px;
  margin-bottom: 5px;
}

.cat-dot {
  background: var(--barro);
  border-radius: 999px;
  flex: none;
  height: 6px;
  width: 6px;
}

.product-card[data-category="mujer"] .cat-dot,
.eyebrow-row[data-category="mujer"] .cat-dot {
  background: var(--cempasuchil);
}

.product-card[data-category="hombre"] .cat-dot,
.eyebrow-row[data-category="hombre"] .cat-dot {
  background: var(--anil);
}

.product-card[data-category="casa"] .cat-dot,
.eyebrow-row[data-category="casa"] .cat-dot {
  background: var(--nopal);
}

.product-card-name {
  color: var(--texto);
  font-family: "Demo Display", Georgia, serif;
  font-size: 1.18rem;
  line-height: 1.16;
  margin-bottom: 5px;
}

.product-card-technique {
  color: var(--texto-muted);
  font-size: 0.78rem;
  margin-bottom: 10px;
}

.product-card-price {
  color: var(--texto);
  font-size: 0.9rem;
  font-weight: 600;
}

.story-banner {
  align-items: flex-end;
  border-radius: var(--radius);
  display: flex;
  min-height: 205px;
  margin: 8px -6px 24px;
  overflow: hidden;
  position: relative;
}

.service-strip {
  border-bottom: 1px solid var(--linea);
  border-top: 1px solid var(--linea);
  display: grid;
  gap: 0;
  margin: 8px 0 28px;
}

.service-item {
  padding: 18px 0;
}

.service-item + .service-item {
  border-top: 1px solid var(--linea);
}

.service-item h3,
.process-grid h3 {
  font-size: 1.18rem;
  margin: 6px 0 8px;
}

.service-item p,
.process-grid p,
.tour-panel p {
  color: var(--texto-suave);
  font-size: 0.88rem;
}

.editorial-image {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  filter: saturate(0.96) contrast(1.03);
  margin: 0 -6px 22px;
  max-width: calc(100% + 12px);
  object-fit: cover;
  width: calc(100% + 12px);
}

.wide-image {
  aspect-ratio: 4 / 3;
}

.about-copy {
  border-bottom: 1px solid var(--linea);
  border-top: 1px solid var(--linea);
  color: var(--texto-suave);
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
  padding: 18px 0;
}

.process-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
}

.process-grid article,
.tour-panel,
.product-service-panel {
  background: rgba(255, 253, 248, 0.62);
  border: 1px solid var(--linea);
  padding: 16px;
}

.tour-panel h2 {
  font-size: 1.55rem;
  margin: 8px 0 10px;
}

.story-banner img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
  z-index: 0;
}

.story-banner::after {
  background: linear-gradient(100deg, rgba(36, 26, 20, 0.86), rgba(36, 26, 20, 0.18));
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.story-banner-content {
  color: var(--papel);
  padding: 22px;
  position: relative;
  z-index: 2;
}

.story-banner-content h2 {
  color: var(--papel);
  font-size: 1.65rem;
  max-width: 12ch;
}

.story-banner-link {
  color: var(--papel);
  display: block;
  margin-top: 16px;
}

.catalog-filter-block {
  border-bottom: 1px solid var(--linea);
  margin: -4px 0 24px;
  padding-bottom: 18px;
}

.filter-label {
  color: var(--texto-muted);
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.segment-row {
  background: rgba(255, 253, 248, 0.62);
  border: 1px solid var(--linea);
  border-radius: 999px;
  display: grid;
  gap: 3px;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 18px;
  padding: 3px;
}

.segment-btn {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--texto-suave);
  font-size: 0.82rem;
  font-weight: 600;
  min-height: 36px;
  padding: 0 8px;
}

.segment-btn.active {
  background: var(--texto);
  color: var(--fondo);
}

.chip-row {
  display: flex;
  gap: 9px;
  margin: 0 -22px 0;
  overflow-x: auto;
  padding: 0 22px 5px;
}

.chip {
  background: transparent;
  border: 1px solid var(--linea);
  border-radius: 999px;
  color: var(--texto-suave);
  flex: none;
  font-size: 0.82rem;
  font-weight: 600;
  min-height: 34px;
  padding: 7px 15px;
}

.chip.active {
  background: var(--texto);
  border-color: var(--texto);
  color: var(--fondo);
}

.product-image-large {
  aspect-ratio: 1 / 1.12;
  border-radius: var(--radius);
  filter: saturate(0.98) contrast(1.04);
  margin: -4px -6px 22px;
  max-width: calc(100% + 12px);
  object-fit: cover;
  width: calc(100% + 12px);
}

.product-detail {
  border-top: 1px solid var(--linea);
  padding-top: 18px;
}

.product-detail h2 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.price {
  color: var(--barro-profundo);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.muted {
  color: var(--texto-muted);
  font-size: 0.84rem;
}

.description {
  color: var(--texto-suave);
  font-size: 0.96rem;
  margin-top: 18px;
}

.product-service-panel {
  display: grid;
  gap: 12px;
  margin: 18px 0 20px;
}

.mini-service + .mini-service {
  border-top: 1px solid var(--linea);
  padding-top: 12px;
}

.mini-service p {
  color: var(--texto-suave);
  font-size: 0.84rem;
  margin-top: 4px;
}

.variant-row,
.qty-row {
  margin: 20px 0;
}

.variant-label,
.field-label {
  display: block;
  margin-bottom: 9px;
}

.variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.variant-btn {
  background: var(--papel);
  border: 1px solid var(--linea);
  border-radius: 999px;
  color: var(--texto);
  font-weight: 600;
  min-height: 42px;
  min-width: 48px;
  padding: 0 14px;
}

.variant-btn.selected {
  background: var(--texto);
  border-color: var(--texto);
  color: var(--fondo);
}

.qty-stepper {
  align-items: center;
  background: var(--papel);
  border: 1px solid var(--linea);
  border-radius: 999px;
  display: inline-flex;
  gap: 14px;
  min-height: 46px;
  padding: 5px 12px;
}

.qty-btn {
  align-items: center;
  background: var(--papel-calido);
  border: 0;
  border-radius: 50%;
  color: var(--texto);
  display: flex;
  font-size: 1.08rem;
  font-weight: 700;
  height: 32px;
  justify-content: center;
  width: 32px;
}

#qty-value,
.cart-item-controls .qty-stepper span {
  display: inline-block;
  font-weight: 600;
  min-width: 18px;
  text-align: center;
}

.btn-primary,
.btn-secondary {
  border-radius: var(--radius);
  font-size: 0.94rem;
  font-weight: 600;
  min-height: 52px;
  padding: 13px 20px;
}

.btn-primary {
  background: var(--texto);
  border: 1px solid var(--texto);
  color: var(--fondo);
}

.btn-primary:active {
  background: #38291f;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--linea);
  color: var(--texto);
}

.btn-block {
  display: block;
  margin-top: 14px;
  width: 100%;
}

.feedback {
  color: var(--nopal);
  font-size: 0.86rem;
  font-weight: 600;
  margin-top: 12px;
  text-align: center;
}

.empty-state {
  border: 1px solid var(--linea);
  background: rgba(255, 253, 248, 0.58);
  padding: 42px 20px;
  text-align: center;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 22px;
}

.cart-item {
  align-items: center;
  border-bottom: 1px solid var(--linea);
  display: grid;
  gap: 14px;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  padding: 16px 0;
}

.cart-item img {
  aspect-ratio: 1;
  border-radius: var(--radius);
  filter: saturate(0.98) contrast(1.04);
  height: 72px;
  object-fit: cover;
  width: 72px;
}

.cart-item-info {
  min-width: 0;
}

.cart-item-name {
  color: var(--texto);
  font-family: "Demo Display", Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.18;
  margin-bottom: 3px;
}

.cart-item-variant {
  color: var(--texto-muted);
  font-size: 0.77rem;
}

.cart-item-controls {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-top: 9px;
}

.cart-item-controls .qty-stepper {
  min-height: 34px;
  padding: 3px 8px;
}

.cart-item-controls .qty-btn {
  height: 26px;
  width: 26px;
}

.cart-item-remove {
  background: none;
  border: 0;
  color: var(--danger);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px;
}

.cart-item-subtotal {
  color: var(--barro-profundo);
  font-weight: 600;
  white-space: nowrap;
}

.summary-box {
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid var(--linea);
  padding: 18px 16px;
}

.summary-row {
  display: flex;
  font-size: 0.92rem;
  justify-content: space-between;
  margin-bottom: 11px;
}

.summary-row:last-of-type {
  margin-bottom: 0;
}

.summary-row.total {
  border-top: 1px solid var(--linea);
  font-size: 1.08rem;
  font-weight: 700;
  margin-top: 12px;
  padding-top: 12px;
}

.text-input {
  background: var(--papel);
  border: 1px solid var(--linea);
  border-radius: var(--radius);
  color: var(--texto);
  min-height: 50px;
  padding: 0 14px;
  width: 100%;
}

.text-input:focus {
  border-color: var(--barro);
  outline: none;
}

.fine-print {
  color: var(--texto-muted);
  font-size: 0.76rem;
  margin-top: 14px;
}

.thankyou-box {
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid var(--linea);
  padding: 34px 18px;
  text-align: center;
}

.thankyou-check {
  align-items: center;
  background: var(--nopal);
  border-radius: 50%;
  color: var(--papel);
  display: flex;
  font-size: 1.7rem;
  height: 64px;
  justify-content: center;
  margin: 0 auto 18px;
  width: 64px;
}

#bottom-nav {
  background: rgba(251, 247, 239, 0.96);
  border-top: 1px solid var(--linea);
  bottom: 0;
  display: flex;
  height: var(--nav-height);
  left: 0;
  margin: 0 auto;
  max-width: 480px;
  position: fixed;
  right: 0;
  z-index: 20;
}

.nav-btn {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--texto-muted);
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  position: relative;
}

.nav-btn svg {
  height: 21px;
  width: 21px;
}

.nav-btn.active {
  color: var(--texto);
}

.nav-btn.active svg {
  color: var(--barro);
}

.nav-btn.active::before {
  background: var(--barro);
  content: "";
  height: 2px;
  position: absolute;
  top: 0;
  width: 26px;
}

.nav-icon-wrap {
  position: relative;
}

.nav-label {
  font-size: 0.62rem;
  font-weight: 600;
}

.cart-badge {
  align-items: center;
  background: var(--barro);
  border: 2px solid var(--fondo);
  border-radius: 999px;
  color: var(--papel);
  display: flex;
  font-size: 0.62rem;
  font-weight: 700;
  height: 18px;
  justify-content: center;
  min-width: 18px;
  padding: 0 4px;
  position: absolute;
  right: -9px;
  top: -7px;
}

#whatsapp-fab {
  align-items: center;
  background: #1f5d45;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  bottom: calc(var(--nav-height) + 16px);
  box-shadow: 0 10px 26px rgba(36, 26, 20, 0.2);
  color: var(--papel);
  display: flex;
  height: 52px;
  justify-content: center;
  position: fixed;
  right: 16px;
  width: 52px;
  z-index: 25;
}

.wa-overlay {
  align-items: flex-end;
  background: rgba(36, 26, 20, 0.44);
  display: flex;
  inset: 0;
  justify-content: center;
  position: fixed;
  z-index: 40;
}

.wa-chat {
  background: #efe5d5;
  border-radius: 18px 18px 0 0;
  display: flex;
  flex-direction: column;
  height: 82vh;
  max-width: 480px;
  overflow: hidden;
  width: 100%;
}

.wa-header {
  align-items: center;
  background: #16503e;
  color: var(--papel);
  display: flex;
  gap: 10px;
  padding: 12px;
}

.wa-avatar {
  align-items: center;
  background: var(--barro);
  border-radius: 50%;
  color: var(--papel);
  display: flex;
  font-family: "Demo Display", serif;
  font-weight: 700;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.wa-header-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.wa-contact-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.wa-status {
  font-size: 0.75rem;
  opacity: 0.85;
}

.wa-header .icon-btn {
  color: var(--papel);
}

.wa-messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  padding: 14px;
}

.wa-msg {
  animation: fadeIn 0.15s ease-out;
  border-radius: 12px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
  font-size: 0.9rem;
  line-height: 1.38;
  max-width: 78%;
  padding: 9px 12px;
}

.wa-msg.agent {
  align-self: flex-start;
  background: var(--papel);
  border-bottom-left-radius: 3px;
}

.wa-msg.client {
  align-self: flex-end;
  background: #d9f3c7;
  border-bottom-right-radius: 3px;
}

.wa-msg img {
  border-radius: 8px;
  margin-bottom: 6px;
  width: 100%;
}

.wa-msg .wa-cta-btn {
  background: var(--texto);
  border: 0;
  border-radius: var(--radius);
  color: var(--fondo);
  font-weight: 700;
  margin-top: 8px;
  min-height: 40px;
  width: 100%;
}

.wa-typing {
  align-self: flex-start;
  background: var(--papel);
  border-radius: 12px;
  color: var(--texto-muted);
  font-size: 0.85rem;
  padding: 10px 14px;
}

@media (max-width: 380px) {
  #app-main {
    padding-left: 18px;
    padding-right: 18px;
  }

  .home-intro h1 {
    font-size: 1.95rem;
  }

  .product-grid {
    gap: 26px 12px;
  }

  .product-card-name {
    font-size: 1.04rem;
  }

  .cart-item {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .cart-item-subtotal {
    grid-column: 2;
    justify-self: start;
  }
}

@media (min-width: 560px) {
  body {
    background: #e8dfd0;
  }

  #app-main {
    box-shadow: 0 0 0 1px var(--linea), 0 26px 58px rgba(36, 26, 20, 0.18);
  }
}
