body {
    font-family: 'Roboto', sans-serif;
    font-size: 18px !important;
    font-weight: 300 !important;
  background: #f8f8fa;
  color: #222;
  margin: 0;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: inherit;
  letter-spacing: -0.5px;
}

.h1, h1.h1 {
  font-family: 'Roboto', sans-serif !important;
  font-weight: 100 !important;
  letter-spacing: -0.5px;
}

h1 {
  font-size: 48px;
}

.h2 {
  font-family: 'Roboto', sans-serif !important;
  font-size: 2rem !important;
  font-weight: 200 !important;
  color: #222 !important;
}

.h3 {
  font-family: 'Roboto', sans-serif !important;
  font-size: 1.5rem !important;
  font-weight: 200 !important;
  color: #222 !important;
}

.h4 {
  font-family: 'Roboto', sans-serif !important;
  font-size: 1.25rem !important;
  font-weight: 200 !important;
  color: #222 !important;
}

.cat-img-circle {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  background: #f6f6f6;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  margin-bottom: 1rem;
}

.cat-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-bottom: 2rem;
}

.card-title, .fw-bold, .fw-semibold {
  font-family: inherit;
}

.btn, .btn-success {
  background: #111 !important;
  border-color: #111 !important;
  color: #fff !important;
}
.btn:hover, .btn-success:hover {
  background: #333 !important;
  border-color: #333 !important;
  color: #fff !important;
}

.text-success {
  color: #111 !important;
}

/* Personalización menor para cards, hover y detalles */
.hover-shadow:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.12)!important;
  transform: translateY(-4px);
  transition: box-shadow .2s, transform .2s;
}

/* Elimina estilos viejos de header/nav/logo ya que Bootstrap los gestiona */
header.main-header, header.main-header .container, header.main-header .logo, nav.main-nav, nav.main-nav a, nav.main-nav a:hover, header.main-header h1, header.main-header nav, header.main-header .logo2 {
  all: unset;
}

nav {
  margin: 0;
  margin-left: auto;
}

/* Hero Slider Styles */
.hero-slider {
  position: relative;
}

.hero-slide {
  min-height: 400px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  width: 100%;
  padding: 60px 0;
}

.hero-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.3);
  z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
}

.carousel-indicators {
  bottom: 20px;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
}

/* Hide controls for single slide */
.carousel.single-slide .carousel-control-prev,
.carousel.single-slide .carousel-control-next,
.carousel.single-slide .carousel-indicators {
  display: none !important;
}

/* Fallback para cuando no hay slider */
section.py-5.bg-light {
  min-height: 400px;
  display: flex;
  align-items: center;
  background-image: url('../../imgs/web/banner1.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  padding: 60px 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  text-align: center;
}

section.py-5.bg-light h1 { color: #bd9c02; font-size: 2.2em; margin-bottom: 10px; }
section.py-5.bg-light p { color: #9f8402; font-size: 1.2em; }
.hero h2 { color: #bd9c02; font-size: 2.2em; margin-bottom: 10px; }
.hero p { color: #9f8402; font-size: 1.2em; }

footer { text-align: center; margin: 40px 0 0 0; color: #aaa; }
.login-box { max-width: 320px; margin: 70px auto; background: #fff; border-radius: 10px; box-shadow: 0 2px 10px #ece8fa; padding: 30px; text-align: center; }
.login-box input { width: 90%; padding: 10px; margin: 10px 0; border: 1px solid #ddd; border-radius: 6px; }
.login-box button { background: #5d4e9a; color: #fff; border: none; border-radius: 6px; padding: 10px 30px; font-size: 16px; cursor: pointer; margin-top: 10px; }
.login-box button:hover { background: #473b7b; }
.login-box .error { color: #d00; margin: 10px 0; }
.prod-ficha { background: #fff; border-radius: 10px; padding: 30px; box-shadow: 0 2px 10px #ece8fa; display: flex; gap: 40px; margin: 40px auto; max-width: 900px; }
.prod-ficha img { width: 270px; height: 270px; object-fit: cover; border-radius: 10px; }
.prod-info { flex: 1; }
.prod-info h2 { margin-top: 0; color: #5d4e9a; }
.prod-info p { font-size: 18px; margin: 10px 0; }
