/* ALE STORE — paleta "Nude elegante" */
:root {
  --cream: #F8F4EF;
  --sand: #E8DCCB;
  --sand-2: #DCCBB4;
  --card: #F1E9DE;
  --ink: #1A1A1A;
  --muted: #5C534A;
  --gold: #C9A96E;      /* solo decorativo */
  --gold-dark: #6B4F22; /* textos dorados (buen contraste) */
  --line: #D8CBB8;
  --radius: 24px;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Poppins', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--gold-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.eyebrow { display: block; font-size: 12px; letter-spacing: 4px; font-weight: 600; color: var(--gold-dark); margin-bottom: 8px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-weight: 500; font-size: 15px; padding: 15px 28px; border-radius: 999px; min-height: 44px; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { color: #fff; background: #333; }
.btn--outline { border: 1px solid var(--ink); }
.btn--sm { padding: 11px 20px; font-size: 14px; }

/* Header */
.header { position: sticky; top: 0; z-index: 20; background: rgba(248, 244, 239, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--sand); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.logo { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; gap: 2px; }
.logo__main { font-family: var(--serif); font-size: 28px; font-weight: 700; letter-spacing: 10px; padding-left: 10px; color: var(--ink); }
.logo__sub { font-size: 10px; letter-spacing: 6px; color: var(--gold-dark); font-weight: 500; }
.logo--light .logo__main { color: var(--cream); }
.logo--light .logo__sub { color: var(--gold); }
.nav { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 500; }
.nav a:not(.btn) { text-decoration: none; }

/* Hero */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(40px, 6vw, 62px); line-height: 1.05; }
.hero p { font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 440px; margin: 20px 0 0; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero__images { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hero__img { height: 420px; border-radius: var(--radius); background: var(--sand); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--gold-dark); }
.hero__img--b { background: var(--sand-2); margin-top: 56px; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
.ph-icon { width: 72px; height: 72px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* Categorías */
.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; padding-bottom: 80px; }
.cat { cursor: pointer; border: none; text-align: left; height: 230px; border-radius: var(--radius); padding: 34px; display: flex; flex-direction: column; justify-content: space-between; font-family: inherit; transition: transform .2s ease; }
.cat:hover { transform: translateY(-3px); }
.cat > span { display: flex; flex-direction: column; gap: 6px; }
.cat--dark { background: var(--ink); color: var(--cream); }
.cat--light { background: var(--sand); color: var(--ink); }
.cat__icon { width: 54px; height: 50px; fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.cat--dark .cat__icon { stroke: var(--gold); }
.cat--light .cat__icon { stroke: var(--gold-dark); }
.cat__title { font-family: var(--serif); font-size: 36px; font-weight: 600; }
.cat__sub { font-size: 14px; opacity: .85; }

/* Catálogo */
.catalog { background: #fff; padding: 72px 0 88px; scroll-margin-top: 70px; }
.catalog__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.catalog h2, .how h2 { font-size: clamp(32px, 4vw, 44px); }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.tab { cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 500; padding: 11px 22px; min-height: 44px; border-radius: 999px; background: transparent; color: var(--ink); border: 1px solid var(--line); }
.tab.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px; }
.card { display: flex; flex-direction: column; gap: 12px; opacity: 0; transform: translateY(12px); animation: fadeUp .5s ease forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
.card__media { position: relative; aspect-ratio: 1 / 1; border-radius: 20px; background: var(--card); overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--gold-dark); }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s ease; }
.card__media img.alt { opacity: 0; }
.card__media:hover img.alt { opacity: 1; }
.badge { position: absolute; top: 14px; left: 14px; z-index: 2; font-size: 10px; letter-spacing: 1.5px; font-weight: 600; padding: 6px 10px; border-radius: 999px; }
.badge--nuovo { background: var(--ink); color: #fff; }
.badge--ultimi { background: var(--gold-dark); color: #fff; }
.badge--esaurito { background: #fff; color: var(--muted); }
.card__cat { font-size: 11px; letter-spacing: 2px; font-weight: 600; color: var(--gold-dark); }
.card__name { font-size: 16px; font-weight: 500; }
.card__price { font-size: 16px; font-weight: 600; }
.card__info { display: flex; flex-direction: column; gap: 4px; }
.sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.size { font-size: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 4px 9px; color: #3D3630; }
.card .btn { padding: 13px 16px; font-size: 14px; margin-top: auto; }
.soldout { text-align: center; background: #EDE7DF; color: var(--muted); padding: 13px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; }
.is-soldout .card__media img { filter: grayscale(.6); opacity: .7; }

.empty { text-align: center; max-width: 460px; margin: 20px auto 0; padding: 48px 28px; border-radius: var(--radius); background: var(--cream); color: var(--gold-dark); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.empty[hidden] { display: none; }
.empty h3 { font-size: 28px; color: var(--ink); }
.empty p { margin: 0; color: var(--muted); line-height: 1.6; }

/* Cómo ordenar */
.how { padding-top: 88px; padding-bottom: 88px; scroll-margin-top: 70px; }
.how__head { text-align: center; margin-bottom: 44px; }
.how__steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.step { background: #fff; border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.step__n { font-family: var(--serif); font-size: 40px; color: var(--gold-dark); }
.step__t { font-size: 18px; font-weight: 600; }
.step__d { font-size: 14px; line-height: 1.6; color: var(--muted); }

/* Footer */
.footer { background: var(--ink); color: var(--cream); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 44px; padding-bottom: 44px; }
.footer__tag { font-size: 14px; color: #D8CFC4; }
.footer__link { color: var(--cream); text-decoration: none; font-size: 14px; }
.footer__link:hover { color: var(--gold); }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 30; width: 60px; height: 60px; border-radius: 999px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(26, 26, 26, .25); transition: transform .15s ease; }
.wa-float:hover { color: #fff; transform: scale(1.06); }

/* Celular */
@media (max-width: 720px) {
  .nav a:not(.btn) { display: none; }
  .logo__main { font-size: 22px; letter-spacing: 7px; padding-left: 7px; }
  .logo__sub { font-size: 8px; letter-spacing: 4px; }
  .hero { gap: 28px; padding-top: 32px; padding-bottom: 32px; }
  .hero__img { height: 240px; }
  .hero__img--b { margin-top: 32px; }
  .cats { grid-template-columns: 1fr 1fr; gap: 12px; padding-bottom: 32px; }
  .cat { height: 130px; padding: 18px; border-radius: 20px; }
  .cat__title { font-size: 22px; }
  .cat__sub { display: none; }
  .cat__icon { width: 40px; height: 36px; }
  .catalog { padding: 40px 0 56px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 18px 12px; }
  .card__name { font-size: 13px; }
  .card__price { font-size: 14px; }
  .card .btn, .soldout { padding: 11px 8px; font-size: 12px; }
  .badge { top: 10px; left: 10px; font-size: 9px; padding: 5px 8px; }
  .how { padding-top: 56px; padding-bottom: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { animation: none; opacity: 1; transform: none; }
}

/* Selector de idioma */
.lang { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang__btn { cursor: pointer; font-family: inherit; font-size: 12px; font-weight: 600; letter-spacing: 1px; color: var(--muted); background: transparent; border: none; border-radius: 999px; min-width: 40px; min-height: 36px; padding: 0 8px; }
.lang__btn:hover { color: var(--ink); }
.lang__btn.is-active { background: var(--ink); color: #fff; }
@media (max-width: 720px) {
  .nav { gap: 10px; }
  .nav .btn--sm span { display: none; }
  .nav .btn--sm { padding: 11px 13px; }
  .lang__btn { min-width: 34px; font-size: 11px; }
}

/* Aviso de vista previa (solo mientras CONFIG.demo = true) */
.demo-banner { background: var(--gold-dark); color: #fff; text-align: center; font-size: 13px; font-weight: 500; padding: 9px 16px; }
.demo-banner[hidden] { display: none; }
