/* ============================================
   LUXURY DISEÑOS - SHARED CSS
   Paleta: Elegancia cálida y moderna
   ============================================ */

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

:root {
  --bg-primary: #F8F6F2;
  --bg-white: #FFFFFF;
  --bg-dark: #1C1C1C;
  --text-primary: #1C1C1C;
  --text-secondary: #6B6B6B;
  --text-light: #9A9A9A;
  --accent-gold: #B8956A;
  --accent-gold-dark: #A07D55;
  --accent-gold-light: #D4B896;
  --border-light: #E8E4DE;
  --shadow-soft: 0 4px 20px rgba(28, 28, 28, 0.08);
  --shadow-medium: 0 8px 30px rgba(28, 28, 28, 0.12);
  --whatsapp: #25D366;
  --whatsapp-dark: #128C7E;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { color: var(--text-secondary); font-size: 1.05rem; }

a { text-decoration: none; color: inherit; transition: var(--transition); }

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

/* NAVEGACIÓN */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(248, 246, 242, 0.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light); padding: 0 5%;
}

.nav-container {
  max-width: 1400px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; height: 80px;
}

.logo {
  font-family: Georgia, serif; font-size: 1.6rem; font-weight: 400;
  color: var(--text-primary); letter-spacing: 2px;
}

.logo span { color: var(--accent-gold); font-weight: 600; }

.nav-links {
  display: flex; gap: 2.5rem; list-style: none; align-items: center;
}

.nav-links a {
  font-size: 0.95rem; font-weight: 500; color: var(--text-secondary);
  position: relative; padding: 0.5rem 0;
}

.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--accent-gold); transition: var(--transition);
}

.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--text-primary); }

.nav-cta {
  background: var(--accent-gold); color: var(--bg-white) !important;
  padding: 0.6rem 1.5rem !important; border-radius: 4px; font-weight: 600 !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--accent-gold-dark); transform: translateY(-1px); }

.mobile-menu-btn {
  display: none; background: none; border: none; cursor: pointer; padding: 0.5rem;
}
.mobile-menu-btn span {
  display: block; width: 25px; height: 2px; background: var(--text-primary);
  margin: 6px 0; transition: var(--transition);
}

/* HERO */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 120px 5% 80px; position: relative; overflow: hidden;
}

.hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(184, 149, 106, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(184, 149, 106, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 800px; }

.hero-subtitle {
  font-size: 0.9rem; text-transform: uppercase; letter-spacing: 4px;
  color: var(--accent-gold); margin-bottom: 1.5rem; font-weight: 600;
}

.hero h1 { margin-bottom: 1.5rem; color: var(--text-primary); }

.hero-description { font-size: 1.2rem; max-width: 600px; margin: 0 auto 2.5rem; color: var(--text-secondary); }

.hero-cta { display: inline-flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

.btn-primary {
  background: var(--accent-gold); color: var(--bg-white); padding: 1rem 2.5rem;
  border-radius: 4px; font-weight: 600; font-size: 0.95rem; letter-spacing: 1px;
  border: 2px solid var(--accent-gold); transition: var(--transition); display: inline-block;
}
.btn-primary:hover {
  background: var(--accent-gold-dark); border-color: var(--accent-gold-dark);
  transform: translateY(-2px); box-shadow: var(--shadow-medium);
}

.btn-secondary {
  background: transparent; color: var(--text-primary); padding: 1rem 2.5rem;
  border-radius: 4px; font-weight: 600; font-size: 0.95rem; letter-spacing: 1px;
  border: 2px solid var(--border-light); transition: var(--transition); display: inline-block;
}
.btn-secondary:hover { border-color: var(--accent-gold); color: var(--accent-gold); transform: translateY(-2px); }

/* SECCIONES */
.section { padding: 100px 5%; max-width: 1400px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { margin-bottom: 1rem; color: var(--text-primary); }
.section-header p { max-width: 600px; margin: 0 auto; font-size: 1.1rem; }

.section-label {
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 3px;
  color: var(--accent-gold); font-weight: 600; margin-bottom: 0.8rem; display: block;
}

/* GRID CATEGORÍAS */
.categories-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem;
}

.category-card {
  background: var(--bg-white); border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow-soft); transition: var(--transition); cursor: pointer;
  border: 1px solid var(--border-light);
}
.category-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-medium); }

.category-card-image {
  width: 100%; height: 280px; object-fit: cover; transition: var(--transition);
}
.category-card:hover .category-card-image { transform: scale(1.05); }

.category-card-image-wrapper { overflow: hidden; position: relative; }
.category-card-image-wrapper::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(to top, rgba(28,28,28,0.4), transparent); pointer-events: none;
}

.category-card-content { padding: 1.8rem; }
.category-card h3 { margin-bottom: 0.5rem; color: var(--text-primary); }
.category-card p { font-size: 0.95rem; color: var(--text-secondary); }

.category-card .arrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 1rem; color: var(--accent-gold); font-weight: 600; font-size: 0.9rem;
}
.category-card:hover .arrow { gap: 0.8rem; }

/* PRODUCTOS */
.products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem;
}

.product-card {
  background: var(--bg-white); border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow-soft); transition: var(--transition); border: 1px solid var(--border-light);
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-medium); }

.product-image {
  width: 100%; height: 260px; object-fit: cover;
  background: linear-gradient(135deg, #f0ece6 0%, #e8e4de 100%);
}

.product-info { padding: 1.5rem; }
.product-info h3 { margin-bottom: 0.4rem; font-size: 1.15rem; }
.product-info .price { color: var(--accent-gold); font-weight: 700; font-size: 1.1rem; margin-top: 0.5rem; }
.product-info .description { font-size: 0.9rem; margin-top: 0.5rem; }

/* ACCESORIOS */
.accessories-section {
  background: linear-gradient(to bottom, var(--bg-primary), #f0ece6); padding: 80px 5%;
}

.accessories-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem;
}

.accessory-item {
  background: var(--bg-white); border-radius: 10px; padding: 1.5rem; text-align: center;
  box-shadow: var(--shadow-soft); border: 1px solid var(--border-light); transition: var(--transition);
}
.accessory-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-medium); }

.accessory-icon {
  width: 60px; height: 60px; margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--accent-gold-light), var(--accent-gold));
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}

.accessory-item h4 { font-size: 1rem; margin-bottom: 0.3rem; font-family: system-ui, sans-serif; font-weight: 600; }
.accessory-item p { font-size: 0.85rem; color: var(--text-light); }

/* FOOTER */
.footer {
  background: var(--bg-dark); color: #aaa; padding: 60px 5% 30px;
}

.footer-content {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo { color: var(--bg-white); margin-bottom: 1rem; display: inline-block; }
.footer-brand p { color: #888; font-size: 0.95rem; line-height: 1.7; }

.footer-links h4 {
  color: var(--bg-white); font-size: 1rem; margin-bottom: 1.2rem;
  font-family: system-ui, sans-serif; font-weight: 600; letter-spacing: 1px;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.7rem; }
.footer-links a { color: #888; font-size: 0.95rem; transition: var(--transition); }
.footer-links a:hover { color: var(--accent-gold); padding-left: 5px; }

.footer-bottom {
  border-top: 1px solid #333; padding-top: 2rem; text-align: center;
  font-size: 0.9rem; color: #666;
}

/* WHATSAPP */
.whatsapp-float {
  position: fixed; bottom: 30px; right: 30px; z-index: 9999;
  width: 60px; height: 60px; background: var(--whatsapp); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: var(--transition); animation: pulse-whatsapp 2s infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5); background: var(--whatsapp-dark);
}
.whatsapp-float svg { width: 32px; height: 32px; fill: white; }

@keyframes pulse-whatsapp {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links {
    display: none; position: absolute; top: 80px; left: 0; right: 0;
    background: var(--bg-primary); flex-direction: column; padding: 2rem;
    gap: 1.5rem; border-bottom: 1px solid var(--border-light); box-shadow: var(--shadow-medium);
  }
  .nav-links.active { display: flex; }
  .mobile-menu-btn { display: block; }
  .hero { padding: 100px 5% 60px; min-height: auto; }
  .section { padding: 60px 5%; }
  .categories-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .whatsapp-float { width: 55px; height: 55px; bottom: 20px; right: 20px; }
  .footer-content { grid-template-columns: 1fr; gap: 2rem; }
}

.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
