/* ══════════════════════════════════════
   Lu Vitrofusión — Estilos
   ══════════════════════════════════════ */

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

:root {
  --cobalt: #1B3A6B;
  --cobalt-light: #2a4f8a;
  --amber: #C9963A;
  --amber-soft: #E8C97A;
  --sage: #6B9E7E;
  --cream: #FAF8F5;
  --warm-white: #FFFFFF;
  --text: #2C2C34;
  --text-muted: #6B6B78;
  --glass-gradient: linear-gradient(
    135deg,
    rgba(27,58,107,0.05) 0%,
    rgba(201,150,58,0.08) 50%,
    rgba(107,158,126,0.05) 100%
  );
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Work Sans', sans-serif;
  font-weight: 300;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(250,248,245,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(27,58,107,0.08);
  padding: 0.8rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--cobalt);
}

.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-logo span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a:focus-visible { color: var(--cobalt); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201,150,58,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(107,158,126,0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-logo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 2rem;
  box-shadow: 0 4px 24px rgba(27,58,107,0.12);
  border: 3px solid rgba(201,150,58,0.3);
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--cobalt);
  line-height: 1.15;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.hero-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--amber);
  margin-bottom: 2.5rem;
  letter-spacing: 0.02em;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2.2rem;
  background: var(--sage);
  color: white;
  text-decoration: none;
  border-radius: 40px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(107,158,126,0.3);
  position: relative;
  z-index: 1;
}

.hero-cta:hover {
  background: var(--cobalt);
  box-shadow: 0 4px 20px rgba(27,58,107,0.3);
  transform: translateY(-1px);
}

.hero-cta svg { width: 18px; height: 18px; }

/* ── SECTION COMMON ── */
section { padding: 5rem 2rem; }

.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--amber);
  font-weight: 500;
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--cobalt);
  margin-bottom: 1rem;
}

/* ── PRODUCTOS ── */
.products {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.product-card {
  background: var(--warm-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(27,58,107,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(27,58,107,0.12);
}

.product-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.product-card .card-body {
  padding: 1.2rem 1.4rem 1.5rem;
}

.product-card h3 {
  font-size: 1.25rem;
  color: var(--cobalt);
  margin-bottom: 0.3rem;
}

.product-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ── CATÁLOGO ── */
.catalog {
  background: var(--glass-gradient);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 20px;
  padding: 3.5rem 2rem;
}

.catalog-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.8rem;
}

.catalog-tag {
  padding: 0.5rem 1.2rem;
  background: rgba(27,58,107,0.06);
  border-radius: 20px;
  font-size: 0.82rem;
  color: var(--cobalt);
  font-weight: 400;
  letter-spacing: 0.02em;
  border: 1px solid rgba(27,58,107,0.08);
  transition: all 0.3s;
  cursor: default;
}

.catalog-tag:hover {
  background: var(--cobalt);
  color: white;
  border-color: var(--cobalt);
}

/* ── ABOUT ── */
.about {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 1.5rem auto 0;
  line-height: 1.9;
}

.about-location {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  color: var(--sage);
  font-size: 0.9rem;
  font-weight: 400;
}

.about-location svg { width: 16px; height: 16px; }

/* ── GLASS DIVIDER ── */
.glass-divider {
  height: 2px;
  max-width: 120px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--amber-soft), var(--sage), transparent);
  border: none;
}

/* ── CONTACTO ── */
.contact {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding-bottom: 3rem;
}

.contact-subtitle {
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  border-radius: 40px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.3s;
  min-width: 240px;
  justify-content: center;
}

.btn svg { width: 20px; height: 20px; }

.btn-whatsapp {
  background: #25D366;
  color: white;
  box-shadow: 0 4px 16px rgba(37,211,102,0.3);
}

.btn-whatsapp:hover {
  background: #1fb855;
  transform: translateY(-1px);
}

.btn-instagram {
  background: var(--warm-white);
  color: var(--text);
  border: 1px solid rgba(27,58,107,0.12);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.btn-instagram:hover {
  border-color: var(--cobalt);
  color: var(--cobalt);
  transform: translateY(-1px);
}

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(27,58,107,0.06);
}

/* ── MOBILE ── */
@media (max-width: 640px) {
  nav { padding: 0.6rem 1rem; }
  .nav-links { display: none; }
  .hero { padding: 5rem 1.5rem 3rem; }
  .hero-logo { width: 70px; height: 70px; }
  section { padding: 3.5rem 1.5rem; }
  .products-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .contact-buttons { width: 100%; }
  .btn { width: 100%; }
}

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

/* ══════════════════════════════════════
   DINÁMICO — Filtros, lightbox, animaciones
   ══════════════════════════════════════ */

/* ── FILTROS ── */
.filtros-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.filtro-btn {
  padding: 0.45rem 1.1rem;
  background: transparent;
  border: 1px solid rgba(27,58,107,0.15);
  border-radius: 24px;
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 0.02em;
}

.filtro-btn:hover {
  border-color: var(--cobalt);
  color: var(--cobalt);
}

.filtro-btn.active {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: white;
}

/* ── PRODUCT CARD DINÁMICO ── */
.product-img-wrapper {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.product-img-wrapper img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-img-wrapper:hover img {
  transform: scale(1.05);
}

.product-img-placeholder {
  width: 100%;
  height: 280px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
}

.img-zoom-hint {
  position: absolute;
  bottom: 0.6rem;
  right: 0.6rem;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.product-img-wrapper:hover .img-zoom-hint {
  opacity: 1;
}

.card-tipo {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber);
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.empty-msg {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  font-size: 1rem;
}

/* ── LIGHTBOX ── */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  cursor: pointer;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 2001;
}

.lightbox-close:hover { color: white; }

.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  cursor: default;
  animation: lightboxIn 0.3s ease;
}

.lightbox-caption {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  margin-top: 1rem;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  letter-spacing: 0.03em;
}

/* ── NAV SCROLL ── */
.nav-scrolled {
  box-shadow: 0 2px 16px rgba(27,58,107,0.08);
}

/* ── ANIMACIONES ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lightboxIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ── CÓDIGO PRODUCTO ── */
.card-codigo {
  display: inline-block;
  font-size: 0.72rem;
  font-family: 'Courier New', monospace;
  color: var(--text-muted);
  background: rgba(27,58,107,0.05);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.3rem;
  letter-spacing: 0.03em;
}
