/* ROCLA Collection — tokens from the founders' style guide:
   pale warm paper, elegant serif with italics, hairline rules,
   logo burgundy reserved for key accents (prices, links, CTA). */
:root {
  --wine: #8a3a4a;
  --wine-dark: #6f2e3c;
  --bg: #f7f4f1;
  --bg-alt: #f0ebe6;
  --text: #35312e;
  --muted: #8f8781;
  --hairline: rgba(53, 49, 46, 0.25);
  --serif: "Cormorant Garamond", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* anchor targets land below the sticky header */
[id] { scroll-margin-top: 84px; }

body {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

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

h1, h2, h3 { font-weight: 500; }

h2 {
  font-size: 1.9rem;
  text-align: center;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

/* hairline rule under section titles, like the style guide wordmark */
h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 1px;
  background: var(--hairline);
  margin: 0.9rem auto 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  background: rgba(247, 244, 241, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--hairline);
}

.brand {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.38em;
  text-decoration: none;
  color: var(--text);
}

.site-nav a {
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  margin-left: 1.5rem;
  transition: color 0.2s;
}

.site-nav a:hover, .site-nav a:focus { color: var(--wine); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text);
  margin: 6px 0;
}

/* ---------- Hero (looping video backdrop) ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* pale wash so the type stays readable over the footage */
.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(247, 244, 241, 0.88),
    rgba(247, 244, 241, 0.66) 45%,
    rgba(247, 244, 241, 0.88)
  );
  z-index: 1;
}

.hero > :not(.hero-video):not(.hero-veil) { position: relative; z-index: 2; }

.hero-wordmark {
  font-size: clamp(3rem, 10vw, 4.8rem);
  font-weight: 500;
  letter-spacing: 0.32em;
  margin-right: -0.32em; /* optical centering of tracked caps */
}

.hero-rule {
  width: 110px;
  height: 1px;
  background: var(--hairline);
  border: none;
  margin: 1.2rem auto 1.6rem;
}

.hero-tagline {
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1.5;
  max-width: 36ch;
  margin-bottom: 0.6rem;
}

.hero-sub {
  color: var(--muted);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 2.4rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--wine);
  color: #fdfbfa;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.85rem 2.4rem;
  border: 1px solid var(--wine);
  transition: background 0.2s, color 0.2s;
}

.btn:hover, .btn:focus { background: var(--wine-dark); border-color: var(--wine-dark); }

.btn-outline { background: transparent; color: var(--wine); }

.btn-outline:hover, .btn-outline:focus { background: var(--wine); color: #fdfbfa; }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 1.25rem; max-width: 1080px; margin: 0 auto; }

.section-alt { max-width: none; background: var(--bg-alt); }

.section-alt > * { max-width: 1080px; margin-left: auto; margin-right: auto; }

.section-intro {
  text-align: center;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

/* ---------- Carousel (portada) ---------- */
.carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.carousel-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex: 1;
}

.carousel-track::-webkit-scrollbar { display: none; }

.slide {
  flex: 0 0 min(78%, 320px);
  scroll-snap-align: center;
  text-decoration: none;
  color: var(--text);
  text-align: center;
}

.slide img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
  transition: transform 0.4s ease;
}

.slide:hover img, .slide:focus img { transform: scale(1.02); }

.slide h3 {
  font-size: 1.35rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 1.1rem;
}

.slide-price { font-style: italic; color: var(--wine); font-size: 1.05rem; }

.carousel-arrow {
  flex: 0 0 auto;
  background: none;
  border: 1px solid var(--hairline);
  color: var(--text);
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.carousel-arrow:hover, .carousel-arrow:focus { border-color: var(--wine); color: var(--wine); }

/* ---------- Collection page ---------- */
.page-head { padding-bottom: 0.5rem; }

.page-title {
  font-size: 2.3rem;
  text-align: center;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.page-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 1px;
  background: var(--hairline);
  margin: 0.9rem auto 0;
}

.linea { padding-top: 2.5rem; padding-bottom: 2.5rem; }

.linea h2 { font-size: 1.5rem; }

.price { font-style: italic; color: var(--wine); font-size: 1.1rem; margin-bottom: 0.7rem; }

.text-link {
  color: var(--wine);
  text-decoration: none;
  border-bottom: 1px solid var(--wine);
  padding-bottom: 1px;
}

.text-link:hover, .text-link:focus { color: var(--wine-dark); border-color: var(--wine-dark); }

/* ---------- Product grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2.5rem 1.5rem;
}

.card { text-align: center; }

.card-photo {
  display: block;
  width: 100%;
  border: none;
  padding: 0;
  cursor: zoom-in;
  background: none;
  overflow: hidden;
}

.card-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
  transition: transform 0.4s ease;
}

.card-photo:hover img, .card-photo:focus img { transform: scale(1.02); }

.card h3 {
  font-style: italic;
  font-weight: 500;
  font-size: 1.3rem;
  margin: 1rem 0 0.15rem;
}

.pedir {
  display: inline-block;
  color: var(--wine);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--wine);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.pedir:hover, .pedir:focus { color: var(--wine-dark); border-color: var(--wine-dark); }

.grid-note {
  text-align: center;
  color: var(--muted);
  font-style: italic;
  font-size: 1.1rem;
  margin: 2.5rem auto;
  padding: 0 1.25rem;
}

/* ---------- Nosotras ---------- */
.nosotras-inner { max-width: 580px; text-align: center; }

.nosotras-inner p { margin-bottom: 1.2rem; }

.nosotras-inner .lead { font-size: 1.45rem; font-style: italic; line-height: 1.5; }

.heart { color: var(--wine); }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
  text-align: center;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  color: var(--text);
  font-size: 1.25rem;
  margin-bottom: 0.9rem;
}

.steps h3 { font-size: 1.25rem; font-style: italic; margin-bottom: 0.4rem; }
.steps p { font-size: 1rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2.5rem 1.25rem;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-align: center;
}

.brand-mark {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.38em;
  color: var(--text);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  margin: 0.4rem 0 0.6rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.footer-links a:hover, .footer-links a:focus { color: var(--wine); }

/* ---------- Lightbox ---------- */
.lightbox[hidden] { display: none; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(38, 34, 32, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox img { max-height: 88vh; max-width: 100%; }

.lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--hairline);
    padding: 1rem 1.25rem 1.5rem;
  }

  .site-nav.open { display: flex; flex-direction: column; gap: 1rem; }
  .site-nav a { margin: 0; }

  .hero { min-height: 78vh; }
  h2 { font-size: 1.6rem; }
  .section { padding: 3.5rem 1.25rem; }
}

/* Respect reduced-motion: hide the video, keep the pale backdrop */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-video { display: none; }
}
