:root {
  --ink: #1f241d;
  --muted: #68645d;
  --paper: #fbf7ed;
  --panel: #ffffff;
  --line: #e6ddce;
  --forest: #154f34;
  --leaf: #2f7a4f;
  --rose: #c96f78;
  --clay: #9d523f;
  --shadow: 0 18px 48px rgba(44, 37, 25, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(251, 247, 237, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 900; color: var(--forest); }
.brand img { width: 48px; height: 48px; object-fit: cover; border: 1px solid var(--line); border-radius: 50%; }
.brand span { font-size: 1.08rem; }
.site-nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 26px); color: var(--muted); font-size: 0.95rem; font-weight: 800; }
.site-nav a:hover { color: var(--forest); }
.cart-link { display: inline-flex; align-items: center; gap: 8px; }
.cart-link span {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  padding: 0 7px;
  color: #fff;
  background: var(--forest);
  border-radius: 999px;
  font-size: 0.8rem;
}
.menu-button { display: none; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); padding: 10px 14px; font-weight: 800; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(320px, 0.78fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  min-height: min(760px, calc(100vh - 73px));
  padding: clamp(30px, 5vw, 64px) clamp(18px, 4vw, 56px);
}
.hero-media { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-showcase {
  background:
    radial-gradient(circle at 6% 16%, rgba(201, 111, 120, 0.12), transparent 28%),
    radial-gradient(circle at 92% 72%, rgba(47, 122, 79, 0.12), transparent 28%);
}
.collage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 620px;
  padding: clamp(18px, 3vw, 34px);
  background: linear-gradient(145deg, #fff, #f4eadb);
}
.collage img {
  border: 1px solid rgba(230, 221, 206, 0.9);
  border-radius: 8px;
  box-shadow: 0 24px 46px rgba(44, 37, 25, 0.18);
}
.collage-main {
  width: 70%;
  height: auto;
  min-height: 0 !important;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  animation: softFloat 7s ease-in-out infinite;
}
.collage-side {
  position: absolute;
  width: 34%;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.collage-side-top {
  top: 34px;
  left: 28px;
  transform: rotate(-5deg);
}
.collage-side-bottom {
  right: 28px;
  bottom: 34px;
  transform: rotate(5deg);
}
.floating-label {
  position: absolute;
  right: 22px;
  top: 22px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--forest);
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(44, 37, 25, 0.12);
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}
.hero-stats span {
  display: grid;
  gap: 4px;
  min-height: 86px;
  align-content: center;
  padding: 14px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted);
  font-size: 0.88rem;
}
.hero-stats strong {
  color: var(--forest);
  font-size: 1.42rem;
}
.hero-copy { max-width: 740px; }
.eyebrow { margin: 0 0 12px; color: var(--leaf); font-size: 0.78rem; font-weight: 900; letter-spacing: 0; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: "Playfair Display", Georgia, serif; line-height: 0.98; }
h1 { margin-bottom: 22px; font-size: clamp(2.8rem, 5.6vw, 5.7rem); }
h2 { margin-bottom: 14px; font-size: clamp(2.1rem, 4.8vw, 4.7rem); }
h3 { margin-bottom: 8px; font-size: 1.1rem; }
.hero-copy p, .split-section > div > p, .page-intro p, .empty-cart p { max-width: 620px; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.18rem); line-height: 1.75; }
.hero-actions, .cart-actions, .checkout-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-slider {
  position: relative;
  min-height: clamp(410px, 54vw, 610px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(245, 236, 221, 0.72)),
    var(--paper);
}
.slider-card {
  position: absolute;
  inset: 22px;
  opacity: 0;
  transform: translateX(34px) scale(0.96) rotate(1deg);
  transition: opacity 600ms ease, transform 600ms ease;
}
.slider-card.is-active {
  opacity: 1;
  transform: translateX(0) scale(1) rotate(0deg);
}
.slider-card img {
  width: 100%;
  height: calc(100% - 54px);
  max-height: 500px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
}
.slider-card span {
  display: inline-flex;
  margin-top: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--forest);
  font-weight: 900;
}
.slider-dots {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: flex;
  gap: 7px;
}
.slider-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(21, 79, 52, 0.24);
}
.slider-dots .is-active {
  width: 24px;
  border-radius: 999px;
  background: var(--forest);
}

.button, .icon-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}
.button { padding: 12px 18px; }
.button.primary { color: #fff; background: var(--forest); border-color: var(--forest); }
.button.secondary { color: var(--ink); background: #fff; }
.button.danger { color: #fff; background: var(--clay); border-color: var(--clay); }
.icon-button { width: 38px; height: 38px; background: #fff; color: var(--ink); }

.feature-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.feature-strip div { display: grid; gap: 8px; min-height: 132px; align-content: center; padding: 24px clamp(18px, 4vw, 42px); background: #fff; }
.feature-strip span, .product-card p, .detail-copy p, .site-footer p, .summary-row { color: var(--muted); line-height: 1.55; }
.section, .page-section, .split-section { padding: clamp(52px, 8vw, 108px) clamp(18px, 4vw, 56px); }
.section-heading, .catalog-controls { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.text-link { color: var(--forest); font-weight: 900; }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product-card { overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 28px rgba(44, 37, 25, 0.08); }
.product-card {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(21, 79, 52, 0.32);
  box-shadow: 0 24px 48px rgba(44, 37, 25, 0.14);
}
.product-card img { width: 100%; aspect-ratio: 1 / 1; max-height: 360px; object-fit: cover; background: #f3eee4; }
.product-card a img {
  transition: transform 420ms ease, filter 420ms ease;
}
.product-card:hover a img {
  transform: scale(1.035);
  filter: saturate(1.06) contrast(1.03);
}
.product-card-body { display: grid; gap: 10px; padding: 18px; }
.product-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { color: var(--forest); font-weight: 900; }
.badge { display: inline-flex; align-items: center; width: fit-content; min-height: 26px; padding: 4px 10px; border-radius: 999px; background: #eef5ed; color: var(--forest); font-size: 0.78rem; font-weight: 900; }
.card-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.animated-grid .product-card {
  animation: cardIn 520ms ease both;
}
.animated-grid .product-card:nth-child(2) { animation-delay: 80ms; }
.animated-grid .product-card:nth-child(3) { animation-delay: 160ms; }
.animated-grid .product-card:nth-child(4) { animation-delay: 240ms; }

.mood-board {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr 0.9fr;
  gap: 12px;
  padding: 16px clamp(18px, 4vw, 56px);
  border-block: 1px solid var(--line);
  background: #fff;
}
.mood-board img {
  width: 100%;
  height: clamp(150px, 18vw, 260px);
  object-fit: cover;
  border-radius: 8px;
  animation: imageBreath 7s ease-in-out infinite;
}
.mood-board img:nth-child(2) { animation-delay: 600ms; }
.mood-board img:nth-child(3) { animation-delay: 1200ms; }
.mood-board img:nth-child(4) { animation-delay: 1800ms; }
.mini-gallery {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 1fr;
  gap: 12px;
  padding: 0 clamp(18px, 4vw, 56px) 16px;
}
.mini-gallery img {
  width: 100%;
  height: clamp(120px, 18vw, 240px);
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(44, 37, 25, 0.1);
}
.mini-gallery img:nth-child(2) {
  transform: translateY(22px);
}

.split-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 0.86fr); gap: clamp(28px, 5vw, 74px); align-items: start; background: #fff; border-block: 1px solid var(--line); }
.steps { display: grid; gap: 12px; }
.steps article { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.steps span { grid-row: span 2; display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--rose); color: #fff; font-weight: 900; }
.steps p { margin: 0; color: var(--muted); }

.page-intro { display: grid; gap: 12px; padding: clamp(42px, 7vw, 90px) clamp(18px, 4vw, 56px) 20px; }
.catalog-controls { align-items: center; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-button { border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); padding: 9px 13px; cursor: pointer; font-weight: 800; }
.filter-button.is-active { color: #fff; background: var(--forest); border-color: var(--forest); }
.detail-layout { display: grid; grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1fr); gap: clamp(26px, 5vw, 70px); align-items: start; }
.detail-image { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
.detail-image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.detail-copy { display: grid; gap: 18px; }
.detail-list { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
.detail-list li { padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }

.cart-layout, .checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: 22px; align-items: start; }
.cart-list, .order-summary, .checkout-form, .empty-cart { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.cart-item { display: grid; grid-template-columns: 92px 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: 0; }
.cart-item img { width: 92px; height: 112px; object-fit: cover; border-radius: 8px; }
.quantity-control { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; }
.summary-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.summary-row.total { color: var(--ink); border-bottom: 0; font-size: 1.18rem; font-weight: 900; }
.checkout-form { display: grid; gap: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--ink); font-weight: 800; }
.field input, .field textarea, .field select { width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); padding: 11px 12px; }
.field textarea { min-height: 110px; resize: vertical; }
.notice { padding: 14px; border: 1px solid #d8c79c; border-radius: 8px; background: #fff8df; color: #654d16; line-height: 1.55; }
.payment-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(21, 79, 52, 0.08), transparent),
    #fff;
}
.payment-panel h2 {
  margin-bottom: 8px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}
.payment-panel p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}
.paypal-box:empty::before {
  content: "Pendiente de configurar PayPal";
  display: block;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
}

.site-footer { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 22px; padding: 34px clamp(18px, 4vw, 56px); border-top: 1px solid var(--line); background: #fff; }
.site-footer p { margin: 8px 0 0; }
[hidden] { display: none !important; }
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 650ms ease, transform 650ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .menu-button { display: inline-flex; }
  .site-header { align-items: flex-start; flex-wrap: wrap; }
  .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-top: 10px; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 0; border-top: 1px solid var(--line); }
  .hero, .split-section, .detail-layout, .cart-layout, .checkout-layout, .site-footer { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-slider { min-height: 430px; }
  .collage { min-height: 500px; }
  .feature-strip, .product-grid { grid-template-columns: 1fr; }
  .hero-stats, .mini-gallery, .mood-board { grid-template-columns: 1fr; }
  .mini-gallery img:nth-child(2) { transform: none; }
}

@media (max-width: 560px) {
  h1 { font-size: clamp(2.55rem, 16vw, 4.2rem); }
  .section-heading, .catalog-controls { display: grid; align-items: start; }
  .hero-actions, .cart-actions, .checkout-actions { flex-direction: column; }
  .button { width: 100%; }
  .cart-item { grid-template-columns: 74px 1fr; }
  .cart-item img { width: 74px; height: 92px; }
  .cart-item > .icon-button { grid-column: 2; width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
}

@keyframes softFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1.4deg); }
}

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

@keyframes ribbonMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes imageBreath {
  0%, 100% { transform: translateY(0) scale(1); filter: saturate(1); }
  50% { transform: translateY(-6px) scale(1.018); filter: saturate(1.08); }
}
