/* home.css - Estilos específicos para la página de inicio */
/* ===== SECCIÓN PRINCIPAL - TÍTULOS DIFERENCIADOS ===== */
.hero {
  padding: 4rem 0;
  background-image: url('/imgs/TEXTURAS/fondoBlog1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-bottom: 3rem;
  position: relative;
}

/* Overlay para mejorar la legibilidad del texto */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  padding-right: 2rem;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 2rem;
  border-radius: 8px;
  backdrop-filter: blur(2px);
}

/* Título principal "JmAlmagro" - Elegante y artístico */
.hero-main-title {
  font-family: var(--font-serif);
  font-size: 3.8rem;
  font-weight: 600;
  color: #f8f9fa;
  margin-bottom: 0.8rem;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
  line-height: 1.1;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(45deg, #ffffff, #e2e8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Título "ArteDistruptivoJM" - Rojo vibrante y llamativo */
.hero-subtitle {
  font-family: var(--font-sans);
  font-size: 2.2rem;
  font-weight: 700;
  color: #dc3545;
  margin-bottom: 1.5rem;
  text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.9);
  line-height: 1.2;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
}

/* Efecto subrayado para ArteDistruptivoJM */
.hero-subtitle::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #dc3545, #ff6b6b);
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.4);
}

.hero-content p {
  color: var(--color-white);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.hero-image {
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-large);
  position: relative;
  width: 100%;
  max-width: 450px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border: 3px solid var(--color-accent);
  z-index: 2;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Media queries para títulos responsivos */
@media (max-width: 992px) {
  .hero-main-title {
    font-size: 3.2rem;
    letter-spacing: 1px;
  }
  
  .hero-subtitle {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
  }
  
  .hero-content {
    padding-right: 0;
    order: 2;
    text-align: center;
    padding: 1.5rem;
    width: 100%;
    overflow: hidden;
    margin: 0 15px;
  }
  
  .hero-main-title {
    font-size: 2.6rem;
    letter-spacing: 1px;
  }
  
  .hero-subtitle {
    font-size: 1.6rem;
  }
  
  .hero-image {
    order: 1;
    max-width: 300px;
    margin: 0 auto 2rem;
  }
  
  .hero-content .btn {
    display: inline-block;
    margin: 0 auto;
  }
}

@media (max-width: 576px) {
  .hero-main-title {
    font-size: 2rem;
    letter-spacing: 0px;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
  
  .hero-content {
    padding: 1rem;
    margin: 0 10px;
  }
}
/* ===== SECCIÓN DE CATEGORÍAS ===== */
.categories-section {
  padding: 2rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1.5rem;
  height: auto;
}

.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow-medium);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  height: 100%;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-large);
}

/* Distribución específica de las categorías */
.category-esculturas {
  grid-column: span 3;
  grid-row: span 2;
}

.category-libros {
  grid-column: span 3;
  grid-row: span 1;
}

.category-relojes {
  grid-column: span 3;
  grid-row: span 1;
}

.category-pinturas {
  grid-column: 2 / 6;
  grid-row: span 1;
}

.category-image {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 200px;
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.category-card:hover .category-image img {
  transform: scale(1.05);
}

.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(18, 18, 18, 0.2), rgba(18, 18, 18, 0.8));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 1.5rem;
  transition: background var(--transition-medium);
}

.category-card:hover .category-overlay {
  background: linear-gradient(to bottom, rgba(138, 90, 210, 0.2), rgba(138, 90, 210, 0.8));
}

.category-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--color-white);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.category-description {
  font-size: 1rem;
  color: var(--color-off-white);
  margin-bottom: 1rem;
  max-width: 90%;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.category-btn {
  background-color: var(--color-accent);
  color: var(--color-white);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 500;
  transition: all var(--transition-fast);
  text-decoration: none;
  display: inline-block;
}

.category-btn:hover {
  background-color: var(--color-accent-light);
  transform: translateY(-2px);
}

/* ===== SECCIÓN DE PRODUCTOS DESTACADOS ===== */
.products-section {
  padding: 4rem 0;
  background-color: var(--color-dark-medium);
  margin-top: 2rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.product-card {
  background-color: var(--color-dark-light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-large);
}

.product-image {
  height: 250px;
  background-color: var(--color-dark-medium);
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-info {
  padding: 1.5rem;
}

.product-category {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.product-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.product-price {
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--color-white);
}

/* Media queries específicas para la página de inicio */
@media (max-width: 992px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  
  .category-esculturas {
    grid-column: span 2;
    grid-row: span 1;
  }
  
  .category-libros {
    grid-column: span 1;
    grid-row: span 1;
  }
  
  .category-relojes {
    grid-column: span 1;
    grid-row: span 1;
  }
  
  .category-pinturas {
    grid-column: span 2;
    grid-row: span 1;
  }
  
  .category-image {
    min-height: 180px;
  }
  
  .hero-main-title {
    font-size: 2.8rem;
  }
  
  .hero-subtitle {
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
  }
  
  .hero-content {
    padding-right: 0;
    order: 2;
    text-align: center;
    padding: 1.5rem;
    width: 100%;
    overflow: hidden;
    margin: 0 15px;
  }
  
  .hero-main-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.4rem;
  }
  
  .hero-image {
    order: 1;
    max-width: 300px;
    margin: 0 auto 2rem;
  }
  
  .hero-content .btn {
    display: inline-block;
    margin: 0 auto;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  
  .category-title {
    font-size: 1.5rem;
  }
  
  .category-description {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .categories-grid {
    grid-template-columns: 1fr;
  }
  
  .category-esculturas,
  .category-libros,
  .category-relojes,
  .category-pinturas {
    grid-column: span 1;
    grid-row: span 1;
  }
  
  .category-image {
    min-height: 200px;
  }
  
  .hero-main-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .hero-content {
    padding: 1rem;
    margin: 0 10px;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .product-image {
    height: 200px;
  }
}

/* Reemplaza la clase .products-grid-centered existente con esta: */

.products-grid-centered {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Asegúrate de que las cards mantengan su tamaño */
.products-grid-centered .product-card {
    flex: 0 0 auto;
    width: 250px; /* Ancho fijo para mantener consistencia */
}

/* Responsive: en móviles mantiene una columna centrada */
@media (max-width: 768px) {
    .products-grid-centered {
        max-width: 300px;
        flex-direction: column;
        align-items: center;
    }
    
    .products-grid-centered .product-card {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 576px) {
    .products-grid-centered {
        max-width: 250px;
    }
    
    .products-grid-centered .product-card {
        max-width: 250px;
    }
}