/* ========================================
   GLOBAL STYLES — Shared across all pages
   ======================================== */

/* CSS Variables */
:root {
  --black: #010101;
  --gold:  #eab965;
  --rose:  #f5978e;
  --white: #ffffff;
  --gray:  #f5f5f5;
  --text:  #333333;

  --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;

  --radius: 0.5rem;
  --max-width: 1200px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

/* ========================================
   LOADER
   ======================================== */
#loader {
  position: fixed;
  inset: 0;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  width: 80px;
  height: auto;
  animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
  position: sticky;
  top: 0;
  background: var(--white);
  border-bottom: 1px solid rgba(234, 185, 101, 0.2);
  z-index: 1000;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xs) var(--space-sm);
  height: 64px;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

/* Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  transition: 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Menu */
.nav-menu {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid rgba(234, 185, 101, 0.2);
  padding: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  transform: translateY(-150%);
  transition: transform 0.3s ease;
}

.nav-menu.open {
  transform: translateY(0);
}

.nav-menu a {
  display: block;
  padding: var(--space-xs) var(--space-sm);
  font-size: 1rem;
  font-weight: 500;
  color: var(--black);
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: rgba(234, 185, 101, 0.1);
  color: var(--gold);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
  text-align: center;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--gold);
  color: var(--black);
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  background: transparent;
  color: var(--black);
  border: 2px solid var(--gold);
}

.btn-secondary:hover {
  background: rgba(234, 185, 101, 0.08);
}

.btn-order {
  background: var(--rose);
  color: var(--white);
  width: 100%;
  margin-top: auto;
}

.btn-order:hover {
  opacity: 0.9;
}

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
}

.btn-instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: var(--white);
}

.btn-full {
  width: 100%;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: var(--space-lg) var(--space-sm);
  margin-top: var(--space-xl);
}

.footer-logo {
  height: 48px;
  width: auto;
  margin: 0 auto var(--space-sm);
  opacity: 0.9;
}

.footer-slogan {
  color: var(--gold);
  font-size: 0.95rem;
  margin-bottom: var(--space-sm);
}

.footer-social {
  margin-bottom: var(--space-sm);
}

.footer-social a {
  display: inline-flex;
  color: var(--white);
  opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
}

.footer-social a:hover {
  opacity: 1;
  color: var(--gold);
}

.footer-copy {
  font-size: 0.8rem;
  opacity: 0.5;
}

/* ========================================
   DESKTOP NAV (768px+)
   ======================================== */
@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    flex-direction: row;
    padding: 0;
    transform: none;
    border: none;
    gap: var(--space-xs);
  }

  .nav-menu a {
    padding: 0.4rem 0.8rem;
    font-size: 0.95rem;
  }
}

/* ========================================
   TABLET PRODUCT GRID (600px+)
   ======================================== */
@media (min-width: 600px) {
  .container {
    padding: 0 var(--space-md);
  }
}

/* ========================================
   LARGE SCREENS (900px+)
   ======================================== */
@media (min-width: 900px) {
  html {
    font-size: 17px;
  }
}