/* =============================================
   ARQUILUZ CANDILES — Estilo Crema / Champán
   ============================================= */

:root {
  --bg:           #faf8f3;
  --bg-alt:       #f0ebe0;
  --bg-dark:      #2a1f14;
  --gold:         #c9a84c;
  --gold-light:   #e8d5a3;
  --gold-dark:    #8a6e2f;
  --text:         #2a1f14;
  --text-light:   #6b5a47;
  --border:       #d4c9b8;
  --white:        #ffffff;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Raleway', 'Helvetica Neue', sans-serif;

  --radius:       6px;
  --shadow:       0 4px 24px rgba(42, 31, 20, 0.09);
  --shadow-lg:    0 12px 48px rgba(42, 31, 20, 0.14);

  --nav-h:        72px;
  --transition:   0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Navigation ─────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(42, 31, 20, 0.08); }
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 500; letter-spacing: 0.03em;
  color: var(--text);
}
.nav-links {
  display: flex; list-style: none; gap: 2.5rem; align-items: center;
}
.nav-links a {
  font-family: var(--font-body); font-size: .85rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-light);
  position: relative; transition: color 0.3s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px;
  background: var(--gold); transition: width 0.3s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; padding: 4px;
}
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: var(--text); transition: var(--transition); }

/* ── Hero ───────────────────────────────────── */
.hero {
  min-height: 100vh; padding-top: var(--nav-h);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--bg);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 30%, #e8d5a320 0%, transparent 70%);
  pointer-events: none;
}
.hero-content {
  text-align: center; padding: 4rem 2rem; max-width: 700px; position: relative;
}
.hero-ornament {
  font-size: .7rem; letter-spacing: .5em; color: var(--gold); margin-bottom: 2rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 6rem);
  font-weight: 300; line-height: 1.1; letter-spacing: -0.01em;
  color: var(--text); margin-bottom: 1rem;
}
.hero-subtitle {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 300;
  color: var(--text-light); margin-bottom: 2.5rem;
}
.hero-divider {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem;
}
.hero-divider span:first-child, .hero-divider span:last-child {
  flex: 1; height: 1px; background: var(--gold-light);
}
.hero-diamond { color: var(--gold); font-size: .75rem; }
.hero-tagline {
  font-size: 1rem; color: var(--text-light); line-height: 1.8; margin-bottom: 3rem;
}
.hero-scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  font-size: .75rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--text-light); animation: bounce 2.5s ease-in-out infinite;
}
@keyframes bounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }

/* ── Page Hero (inner pages) ────────────────── */
.page-hero {
  padding-top: calc(var(--nav-h) + 4rem); padding-bottom: 4rem;
  background: var(--bg-alt); text-align: center;
}
.page-hero--thin { padding-top: calc(var(--nav-h) + 2rem); padding-bottom: 2rem; }
.page-hero__content { max-width: 700px; margin: 0 auto; padding: 0 2rem; }
.page-hero__title {
  font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300; color: var(--text); margin-bottom: .5rem;
}
.page-hero__sub { color: var(--text-light); font-size: 1rem; }

/* ── Breadcrumb ─────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  font-size: .85rem; color: var(--text-light); justify-content: center;
}
.breadcrumb a:hover { color: var(--gold-dark); }
.breadcrumb span { color: var(--border); }

/* ── Buttons ────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 2.2rem; border-radius: var(--radius);
  font-family: var(--font-body); font-size: .83rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  transition: all 0.3s ease; cursor: pointer; border: 1.5px solid transparent;
}
.btn-gold {
  background: var(--gold); color: var(--white); border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(201, 168, 76, 0.3); }
.btn-outline {
  background: transparent; color: var(--text); border-color: var(--border);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-dark); }
.btn-lg { padding: 1.1rem 2.8rem; font-size: .9rem; }
.btn-full { width: 100%; }
.btn-whatsapp {
  background: #25d366; color: #fff; border-color: #25d366;
}
.btn-whatsapp:hover { background: #128c7e; border-color: #128c7e; }

/* ── Sections ───────────────────────────────── */
.section { padding: 6rem 0; }
.section-alt { background: var(--bg-alt); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.container--narrow { max-width: 860px; }

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-pre {
  display: block; font-size: .78rem; letter-spacing: .25em; text-transform: uppercase;
  color: var(--gold-dark); margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300; color: var(--text); margin-bottom: 1.2rem;
}
.section-divider {
  display: flex; align-items: center; gap: 1rem; justify-content: center;
}
.section-divider span:first-child, .section-divider span:last-child {
  width: 60px; height: 1px; background: var(--gold-light);
}
.section-divider span:nth-child(2) { color: var(--gold); font-size: .7rem; }

.section-cta { text-align: center; }

/* ── Product Cards ──────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.products-grid--3 { grid-template-columns: repeat(3, 1fr); }
.products-grid--featured { grid-template-columns: repeat(3, 1fr); }

.product-card {
  display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
  text-decoration: none;
}
.product-card:hover {
  box-shadow: var(--shadow-lg); transform: translateY(-4px);
}

.product-card__image {
  position: relative; overflow: hidden;
  aspect-ratio: 3 / 4; background: var(--bg-alt);
}
.product-card__image img {
  width: 100%; height: 100%; object-fit: cover;
  /* Subtle warm tone to harmonize amateur photos */
  filter: sepia(0.08) brightness(1.03) contrast(1.02) saturate(0.92);
  transition: transform 0.6s ease, filter 0.6s ease;
}
.product-card:hover .product-card__image img {
  transform: scale(1.06);
  filter: sepia(0.04) brightness(1.02) contrast(1.01) saturate(0.97);
}

.product-card__no-image {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--gold-light); gap: .5rem;
}
.product-card__no-image svg { width: 48px; opacity: .5; }
.product-card__no-image--lg { gap: 1rem; color: var(--border); font-size: .9rem; }
.product-card__no-image--lg svg { width: 64px; }

.product-card__overlay {
  position: absolute; inset: 0;
  background: rgba(42, 31, 20, 0);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.4s ease;
}
.product-card__overlay span {
  color: white; font-size: .8rem; letter-spacing: .15em; text-transform: uppercase;
  font-weight: 500; opacity: 0;
  transition: opacity 0.4s ease;
  border: 1px solid rgba(255,255,255,0.6); padding: .5rem 1.2rem;
  background: rgba(201, 168, 76, 0.85); border-color: transparent;
  border-radius: 2px;
}
.product-card:hover .product-card__overlay { background: rgba(42, 31, 20, 0.15); }
.product-card:hover .product-card__overlay span { opacity: 1; }

.product-card__info { padding: 1.2rem 1.4rem 1.4rem; flex: 1; }
.product-card__category {
  font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-dark); margin-bottom: .4rem;
}
.product-card__name {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 400;
  color: var(--text); line-height: 1.35; margin-bottom: .6rem;
}
.product-card__cta {
  font-size: .78rem; color: var(--gold-dark); letter-spacing: .05em;
}

/* ── Product Detail ─────────────────────────── */
.product-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start;
}
.product-gallery__main {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); aspect-ratio: 3/4; background: var(--bg-alt);
}
.gallery-main-img {
  width: 100%; height: 100%; object-fit: contain;
  filter: sepia(0.05) brightness(1.02) contrast(1.01);
  transition: opacity 0.2s;
}
.product-gallery__thumbs {
  display: flex; gap: .5rem; margin-top: .75rem; flex-wrap: wrap;
}
.gallery-thumb {
  width: 72px; height: 80px; border-radius: 4px; overflow: hidden;
  border: 2px solid transparent; cursor: pointer; transition: border-color 0.2s;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; filter: sepia(0.08); }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--gold); }

.product-info { padding-top: 1rem; }
.product-info__category {
  font-size: .78rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--gold-dark); margin-bottom: .8rem; display: block;
}
.product-info__name {
  font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 300; line-height: 1.2; color: var(--text); margin-bottom: 1.5rem;
}
.product-info__divider {
  height: 1px; background: linear-gradient(to right, var(--gold), transparent);
  margin-bottom: 1.5rem;
}
.product-info__description {
  color: var(--text-light); line-height: 1.8; font-size: 1rem;
  white-space: pre-line; margin-bottom: 2rem;
}
.product-info__cta { display: flex; flex-direction: column; gap: 1rem; }
.product-info__note {
  display: flex; align-items: flex-start; gap: .5rem;
  font-size: .85rem; color: var(--text-light); line-height: 1.5;
  background: var(--bg-alt); padding: .8rem 1rem; border-radius: var(--radius);
  border-left: 3px solid var(--gold);
}

/* ── About Section ──────────────────────────── */
.section-about { background: var(--bg); }
.about-inner { text-align: center; }
.about-ornament { margin-bottom: 2rem; display: flex; justify-content: center; }
.about-text {
  font-size: 1.05rem; color: var(--text-light); line-height: 1.9; margin-bottom: 2.5rem;
  max-width: 600px; margin-left: auto; margin-right: auto;
}

/* ── CTA Banner ─────────────────────────────── */
.section-cta-banner { background: var(--bg-dark); }
.cta-banner { text-align: center; padding: 2rem; }
.cta-banner__title {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 300; color: var(--white); margin-bottom: 1rem;
}
.cta-banner__text { color: rgba(255,255,255,.65); margin-bottom: 2rem; font-size: 1rem; }

/* ── Category Filter ────────────────────────── */
.category-filter {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem;
}
.cat-btn {
  padding: .45rem 1.2rem; border-radius: 20px;
  border: 1.5px solid var(--border); font-size: .8rem; font-weight: 500;
  letter-spacing: .06em; color: var(--text-light);
  transition: all 0.25s;
}
.cat-btn:hover { border-color: var(--gold); color: var(--gold-dark); }
.cat-btn.active { background: var(--gold); border-color: var(--gold); color: white; }

/* ── Empty State ────────────────────────────── */
.empty-state {
  text-align: center; padding: 4rem 2rem; color: var(--text-light);
}
.empty-state__icon { font-size: 3rem; color: var(--border); margin-bottom: 1rem; }

/* ── Contact ────────────────────────────────── */
.contact-layout {
  display: grid; grid-template-columns: 3fr 2fr; gap: 4rem; align-items: start;
}
.contact-subtitle {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 400;
  color: var(--text); margin-bottom: 1.5rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label {
  display: block; font-size: .82rem; font-weight: 500; letter-spacing: .04em;
  color: var(--text-light); margin-bottom: .4rem;
}
.form-input {
  width: 100%; padding: .75rem 1rem; background: white;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: var(--font-body); font-size: .95rem; color: var(--text);
  transition: border-color 0.25s;
  -webkit-appearance: none;
}
.form-input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12); }
.form-input--readonly { background: var(--bg-alt); color: var(--text-light); }
.form-textarea { resize: vertical; min-height: 120px; }
.required { color: var(--gold-dark); }
.optional { color: var(--border); font-size: .78rem; }
.form-privacy { font-size: .78rem; color: var(--text-light); margin-top: .75rem; text-align: center; }
.form-privacy a { color: var(--gold-dark); text-decoration: underline; }

.contact-info-list { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-info-icon {
  width: 40px; height: 40px; background: var(--bg-alt); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: var(--gold);
}
.contact-info-item strong { display: block; font-size: .85rem; letter-spacing: .04em; margin-bottom: .1rem; }
.contact-info-item p { color: var(--text-light); font-size: .9rem; }
.contact-info-item a:hover { color: var(--gold-dark); }

/* ── Alerts ─────────────────────────────────── */
.alert {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 2rem;
}
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.alert strong { display: block; margin-bottom: .25rem; }
.alert p { font-size: .9rem; margin-top: .25rem; }

/* ── Legal pages ────────────────────────────── */
.legal-content {
  padding: 2rem 0;
}
.legal-content h2 {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 400;
  color: var(--text); margin: 2rem 0 .75rem; border-bottom: 1px solid var(--border); padding-bottom: .5rem;
}
.legal-content p, .legal-content li { color: var(--text-light); line-height: 1.8; margin-bottom: .75rem; }
.legal-content ul { padding-left: 1.5rem; }
.legal-content a { color: var(--gold-dark); text-decoration: underline; }
.legal-date { font-size: .85rem; color: var(--border); margin-bottom: 2rem; }

/* ── Footer ─────────────────────────────────── */
.footer { background: var(--bg-dark); color: rgba(255,255,255,0.75); padding: 4rem 0 0; }
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem 3rem;
  display: grid; grid-template-columns: 2fr 1fr 2fr; gap: 3rem;
}
.footer-logo {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 400;
  color: var(--white); margin-bottom: .5rem;
}
.footer-tagline { font-size: .9rem; color: rgba(255,255,255,.5); margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: 1rem; }
.footer-social a {
  width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.6);
  transition: all 0.3s;
}
.footer-social a svg { width: 16px; height: 16px; }
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }
.footer-heading {
  font-size: .75rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.2rem;
}
.footer-nav { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-nav a { font-size: .9rem; color: rgba(255,255,255,.6); transition: color 0.3s; }
.footer-nav a:hover { color: var(--gold); }
.footer p { font-size: .88rem; margin-bottom: .5rem; }
.btn-whatsapp { font-size: .78rem; padding: .6rem 1.2rem; margin-top: 1rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.25rem 2rem; max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem;
}
.footer-bottom p { font-size: .8rem; color: rgba(255,255,255,.35); }
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--gold); }

/* ── Cookie Banner ──────────────────────────── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: rgba(42, 31, 20, 0.97); color: rgba(255,255,255,.85);
  border-top: 2px solid var(--gold);
  transform: translateY(100%); transition: transform 0.4s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-content {
  max-width: 1000px; margin: 0 auto; padding: 1rem 2rem;
  display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
}
.cookie-content p { font-size: .85rem; flex: 1; min-width: 200px; }
.cookie-content a { color: var(--gold-light); text-decoration: underline; }
.cookie-actions { display: flex; gap: .75rem; }
.btn-cookie-accept {
  padding: .5rem 1.5rem; background: var(--gold); color: white;
  border-radius: var(--radius); font-size: .82rem; font-weight: 500;
  cursor: pointer; border: none; transition: background 0.2s;
}
.btn-cookie-accept:hover { background: var(--gold-dark); }
.btn-cookie-close {
  padding: .5rem 1rem; background: transparent; color: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius);
  font-size: .82rem; cursor: pointer; transition: all 0.2s;
}
.btn-cookie-close:hover { color: white; border-color: rgba(255,255,255,.5); }

/* ── Animations ─────────────────────────────── */
.fade-in { animation: fadeIn 1s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Related section ────────────────────────── */
.related-section { margin-top: 2rem; }

/* ── Responsive ─────────────────────────────── */
@media (max-width: 900px) {
  .products-grid, .products-grid--featured, .products-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-detail { grid-template-columns: 1fr; gap: 2rem; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .products-grid, .products-grid--featured, .products-grid--3 {
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
  }
  .products-grid--featured { grid-template-columns: 1fr; }
  .section { padding: 4rem 0; }
  .nav-links { display: none; flex-direction: column; position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; background: var(--bg); padding: 2rem; gap: 1.5rem; align-items: flex-start; z-index: 99; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.8rem; }
  .cookie-content { flex-direction: column; gap: 1rem; padding: 1rem; }
}
@media (max-width: 380px) {
  .products-grid { grid-template-columns: 1fr; }
}
