:root {
  --primary: #d4af37;
  /* Gold */
  --primary-hover: #b5952f;

  /* Light Theme Variables */
  --bg-light: #ffffff;
  --bg-card: #f9f9f9;
  --bg-card-hover: #f1f1f1;
  --text-main: #222222;
  --text-muted: #555555;
  --border-color: rgba(212, 175, 55, 0.4);

  /* Header Variables */
  --header-bg: #ffffff;
  --header-text: #111111;

  --whatsapp: #25d366;
  --whatsapp-hover: #20bd5a;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  color: #111;
}

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

p,
span,
li {
  color: var(--text-muted);
}

/* Base Utility Classes */
.mb-small {
  margin-bottom: 12px;
}

.mb-medium {
  margin-bottom: 24px;
}

.mb-large {
  margin-bottom: 36px;
}

.text-muted {
  color: var(--text-muted);
}

/* Glass/Card - Adapted for Light Theme */
.glass {
  background: var(--bg-card);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

/* -------------------------------
   Header / Navigation (Black)
------------------------------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: var(--header-bg);
  border-bottom: 2px solid var(--primary);
}

.logo-container {
  display: flex;
  align-items: center;
  width: 280px;
  height: 80px;
  overflow: hidden;
  background: transparent;
  border-radius: 6px;
  justify-content: flex-start;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  background: transparent;
  transform: scale(2.2);
  transform-origin: left center;
}

/* Desktop Navigation */
nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: var(--header-text);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--primary);
}

.social-icons-header {
  display: flex;
  gap: 15px;
}

.social-icons-header a {
  color: var(--header-text);
  transition: transform 0.3s, color 0.3s;
}

.social-icons-header a:hover {
  color: var(--primary);
  transform: scale(1.1);
}

/* Mobile Hamburger Menu */
.menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--header-text);
  font-size: 1.8rem;
  cursor: pointer;
}

/* -------------------------------
   Hero Section
------------------------------- */
.hero {
  position: relative;
  height: 65vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  background-size: cover;
  background-position: center;
  margin-top: 80px;
  /* offset header */
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  /* 65% darkened overlay on the hero image */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  animation: fadeIn 1s ease-out;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
  text-wrap: balance;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero p {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 30px;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: #000 !important;
  padding: 16px 40px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 35px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

.btn-outline {
  display: inline-block;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 10px 25px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 30px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  cursor: pointer;
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* -------------------------------
   Sections & Layout
------------------------------- */
.section {
  padding: 80px 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.breathing-header {
  margin-bottom: 50px;
  text-align: center;
}

.section-title {
  font-size: 2.2rem;
  color: #111;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 15px auto 0;
}

/* -------------------------------
   Dynamic Categories Container
------------------------------- */
#dynamic-detail-container {
  display: none;
  background: #fdfdfd;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 60px 5%;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 30px;
  font-size: 1rem;
  background: none;
  border: none;
}

.back-btn:hover {
  text-decoration: underline;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

/* Category Overview Cards */
.category-overview-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
  transition: transform 0.3s;
}

.category-overview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.card-image-placeholder {
  width: 100%;
  height: 220px;
  background: #eaeaea;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}

.category-overview-card .card-image-placeholder {
  margin-bottom: 10px;
}

/* Mini Product Card Detail (Images + Title) */
.product-card {
  display: flex;
  flex-direction: column;
  padding: 25px;
  transition: transform 0.3s ease, border-color 0.3s ease;
  position: relative;
  background: var(--bg-light);
  border: 1px solid #eee;
  border-top: 4px solid var(--primary);
  text-align: center;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.card-title {
  font-size: 1.4rem;
  margin-top: 20px;
  margin-bottom: 15px;
}

/* Overriding specific light-theme details for JS cards */
.js-strong {
  color: #111 !important;
  font-weight: 700;
  display: block;
  margin-bottom: 5px;
}

.js-primary {
  color: var(--primary) !important;
  font-weight: 600;
}

.js-muted {
  color: #555 !important;
}

.pill {
  display: inline-block;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #111 !important;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.price-tag {
  font-size: 1.4rem;
  color: #111 !important;
  font-weight: 700;
  margin-bottom: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  margin-top: auto;
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--whatsapp);
  color: #fff !important;
  padding: 14px 20px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  width: 100%;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
}

.btn-whatsapp:hover {
  background: var(--whatsapp-hover);
  transform: scale(1.02);
}

/* Notice for custom sizes */
.custom-note {
  margin-top: 25px;
  padding: 20px;
  background: #fdfdfd;
  border-left: 4px solid var(--primary);
  text-align: left;
}

.custom-note p {
  font-size: 0.95rem;
  color: #444;
  margin: 0;
}

/* -------------------------------
   Modals & Lightbox
------------------------------- */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #111;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s;
}

.close-modal:hover {
  background: rgba(0, 0, 0, 0.1);
}

.details-content {
  background: #fff;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  border-radius: 12px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.modal-scroll-area {
  overflow-y: auto;
  padding: 40px 30px;
}

#lightbox-modal {
  z-index: 10000;
}

#lightbox-modal .close-modal {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

#lightbox-modal .close-modal:hover {
  background: rgba(255, 255, 255, 0.4);
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

#lightbox-caption {
  color: #fff;
  text-align: center;
  margin-top: 15px;
  font-size: 1.1rem;
}

.lightbox-trigger-ph {
  cursor: zoom-in;
  transition: opacity 0.3s;
}

.lightbox-trigger-ph:hover {
  opacity: 0.8;
}

/* -------------------------------
   Proceso / Info Blocks / Arrows
------------------------------- */
.info-block {
  margin-bottom: 30px;
  padding: 35px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
}

.info-block h3 {
  color: var(--primary);
  margin-bottom: 20px;
  font-size: 1.6rem;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px 40px;
  margin-top: 25px;
}

.step-card {
  padding: 25px;
  background: #fdfdfd;
  border-radius: 8px;
  border-top: 3px solid var(--primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  position: relative;
}

.step-number {
  color: var(--primary);
  font-size: 2.2rem;
  font-weight: 800;
  opacity: 0.4;
  margin-bottom: 10px;
}

@media (min-width: 900px) {
  .step-card:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.5;
    pointer-events: none;
  }
}

/* -------------------------------
   Accordions (FAQ)
------------------------------- */
details {
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  margin-bottom: 15px;
  padding: 20px;
  transition: all 0.3s;
}

details:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

summary {
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  color: #222;
  outline: none;
  list-style: none;
  /* remove default arrow in some browsers */
  position: relative;
  padding-right: 20px;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 1.5rem;
}

details[open] summary::after {
  content: '-';
}

details p,
details ul {
  margin-top: 15px;
  color: #555;
  line-height: 1.6;
}

details ul {
  margin-left: 20px;
}

details ul li {
  margin-bottom: 8px;
}

/* -------------------------------
   Gallery Grid
------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.gallery-card {
  display: flex;
  flex-direction: column;
}

.gallery-card h4 {
  font-size: 1.1rem;
  margin-top: 10px;
  margin-bottom: 5px;
  text-transform: uppercase;
  color: #111;
}

/* -------------------------------
   Floating WhatsApp Global
------------------------------- */
.floating-wa {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 60px;
  height: 60px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s;
}

.floating-wa:hover {
  transform: scale(1.1);
}

/* -------------------------------
   Footer
------------------------------- */
footer {
  background: #ffffff;
  padding: 60px 5% 30px;
  border-top: 1px solid #eeeeee;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--primary);
  margin-bottom: 20px;
  font-size: 1.2rem;
  text-transform: uppercase;
}

.footer-col p {
  color: #555;
  max-width: 400px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  color: #555;
  font-size: 0.9rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* -------------------------------
   Modal Image Details
------------------------------- */
.modal-header-img {
  width: 100%;
  height: 480px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.modal-carousel-container {
  position: relative;
  overflow: hidden;
}

/* -------------------------------
   Responsiveness
------------------------------- */
.mobile-br {
  display: none;
}

@media (max-width: 900px) {
  .mobile-br {
    display: block;
  }

  .menu-btn {
    display: block;
  }

  nav {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 2px solid var(--primary);
    flex-direction: column;
    gap: 10px;
    padding: 20px 5%;
    transform: translateY(-150%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s;
    z-index: 999;
  }

  nav.active {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
  }

  .nav-links a {
    padding: 15px 0;
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 1.1rem;
  }

  .social-icons-header {
    margin-top: 15px;
    width: 100%;
    justify-content: center;
  }

  .hero {
    height: 55vh;
    min-height: 420px;
    margin-top: 80px;
  }

  .hero h1 {
    font-size: 1.8rem;
    padding: 0 10px;
    margin-bottom: 15px;
  }

  .hero p {
    margin-bottom: 25px;
  }

  header {
    padding: 10px 5%;
  }

  .logo-container {
    width: 210px;
    height: 60px;
  }

  .logo-img {
    object-position: left center;
  }

  .footer-content {
    justify-content: center;
  }

  .footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-col .logo-container {
    justify-content: center;
    width: auto;
    min-width: 200px;
    margin: 0 auto 20px auto !important;
  }

  .footer-col .logo-img {
    object-position: center;
    transform: scale(2.2);
    transform-origin: center center;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .logo-text {
    font-size: 1.1rem;
  }

  .section {
    padding: 50px 5%;
  }

  .step-card {
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
  }

  .floating-wa {
    bottom: 15px;
    left: 15px;
  }

  .modal-header-img {
    height: 250px;
  }
}