/* ===== VARIABLES ===== */
:root {
  /* Brand Colors */
  --primary: #3A9E9D;      /* Cian */
  --secondary: #A75D3E;    /* Terracota */
  --ivory: #F5E9DD;        /* Marfil */
  
  /* Neutral Colors */
  --text-dark: #2c2c2c;
  --text-medium: #666666;
  --text-light: #888888;
  --border-light: #e8e8e8;
  --white: #ffffff;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
  --gradient-soft: linear-gradient(135deg, rgba(58, 158, 157, 0.1), rgba(167, 93, 62, 0.1));
  
  /* Shadows */
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-strong: 0 12px 40px rgba(0, 0, 0, 0.15);
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

/* ===== RESET & BASE ===== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Work Sans', sans-serif;
  color: var(--text-dark);
  background: var(--ivory);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(20px);
  background: rgba(245, 233, 221, 0.95);
  border-bottom: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.nav-inner {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-family: 'Allura', cursive;
  font-size: 2rem;
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.logo:hover {
  color: var(--primary);
}

.logo-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-family: 'Work Sans', sans-serif;
  box-shadow: var(--shadow-soft);
}

.spacer {
  flex: 1;
}

.nav a {
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-dark);
}

.nav a:hover {
  color: var(--primary);
  background: rgba(58, 158, 157, 0.1);
  transform: translateY(-1px);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  border-radius: 25px;
  background: var(--gradient-primary);
  color: white !important;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-soft);
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--space-2xl) 0;
  background: var(--ivory);
}

.hero-inner {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-2xl);
  align-items: center;
  padding: 0 var(--space-md);
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.2;
  margin: var(--space-md) 0;
  font-weight: 700;
  color: var(--text-dark);
}

.hero-content .lead {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  color: var(--text-medium);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  border-radius: 25px;
  background: white;
  border: 1px solid var(--border-light);
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: var(--space-sm);
  box-shadow: var(--shadow-soft);
}

.kpis {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin: var(--space-xl) 0;
}

.kpi {
  padding: var(--space-md);
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  min-width: 160px;
  box-shadow: var(--shadow-soft);
}

.kpi:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-medium);
}

.kpi strong {
  display: block;
  font-size: 1.2rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.kpi span {
  color: var(--text-medium);
  font-size: 0.9rem;
}

/* ===== HERO ART ===== */
.hero-art {
  position: relative;
  height: 400px;
  border-radius: var(--radius-xl);
  background: white;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
}

.jewelry-display {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: rotate 20s linear infinite;
  color: white;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.jewelry-display::before {
  content: '';
  position: absolute;
  inset: 15px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.4);
  animation: rotate 15s linear infinite reverse;
}

/* ===== SECTIONS ===== */
.products-section,
.collections,
.artisans,
.contact {
  padding: var(--space-2xl) var(--space-md);
  max-width: 1200px;
  margin: auto;
}

section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: var(--space-xl);
  color: var(--text-dark);
  font-weight: 600;
}

/* ===== PRODUCTS CAROUSEL ===== */
.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: white;
  padding: var(--space-xl) var(--space-md);
  box-shadow: var(--shadow-soft);
}

.carousel {
  display: flex;
  gap: var(--space-lg);
  transition: transform 0.5s ease;
  padding: 0 var(--space-md);
}

.product-card {
  min-width: 280px;
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--border-light);
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-soft);
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: var(--shadow-medium);
}

.product-image {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-md);
  background: var(--gradient-soft);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.product-card h3 {
  color: var(--text-dark);
  margin: var(--space-md) 0 var(--space-xs);
  font-weight: 600;
}

.product-card p {
  color: var(--text-medium);
  margin-bottom: var(--space-sm);
  font-size: 0.9rem;
}

.product-price {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--secondary);
}

/* ===== COLLECTIONS ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.collection-card {
  position: relative;
  min-height: 300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: var(--shadow-soft);
}

.collection-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-medium);
}

.collection-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-lg);
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white;
}

.collection-badge {
  background: rgba(255,255,255,0.2);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
}

.collection-content h3 {
  font-size: 2rem;
  margin: var(--space-sm) 0 var(--space-xs);
  color: white;
}

.collection-content p {
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  margin: 0;
}

/* Collection Backgrounds */
.oro {
  background: linear-gradient(135deg, #d4af37, #ffd700);
}

.acero {
  background: linear-gradient(135deg, #708090, #c0c0c0);
}

.rodio {
  background: linear-gradient(135deg, #2f4f4f, #778899);
}

/* ===== ARTISANS ===== */
.artisans-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-medium);
  margin-bottom: var(--space-xl);
  margin-top: -var(--space-md);
}

.artisan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.artisan-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-soft);
}

.artisan-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow-medium);
}

.artisan-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-primary);
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  box-shadow: var(--shadow-soft);
}

.artisan-card h3 {
  color: var(--text-dark);
  margin-bottom: var(--space-xs);
  font-weight: 600;
}

.artisan-role {
  color: var(--primary) !important;
  font-weight: 500;
  margin-bottom: var(--space-sm) !important;
  font-size: 0.9rem;
}

.artisan-card p {
  color: var(--text-medium);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ===== CONTACT FORM ===== */
.contact-form {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-soft);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  color: var(--text-dark);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--ivory);
  color: var(--text-dark);
  font-family: 'Work Sans', sans-serif;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(58, 158, 157, 0.1);
  background: white;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-cta {
  width: 100%;
  justify-content: center;
  margin-top: var(--space-md);
}

/* ===== SOCIAL MEDIA ===== */
.social-section {
  padding: var(--space-2xl) var(--space-md);
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.social-section h3 {
  color: var(--text-dark);
  margin-bottom: var(--space-lg);
  font-weight: 600;
}

.social-links {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  border-radius: 25px;
  background: white;
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  box-shadow: var(--shadow-soft);
}

.social-link:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border-light);
  background: white;
  padding: var(--space-2xl) var(--space-md);
  text-align: center;
}

.footer-logo {
  font-family: 'Allura', cursive;
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: var(--space-md);
}

.footer-text {
  color: var(--text-medium);
  margin: 0 0 var(--space-xs);
}

.footer-tech {
  color: var(--text-light);
  margin: 0;
  font-size: 0.9rem;
}

/* ===== ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    text-align: center;
  }
  
  .hero-art {
    height: 300px;
  }
  
  .jewelry-display {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 768px) {
  :root {
    --space-xs: 0.4rem;
    --space-sm: 0.8rem;
    --space-md: 1.2rem;
    --space-lg: 1.8rem;
    --space-xl: 2.4rem;
    --space-2xl: 3rem;
  }
  
  .nav-inner {
    flex-wrap: wrap;
    gap: var(--space-sm);
    padding: var(--space-sm);
  }
  
  .logo {
    font-size: 1.8rem;
  }
  
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .kpis {
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .carousel {
    gap: var(--space-md);
    padding: 0 var(--space-sm);
  }
  
  .product-card {
    min-width: 250px;
  }
  
  .contact-form {
    padding: var(--space-xl) var(--space-md);
  }
  
  .social-links {
    gap: var(--space-sm);
  }
}

@media (max-width: 480px) {
  .hero {
    padding: var(--space-xl) 0;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content .lead {
    font-size: 1rem;
  }
  
  .hero-art {
    height: 250px;
  }
  
  .jewelry-display {
    width: 100px;
    height: 100px;
  }
  
  .products-section,
  .collections,
  .artisans,
  .contact {
    padding: var(--space-xl) var(--space-sm);
  }
  
  section h2 {
    font-size: 2rem;
  }
  
  .product-card {
    min-width: 220px;
  }
  
  .carousel-container {
    padding: var(--space-lg) var(--space-sm);
  }
}

/* ===== UTILITIES ===== */
.text-center {
  text-align: center;
}

.mb-0 {
  margin-bottom: 0;
}

.mt-0 {
  margin-top: 0;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Focus styles for keyboard navigation */
.keyboard-navigation *:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --shadow-soft: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 4px 8px rgba(0, 0, 0, 0.4);
    --shadow-strong: 0 6px 12px rgba(0, 0, 0, 0.5);
  }
}