/* === RESET Y ESTRUCTURA BASE === */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body.servicios {
  font-family: 'Montserrat', sans-serif;
  background-color: #ffffff;
  color: #F2F2F2;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* === TIPOGRAFÍA GENERAL === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  color: #044F8B;
}

p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  color: #F2F2F2;
}

/* === HEADER === */
.header-bg {
  background-color: #044F8B;
  position: relative;
  overflow: hidden;
}

.header-bg .container {
  position: relative;
  z-index: 1;
}

.header-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.header-bg h1,
.header-bg p {
  color: #F2F2F2;
  text-align: center;
}

.header-bg h1 {
  font-size: 2.5rem;
  margin-top: 20px;
}

.header-bg p {
  font-size: 2rem;
  margin-top: 20px;
}

/* === NAVBAR === */
.custom-navbar {
  background-color: #6BA6DA;
}

.custom-navbar .navbar-brand img {
  height: 40px;
}

.custom-navbar .nav-link {
  color: #044F8B;
  font-weight: 500;
}

.custom-navbar .nav-link:hover {
  color: #0175BE;
}

/* === CARRITO === */
#cart-button {
  background-color: transparent;
  border-color: #044F8B;
  color: #044F8B;
}

#cart-button:hover {
  background-color: #0175BE;
  color: white;
}

.cart-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9998;
}

body.cart-open #cart-dropdown {
  display: block !important;
}

body.cart-open .cart-overlay {
  display: block;
}

.total-carrito .titulo-total {
  color: #044F8B;
}

.total-carrito .cantidad-total {
  color: black;
  font-weight: bold;
}

/* === TARJETAS DE PRODUCTO === */
.card {
  background-color: white;
  border: 2px solid #f39c12;
  border-radius: 8px;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.card:hover {
  transform: scale(1.05);
}

.card-body {
  flex-grow: 1;
}

.card-footer {
  display: flex;
  justify-content: center;
  padding-top: 10px;
}

.card-img-placeholder {
  height: 180px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px;
}

.card-img-placeholder img {
  height: 100%;
  width: auto;
  object-fit: contain;
  background: none;
  border: 2px solid #f39c12;
}

.card-title {
  font-size: 1.25rem;
  color: #0175BE;
}

.card-text {
  color: #044F8B;
  font-style: italic;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
}

.precio {
  font-size: 1.2rem;
  font-weight: bold;
  color: #F39C12;
}

.precio b {
  color: #044F8B;
}

/* === BOTONES === */
.btn-primary {
  background-color: #F39C12;
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: #044F8B;
}

.btn-outline-success {
  border: 2px solid #198754;
  color: #198754;
  background-color: white;
  font-weight: 500;
}

.btn-outline-success:hover {
  background-color: #198754;
  color: white;
}

/* === FILTROS === */
.filtros-derecha {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 100px;
}

.filtros-derecha h5 {
  font-weight: 600;
  margin-bottom: 15px;
}

.filtros-derecha .form-check {
  margin-bottom: 10px;
}

#busqueda {
  font-size: 14px;
}

.filtros-izquierda label,
.filtros-derecha label {
  color: #0175BE;
  font-weight: 500;
}

/* === FOOTER === */
.footer {
  background-color: #044F8B;
  color: white;
}

.footer a {
  color: #6BA6DA;
  text-decoration: none;
}

.footer a:hover {
  color: white;
}

.footer p {
  color: white;
}

/* === REDES SOCIALES === */
.social-icons {
  margin-top: 15px;
}

.social-icon img {
  width: 30px;
  height: 30px;
  margin: 0 10px;
  transition: transform 0.3s ease;
}

.social-icon img:hover {
  transform: scale(1.1);
}
