:root {
  --main-red: #333333;
  --black: #222;
}

.detalle-main-banner {
  background-size: cover;
  background-position: center;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  font-size: 2rem;
  padding: 3rem;
  text-align: center;
}

.detalle-container {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.detalle-container h1,
.detalle-container h2 {
  color: var(--black);
}

.detalle-container p {
  font-weight: 400;
}

.detalle-container h2 {
  margin-top: 2rem;
  border-bottom: 3px solid var(--main-red);
  display: inline-block;
  padding-bottom: 5px;
}

.detalle-image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.detalle-image-gallery figure {
  margin: 0;
}

.detalle-image-gallery img {
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
  height: 180px;
}

.detalle-image-gallery figcaption {
  font-size: 0.85rem;
  margin-top: 0.25rem;
  color: #666;
}

.detalle-related {
  background: #f1f1f1;
  padding: 2rem;
}

.detalle-related h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.detalle-related-items {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
}

.detalle-related-item {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  min-width: 250px;
  flex-shrink: 0;
}

.detalle-related-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.detalle-related-item h4 {
  font-size: 1rem;
  margin: 0.5rem;
}
