/* Fix para el espacio entre header y contenido al cambiar de tamano de pantalla */

/* Resetear altura minima del site para evitar espacios */
.site {
  min-height: 100vh !important;
}

/* Asegurar que el header movil no deje espacio en desktop */
@media (min-width: 1200px) {
  .site__mobile-header {
    display: none !important;
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }
}

/* Asegurar que el header desktop no deje espacio en movil */
@media (max-width: 1199.98px) {
  .site__header {
    display: none !important;
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }
}

/* Estilos para mejorar la pagina de inicio */
.block-teammates .container {
  background: #ffffff;
  padding: 30px;
  margin-bottom: 30px;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.block-teammates .container:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.block-teammates__title {
  color: #A12528;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.block-teammates__title i {
  font-size: 2rem;
}

.block-teammates__subtitle {
  color: #555;
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: justify;
}

/* Estilos para los valores */
.valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.valor-item {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.valor-item:hover {
  background: #fff;
  border-color: #A12528;
  transform: scale(1.05);
}

.valor-item i {
  color: #A12528;
  font-size: 1.5rem;
  margin-right: 8px;
}

/* Estilos para los clientes */
.clientes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.cliente-item {
  background: #f8f9fa;
  padding: 30px 20px;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.cliente-item:hover {
  background: #fff;
  border-color: #A12528;
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(161, 37, 40, 0.15);
}

.cliente-item i {
  display: block;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.cliente-item:hover i {
  transform: scale(1.2);
}

/* Mejorar el about card */
.about__card-title i {
  margin-right: 10px;
  color: #A12528;
}

/* Footer Styles */
.site__footer {
  background: #2c2c2c;
  color: #ffffff;
  margin-top: auto;
}

.footer-main {
  padding: 60px 0 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-about {
  max-width: 350px;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo img {
  max-width: 150px;
  height: auto;
}

.footer-description {
  color: #b8b8b8;
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  background: #3a3a3a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-social-link:hover {
  background: #A12528;
  transform: translateY(-3px);
  color: #ffffff;
}

.footer-title {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #A12528;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #b8b8b8;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: #A12528;
  padding-left: 5px;
}

.footer-links i {
  font-size: 0.7rem;
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  display: flex;
  gap: 15px;
  margin-bottom: 5px;
  color: #b8b8b8;
}

.footer-contact i {
  color: #A12528;
  font-size: 1.2rem;
  margin-top: 3px;
}

.footer-contact strong {
  color: #ffffff;
  display: block;
  margin-bottom: 0;
}

.footer-schedule {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-schedule li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: #b8b8b8;
}

.footer-schedule li:last-child {
  margin-bottom: 0;
}

.footer-schedule strong {
  color: #ffffff;
}

.footer-bottom {
  background: #1a1a1a;
  padding: 20px 0;
  border-top: 1px solid #3a3a3a;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  color: #b8b8b8;
  margin: 0;
  font-size: 0.9rem;
}

.footer-bottom-links {
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer-bottom-links a {
  color: #b8b8b8;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

.footer-bottom-links a:hover {
  color: #A12528;
}

.footer-bottom-links span {
  color: #3a3a3a;
}

/* Products Search */
.products-search {
  margin: 30px 0;
  padding: 20px 0;
}

.search-input-group {
  display: flex;
  gap: 10px;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}

.search-input {
  flex: 1;
  padding: 12px 20px;
  font-size: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #A12528;
  box-shadow: 0 0 0 3px rgba(161, 37, 40, 0.1);
}

.search-button {
  padding: 12px 30px;
  background: #A12528;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.search-button:hover {
  background: #8a1f21;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(161, 37, 40, 0.3);
}

.search-button i {
  margin-right: 5px;
}

.search-clear {
  padding: 12px 20px;
  background: #6c757d;
  color: #ffffff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.search-clear:hover {
  background: #5a6268;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.search-clear i {
  margin-right: 5px;
}

/* Products List Grid */
.block-products-list .block-split__item-content {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
}

.block-products-list .products-view {
  width: 100% !important;
  max-width: 100% !important;
}

.block-products-list .products-view__list,
.block-products-list .products-list__content {
  width: 100%;
}

.products-list__body {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.products-list__item {
  width: 100%;
  max-width: 100%;
}

.block-products-list .product-card {
  height: 100%;
  width: 310px;
  display: flex;
  flex-direction: column;
}

.block-products-list .product-card__footer {
  margin-top: auto;
}

.block-products-list .product-card__image {
  max-height: 400px;
}

.block-products-list .product-card__image .image__tag {
  max-height: 400px;
  object-fit: contain;
}

/* Pagination Styles */
.products-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  gap: 10px;
}

.products-pagination .pagination {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 5px;
}

.products-pagination .page-item {
  display: inline-block;
}

.products-pagination .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
}

.products-pagination .page-link:hover {
  background: #A12528;
  color: #ffffff;
  border-color: #A12528;
}

.products-pagination .page-item.active .page-link {
  background: #A12528;
  color: #ffffff;
  border-color: #A12528;
}

.products-pagination .page-item.disabled .page-link {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Tablet view */
@media (max-width: 1200px) and (min-width: 769px) {
  .products-list__body {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .block-teammates__title {
    font-size: 1.5rem;
  }

  .block-teammates__subtitle {
    font-size: 1rem;
  }

  .valores-grid,
  .clientes-grid {
    grid-template-columns: 1fr;
  }

  .block-teammates .container {
    padding: 20px;
  }

  .products-list__body {
    grid-template-columns: 1fr;
    gap: 20px;
    justify-items: center;
  }

  .block-products-list .product-card {
    width: 400px;
  }

  .search-input-group {
    flex-direction: column;
    max-width: 100%;
  }

  .search-input {
    width: 100%;
  }

  .search-button,
  .search-clear {
    width: 100%;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-about {
    max-width: 100%;
  }

  .footer-main {
    padding: 40px 0 30px;
  }

  .footer-bottom-content {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}
