/* CASA VOLCANO - ESTILOS PREMIUM & EXPERIENCIA DE LUJO */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Montserrat:wght@200;300;400;500;600;700&display=swap');

:root {
  --color-volcanic-black: #0A0A0A;
  --color-black-sand: #1C1C1C;
  --color-premium-gold: #D4AF37;
  --color-brushed-gold: #B08D2C;
  --color-stone-gray: #A8A8A8;
  --color-white-pure: #FFFFFF;
  --font-serif: 'Cinzel', serif;
  --font-sans: 'Montserrat', sans-serif;
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-gold-subtle: 0 4px 30px rgba(212, 175, 55, 0.08);
  --shadow-gold-active: 0 10px 40px rgba(212, 175, 55, 0.18);
}

/* RESET & CONFIGURACIÓN BASE */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--color-volcanic-black);
  color: var(--color-white-pure);
  font-family: var(--font-sans);
}

body {
  overflow-x: hidden;
}

/* TIPOGRAFÍA EXCLUSIVA */
.font-cinzel {
  font-family: var(--font-serif);
  letter-spacing: 0.15em;
}

.font-montserrat {
  font-family: var(--font-sans);
}

/* SCROLLBAR PERSONALIZADO DE LUJO */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-volcanic-black);
}

::-webkit-scrollbar-thumb {
  background: var(--color-brushed-gold);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-premium-gold);
}

/* GRADIENTES Y EFECTOS TEXTURIZADOS */
.text-gold-gradient {
  background: linear-gradient(135deg, #FFF6D6 0%, #D4AF37 50%, #B08D2C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  display: inline-block;
  position: relative;
}

.text-gold-shine {
  background: linear-gradient(to right, #B08D2C 0%, #FFF6D6 25%, #D4AF37 50%, #FFF6D6 75%, #B08D2C 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  animation: shine 4s linear infinite;
}

@keyframes shine {
  0% {
    background-position: 0% center;
  }

  100% {
    background-position: 200% center;
  }
}

/* HERO TEXTURE WITH DUAL-LAYER OVERLAY */
.hero-texture-bg {
  position: relative;
  background-image: url('../hero-texture-gold.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-texture-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(10, 10, 10, 0.45) 0%, rgba(10, 10, 10, 0.95) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.bg-radial-dark-gold {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(10, 10, 10, 0.2) 0%, rgba(10, 10, 10, 0.75) 65%, rgba(10, 10, 10, 0.96) 100%);
  pointer-events: none;
}

/* VIDEO DE FONDO HERO - RESPONSIVO COMPLETO */
.hero-video {
  object-fit: cover;
  object-position: center center;
}

/* Móviles en orientación vertical: el video se expande para cubrir la pantalla alta */
@media (max-width: 640px) {
  .hero-video {
    min-height: 100%;
    min-width: 100%;
    width: auto;
    height: 100%;
  }
}

/* Orientación horizontal en móviles */
@media (max-width: 640px) and (orientation: landscape) {
  .hero-video {
    width: 100%;
    height: auto;
    min-height: 100%;
  }
}

/* Tablets */
@media (min-width: 641px) and (max-width: 1024px) {
  .hero-video {
    min-width: 100%;
    min-height: 100%;
  }
}

/* BOTONES DE LUJO (CTA) */
.btn-gold-luxury {
  position: relative;
  background: linear-gradient(135deg, var(--color-brushed-gold) 0%, var(--color-premium-gold) 50%, var(--color-brushed-gold) 100%);
  color: var(--color-volcanic-black);
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0.1em;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: var(--shadow-gold-subtle);
  overflow: hidden;
  transition: var(--transition-smooth);
  border-radius: 0;
}

.btn-gold-luxury::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.35), transparent);
  transition: 0.6s;
}

.btn-gold-luxury:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold-active);
  color: #000;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-gold-luxury:hover::before {
  left: 100%;
}

.btn-gold-outline {
  background: transparent;
  color: var(--color-premium-gold);
  border: 1px solid var(--color-brushed-gold);
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: var(--transition-smooth);
  border-radius: 0;
}

.btn-gold-outline:hover {
  background: var(--color-premium-gold);
  color: var(--color-volcanic-black);
  border-color: var(--color-premium-gold);
  box-shadow: var(--shadow-gold-subtle);
}

/* TARJETAS DE PRODUCTOS EXCLUSIVOS */
.product-card {
  background-color: var(--color-black-sand);
  border: 1px solid rgba(212, 175, 55, 0.05);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.product-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid var(--color-premium-gold);
  opacity: 0;
  transition: var(--transition-smooth);
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), var(--shadow-gold-subtle);
}

.product-card:hover::after {
  opacity: 0.25;
}

.product-card img {
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* VALORES DE MARCA INTERACTIVOS */
.value-card {
  transition: var(--transition-smooth);
  border-bottom: 2px solid transparent;
}

.value-card:hover {
  background-color: rgba(28, 28, 28, 0.4);
  border-bottom: 2px solid var(--color-premium-gold);
  transform: translateY(-4px);
}

.value-card svg {
  transition: var(--transition-smooth);
}

.value-card:hover svg {
  transform: rotateY(180deg) scale(1.1);
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.4));
}

/* CARRITO - DRAWER LATERAL SLIDE IN */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 480px;
  height: 100%;
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 50;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8), -1px 0 0 rgba(212, 175, 55, 0.1);
  transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.open {
  right: 0;
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* PASARELA DE PAGO - MODAL DE LUJO */
.payment-modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.payment-modal-container.open {
  opacity: 1;
  pointer-events: auto;
}

.payment-modal-content {
  background: var(--color-black-sand);
  border: 1px solid rgba(212, 175, 55, 0.15);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), var(--shadow-gold-active);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  max-width: 520px;
}

.payment-modal-container.open .payment-modal-content {
  transform: translateY(0) scale(1);
}

/* INPUTS DE LUJO PARA FORMULARIOS */
.input-gold {
  background-color: var(--color-volcanic-black);
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: var(--color-white-pure);
  transition: var(--transition-smooth);
}

.input-gold:focus {
  outline: none;
  border-color: var(--color-premium-gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}

/* SPINNER DE CARGA DORADO */
.gold-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(212, 175, 55, 0.1);
  border-top-color: var(--color-premium-gold);
  border-radius: 50%;
  animation: spin 1s ease-in-out infinite;
}

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

/* PESTAÑAS DE FILTRO EXCLUSIVO */
.tab-filter {
  position: relative;
  transition: var(--transition-smooth);
  color: var(--color-stone-gray);
}

.tab-filter.active {
  color: var(--color-premium-gold);
}

.tab-filter::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-premium-gold);
  transition: var(--transition-smooth);
}

.tab-filter.active::after {
  width: 100%;
}

.tab-filter:hover {
  color: var(--color-white-pure);
}

/* EFECTO HOVER DE NAVEGACIÓN HEADER */
.nav-link {
  position: relative;
  transition: var(--transition-smooth);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-premium-gold);
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--color-premium-gold);
}

.nav-link:hover::after {
  width: 100%;
}

/* NOTIFICACIÓN FLOTANTE (ADDED TO CART) */
.toast-notification {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(28, 28, 28, 0.95);
  border: 1px solid var(--color-premium-gold);
  box-shadow: var(--shadow-gold-active);
  z-index: 200;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0;
}

.toast-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* EFECTO DE ANIMACIÓN DE ENTRADA DE FILTRADO */
.product-grid-item {
  animation: fadeInProduct 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInProduct {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }

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

/* FORMULARIO DE CONTACTO PREMIUM */
.contact-form-premium {
  transition: var(--transition-smooth);
}

.contact-form-premium:hover {
  border-color: rgba(212, 175, 55, 0.12);
}

/* Select dropdown custom arrow */
.contact-form-premium select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23D4AF37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  padding-right: 36px;
}

/* Textarea custom styles */
.contact-form-premium textarea {
  min-height: 120px;
  line-height: 1.8;
}

/* Contact info cards */
.contact-info-card {
  transition: var(--transition-smooth);
}

.contact-info-card:hover {
  transform: translateX(6px);
  background-color: rgba(28, 28, 28, 0.6);
}

/* Contact form status messages */
.contact-status-success {
  background-color: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--color-premium-gold);
}

.contact-status-error {
  background-color: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: #ef4444;
}

/* Contact button loading state */
.btn-loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn-loading .contact-spinner {
  display: inline-block;
}

.contact-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(10, 10, 10, 0.2);
  border-top-color: var(--color-volcanic-black);
  border-radius: 50%;
  animation: spin 0.8s ease-in-out infinite;
}

/* Success checkmark animation */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.contact-status-success {
  animation: scaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* MODAL DE DETALLE DE PRODUCTO DE LUJO */
.product-detail-modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-detail-modal-container.open {
  opacity: 1;
  pointer-events: auto;
}

.product-detail-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10;
}

.product-detail-modal-content {
  background: var(--color-black-sand);
  border: 1px solid rgba(212, 175, 55, 0.15);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), var(--shadow-gold-active);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 20;
  max-height: 90vh;
}

.product-detail-modal-container.open .product-detail-modal-content {
  transform: translateY(0) scale(1);
}

#detail-product-image {
  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-detail-modal-content:hover #detail-product-image {
  transform: scale(1.03);
}

.product-card {
  cursor: pointer;
}

/* SYSTEM OF PREMIUM ENTRANCE ANIMATIONS (SCROLL-DRIVEN) */
.reveal {
  opacity: 0;
  transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1), transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal-fade-up {
  transform: translateY(40px);
}

.reveal-fade-down {
  transform: translateY(-40px);
}

.reveal-fade-left {
  transform: translateX(-40px);
}

.reveal-fade-right {
  transform: translateX(40px);
}

.reveal-zoom-in {
  transform: scale(0.95);
}

/* Revealed active state */
.reveal.revealed {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Delays for staggered entries */
.delay-75  { transition-delay: 75ms; }
.delay-100 { transition-delay: 100ms; }
.delay-150 { transition-delay: 150ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }
.delay-600 { transition-delay: 600ms; }
.delay-700 { transition-delay: 700ms; }
.delay-800 { transition-delay: 800ms; }

/* Durations */
.duration-1000 { transition-duration: 1000ms; }
.duration-1500 { transition-duration: 1500ms; }
.duration-1800 { transition-duration: 1800ms; }
.duration-2000 { transition-duration: 2000ms; }