/* ===========================
   CSS USED BY index.php PAGE
   =========================== */

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background-color: #ebedf0;
  background-size: cover;
}

main {
  flex: 1;
}

.custom-container {
  width: 80%;
  max-width: none;
  margin: auto;
}

/* Navigation Bar Styling */
nav.navbar.navbar-custom {
  background-color: #858d94 !important;
}
.navbar-brand {
  font-size: 1.75rem;
  font-weight: bold;
  padding-left: 0;
  color: #ffffff;
}
.nav-link {
  font-size: 1.25rem;
  padding: 0;
  color: #ffffff;
}
.navbar-brand:hover,
.nav-link:hover {
  color: #cfcfcf;
}
.navbar-toggler {
  border-color: white;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='white' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Sidebar Styling */
.sidebar {
  position: fixed;
  right: -250px;
  top: 0;
  width: 250px;
  height: 100%;
  background-color: #858d94 !important;
  color: #000000;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
  transition: right 0.3s ease;
  padding: 20px;
  z-index: 1050;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.sidebar.show {
  right: 0;
}
.sidebar h5 {
  color: #ffffff;
}
.sidebar ul {
  list-style: none;
  padding: 0;
}
.sidebar li {
  margin: 10px 0;
}
.sidebar a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.2rem;
}
.sidebar a:hover {
  color: #cfcfcf;
}
.subcategory-list {
  display: none;
  list-style: none;
  padding-left: 20px;
}
.subcategory-list.show {
  display: block;
}
.arrow-left::after {
  content: ">";
  margin-left: 5px;
}
.arrow-down::after {
  content: "v";
  margin-left: 5px;
}

/* Big top image */
.img-fluid {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Text & Button Section */
.colorable-text-container.no-padding {
  padding: 0;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background-color: #e1e2e4ea;
  box-shadow: 0 12px 18px -6px rgba(0, 0, 0, 0.3);
}
.custom-bg {
  background-color: rgb(223, 223, 223);
  box-shadow: 0 12px 18px -6px rgba(0, 0, 0, 0.3);
}
.content-split-wrapper {
  display: grid;
  grid-template-columns: 1fr auto;
  width: 100%;
  align-items: center;
  padding: 0 4cm;
  gap: 1rem;
}
.left-text {
  font-size: 1.25rem;
  text-align: left;
  color: #3e3e3e;  
}
.left-text p {
  max-width: 600px;
  width: 100%;
  margin: 0;
  color: #696969;
}
.right-button {
  display: flex;
  justify-content: center;
  align-items: center;
}
.right-button .btn {
  white-space: nowrap;
}
.custom-btn {
  font-size: 1.1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  background-color: #3e3e3e;
  color: #ffffff;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.custom-btn:hover {
  background-color: #242424;
  color: #ffffff;
}

@media (max-width: 767.98px) {
  .content-split-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1rem;
    padding: 0 1rem;
  }
  .left-text {
    font-size: 1.25rem;
    text-align: center;
  }
  .right-button {
    margin-top: 0.5rem;
    justify-content: center;
  }
}

/* Card Slider */
.full-width-slider-container {
  width: 100%;
  overflow: hidden;
  background-color: #ebedf0;
  padding: 40px 0;
  position: relative;
}
.centered-slider-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.card-slider {
  display: flex;
  gap: 20px;
  height: auto;
  object-fit: unset;
  width: fit-content;
  transition: transform 0.3s ease-in-out;
}
.slider-card {
  flex: 0 0 300px;
  height: 350px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 0;
}
.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.slider-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 30px;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 3;
  transition: background 0.3s;
}
.slider-button:hover {
  background: rgba(0, 0, 0, 0.8);
}
.left {
  left: 0;
}
.right {
  right: 0;
}
.slider-card a {
  text-decoration: none;
}

/* Показываем только нужный слайдер */
.desktop-slider {
  display: block;
}
.mobile-slider {
  display: none;
}

@media (max-width: 767px) {
  .desktop-slider {
    display: none;
  }
  .mobile-slider {
    display: block;
  }

  .mobile-slider .centered-slider-wrapper {
    width: 100vw;
    max-width: 100vw;
    overflow: hidden;
    padding: 0;
    margin: 0;
  }
  .mobile-card-slider {
    display: flex;
    gap: 10px;
    transition: transform 0.3s cubic-bezier(0.77, 0, 0.18, 1);
    will-change: transform;
  }
  .mobile-card-slider .slider-card {
    flex: 0 0 32vw;
    min-width: 90px;
    max-width: 340px;
    height: 130px !important;
    margin: 0;
  }
  .mobile-slider .slider-button {
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    padding: 8px;
  }
}

/* Castellini text */
.cast-text {
  font-size: 2rem;
  color: #85a0c9;
  text-align: center;
  margin: 1px 0;
  font-weight: 400;
  line-height: 1.2;
  padding: 0;
}
@media (max-width: 768px) {
  .cast-text {
    font-size: 1rem;
    color: #85a0c9;
    text-align: center;
    margin: 0px 0;
    font-weight: 400;
    line-height: 1.2;
    padding: 0;
  }
}

/* Grid Services (PC & Mobile) */
.grd-container {
  width: 100%;
  max-width: 1076px;
  margin: 0 auto;
  padding: 10px 20px 20px;
  text-align: center;
}
.grd-title {
  font-size: 3.5em;
  font-weight: bold;
  margin-bottom: 30px;
  color: #3e3e3e;
}
.grd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 768px) {
  .grd-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .grd-title {
    font-size: 2.5em;
  }
}
.grd-item {
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}
.grd-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.grd-text {
  text-align: center;
  padding: 0;
}
.grd-text-title {
  font-size: 1.7em;
  font-weight: bold;
  color: #373737;
  margin-bottom: 5px;
}
.grd-text-desc {
  font-size: 0.95em;
  color: #777;
}
.grd-pc-only {
  display: block;
}
.grd-mobile-only {
  display: none;
}
@media (max-width: 768px) {
  .grd-pc-only {
    display: none;
  }
  .grd-mobile-only {
    display: block;
  }
}

/* Logos section */
.sllogo_bg {
  background-color: #ebedf0 !important;
}
.sllogo-wrapper {
  max-width: 800px;
  width: 100%;
}
.sllogo-heading {
  font-size: 0.8rem;
  font-weight: bold;
  color: #696969;
}
.sllogo-container {
  background: transparent;
  width: 100%;
}
.logo-slider {
  animation: slide-left 20s linear infinite;
  width: max-content;
}
.sllogo-img {
  height: 50px;
  object-fit: contain;
  flex-shrink: 0;
}
@keyframes slide-left {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}
.fade-left,
.fade-right {
  width: 80px;
  z-index: 1;
  pointer-events: none;
}
.fade-left {
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 100%
  );
}
.fade-right {
  background: linear-gradient(
    to left,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 100%
  );
}
@media (min-width: 768px) {
  .sllogo-wrapper {
    max-width: 1000px;
  }
  .sllogo-heading {
    font-size: 2rem;
  }
  .sllogo-img {
    height: 60px;
  }
}

/* Footer */
.footer-custom {
  background-color: #858d94;
  color: #ffffff;
  padding: 8px 0;
  font-size: 0.9rem;
  margin-top: auto;
}
.footer-left {
  display: flex;
  align-items: center;
}
.contact-info {
  font-size: 0.85rem;
}
.footer-links {
  display: flex;
  flex-direction: column;
}
.footer-links h6 {
  font-weight: bold;
  margin-bottom: 5px;
}
.footer-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.85rem;
}
.footer-link:hover {
  color: #cfcfcf;
}
.social-icons {
  display: flex;
  gap: 8px;
}
.social-icon {
  width: 20px;
  height: 20px;
  object-fit: cover;
}
.contact-text {
  color: black;
}

@media (max-width: 768px) {
  .navbar-brand img {
    width: 150px;
    height: auto;
  }
  .navbar-toggler {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
  }
  .custom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .footer-left {
    font-size: 0.8rem;
  }
  .footer-contact-item {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
  }
  .social-icons {
    gap: 6px;
  }
  .social-icon {
    width: 16px;
    height: 16px;
  }
  .footer-links {
    text-align: left;
  }
}

@media (min-width: 768px) {
  .desktop-overlay-wrapper {
    background-image: url("images/backgr.jpg");
    background-size: cover;
    background-position: center;
  }

  .desktop-white-block {
    max-width: 1500px;
    margin: 0 auto;
    background: #ebedf0;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
    padding: 50px;
  }
}

.sl-desktop-only {
  display: block;
}
.sl-mobile-only {
  display: none;
}

.servsl-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  height: 400px;
  border-radius: 10px;
}

.servsl-slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.servsl-slide {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.servsl-slide.active {
  display: block;
}

.servsl-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background-color: #ffffff;
}

.servsl-nav {
  position: absolute;
  bottom: 10px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.servsl-nav-button {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: background-color 0.3s, box-shadow 0.3s, transform 0.2s;
  border: 2px solid black;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
}

.servsl-nav-button.active {
  background-color: rgba(0, 0, 0, 0.85);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

.servsl-nav-button:hover {
  background-color: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}
@media (max-width: 768px) {
  .sl-desktop-only {
    display: none;
  }

  .sl-mobile-only {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
  }

  .sl-mobile-only .servsl-wrapper {
    width: 100%;
    max-width: 95%;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  }
}
.swiper {
  width: 100%;
  padding: 20px 0;
}

.swiper-slide {
  width: 300px;
  height: 200px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff; /* если нужен фон */
}

.swiper-slide a {
  width: 100%;
  height: 100%;
  display: block;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}
/* ==============================
   END CSS USED BY index.php PAGE
   ============================== */

.text-container {
  background-color: transparent;
  color: #fff;
  padding: 20px;
  border-radius: 5px;
  font-size: 1.25rem;
  margin: 0;
  margin-top: 1px !important;
  text-align: left;
}

.ms-3 {
  margin-left: 0;
}

/* Info Container Styling */
.info-container {
  padding: 20px;
  background-color: transparent;
  border-radius: 0;
  box-shadow: none;
  color: black;
  margin-top: 0;
  padding-top: 0;
  min-height: calc(100vh - 56px);
  box-sizing: border-box;
}

/* Custom Header Background Color */
.casdental-header {
  background-color: rgb(250, 250, 250);
}

/* Larger Text Styling */
.larger-text {
  font-size: 1.25rem;
}

/* Category List Styling */
.category-list {
  list-style: none;
  padding: 0;
  font-size: 1.3rem;
}
.category-list .category-group {
  font-weight: bold;
  margin-top: 20px;
  font-size: 1.5rem;
}
.category-list li {
  margin: 5px 0;
  border-bottom: 1px solid black;
}
.category-list a {
  color: black;
  text-decoration: none;
  transition: color 0.3s ease;
}
.category-list a:hover {
  color: grey;
}

/* Sobre Nosotros */
.text-content {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* Product Card Styling */
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Image Container for Card */
.card-image-container {
  width: 100%;
  height: 200px;
  overflow: hidden;
}
.card-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card-title {
  font-size: 1.25rem;
  font-weight: bold;
}
.card-text {
  font-size: 1rem;
}
.btn-primary {
  background-color: #3e3e3e;
  border: none;
}
.btn-primary:hover {
  background-color: #242424;
}

/* Grid Layout Styling */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}
.card-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: stretch;
}

/* Logo Container Styling */
.logo-container {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: transparent;
  transform: scale(1.15);
}
.logo-img {
  width: 250px;
  height: auto;
}
@media (max-width: 768px) {
  .logo-container {
    left: 50%;
    transform: translateX(-50%) scale(1.15);
  }
}
.con-text-colorable {
  color: rgb(0, 0, 0);
}

/* Text Con */
.con-left-block {
  font-size: 1.75rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-right: 1rem;
  max-width: 100%;
}
.colorable-text-content.no-padding {
  padding: 0;
  margin: 0;
  font-size: 1.25rem;
}
.custom-text {
  color: #252525;
}

/* CardSlider Fading Edges */
.slider-fade-left,
.slider-fade-right {
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.slider-fade-left {
  left: 0;
  background: linear-gradient(
    to right,
    rgb(196, 196, 196) 0%,
    transparent 100%
  );
}
.slider-fade-right {
  right: 0;
  background: linear-gradient(
    to left,
    rgba(248, 248, 248, 1) 0%,
    transparent 100%
  );
}

/* Picture Slider Container */
.itim-slider-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: auto;
  overflow: hidden;
}
.itim-slider-main {
  width: 100%;
  height: 550px;
  object-fit: cover;
  border-radius: 8px;
}
.itim-slider-thumbnails {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}
.itim-slider-thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.itim-slider-thumbnail:hover {
  transform: scale(1.1);
}
.itim-slider-thumbnail-active {
  border: 2px solid #3e3e3e;
}
.itim-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: #000000;
  font-size: 24px;
  border: none;
  padding: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 2;
}
.itim-slider-nav:hover {
  background-color: rgba(0, 0, 0, 0.8);
}
.itim-slider-nav-left {
  left: 10px;
}
.itim-slider-nav-right {
  right: 10px;
}
a.cot-button {
  background-color: #3e3e3e;
  color: white;
  font-size: 1rem;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: inline-block;
}
a.cot-button:hover {
  background-color: #242424;
  transform: scale(1.05);
}
a.cot-button:active {
  background-color: #1c1c1c;
}
.precio {
  font-size: 1.2em;
}

/* Contact Section */
.cont-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.cont-left,
.cont-right {
  flex: 1 1 calc(50% - 20px);
  box-sizing: border-box;
}
.cont-left {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
}
.cont-right {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
@media (max-width: 768px) {
  .cont-left,
  .cont-right {
    flex: 1 1 100%;
  }
}

/* Mobile Sidebar */
@media (max-width: 768px) {
  .mob-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(240, 240, 240);
    z-index: 1050;
    overflow-y: auto;
    transition: transform 0.3s ease;
    transform: translateX(-100%);
  }
  .mob-sidebar.show {
    transform: translateX(0);
  }
  .mob-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .mob-sidebar li {
    margin: 10px 0;
    text-align: center;
  }
  .mob-sidebar a {
    display: block;
    padding: 10px 15px;
    font-size: 1.2rem;
    text-decoration: none;
    color: rgb(0, 0, 0);
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  .mob-sidebar a:hover {
    background-color: rgb(200, 200, 200);
    color: rgb(50, 50, 50);
  }
  .mob-subcategory-list {
    display: none;
    padding-left: 20px;
  }
  .mob-subcategory-list.show {
    display: block;
  }
  .mob-arrow-left::after {
    content: ">";
    margin-left: 5px;
  }
  .mob-arrow-down::after {
    content: "v";
    margin-left: 5px;
  }
}

/* Instalaciones */
.instal-header-container {
  text-align: center;
  padding: 60px 20px 30px;
  background-color: #f8f9fa;
  margin-bottom: 30px;
}
.instal-header-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
}
.instl-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  padding: 40px 20px;
}
.instl-gallery a {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.instl-gallery a:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}
.instl-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
}
.instl-section-title {
  text-align: center;
  font-size: 2rem;
  margin-top: 60px;
  margin-bottom: 30px;
  font-weight: 600;
  color: #28292a;
}
@media (min-width: 992px) {
  .instl-gallery img {
    height: 260px;
  }
}
.ref-info {
  font-weight: bold;
  color: #444;
  margin-bottom: 10px;
  font-size: 1.1rem;
}
