/* 
==========================================
CANTERASQRO PREMIUM DESIGN SYSTEM
==========================================
Sistema de diseño premium para CanterasQRO
Paleta de colores inspirada en cantera natural
*/

/* =================== IMPORTAR FUENTES PREMIUM =================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* =================== VARIABLES CSS PREMIUM =================== */
:root {
  /* === COLORES PRINCIPALES === */
  --cantera-primary: #8B6F47;      /* Beige cantera natural */
  --cantera-primary-dark: #6B5437; /* Cantera oscura */
  --cantera-primary-light: #A68B63; /* Cantera clara */
  
  /* === COLORES SECUNDARIOS === */
  --cantera-secondary: #C4A484;    /* Ocre suave */
  --cantera-tertiary: #D4B896;     /* Beige claro */
  --cantera-accent: #B8860B;       /* Dorado sutil */
  
  /* === GRISES SOFISTICADOS === */
  --gray-50: #FAFAF9;
  --gray-100: #F5F5F4;
  --gray-200: #E7E5E4;
  --gray-300: #D6D3D1;
  --gray-400: #A8A29E;
  --gray-500: #78716C;
  --gray-600: #57534E;
  --gray-700: #44403C;
  --gray-800: #292524;
  --gray-900: #1C1917;
  
  /* === MEJORAS DE CONTRASTE === */
  --text-primary: #1C1917;        /* Texto principal oscuro */
  --text-secondary: #44403C;      /* Texto secundario */
  --text-muted: #57534E;          /* Texto deshabilitado */
  --bg-card: #FFFFFF;             /* Fondo de tarjetas */
  --bg-muted: #F5F5F4;           /* Fondo suave */
  
  /* === COLORES ESTADO === */
  --success: #16A34A;
  --warning: #F59E0B;
  --error: #DC2626;
  --info: #3B82F6;
  
  /* === TIPOGRAFÍA === */
  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  
  /* === TAMAÑOS DE FUENTE === */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  
  /* === ESPACIADO === */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  
  /* === SOMBRAS ELEGANTES === */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-premium: 0 25px 50px -12px rgba(139, 111, 71, 0.25);
  
  /* === BORDES === */
  --radius-sm: 0.25rem;
  --radius: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  
  /* === TRANSICIONES === */
  --transition-fast: 150ms ease-out;
  --transition-base: 250ms ease-out;
  --transition-slow: 350ms ease-out;
  --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

/* =================== MEJORAS DE CONTRASTE =================== */
.card {
  background-color: var(--bg-card);
  color: var(--text-primary);
}

.card-body {
  background-color: #f5f1ea !important;
  color: var(--text-primary) !important;
}

/* Asegurar consistencia del color beige cantera */
.card-body,
.neu-product-card .card-body,
.product-card .card-body {
  background-color: #f5f1ea !important;
}

.text-contrast-high {
  color: var(--text-primary) !important;
}

.text-contrast-medium {
  color: var(--text-secondary) !important;
}

.text-contrast-low {
  color: var(--text-muted) !important;
}

/* Mejoras específicas para productos - Color actualizado a beige cantera - Version 2024 */
.product-card .card-body,
.neu-product-card .card-body,
.card-body.bg-white,
.bg-white.card-body {
  background: #f5f1ea !important;
}

/* Selector adicional para forzar el cambio */
.product-card > .card-body,
.neu-product-card > .card-body {
  background-color: #f5f1ea !important;
}

/* Forzar color beige en todos los card-body */
div.card-body {
  background: #f5f1ea !important;
}

/* Regla final para garantizar el color beige cantera */
.card-body,
div[class*="card-body"] {
  background: #f5f1ea !important;
  background-color: #f5f1ea !important;
}

.product-card .card-body h3 {
  color: var(--gray-900) !important;
}

.product-card .card-body p {
  color: var(--gray-700) !important;
}

.product-card .card-body .text-xs {
  color: var(--gray-700) !important;
}

/* Hero text improvements */
.text-hero-shadow {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.text-subtitle-shadow {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--gray-50);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =================== TIPOGRAFÍA PREMIUM =================== */
.font-display {
  font-family: var(--font-display);
}

.font-body {
  font-family: var(--font-body);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 var(--space-4) 0;
  color: var(--gray-900);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

.text-hero {
  font-size: var(--text-6xl);
  font-weight: 700;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--cantera-primary), var(--cantera-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-subtitle {
  font-size: var(--text-xl);
  color: #b5b5b5;
  font-weight: 400;
}

/* =================== COMPONENTES PREMIUM =================== */

/* === BOTONES ELEGANTES === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cantera-primary), var(--cantera-primary-dark));
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--cantera-primary-dark), var(--cantera-primary));
}

.btn-secondary {
  background: white;
  color: var(--cantera-primary);
  border: 2px solid var(--cantera-primary);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--cantera-primary);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
}

.btn-ghost:hover {
  background: var(--gray-100);
  border-color: var(--gray-400);
}

.btn-luxury {
  background: linear-gradient(135deg, var(--cantera-accent), #D4AF37);
  color: white;
  font-weight: 600;
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
  box-shadow: var(--shadow-premium);
}

.btn-luxury:hover {
  transform: translateY(-3px);
  box-shadow: 0 32px 64px -12px rgba(139, 111, 71, 0.4);
}

/* === CARDS PREMIUM === */
.card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.card-premium {
  background: linear-gradient(145deg, white, var(--gray-50));
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-premium);
}

.card-premium:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 64px -12px rgba(139, 111, 71, 0.3);
}

.card-body {
  padding: var(--space-6);
}

/* Redondeado superior para imágenes en tarjetas */
.card img[class*="object-cover"],
.neu-product-card img[class*="object-cover"],
.sculpture-card img[class*="object-cover"],
.product-card img[class*="object-cover"],
.card img.w-full,
.neu-product-card img.w-full,
.sculpture-card img.w-full,
.product-card img.w-full,
.sculpture-image,
.gallery img,
.category-image img,
.neu-card img,
.sculpture-image-container img {
  border-radius: 10px 10px 0 0 !important;
}

/* Redondeado específico para contenedores de imágenes */
.relative.overflow-hidden img,
.sculpture-image-container .sculpture-image {
  border-radius: 10px 10px 0 0 !important;
}

/* Para las categorías del home que no tienen el círculo */
.neu-concave img {
  border-radius: 50% !important; /* Mantener circular para categorías */
}

/* Overlay de acciones con redondeado superior */
.neu-product-card .absolute.inset-0,
.product-card .absolute.inset-0,
.card .absolute.inset-0 {
  border-radius: 10px 10px 0 0;
}

.card-header {
  padding: var(--space-6);
  border-bottom: 1px solid var(--gray-200);
}

.card-footer {
  padding: var(--space-6);
  border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
}

/* === INPUTS SOFISTICADOS === */
.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.form-input {
  width: 100%;
  padding: var(--space-4);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  transition: all var(--transition-base);
  background: white;
}

.form-input:focus {
  outline: none;
  border-color: var(--cantera-primary);
  box-shadow: 0 0 0 3px rgba(139, 111, 71, 0.1);
}

.form-input:invalid {
  border-color: var(--error);
}

/* === BADGES Y TAGS === */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  background: var(--cantera-secondary);
  color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.badge-primary {
  background: var(--cantera-primary);
  color: white;
}

.badge-luxury {
  background: linear-gradient(135deg, var(--cantera-accent), #D4AF37);
  color: white;
}

.badge-new {
  background: var(--success);
  color: white;
}

/* =================== LAYOUT PREMIUM =================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-fluid {
  max-width: 100%;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-20) 0;
}

.section-sm {
  padding: var(--space-12) 0;
}

.section-lg {
  padding: var(--space-24) 0;
}

/* === GRID SYSTEM === */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }
}

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

.text-primary { color: var(--cantera-primary); }
.text-secondary { color: var(--cantera-secondary); }
.text-accent { color: var(--cantera-accent); }
.text-muted { color: var(--gray-500); }

.bg-primary { background-color: var(--cantera-primary); }
.bg-secondary { background-color: var(--cantera-secondary); }
.bg-white { background-color: white; }
.bg-gray { background-color: var(--gray-100); }

.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

.shadow { box-shadow: var(--shadow); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-premium { box-shadow: var(--shadow-premium); }

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

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

@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.6s ease-out;
}

.animate-shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200px 100%;
  animation: shimmer 1.5s infinite;
}

/* =================== RESPONSIVE =================== */
@media (max-width: 640px) {
  :root {
    --text-5xl: 2.25rem;
    --text-6xl: 2.5rem;
  }
  
  .container {
    padding: 0 var(--space-4);
  }
  
  .section {
    padding: var(--space-12) 0;
  }
}

/* =================== MODO OSCURO (OPCIONAL) =================== */
/* =================== REDES SOCIALES =================== */
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-md);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--gray-300);
  transition: all var(--transition-base);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

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

.social-link:focus {
  outline: 2px solid var(--cantera-accent);
  outline-offset: 2px;
}

/* Colores específicos por red social en hover */
.social-link[href*="facebook.com"]:hover {
  background-color: #1877F2;
  border-color: #1877F2;
}

.social-link[href*="instagram.com"]:hover {
  background: linear-gradient(45deg, #F56040, #C13584, #833AB4);
  border-color: #C13584;
}

.social-link[href*="pinterest.com"]:hover {
  background-color: #E60023;
  border-color: #E60023;
}

.social-link[href*="tiktok.com"]:hover {
  background-color: #000000;
  border-color: #FF0050;
}

/* Animación adicional para TikTok */
.social-link[href*="tiktok.com"]:hover svg {
  animation: tiktok-bounce 0.6s ease-in-out;
}

@keyframes tiktok-bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-3px); }
  60% { transform: translateY(-2px); }
}

/* Responsive para móviles */
@media (max-width: 640px) {
  .social-link {
    width: 2.25rem;
    height: 2.25rem;
  }
  
  .social-link svg {
    width: 1.125rem;
    height: 1.125rem;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --gray-50: #1C1917;
    --gray-100: #292524;
    --gray-800: #F5F5F4;
    --gray-900: #FAFAF9;
  }
  
  body {
    background-color: var(--gray-50);
    color: var(--gray-800);
  }
}