body {
  font-family: "Open Sans", Arial, Verdana, sans-serif;
  transition: background-color 0.5s ease, color 0.5s ease;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
body.light-mode {
  background-image: url(./img/fondo2.png);
  color: #333;
}
body.dark-mode {
  background-image: url(./img/fondo.png);
  color: #e1e1e1;
}
.card {
  background-color: #fff;
  border-radius: 0.5rem;
  padding: 1.5rem;
  text-align: center;
  color: #333;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 1s ease;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid #dedede;
}
.card.disabled {
  opacity: 0.5;
  pointer-events: none;
}
.card p {
  visibility: hidden;
  opacity: 0;
  max-height: 0;
  transition: opacity 0.3s ease, max-height 0.3s ease;
  font-size: 13px;
}
.card h2 {
  color: #622d4f !important;
  font-size: 1.2rem;
  font-weight: 700;
}
.card:hover p {
  visibility: visible;
  opacity: 0.7;
  max-height: 100px;
}
body.dark-mode .card {
  background-color: #333;
  color: #fff;
  border-color: #444;
}
body.dark-mode .card h2 {
  color: #fff !important;
}
body.light-mode h3,
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #622d4f;
}
body.light-mode h1,
body.light-mode h2,
body.light-mode h4,
body.light-mode h5,
body.light-mode h6 {
  color: #000;
}
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
  color: #fff;
}
.card .icon,
.online-icon,
body.dark-mode h3 {
  color: #d32369;
}
.online-icon {
  font-size: 20px;
  margin-top: 10px;
}
body.dark-mode .online-icon {
  color: #e12362;
}
.card:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider,
.slider:before {
  position: absolute;
  transition: 0.4s;
}
.slider {
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  border-radius: 34px;
}
.slider:before {
  content: "";
  height: 24px;
  width: 24px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: #d32369;
}
input:checked + .slider:before {
  transform: translateX(30px);
}
.slider .icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #fff;
  right: 6px;
  margin-top: -2px !important;
}
.slider .icon.light {
  left: 6px !important;
}
body.dark-mode .icon.dark,
body.light-mode .icon.light {
  display: none;
}
body.dark-mode .icon.light,
body.light-mode .icon.dark {
  display: inline;
}
.tooltip-container {
  position: relative;
  display: inline-block;
}
.tooltiptext,
footer {
  color: #fff;
  text-align: center;
}
.tooltiptext {
  visibility: hidden;
  background-color: #555;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 10;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
}
.tooltip-container:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}
main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
footer {
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #333;
  padding: 10px 0;
}
footer p {
  margin: 0;
}
footer .social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}
footer .social-icons a {
  width: 50px;
  height: 50px;
}
@media (max-width: 768px) {
  footer .social-icons {
    gap: 8px;
    margin-bottom: 80px;
  }
  footer .social-icons a {
    width: 40px;
    height: 40px;
  }
}
body.light-mode footer {
  background-color: #f8f9fa;
  color: #333;
}
body.dark-mode .social-icons a,
body.light-mode .social-icons a {
  color: #622d4f;
  background-color: #fff;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  transition: 0.3s;
  border: 2px solid #622d4f;
}
body.light-mode .social-icons a:hover {
  background-color: #622d4f;
  color: #fff;
}
body.dark-mode footer {
  background-color: #222;
  color: #e1e1e1;
}
body.dark-mode .social-icons a {
  color: #fff;
  background-color: transparent;
  border: 2px solid #fff;
}
body.dark-mode .social-icons a:hover {
  background-color: #fff;
  color: #622d4f;
}
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: none;
  z-index: 1000;
}
.scroll-to-top button {
  background-color: #d32369;
  border: 0;
  color: #fff;
  width: 60px;
  height: 60px;
  font-size: 30px;
  border-radius: 50%;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, box-shadow 0.3s ease,
    transform 0.3s ease;
}
.scroll-to-top button:hover {
  background-color: #622d4f;
  box-shadow: 0 8px 16px rgba(98, 45, 79, 0.3);
  transform: translateY(-3px);
  cursor: pointer;
}
#search-input {
  width: 100%;
  max-width: 400px;
  margin: 0;
  padding: 10px;
  font-size: 16px;
}
@media (max-width: 768px) {
  #search-input {
    width: 100%;
  }
}
#utsit-icon {
  display: block;
  margin: 0 auto;
}
@media (max-width: 768px) {
  #utsit-icon {
    max-width: 80px;
    margin-top: 10px;
    margin-bottom: 20px;
  }
}
input.form-control {
  background-color: #f1f1f1;
  border: 1px solid #b3b3b3;
  color: #333;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
input.form-control::placeholder {
  color: #666;
}
.category-section {
  margin-bottom: 30px;
  width: 100%;
}
.category-title {
  font-size: 1.8rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(98, 45, 79, 0.3);
}
.category-section .col-12 {
  margin-bottom: 15px;
}
#card-container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.category-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.category-cards .card {
  flex: 1 1 calc(25% - 20px);
  max-width: calc(25% - 20px);
}
.footer .phone {
  color: #333;
  text-decoration: none;
}
.footer .phone:hover {
  text-decoration: underline;
}
body.dark-mode .footer .phone {
  color: #fff;
}
@media (max-width: 768px) {
  .category-cards .card {
    flex: 1 1 calc(50% - 20px);
    max-width: calc(50% - 20px);
  }
}
@media (max-width: 576px) {
  .category-cards .card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}
