/* ===========================================================
   Tienda Rannia — réplica de portafolio
   Paleta beige / nude, tipografía elegante (Cormorant + Jost)
   =========================================================== */

:root {
  --bg:        #f5efe7;
  --cream:     #fbf7f1;
  --line:      #e6dccd;
  --ink:       #3d332b;
  --muted:     #7a6a5c;
  --taupe:     #6e5d50;
  --rose:      #c9a6a0;
  --rose-deep: #b5897f;
  --rose-dark: #9c7068;
  --wa:        #25d366;

  --maxw: 1180px;
  --radius: 14px;
  --shadow: 0 14px 40px rgba(61, 51, 43, .10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Jost", system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 22px;
}

/* ---------- Barra de anuncio ---------- */
.announce {
  background: var(--rose-deep);
  color: var(--cream);
  text-align: center;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 9px 14px;
  display: flex;
  justify-content: center;
  gap: 12px;
}
.announce .dot { opacity: .7; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 247, 241, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 14px;
}
.brand-logo { height: 46px; width: auto; }

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 30px;
}
.primary-nav a {
  font-size: .9rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--taupe);
  transition: color .2s ease;
}
.primary-nav a:hover { color: var(--rose-dark); }

.nav-cta {
  border: 1px solid var(--rose-deep);
  padding: 8px 18px;
  border-radius: 999px;
  color: var(--rose-dark) !important;
  transition: background .2s ease, color .2s ease;
}
.nav-cta:hover {
  background: var(--rose-deep);
  color: var(--cream) !important;
}

/* hamburguesa */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--taupe);
  transition: transform .25s ease, opacity .25s ease;
}

/* ---------- Hero / Carrusel ---------- */
.hero { background: var(--cream); }

.carousel {
  position: relative;
  max-width: 1440px;
  margin-inline: auto;
  overflow: hidden;
}
.slides { position: relative; }
.slide {
  margin: 0;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  inset: 0;
  transition: opacity .7s ease;
}
.slide.is-active {
  opacity: 1;
  visibility: visible;
  position: relative;
}
.slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: rgba(251, 247, 241, .8);
  color: var(--taupe);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s ease;
}
.carousel-arrow:hover { background: var(--cream); }
.carousel-arrow.prev { left: 16px; }
.carousel-arrow.next { right: 16px; }

.carousel-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(251, 247, 241, .6);
  cursor: pointer;
  padding: 0;
  transition: background .2s ease, transform .2s ease;
}
.carousel-dots button.is-active {
  background: var(--cream);
  transform: scale(1.25);
}

/* ---------- Títulos de sección ---------- */
.section-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: .02em;
  text-align: center;
  margin: 0;
  color: var(--ink);
}
.section-eyebrow {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: .76rem;
  color: var(--rose-dark);
  margin: 8px 0 0;
}

/* ---------- Envíos / cinta ---------- */
.shipping { padding-top: 60px; }
.shipping .section-title { margin-bottom: 26px; }
.cinta img {
  width: 100%;
  height: auto;
}

/* ---------- Categorías ---------- */
.categories { padding-block: 70px; }
.categories .section-eyebrow { margin-bottom: 38px; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.cat-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
  box-shadow: var(--shadow);
  aspect-ratio: 1 / 1;
}
.cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.cat-card:hover img { transform: scale(1.06); }
.cat-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 18px 18px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.45rem;
  letter-spacing: .03em;
  color: #fff;
  background: linear-gradient(to top, rgba(61, 51, 43, .7), transparent);
}

/* ---------- Catálogo CTA ---------- */
.catalog-cta {
  background: var(--rose);
  color: var(--cream);
  padding-block: 84px;
}
.catalog-inner { text-align: center; max-width: 760px; }
.hashtag {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 6vw, 3.2rem);
  margin: 0 0 18px;
  letter-spacing: .02em;
}
.catalog-heading {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  line-height: 1.4;
  margin: 0 0 34px;
}
.catalog-heading em { font-style: italic; }

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--cream);
  padding: 15px 34px;
  border-radius: 999px;
  font-size: .82rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover {
  background: #2a221c;
  transform: translateY(-2px);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--cream);
  border-top: 1px solid var(--line);
  padding-block: 56px;
}
.footer-inner { text-align: center; }
.footer-eyebrow {
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: .74rem;
  color: var(--rose-dark);
  margin: 0 0 18px;
}
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 32px;
}
.footer-nav a {
  font-size: .86rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--taupe);
  transition: color .2s ease;
}
.footer-nav a:hover { color: var(--rose-dark); }
.footer-logo { height: 50px; width: auto; margin: 0 auto 22px; }
.copyright {
  font-size: .74rem;
  letter-spacing: .14em;
  color: var(--muted);
  margin: 0;
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, .4);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .primary-nav.is-open { max-height: 320px; }
  .primary-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }
  .primary-nav li { width: 100%; }
  .primary-nav a {
    display: block;
    padding: 14px 22px;
    width: 100%;
  }
  .nav-cta {
    border: 0;
    border-radius: 0;
  }
  .nav-cta:hover { background: transparent; color: var(--rose-dark) !important; }

  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .carousel-arrow { width: 38px; height: 38px; font-size: 1.3rem; }
}

@media (max-width: 520px) {
  .cat-grid { grid-template-columns: 1fr; }
  .announce { font-size: .72rem; gap: 8px; }
}

/* ---------- Accesibilidad ---------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--rose-dark);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
