/* Boulevard Ótica — estilo público */

:root {
  --black: #0d0d0d;
  --charcoal: #1a1a1a;
  --gold: #b6863c;
  --gold-light: #d9b877;
  --cream: #f7f5f1;
  --gray-100: #f2f1ee;
  --gray-300: #ddd8d0;
  --gray-500: #8a847a;
  --gray-700: #4a453d;
  --white: #ffffff;
  --radius: 2px;
  --max-width: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0 0 0.5em; font-weight: 600; letter-spacing: 0.01em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
}

/* Brand / Logo */
.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  gap: 3px;
}
.brand-box {
  border: 1.5px solid currentColor;
  padding: 5px 10px 4px;
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 15px;
}
.brand-sub {
  font-size: 9px;
  letter-spacing: 0.35em;
  color: var(--gold);
  font-weight: 600;
  padding-left: 0.35em;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.96);
  color: var(--white);
  backdrop-filter: blur(6px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav a {
  font-size: 14px;
  letter-spacing: 0.03em;
  color: var(--gray-300);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--white);
  border-color: var(--gold);
}
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid var(--gold);
  transition: background .2s, color .2s, opacity .2s;
}
.btn-whatsapp {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}
.btn-whatsapp:hover { opacity: 0.85; }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-dark {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.btn-dark:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* Hero */
.hero {
  background: var(--black);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  min-height: 520px;
  padding: 60px 24px;
}
.hero-text h1 {
  font-size: clamp(30px, 4.5vw, 52px);
  line-height: 1.12;
  margin: 12px 0 18px;
}
.hero-text p {
  color: var(--gray-300);
  font-size: 17px;
  max-width: 480px;
  margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--charcoal);
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-500);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px dashed var(--gray-700);
}
.hero-slideshow { position: relative; }
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.hero-slide.active { opacity: 1; }

/* Sections */
section { padding: 70px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 34px;
  gap: 20px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: 30px; }
.section-head .link-more {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
  white-space: nowrap;
}
.section-alt { background: var(--gray-100); }

/* Collections grid */
.grid-collections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.collection-card {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--gray-300);
  display: block;
}
.collection-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.collection-card:hover img { transform: scale(1.06); }
.collection-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.05) 55%);
}
.collection-card .label {
  position: absolute;
  left: 22px; bottom: 20px; right: 22px;
  color: var(--white);
}
.collection-card .label .count {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.collection-card .label h3 { margin: 0; font-size: 22px; }
.collection-card.placeholder-card {
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-500);
  font-size: 13px;
  border: 1px dashed var(--gray-300);
}

/* Products grid */
.grid-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.product-card {
  display: block;
  background: var(--white);
}
.product-card-link { display: block; }
.product-thumb {
  aspect-ratio: 1/1;
  background: var(--gray-100);
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 12px;
  position: relative;
}
.product-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-thumb img { transform: scale(1.05); }
.product-thumb .badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--gold);
  color: var(--black);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  font-weight: 700;
}
.product-info .code { font-size: 12px; color: var(--gray-500); letter-spacing: 0.04em; }
.product-info h3 { font-size: 15px; margin: 3px 0 4px; }
.product-card > .price { display: block; font-size: 14px; color: var(--gold); font-weight: 600; }
.price-whatsapp {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 10px 12px;
  border: 1px solid var(--black);
  background: var(--black);
  color: var(--white);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  border-radius: var(--radius);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.price-whatsapp:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }

/* Filters */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.filter-bar a {
  padding: 9px 18px;
  border: 1px solid var(--gray-300);
  border-radius: 30px;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--gray-700);
}
.filter-bar a.active, .filter-bar a:hover {
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
}

/* Partners */
.partners {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.partner-badge {
  border: 1px solid var(--gray-300);
  padding: 12px 22px;
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 14px;
  color: var(--gray-700);
  text-transform: uppercase;
  border-radius: var(--radius);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: center;
}
.about-grid .media {
  aspect-ratio: 4/5;
  background: var(--gray-100);
  border-radius: var(--radius);
  overflow: hidden;
}
.about-grid .media img { width: 100%; height: 100%; object-fit: cover; }
.about-text p { white-space: pre-line; color: var(--gray-700); font-size: 16px; }
.checklist { margin-top: 20px; }
.checklist li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 10px;
  color: var(--gray-700);
}
.checklist li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--gold);
  font-weight: 700;
}

/* CTA band */
.cta-band {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 70px 24px;
}
.cta-band h2 { font-size: 30px; margin-bottom: 14px; }
.cta-band p { color: var(--gray-300); margin-bottom: 28px; }

/* Product detail */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.gallery-main {
  aspect-ratio: 1/1;
  background: var(--gray-100);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.gallery-thumbs img {
  width: 76px; height: 76px; object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.7;
}
.gallery-thumbs img.active { border-color: var(--gold); opacity: 1; }
.product-panel .code { color: var(--gray-500); letter-spacing: 0.05em; font-size: 13px; text-transform: uppercase; }
.product-panel h1 { font-size: 30px; margin: 8px 0 14px; }
.product-panel .price { font-size: 22px; color: var(--gold); font-weight: 700; margin-bottom: 20px; }
.product-panel .desc { color: var(--gray-700); margin-bottom: 30px; white-space: pre-line; }
.back-link { display: inline-block; margin-bottom: 26px; font-size: 13px; color: var(--gray-500); }
.back-link:hover { color: var(--black); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.contact-card {
  border: 1px solid var(--gray-300);
  padding: 24px;
  margin-bottom: 16px;
  border-radius: var(--radius);
}
.contact-card h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-500); margin-bottom: 8px; }
.contact-card p { margin: 0; font-size: 16px; }
.map-frame {
  width: 100%; height: 100%; min-height: 340px;
  border: 0; border-radius: var(--radius);
  filter: grayscale(0.3);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-500);
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius);
}

/* Footer */
.site-footer { background: var(--black); color: var(--gray-300); margin-top: 60px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding: 60px 24px 40px;
}
.footer-brand .brand-box { color: var(--white); }
.footer-brand p { color: var(--gray-500); font-size: 14px; max-width: 320px; margin-top: 16px; }
.footer-partners { color: var(--gray-500) !important; font-size: 12px !important; letter-spacing: 0.03em; }
.footer-col h4 { color: var(--white); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; font-size: 14px; color: var(--gray-500); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); }
.footer-bottom-inner {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 18px 24px;
  font-size: 12px;
  color: var(--gray-500);
}
.footer-bottom-inner a { color: var(--gray-500); }
.footer-bottom-inner a:hover { color: var(--gold); }

/* WhatsApp flutuante */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.28);
  transition: transform .2s ease, box-shadow .2s ease;
  animation: wa-pop .4s ease;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 22px rgba(0,0,0,0.34);
}
@keyframes wa-pop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@media (max-width: 720px) {
  .whatsapp-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center; justify-content: center;
  padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; }
.lightbox-close {
  position: absolute; top: 20px; right: 30px;
  color: var(--white); font-size: 32px; cursor: pointer; background: none; border: none;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; min-height: auto; }
  .hero-media { order: -1; aspect-ratio: 16/10; }
  .grid-collections { grid-template-columns: repeat(2, 1fr); }
  .grid-products { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .product-detail, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; top: 62px; left: 0; right: 0;
    background: var(--black);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 30px;
    gap: 18px;
    transform: translateY(-130%);
    transition: transform .25s ease;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav .btn { margin-top: 6px; }
}
@media (max-width: 560px) {
  .grid-collections { grid-template-columns: 1fr; }
  .grid-products { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  section { padding: 46px 0; }
}
