/* The Rose — sistema visual
   Editorial neutro: cremas cálidos, negro suave, acento rosa polvo. */

:root {
  --bg: #faf7f3;
  --bg-2: #f2ece5;
  --surface: #ffffff;
  --ink: #221d1a;
  --ink-2: #5a4f48;
  --muted: #8c8078;
  --line: #e6ddd3;
  --line-strong: #d5c8bb;
  --rose: #b4796b;
  --rose-dark: #8f5a4c;
  --shadow: 0 1px 2px rgba(34, 29, 26, 0.04), 0 8px 24px rgba(34, 29, 26, 0.06);

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1180px;
  --radius: 3px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--rose-dark); text-decoration: none; }
a:hover { color: var(--ink); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Encabezado / perfil ---------- */

.site-head {
  padding: 44px 0 28px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}

.avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 18px;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(38px, 11vw, 60px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
  margin: 0 0 4px;
}

.brand-sub {
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
  font-weight: 400;
}

.bio {
  max-width: 30em;
  margin: 0 auto 22px;
  color: var(--ink-2);
  font-size: 16px;
  text-wrap: pretty;
}

.socials {
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
}

.socials a {
  color: var(--ink-2);
  display: inline-flex;
  padding: 6px;
  transition: color 0.18s ease, transform 0.18s ease;
}
.socials a:hover { color: var(--rose-dark); transform: translateY(-2px); }
.socials svg { width: 21px; height: 21px; }

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 13px 26px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { background: var(--rose-dark); border-color: var(--rose-dark); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.btn-sm { min-height: 40px; padding: 9px 16px; font-size: 11px; }

/* ---------- Filtros de categoría ---------- */

.filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 22px 20px;
  scrollbar-width: none;
  justify-content: flex-start;
  -webkit-overflow-scrolling: touch;
}
.filters::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.18s ease;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

@media (min-width: 720px) {
  .filters { justify-content: center; flex-wrap: wrap; overflow: visible; }
}

/* ---------- Grid de looks ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-bottom: 56px;
}

@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }

.card {
  display: flex;
  flex-direction: column;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

.card-media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-2);
  border-radius: var(--radius);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.card:hover .card-media img { transform: scale(1.035); }

.card-count {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(250, 247, 243, 0.94);
  color: var(--ink);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}

.card-title {
  margin: 10px 2px 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
  font-weight: 400;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: pretty;
}

.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 20px;
  color: var(--muted);
}

/* ---------- Detalle del look ---------- */

.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(34, 29, 26, 0.42);
  backdrop-filter: blur(3px);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }

.sheet {
  position: fixed;
  z-index: 50;
  background: var(--surface);
  overflow-y: auto;
  overscroll-behavior: contain;
  inset: auto 0 0 0;
  max-height: 92vh;
  border-radius: 14px 14px 0 0;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 -8px 40px rgba(34, 29, 26, 0.18);
}
.sheet.open { transform: translateY(0); }

@media (min-width: 860px) {
  .sheet {
    inset: 50% auto auto 50%;
    width: min(940px, 92vw);
    max-height: 88vh;
    border-radius: var(--radius);
    transform: translate(-50%, -46%);
    opacity: 0;
    transition: opacity 0.22s ease, transform 0.22s ease;
  }
  .sheet.open { transform: translate(-50%, -50%); opacity: 1; }
}

.sheet-close {
  position: sticky;
  top: 0;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  padding: 10px;
  background: linear-gradient(180deg, var(--surface) 60%, rgba(255, 255, 255, 0));
}

.icon-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.icon-btn:hover { background: var(--bg-2); }

.sheet-body { padding: 0 20px 32px; }

@media (min-width: 860px) {
  .sheet-body {
    display: grid;
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    gap: 32px;
    padding: 0 32px 36px;
    align-items: start;
  }
}

.sheet-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--bg-2);
}

.sheet-title {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 500;
  line-height: 1.2;
  margin: 18px 0 8px;
  text-wrap: pretty;
}
@media (min-width: 860px) { .sheet-title { margin-top: 0; } }

.sheet-caption {
  color: var(--ink-2);
  font-size: 14px;
  margin: 0 0 22px;
  white-space: pre-line;
  text-wrap: pretty;
}

.pieces-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}

/* Rejilla de productos: cada prenda es una tarjeta con su foto */
.pieces {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

@media (min-width: 520px) { .pieces { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 860px) { .pieces { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }

.piece {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--ink);
  border-radius: var(--radius);
  transition: transform 0.2s ease;
}
.piece:hover { color: var(--ink); }
.piece:hover .piece-thumb img { transform: scale(1.04); }
.piece:hover .piece-go { color: var(--ink); border-color: var(--ink); }

.piece-thumb {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 8px;
}
.piece-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.piece-name {
  font-size: 12.5px;
  line-height: 1.4;
  font-weight: 300;
  color: var(--ink-2);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: pretty;
}

.piece-go {
  margin-top: auto;
  align-self: flex-start;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose-dark);
  transition: color 0.18s ease, border-color 0.18s ease;
}

.sheet-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Secciones ---------- */

.section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.section-title {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  margin: 0 0 18px;
  text-align: center;
}

.about {
  display: grid;
  gap: 28px;
  align-items: center;
  max-width: 880px;
  margin: 0 auto;
}
@media (min-width: 760px) { .about { grid-template-columns: 200px minmax(0, 1fr); gap: 40px; } }

.about img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto;
  border: 1px solid var(--line-strong);
}

.about p { color: var(--ink-2); margin: 0 0 14px; text-wrap: pretty; }

.lookbook {
  text-align: center;
  background: var(--bg-2);
  border-radius: var(--radius);
  padding: 44px 24px;
  margin: 0 auto;
  max-width: 700px;
}
.lookbook p { color: var(--ink-2); max-width: 34em; margin: 0 auto 22px; text-wrap: pretty; }

/* ---------- Pie ---------- */

.site-foot {
  border-top: 1px solid var(--line);
  padding: 34px 0 44px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.site-foot .disclosure {
  max-width: 44em;
  margin: 0 auto 16px;
  font-size: 12px;
  line-height: 1.6;
}

.skeleton {
  background: linear-gradient(90deg, var(--bg-2) 25%, #ece4da 50%, var(--bg-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
