/* Más Bonita Cosméticos — sitio informativo */

:root {
  --ink: #2b1f33;
  --ink-soft: #6b5d73;
  --night: #1c1422;
  --night-2: #261b2e;
  --violet: #9900cc;
  --violet-soft: #c79be0;
  --lilac: #f4eef7;
  --ivory: #fbf8f6;
  --line: #e7dfe9;
  --white: #fff;

  --serif: "Italiana", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 300 16px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: .01em; margin: 0; }
h1 em, h2 em { font-style: normal; }
h2 { font-size: clamp(2.2rem, 4.4vw, 3.2rem); }
h3 { font-size: 1.6rem; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 1rem;
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .95rem 1.8rem;
  border: 1px solid var(--violet);
  background: var(--violet);
  color: var(--white);
  font: 400 .8rem/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn:hover { background: #7d00a8; border-color: #7d00a8; }
.btn--sm { padding: .7rem 1.2rem; font-size: .72rem; }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.35); }
.btn--ghost:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.btn--light { background: var(--white); color: var(--night); border-color: var(--white); }
.btn--light:hover { background: var(--lilac); border-color: var(--lilac); }
.btn--ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.3); }
.btn--ghost-light:hover { background: rgba(255,255,255,.08); border-color: #fff; }

.link-arrow {
  display: inline-block; margin-top: 2rem;
  font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; color: var(--violet);
  border-bottom: 1px solid currentColor; padding-bottom: .3rem;
}
.link-arrow::after { content: " →"; transition: margin .3s var(--ease); }
.link-arrow:hover::after { margin-left: .3rem; }

/* Navegación */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.nav.is-solid { background: rgba(28, 20, 34, .92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--white); }
.nav__brand span { font-family: var(--serif); font-size: 1.35rem; letter-spacing: .04em; }
.nav__menu { display: flex; align-items: center; gap: 2.2rem; }
.nav__menu a:not(.btn) {
  color: rgba(255,255,255,.8); text-decoration: none;
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  transition: color .3s;
}
.nav__menu a:not(.btn):hover { color: var(--white); }
.nav__toggle { display: none; }

@media (max-width: 860px) {
  .nav__toggle {
    display: flex; flex-direction: column; gap: 7px;
    background: none; border: 0; padding: 10px; cursor: pointer;
  }
  .nav__toggle span { width: 24px; height: 1px; background: var(--white); transition: transform .3s var(--ease); }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav__menu {
    position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--night); padding: .5rem var(--gutter) 1.5rem;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
  }
  .nav.is-open { background: var(--night); }
  .nav.is-open .nav__menu { transform: none; opacity: 1; pointer-events: auto; }
  .nav__menu a:not(.btn) { padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav__menu .btn { margin-top: 1.2rem; }
}

/* Portada */
.hero {
  position: relative; overflow: hidden;
  background: var(--night);
  color: var(--white);
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px 0 90px;
}
.hero__glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 20% 30%, rgba(153, 0, 204, .32), transparent 70%),
    radial-gradient(50% 45% at 85% 80%, rgba(199, 155, 224, .14), transparent 70%);
  pointer-events: none;
}
.hero__in { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero__logo { width: min(560px, 86vw); height: auto; margin-bottom: 3rem; filter: drop-shadow(0 10px 40px rgba(0,0,0,.35)); }
.hero .eyebrow { color: var(--violet-soft); }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 4.2rem); max-width: 22ch; }
.hero h1 em { font-style: normal; color: var(--violet-soft); }
.hero__lead { max-width: 52ch; margin-top: 1.6rem; color: rgba(255,255,255,.72); }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; margin-top: 2.6rem; }

/* Pilares */
.pillars { border-bottom: 1px solid var(--line); background: var(--white); }
.pillars__in { display: grid; grid-template-columns: repeat(3, 1fr); }
.pillar { padding: 3rem 2rem 3rem 0; }
.pillar + .pillar { padding-left: 2rem; border-left: 1px solid var(--line); }
.pillar__n { font-family: var(--serif); color: var(--violet); font-size: 1.1rem; }
.pillar h3 { margin: .4rem 0 .6rem; }
.pillar p { color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 760px) {
  .pillars__in { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 2rem 0; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid var(--line); }
}

/* Secciones */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section--tint { background: var(--lilac); }
.section--dark { background: var(--night); color: var(--white); }
.section--dark .eyebrow { color: var(--violet-soft); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto clamp(48px, 6vw, 72px); }
.section__lead { color: var(--ink-soft); margin-top: 1rem; }

/* Categorías */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cat { background: var(--ivory); padding: 2.6rem 2rem; display: flex; flex-direction: column; transition: background .4s var(--ease); }
.cat:hover { background: var(--white); }
.cat__icon svg { width: 40px; height: 40px; fill: none; stroke: var(--violet); stroke-width: 1.2; stroke-linejoin: round; stroke-linecap: round; }
.cat h3 { margin: 1.6rem 0 .7rem; }
.cat p { color: var(--ink-soft); font-size: .95rem; flex: 1; }
.cat__brands { margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .74rem; letter-spacing: .08em; color: var(--ink); }
@media (max-width: 980px) { .cats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cats { grid-template-columns: 1fr; } }

/* Marcas */
.brands {
  list-style: none; margin: 0 auto; padding: 0; max-width: 1040px;
  display: flex; flex-wrap: wrap; justify-content: center;
}
.brands li {
  flex: 0 0 calc(100% / 7);
  aspect-ratio: 3 / 2;
  display: flex; align-items: center; justify-content: center;
  padding: 1.2rem;
}
.brands img {
  max-height: 54px; max-width: 100%; width: auto; height: auto; object-fit: contain;
  opacity: .62; transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.brands li:hover img { opacity: 1; transform: scale(1.04); }
@media (max-width: 1080px) { .brands li { flex-basis: 20%; } }
@media (max-width: 760px) { .brands li { flex-basis: calc(100% / 3); padding: 1rem; } .brands img { max-height: 42px; } }
@media (max-width: 420px) { .brands li { flex-basis: 50%; } }

/* Profesionales */
.pro { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.pro h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.pro__text > p:not(.eyebrow) { color: var(--ink-soft); margin-top: 1.4rem; }
.pro__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pro__list li {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.3rem 0; border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-size: 1.35rem;
}
.pro__list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--violet); flex: none; }
@media (max-width: 820px) { .pro { grid-template-columns: 1fr; } }

/* Sucursales */
.stores { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.store {
  border: 1px solid rgba(255,255,255,.12);
  background: var(--night-2);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  border-radius: var(--radius);
}
.store__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.store h3 { font-size: 1.9rem; }
.status {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  padding: .4rem .8rem; border-radius: 99px;
  border: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.7);
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #8a7f90; }
.status.is-open { color: #c9f2d6; border-color: rgba(120, 220, 160, .35); }
.status.is-open::before { background: #5fd38d; box-shadow: 0 0 0 4px rgba(95, 211, 141, .18); }
.store__hours { margin: 2rem 0; }
.store__hours div { display: flex; justify-content: space-between; padding: .8rem 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.store__hours dt { color: rgba(255,255,255,.6); }
.store__hours dd { margin: 0; }
.store__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 820px) { .stores { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .store__actions .btn { width: 100%; } }

/* Pie */
.footer { background: var(--night); color: rgba(255,255,255,.5); border-top: 1px solid rgba(255,255,255,.08); }
.footer__in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding-top: 2.4rem; padding-bottom: 2.4rem; }
.footer__logo { width: 150px; height: auto; }
.footer__copy { font-size: .8rem; letter-spacing: .06em; }
.footer__staff { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: rgba(255,255,255,.4); }
.footer__staff:hover { color: var(--white); }
@media (max-width: 640px) { .footer__in { flex-direction: column; text-align: center; } }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  transition: transform .3s var(--ease);
}
.wa-float:hover { transform: translateY(-3px); }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }

/* Aparición suave */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
