/* ============ Estilos específicos - Oficina ============ */
/* Paleta de colores: #df2531 (rojo principal con 65% transparencia) y #ffffff (blanco) */

/* Fondo de la página */
body.page {
  background: #F5F3F4;
}

.page main {
  background: #F5F3F4;
}

/* Banner Hero personalizado - Estilo cuadrado empresarial */
.category-hero {
  position: relative;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 48px;
  border-radius: 4px; /* Estilo más cuadrado */
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  border: 1px solid #D3D3D3;
}

.category-hero__bg {
  position: absolute;
  inset: 0;
  background: #df2531;
  background-image: url('../img/Imag02.webp');
  background-size: cover;
  background-position: center;
  filter: brightness(0.6);
}

.category-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(223, 37, 49, 0.65); /* 65% transparencia del color principal */
}

.category-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #FFFFFF;
  padding: 80px 20px;
  max-width: 900px;
}

.category-hero__title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  margin: 0 0 20px;
  color: #FFFFFF;
  text-shadow: 2px 2px 8px rgba(11, 9, 10, 0.5);
  letter-spacing: -0.5px;
}

.category-hero__subtitle {
  font-size: clamp(18px, 2.5vw, 26px);
  margin: 0 0 32px;
  color: #F5F3F4;
  line-height: 1.7;
  font-weight: 400;
}

.category-hero__badge {
  display: inline-block;
  background: rgba(223, 37, 49, 0.25);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(223, 37, 49, 0.5);
  padding: 10px 24px;
  border-radius: 4px; /* Estilo cuadrado */
  font-size: 14px;
  font-weight: 700;
  margin-top: 20px;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Grid de subcategorías - Estilo empresarial cuadrado */
.category-grid {
  padding: 48px 0;
  background: #F5F3F4;
}

.category-grid .grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.category-card {
  background: #FFFFFF;
  border-radius: 12px; /* Bordes ligeramente redondeados */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 2px solid #D3D3D3;
  border-top: 4px solid #df2531;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(223, 37, 49, 0.2);
  border-color: #df2531;
}

/* Imagen completa: contain evita recortes; altura suficiente para ver el producto */
.category-card > img {
  width: 100%;
  height: 330px;
  object-fit: contain;
  object-position: center;
  background: #f5f5f6;
  transition: transform 0.4s ease;
  filter: grayscale(20%);
  display: block;
}

.category-card:hover img {
  transform: scale(1.02);
  filter: grayscale(0%);
}

.category-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 14px;
  background: #FFFFFF;
}

.category-card h3 {
  font-size: 22px;
  font-weight: 800;
  margin: 0;
  color: #161A1D;
  letter-spacing: -0.3px;
}

.category-card p {
  margin: 0;
  color: #B1A7A6;
  line-height: 1.7;
  flex: 1;
  font-size: 15px;
}

.category-card .btn {
  align-self: flex-start;
  margin-top: auto;
  color: #df2531;
  border: 2px solid #df2531;
  background: transparent;
  border-radius: 4px; /* Estilo cuadrado */
  padding: 12px 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 13px;
  transition: all 0.3s ease;
}

.category-card .btn:hover {
  background: #df2531;
  color: #FFFFFF;
  transform: translateX(4px);
}

/* Animaciones de entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.category-card {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.category-card:nth-child(1) { animation-delay: 0.05s; }
.category-card:nth-child(2) { animation-delay: 0.1s; }
.category-card:nth-child(3) { animation-delay: 0.15s; }
.category-card:nth-child(4) { animation-delay: 0.2s; }
.category-card:nth-child(5) { animation-delay: 0.25s; }
.category-card:nth-child(n+6) { animation-delay: 0.3s; }

/* Sección de productos por categoría */
.category-section-title {
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 12px;
  letter-spacing: -0.3px;
}

.category-section-desc {
  font-size: 16px;
  color: #4a5568;
  margin: 0 0 28px;
  line-height: 1.6;
}

.category-grid--products {
  padding-top: 24px;
}

.category-grid--products:not(:first-of-type) {
  padding-top: 48px;
  border-top: 1px solid #e8e9eb;
}

.grid--products {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

/* Responsive */
@media (max-width: 768px) {
  .category-hero {
    min-height: 350px;
    border-radius: 0;
    margin-bottom: 32px;
  }
  
  .category-grid {
    padding: 32px 0;
  }
  
  .category-grid .grid,
  .grid--products {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .category-card {
    border-radius: 8px;
  }
}
