:root {
  --bg: #ffffff;
  --card: #ffffff;
  --text: #1d1d1d;
  --muted: #757575;
  --accent: #141414;
  --accent-dark: #000000;
  --border: #ededed;
  /* Sticky header: .nav min-height 72px + 1px border */
  --topbar-stack-height: 73px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  min-height: 100vh;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  z-index: 10;
}

/* === Fondo de página (figuras UOMI) === */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.page-bg svg {
  width: 100%;
  height: 100%;
  display: block;
}

.page-bg-pattern {
  color: #000;
  opacity: 0.085;
}

.page-bg-pattern.is-shop {
  opacity: 0.07;
}

/* Home: figuras animadas repartidas (no cuadrícula, tamaños distintos) */
.page-bg-home {
  color: #000;
}

.home-fig {
  position: absolute;
  line-height: 0;
  pointer-events: none;
}

.home-fig svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.home-fig .fig-root,
.home-fig .fig-upper {
  transition: transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
}

@media (prefers-reduced-motion: reduce) {
  .home-fig .fig-root,
  .home-fig .fig-upper {
    transition: none;
  }
}

.home-fig .fig-upper {
  transition: transform 0.2s cubic-bezier(0.34, 1.2, 0.64, 1);
}

@media (prefers-reduced-motion: reduce) {
  .home-fig .fig-upper {
    transition: none;
  }
}

/* 1 · balanceo piernas — grande, abajo derecha */
.home-fig--1 {
  right: clamp(2%, 5vw, 7%);
  bottom: clamp(5%, 9vh, 12%);
  width: clamp(128px, 19vw, 218px);
  opacity: 0.1;
}

/* 2 · reservado — pequeño, arriba izquierda */
.home-fig--2 {
  left: clamp(2%, 4vw, 6%);
  top: calc(var(--topbar-stack-height) + clamp(0.25rem, 1.5vh, 2rem));
  width: clamp(88px, 11vw, 132px);
  opacity: 0.075;
}

/* 3 · ballet — justo debajo de «pieces» en el titular (con hueco) */
.home-fig--3 {
  left: clamp(14rem, 32%, 24rem);
  top: calc(
    var(--topbar-stack-height) + 78px + 1.5rem + 3.6rem + 1.15rem
  );
  width: clamp(96px, 12vw, 158px);
  opacity: 0.1;
}

@media (max-width: 720px) {
  .home-fig--3 {
    left: clamp(10rem, 42vw, 16rem);
    right: auto;
    top: calc(var(--topbar-stack-height) + 76px + 10rem + 1rem);
    width: clamp(80px, 22vw, 120px);
  }
}

/* 4 · brazos + plié + pierna L — pequeño, fondo fijo abajo izquierda */
.home-fig--4 {
  left: clamp(2%, 4vw, 6%);
  bottom: clamp(2.5%, 5vh, 7%);
  width: clamp(68px, 8.5vw, 104px);
  opacity: 0.075;
}

/* 5 · caída libre hacia la O de UOMI (posición vía JS) */
.section-welcome {
  position: relative;
}

.section-welcome .home-fig--5 {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 5;
  width: clamp(28px, 3.5vw, 44px);
  color: var(--text);
  opacity: 1;
  pointer-events: none;
  will-change: transform, clip-path;
}

.section-welcome .section-title-row {
  position: relative;
  z-index: 2;
}

.section-welcome h2 {
  font-size: clamp(2.25rem, 10vw, 4.5rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-welcome .welcome-uomi-o {
  display: inline-block;
  vertical-align: baseline;
  position: relative;
  z-index: 2;
}

/* Rellena el hueco interno de la O con negro (proporciones = O_HOLE: cx.50 cy.50 rx.28 ry.30) */
.section-welcome .welcome-uomi-o::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 22%;
  right: 22%;
  bottom: 20%;
  background: currentColor;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .section-welcome .home-fig--5 {
    display: none;
  }
}

/* Figura gigante para la página Contact
   El fondo debe empezar DEBAJO del topbar (z-index del header tapaba la cabeza).
   overflow visible conserva el drop-shadow. */
.page-bg.page-bg-contact {
  overflow: visible;
  inset: var(--topbar-stack-height) 0 0 0;
}
.page-bg-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.page-bg-contact svg {
  width: auto;
  height: auto;
  max-width: min(96vw, 100%);
  max-height: 100%;
  color: #000;
  opacity: 0.18;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.18));
}

/* Aseguramos que el contenido vaya por encima del fondo fijo */
main {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
}

.footer {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  margin-top: auto;
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  text-decoration: none;
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

nav {
  display: flex;
  gap: 16px;
  margin-left: auto;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

nav a:hover {
  color: var(--text);
}


.hero {
  padding: 78px 0 48px;
}

.hero-content {
  max-width: 720px;
}

.hero-title {
  margin-bottom: 14px;
}

.kicker {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: #8f8f8f;
}

h1,
h2,
h3 {
  font-family: Inter, Arial, sans-serif;
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.15rem);
  line-height: 1.06;
  margin-bottom: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero p,
.hero-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.cta {
  display: inline-block;
  margin-top: 28px;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
}

.cta:hover {
  background: var(--accent-dark);
}

.section {
  padding: 20px 0 56px;
}

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

.section-title-row p {
  margin: 0;
  color: var(--muted);
}

.products {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
}

.card:nth-child(1),
.card:nth-child(4) {
  grid-column: span 7;
}

.card:nth-child(2),
.card:nth-child(3) {
  grid-column: span 5;
}

.card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.card-body {
  padding: 14px;
}

.card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.card-body p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 12px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.card-footer span {
  font-weight: 700;
}


.shop-empty {
  margin-top: 32px;
  padding: 56px 28px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
}

.shop-empty p {
  margin: 0;
}

/* === Animación de entrada en About (figura -> letras UOMI verticales) === */
.about-anim {
  position: relative;
  /* Shorter than 220vh: less scroll before morph / letters react (p advances faster). */
  height: 155vh;
  height: 155dvh;
  background: #fff;
}

.about-anim-sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  height: calc(100dvh - 72px);
  /* Guard against zero usable height during iOS toolbar relayout / RM quirks */
  min-height: 240px;
  /* avoid overflow:hidden on sticky: breaks pinning / scroll sync on some mobile WebKit */
  overflow: visible;
}

.about-anim-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about-anim-svg {
  width: auto;
  height: 96%;
  max-width: 92vw;
  display: block;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.14));
}

.about-anim-svg .anim-figure-group {
  color: #111;
}

/* Draw fill after stroke so a growing outline does not muddy the interior on
   the small head ellipse before the body reads the same (matches body-full). */
.about-anim-svg [data-part="head"],
.about-anim-svg [data-part="body-full"] {
  paint-order: stroke fill;
}

/* The .anim-part nodes are driven by JS via SVG attributes (transform,
   points, cx, cy, rx, ry, d, stroke-width, fill-opacity, opacity). We
   intentionally do NOT add CSS transforms here so we don't override the
   default SVG transform-origin (top-left), which is what setAttribute()
   uses. */

.about-anim-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: var(--hint-op, 1);
  transition: opacity 0.4s ease;
}

@media (prefers-reduced-motion: reduce) {
  /* Keep the same scroll extent and sticky layout as default so the figure ↔
     UOMI animation still runs identically on phones with Reduce Motion. */
  .about-anim-hint {
    transition: none;
  }
}

.about {
  background: #fafafa;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-wrap {
  max-width: 720px;
}

.about p,
.contact p {
  color: var(--muted);
  margin-top: 10px;
}

.about-prose {
  text-align: justify;
  text-align-last: justify;
  hyphens: auto;
}

.contact a {
  color: #111;
}

/* === Página de Contact === */
.contact-page main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--topbar-stack-height) - 56px);
  padding: 40px 20px;
}

.contact-card {
  position: relative;
  z-index: 2;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  padding: 36px 40px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.contact-card h2 {
  font-size: 1.55rem;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.contact-card p {
  margin: 8px 0;
  color: var(--text);
  font-size: 1.02rem;
}

.contact-card a {
  color: #111;
  font-weight: 600;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 18px 0;
}

.footer p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 960px) {
  .products {
    grid-template-columns: repeat(2, 1fr);
  }

  .card:nth-child(1),
  .card:nth-child(2),
  .card:nth-child(3),
  .card:nth-child(4) {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .nav {
    flex-wrap: nowrap;
    justify-content: space-between;
    padding: 12px 0;
  }

  .products {
    grid-template-columns: 1fr;
  }

  .section-title-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ═══════════════════════════════════════════════════
   SHOP — product grid
═══════════════════════════════════════════════════ */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 8px;
}

.shop-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.shop-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.shop-card-img {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #f8f3ec 0%, #ede0cc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
}

.shop-card-img img {
  width: 72%;
  height: 88%;
  object-fit: contain;
  transition: transform 0.34s ease;
}

.shop-card:hover .shop-card-img img {
  transform: scale(1.04);
}

.shop-card-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.shop-card-type {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.shop-card-body h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.shop-card-desc {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0 0 16px;
  line-height: 1.5;
  flex: 1;
}

.shop-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.shop-card-price {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}


.btn-buy-now {
  display: inline-flex;
  align-items: center;
  background: #111;
  color: #fff;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s;
}

.btn-buy-now:hover {
  background: #333;
}

.sold-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.success-card {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  padding-top: 48px;
  padding-bottom: 48px;
}

.success-card h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.6rem, 4vw, 2rem);
  margin-bottom: 14px;
}

.success-card p {
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.6;
}


@media (max-width: 800px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .shop-grid { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════════════════
   NEWSLETTER POPUP
═══════════════════════════════════════════════════ */
#nl-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease;
}

#nl-overlay.nl-visible {
  opacity: 1;
  pointer-events: auto;
}

#nl-popup {
  background: #fff;
  border-radius: 22px;
  padding: 40px 36px 30px;
  max-width: 460px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  position: relative;
  text-align: center;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.16);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.34s cubic-bezier(0.34, 1.2, 0.64, 1);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

#nl-overlay.nl-visible #nl-popup {
  transform: translateY(0) scale(1);
}

#nl-close {
  position: sticky;
  float: right;
  top: 0;
  background: none;
  border: none;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  padding: 5px 9px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  z-index: 2;
}

#nl-close:hover {
  background: var(--border);
  color: var(--text);
}

#nl-icon {
  width: 58px;
  height: 58px;
  margin: 10px auto 24px;
  color: var(--text);
  clear: both;
}

#nl-popup h2 {
  font-size: 1.38rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

#nl-popup > p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 18px;
  line-height: 1.5;
}

#nl-form {
  display: flex;
  flex-direction: column;
  gap: 9px;
  text-align: left;
}

/* Two-column row (email + name) */
.nl-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

/* Shared base: inputs + selects */
#nl-form input[type="email"],
#nl-form input[type="text"],
#nl-form input[type="date"],
#nl-form select {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 0.18s;
  box-sizing: border-box;
}

#nl-form input[type="email"]:focus,
#nl-form input[type="text"]:focus,
#nl-form input[type="date"]:focus,
#nl-form select:focus {
  border-color: #888;
}

#nl-form input::placeholder {
  color: #b8b8b8;
}

/* Select — custom chevron arrow */
#nl-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 36px;
  cursor: pointer;
}

/* Grey-out placeholder option */
#nl-form select option[value=""] {
  color: #b8b8b8;
}

/* Date of birth: labelled field wrapper */
.nl-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nl-label {
  font-size: 0.77rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.03em;
  padding-left: 2px;
}

#nl-form input[type="date"] {
  cursor: pointer;
}

/* Submit button */
#nl-form button[type="submit"] {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 0.94rem;
  font-weight: 600;
  font-family: Inter, Arial, sans-serif;
  cursor: pointer;
  transition: background 0.18s;
  letter-spacing: 0.01em;
  margin-top: 2px;
  width: 100%;
}

#nl-form button[type="submit"]:hover:not(:disabled) {
  background: #333;
}

#nl-form button[type="submit"]:disabled {
  opacity: 0.55;
  cursor: default;
}

#nl-status {
  min-height: 1.25em;
  font-size: 0.85rem;
  margin: 8px 0 0;
  text-align: center;
}

#nl-status.nl-success { color: #2d7a2d; }
#nl-status.nl-info    { color: #5a6a8a; }
#nl-status.nl-error   { color: #b83232; }

#nl-skip {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.8rem;
  font-family: Inter, Arial, sans-serif;
  cursor: pointer;
  padding: 6px 10px;
  margin-top: 6px;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s;
}

#nl-skip:hover {
  color: var(--text);
}

@media (max-width: 520px) {
  #nl-popup {
    padding: 32px 18px 24px;
    border-radius: 18px;
  }

  .nl-row {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   Language switcher
══════════════════════════════════════════════════════════════════════════ */
.lang-switcher {
  position: relative;
  margin-left: 10px;
  flex-shrink: 0;
}

.lang-btn {
  background: none;
  border: 1.5px solid var(--border);
  color: var(--muted);
  font-family: Inter, Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  line-height: 1;
}

.lang-btn:hover,
.lang-switcher.lang-open .lang-btn {
  border-color: var(--text);
  color: var(--text);
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.10);
  list-style: none;
  margin: 0;
  padding: 5px;
  min-width: 130px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 100;
}

.lang-switcher.lang-open .lang-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.lang-menu li {
  list-style: none;
}

.lang-option {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: Inter, Arial, sans-serif;
  font-size: 0.875rem;
  color: var(--muted);
  padding: 8px 13px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.12s, color 0.12s;
}

.lang-option:hover {
  background: var(--border);
  color: var(--text);
}

.lang-option.lang-active {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 600px) {
  .lang-btn {
    font-size: 0.68rem;
    padding: 4px 9px;
  }
}
