/* ========================================
   ESSENCE ROYALE - CSS MEJORADO COMPLETO
   ======================================== */

/* ---- VARIABLES Y ESTILOS GLOBALES ---- */
:root {
  --color-gold: #d4af37;
  --color-dark: #0a0a0a;
  --color-light-gold: #e8c547;
  --color-text: #e0e0e0;
  --transition: all 0.3s ease;
}

body {
  font-family: 'Playfair Display', 'Georgia', serif;
  background-color: var(--color-dark);
  color: var(--color-text);
  line-height: 1.6;
}

/* ---- TIPOGRAFÍA Y ENCABEZADOS ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-gold);
  text-transform: uppercase;
}

h1 {
  font-size: 3.5rem;
  margin: 1.5rem 0;
  line-height: 1.2;
}

h2 {
  font-size: 2.8rem;
  margin: 1.2rem 0;
  position: relative;
  padding-bottom: 15px;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), transparent);
}

h3 {
  font-size: 1.8rem;
  margin: 1rem 0;
}

p, .text-content {
  font-family: 'Lato', 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  color: #c0c0c0;
  letter-spacing: 0.5px;
}

/* ---- ESPACIADO GENERAL ---- */
.elementor-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.elementor-section {
  padding: 4rem 2rem !important;
}

.elementor-column {
  padding: 1.5rem;
}

/* ---- HEADER Y NAVEGACIÓN ---- */
header, .site-header {
  background: linear-gradient(180deg, rgba(0,0,0,0.95) 0%, rgba(20,20,20,0.9) 100%);
  padding: 1.5rem 2rem;
  border-bottom: 2px solid var(--color-gold);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 3px;
  transition: var(--transition);
}

.logo:hover {
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
  color: var(--color-light-gold);
}

nav a, .menu-item {
  color: var(--color-text);
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 1px;
  padding: 0.5rem 1rem;
  transition: var(--transition);
  position: relative;
}

nav a::after, .menu-item::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width 0.3s ease;
}

nav a:hover::after, .menu-item:hover::after {
  width: 100%;
}

nav a:hover, .menu-item:hover {
  color: var(--color-gold);
}

/* ---- HERO / SECCIÓN PRINCIPAL ---- */
.hero-section, .hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(20,20,20,0.7) 100%), 
              url('') center/cover;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 40%, rgba(212,175,55,0.1) 0%, transparent 50%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 600px;
  animation: fadeInUp 1s ease;
}

/* ---- SECCIÓN COLECCIONES ---- */
.colecciones-section, .collections-section {
  padding: 5rem 2rem !important;
  background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
  position: relative;
}

.colecciones-title, .collections-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 3rem;
  color: var(--color-gold);
  text-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
}

.grid-colecciones, .collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* ---- TARJETAS DE PRODUCTOS ---- */
.product-card, .collection-card {
  background: linear-gradient(135deg, rgba(30,30,30,0.9) 0%, rgba(20,20,20,0.95) 100%);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.product-card:hover, .collection-card:hover {
  transform: translateY(-10px);
  border-color: var(--color-gold);
  box-shadow: 0 20px 50px rgba(212, 175, 55, 0.2);
}

.product-image, .collection-image {
  position: relative;
  overflow: hidden;
  height: 300px;
  background: #000;
}

.product-image img, .collection-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-image img,
.collection-card:hover .collection-image img {
  transform: scale(1.08);
}

.product-overlay, .collection-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(212,175,55,0) 0%, rgba(0,0,0,0.8) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  z-index: 5;
}

.product-card:hover .product-overlay,
.collection-card:hover .collection-overlay {
  opacity: 1;
}

.product-info, .collection-info {
  padding: 1.5rem;
}

.product-name, .collection-name {
  font-size: 1.3rem;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.product-category, .collection-category {
  font-size: 0.85rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.8rem;
}

.product-description, .collection-description {
  font-size: 0.9rem;
  color: #b0b0b0;
  line-height: 1.5;
}

/* ---- BOTONES ---- */
.btn, button, .elementor-button {
  background: linear-gradient(135deg, var(--color-gold) 0%, #c89f35 100%);
  color: #000;
  padding: 12px 30px;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  display: inline-block;
  text-decoration: none;
}

.btn:hover, button:hover, .elementor-button:hover {
  background: linear-gradient(135deg, var(--color-light-gold) 0%, var(--color-gold) 100%);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
  transform: translateY(-2px);
}

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

.btn-secondary:hover {
  background: var(--color-gold);
  color: #000;
}

/* ---- BARRA DE BÚSQUEDA ---- */
.search-bar, .search-form {
  position: relative;
  max-width: 500px;
  margin: 2rem auto;
}

input[type="search"], input[type="text"] {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid var(--color-gold);
  border-radius: 4px;
  font-size: 1rem;
  color: #000;
  transition: var(--transition);
}

input[type="search"]:focus, input[type="text"]:focus {
  outline: none;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
  border-color: var(--color-light-gold);
}

input[type="search"]::placeholder, input[type="text"]::placeholder {
  color: #999;
}

/* ---- FOOTER ---- */
footer, .site-footer {
  background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
  border-top: 2px solid var(--color-gold);
  padding: 3rem 2rem;
  margin-top: 4rem;
}

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

.footer-section h4 {
  color: var(--color-gold);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-section a {
  color: #999;
  text-decoration: none;
  transition: var(--transition);
  display: block;
  margin: 0.5rem 0;
}

.footer-section a:hover {
  color: var(--color-gold);
  padding-left: 5px;
}

/* ---- ANIMACIONES ---- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-on-scroll {
  animation: fadeInUp 0.8s ease forwards;
}

/* ---- RESPONSIVO (Mobile First) ---- */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  .elementor-section {
    padding: 2rem 1rem !important;
  }

  .grid-colecciones, .collections-grid {
    grid-template-columns: 1fr;
  }

  .hero-section, .hero {
    min-height: 350px;
  }

  nav a, .menu-item {
    font-size: 0.9rem;
    padding: 0.5rem 0.8rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
    letter-spacing: 1px;
  }

  h2 {
    font-size: 1.3rem;
  }

  .elementor-container {
    padding: 0 1rem;
  }

  .btn, button {
    padding: 10px 20px;
    font-size: 0.85rem;
  }

  .product-image, .collection-image {
    height: 200px;
  }
}

/* ---- UTILIDADES ---- */
.text-center {
  text-align: center;
}

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

.text-muted {
  color: #999;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* ---- COMPATIBILIDAD CON WOOCOMMERCE ---- */
.woocommerce-loop-product__title {
  color: var(--color-gold);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.woocommerce-loop-product__title:hover {
  color: var(--color-light-gold);
}

.woocommerce-loop-product__link {
  text-decoration: none;
}

.woocommerce-LoopProductLink {
  transition: var(--transition);
}

.star-rating {
  color: var(--color-gold);
}