:root {
  --ink: #31303a;
  --muted: #706d78;
  --paper: #fffaf6;
  --shell: #fbe9e4;
  --rose: #f7aebe;
  --mint: #a7dbc8;
  --lilac: #c8b9ee;
  --honey: #f4d77b;
  --sky: #b8dff2;
  --line: rgba(49, 48, 58, 0.14);
  --shadow: 0 24px 70px rgba(69, 54, 74, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 54px);
  background: rgba(255, 250, 246, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.site-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: Fraunces, Georgia, ui-serif, serif;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-action {
  justify-self: end;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.88fr);
  gap: clamp(30px, 6vw, 84px);
  align-items: center;
  min-height: calc(100svh - 72px);
  padding: clamp(42px, 7vw, 92px) clamp(18px, 6vw, 82px) 42px;
  background:
    linear-gradient(115deg, rgba(248, 195, 203, 0.45), transparent 36%),
    linear-gradient(28deg, rgba(167, 219, 200, 0.45), transparent 38%),
    var(--paper);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #8a6472;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: Fraunces, Georgia, serif;
  line-height: 0.98;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 8vw, 6.8rem);
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2.1rem, 4.6vw, 4.2rem);
}

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

.hero-text,
.section-heading p,
.craft-copy p,
.order-copy p {
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.7;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius);
  padding: 0 20px;
  cursor: pointer;
  font-weight: 800;
}

.button-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 12px 28px rgba(49, 48, 58, 0.2);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
}

.hero-visual {
  position: relative;
  min-height: 480px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #ffe5df, #dff5ec 58%, #efe7ff);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
}

.hero-note {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 4px;
  min-width: 180px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: var(--radius);
  background: rgba(255, 250, 246, 0.78);
  backdrop-filter: blur(16px);
}

.price {
  font-weight: 900;
}

.ticker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
  background: #fff4ef;
}

.ticker span {
  min-height: 62px;
  display: grid;
  place-items: center;
  padding: 12px;
  border-right: 1px solid var(--line);
  color: #6d5961;
  font-weight: 800;
  text-align: center;
}

.section {
  padding: clamp(58px, 9vw, 112px) clamp(18px, 6vw, 82px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.product-grid {
  display: flex;
  overflow-x: auto; /* Permite el desplazamiento horizontal */
  gap: 20px; /* Espaciado entre las tarjetas */
  padding: 10px 0; /* Espaciado superior e inferior */
  scroll-snap-type: x mandatory; /* Alineación al desplazarse */
}

.product-card {
  flex: 0 0 auto; /* Asegura que las tarjetas no se reduzcan */
  scroll-snap-align: center; /* Alinea las tarjetas al centro al desplazarse */
  width: 400px; /* Ancho fijo para las tarjetas */
  height: auto; /* Ajusta la altura automáticamente */
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 42px rgba(69, 54, 74, 0.08);
}

.product-card img {
  width: 100%;
  height: 300px; /* Ajusta la altura de las imágenes */
  object-fit: cover; /* Asegura que las imágenes mantengan proporción */
  background: #f8eee9;
}

.product-info {
  display: grid;
  gap: 22px;
  padding: 20px;
}

.product-info p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-weight: 900;
}

.icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.craft {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  background: #eef8f2;
}

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

.craft-image img {
  width: 100%;
  aspect-ratio: 0.95;
  object-fit: cover;
}

.craft-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.craft-points span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  font-weight: 800;
}

.customize {
  background: #fffaf6;
}

.customizer {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 420px);
  gap: 18px;
}

.preview-panel,
.controls-panel,
.order-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.preview-panel {
  min-height: 420px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(200, 185, 238, 0.36), transparent),
    linear-gradient(25deg, rgba(244, 215, 123, 0.34), transparent),
    #fff7f2;
}

.bag-preview {
  --bag-color: #f7aebe;
  --bag-scale: 1;
  position: relative;
  width: calc(210px * var(--bag-scale));
  height: calc(250px * var(--bag-scale));
}

.preview-handle {
  position: absolute;
  inset: 0 18% auto;
  height: 42%;
  border: 18px solid #5a4a55;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}

.preview-body {
  position: absolute;
  inset: 26% 0 0;
  border-radius: 30px 30px 18px 18px;
  background: var(--bag-color);
  box-shadow: inset 0 -24px rgba(0, 0, 0, 0.08), 0 28px 44px rgba(49, 48, 58, 0.16);
}

.preview-flap {
  position: absolute;
  left: 14%;
  right: 14%;
  top: 42%;
  height: 22%;
  border-radius: 0 0 40px 40px;
  background: rgba(255, 255, 255, 0.34);
  border: 2px solid rgba(255, 255, 255, 0.42);
}

.controls-panel {
  display: grid;
  align-content: start;
  gap: 24px;
  padding: 24px;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend,
.toggle {
  margin-bottom: 12px;
  font-weight: 900;
}

.swatches,
.segmented {
  display: flex;
  gap: 10px;
}

.swatch {
  width: 46px;
  height: 46px;
  border: 3px solid transparent;
  border-radius: 50%;
  background: var(--swatch);
  cursor: pointer;
}

.swatch.is-active {
  border-color: var(--ink);
}

.segmented {
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff7f2;
}

.segmented button {
  flex: 1;
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.segmented button.is-active {
  background: var(--ink);
  color: var(--paper);
}

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

.toggle input {
  width: 20px;
  height: 20px;
  accent-color: var(--ink);
}

.full {
  width: 100%;
}

.order {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 1fr);
  gap: clamp(28px, 6vw, 72px);
  background: #f4eefc;
}

.mini-cart {
  margin-top: 26px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
  font-weight: 800;
}

.order-form {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 28px);
}

.order-form label {
  display: grid;
  gap: 8px;
  color: #554f5b;
  font-weight: 800;
}

.order-form input,
.order-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  background: #fffdfb;
  color: var(--ink);
  resize: vertical;
}

.form-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  justify-content: space-between;
  padding: 26px clamp(18px, 6vw, 82px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.hero-actions,
/* General styles */
.swatches,
.segmented,
.site-footer {
align-items: stretch;
flex-direction: column;
}

.button {
width: 100%;
}

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

.section {
padding-inline: 14px;
}

/* Fabric carousel styles */
.fabric-carousel {
display: flex;
overflow-x: auto;
scroll-snap-type: x mandatory;
gap: 1rem;
padding: 1rem 0;
}

.fabric-card {
flex: 0 0 auto;
scroll-snap-align: center;
width: 150px; /* Ajusta el tamaño según sea necesario */
height: 150px;
}

.fabric-card img {
width: 100%;
height: 100%;
object-fit: cover; /* Asegura que las imágenes mantengan proporción */
border-radius: 8px; /* Opcional: bordes redondeados */
}

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

  .main-nav {
    display: none;
  }

  .hero,
  .craft,
  .customizer,
  .order {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 360px;
  }

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

@media (max-width: 620px) {
  .site-header {
    padding-inline: 14px;
  }

  .brand span:last-child {
    display: none;
  }

  .nav-action {
    padding-inline: 13px;
  }

  .hero {
    padding-inline: 14px;
  }

  h1 {
    font-size: clamp(2.55rem, 15vw, 4rem);
  }


}