/* ===========================
   HOME TEMPLATE STYLES
   =========================== */

/* Global Background Color Class */
.bg-light-gray {
  background-color: #efefef;
}
.imagen-consejos {
  height: 460px !important;
}

.h-stretch {
  height: stretch;
}
.imagen-suscribete {
  margin-top: 20px;
}

/* Equipment Section Positioning */
.equipment-image-wrapper {
  position: relative;
  width: 50%;
  overflow: hidden;
}

.equipment-image-wrapper img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.equipment-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem;
  color: white;
  z-index: 10;
}

.equipment-overlay h2 {
  font-family: Roboto, sans-serif;
  font-size: 35px;
  font-style: normal;
  font-weight: 800;
  color: white;
}

.texto-blanco {
  color: white !important;
}

/* Brands Description */
.brands-description {
  text-align: center;
  font-family: Roboto, sans-serif;
  font-size: 25px;
  font-style: normal;
  font-weight: 300;
  line-height: 30px;
}

/* Search Title */
.search-title {
  background-color: #4b4f58;
  font-size: 15px;
  border-radius: 10px 10px 0 0;
  padding: 10px 0 !important;
  margin-bottom: 0 !important;
}

/* Image Carousel Section */
.home-image-carousel-section {
  width: 100%;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  overflow: hidden;
}

.home-image-carousel-section * {
  border-radius: 0 !important;
}

.home-image-carousel {
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
  border-radius: 0 !important;
}

.home-image-carousel .owl-stage-outer,
.home-image-carousel .owl-stage,
.home-image-carousel .owl-item {
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

.home-image-carousel .owl-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  width: 100%;
  transform: translateY(-50%);
  z-index: 10;
  pointer-events: none;
}

.home-image-carousel .owl-nav button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.home-image-carousel .owl-nav button:first-child {
  left: -20px;
}

.home-image-carousel .owl-nav button:last-child {
  right: -20px;
}

.home-image-carousel .owl-nav button {
  pointer-events: all;
  background-color: rgba(59, 130, 246, 0.8) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 20px;
}

.home-image-carousel .owl-nav button:hover {
  background-color: #2563eb !important;
}

.home-image-carousel .owl-nav button:focus {
  outline: none;
}

.home-carousel-item {
  padding: 0 !important;
  margin: 0 !important;
  width: 100%;
  border-radius: 0 !important;
}

.home-carousel-item a {
  display: block;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

.home-carousel-item img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Brands Carousel Section */
.home-brands-carousel-section {
  width: 100%;
}

.home-brands-carousel {
  margin: 0;
  position: relative;
}

.brand-carousel-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .product-card {
    min-height: max-content;
    height: 100% !important; /* En lugar de los 180px actuales */
    padding-bottom: 2.5rem;
  }
}

.brand-carousel-item img {
  max-width: 100%;
  height: 180px;
  display: block;
}

/* Brand Logo Image - Specific Size */
.brand-logo-image {
  width: 180px;
  height: auto;
  display: block;
}

/* Search Form Styles */
.search-form {
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
}

.search-form label {
  color: #1f2937;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.search-form input,
.search-form select {
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.search-form input:focus,
.search-form select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Services Section */
.home-services-section {
  width: 100%;
  background-color: #0170b9;
}

.home-services-section h2 {
  color: #ffffff;
}

.home-services-section ul {
  list-style-type: disc;
  list-style-position: inside;
  margin-left: 1rem;
}

.home-services-section ol {
  list-style-type: decimal;
  list-style-position: inside;
  margin-left: 1rem;
}

.home-services-section li {
  margin-bottom: 0.5rem;
}

.home-services-section a {
  background-color: #ffffff;
  color: #0170b9;
  padding: 10px 20px;
  border-radius: 5px;
  display: inline-block;
  text-decoration: none !important;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: 20px;
  font-family: "Roboto", sans-serif;
  font-size: 15px;
}

.home-services-section a:hover {
  background-color: #f3f4f6;
  color: #1d4ed8;
}

.home-services-section img {
  display: block;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  height: 400px;
  width: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Bestsellers Section */
.home-bestsellers-section {
  width: 100%;
  padding: 60px 0;
  padding-top: 40px;
}

.home-bestsellers-section h2 {
  color: #1f2937;
  padding-bottom: 20px;
  font-family: "Roboto", sans-serif;
  font-size: 2rem;
  font-style: normal;
  font-weight: 600;
}

.product-card {
  background-color: #ebf0fa;
  border-radius: 15px;
  border: 2px solid #4b4f58;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 370px;
  text-align: center;
  font-size: 15px;
  font-family: "Roboto", sans-serif;
}
.product-card .btn-ver-mas,
.home-bestsellers-section .btn-ver-mas {
  background-color: #0170b9;
  color: #ffffff;
  padding: 8px 15px;
  border-radius: 5px;
  display: flex;
  width: fit-content;
  text-decoration: none !important;
  font-weight: 600;
  margin: 0 auto;
}

.home-bestsellers-section .btn-ver-mas-home {
  background-color: #0170b9;
  color: #ffffff;
  padding: 8px 15px;
  border-radius: 5px;
  display: flex;
  width: fit-content;
  text-decoration: none !important;
  font-weight: 600;
  margin: 40px auto 0 auto;
}

.btn-ver-mas-blanco {
  color: #336db4;
  background-color: #ffffff;
  padding: 8px 15px;
  border-radius: 5px;
  display: flex;
  width: fit-content;
  text-decoration: none !important;
  font-weight: 600;
  margin-top: 20px;
}

.product-card img {
  width: 100%;
  height: auto;
}

.product-card h3 {
  margin: 0.75rem 0;
  font-size: 1.125rem;
  flex-grow: 1;
}
.product-card h6 {
  padding: 0 5px;
}

/* Equipment Section */
.home-equipment-section {
  width: 100%;
  max-height: 400px;
}

.home-equipment-section h2 {
  color: #1f2937;
}

.home-equipment-section ul {
  list-style-type: disc;
  list-style-position: inside;
  margin-left: 1rem;
}

.home-equipment-section ol {
  list-style-type: decimal;
  list-style-position: inside;
  margin-left: 1rem;
}

.home-equipment-section li {
  margin-bottom: 0.5rem;
}

.home-equipment-section a {
  background-color: #ffffff;
  color: #2563eb;
  padding: 0.75rem 1.5rem 0.75rem 1.5rem;
  border-radius: 0;
  display: inline-block;
  text-decoration: none !important;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: 20px;
  font-size: 1rem;
}

.home-equipment-section a:hover {
  background-color: #f3f4f6;
  color: #1d4ed8;
  text-decoration: none !important;
}

.home-equipment-section img {
  display: block;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  height: 400px;
  width: 100%;
  object-fit: cover;
  object-position: top center;
}

/* News Section */
.home-news-section {
  width: 100%;
  padding: 60px 0;
  padding-top: 40px;
  background-color: #EFEFEF;
}

.novedades-grid-container {
  align-items: stretch;
}

.home-news-section h2 {
  color: #1f2937;
}

.title-home-novedades {
  text-align: center;
  line-height: 1;
  font-size: 1rem;
}
.title-home-novedades h3 {
  margin-top: 10px;
  padding-bottom: 20px;
  font-family: "Roboto", sans-serif;
  font-size: 25px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.25rem;
}

.news-card {
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

.news-card-image-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f3f4f6;
}

.news-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.news-card .p-4 {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card h3 {
  margin: 0.75rem 0;
  font-size: 1.25rem;
  line-height: 1.4;
  flex-grow: 1;
  font-weight: 400;
}

.news-card p {
  color: #4b5563;
  line-height: 1.6;
  flex-grow: 1;
}

/* Parts Carousel Section */
.home-parts-section {
  width: 100%;
  padding: 60px 0;
  font-family: "Roboto", Sans-serif;
  font-size: 17px;
  font-weight: 600;
}

.home-parts-carousel {
  margin: 0;
  position: relative;
  margin-top: 20px;
}

.parts-item {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* min-height: 280px; */
}

.parts-item img {
  width: 100%;
  height: 280px;
  display: block;
  object-fit: cover;
}

.parts-item-image {
  width: 126px !important;
  height: auto !important;
}

/* Tips Section */
.home-tips-section {
  width: 100%;
}

.home-tips-section h2 {
  color: #1f2937;
}

.tip-card {
  background-color: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 240px;
}

.tip-card:hover {
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
  text-decoration: none;
}

.tip-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.tip-card p {
  color: #1f2937;
  margin: 0;
  flex-grow: 1;
}

/* Owl Carousel Custom Styles */
.owl-carousel .owl-nav button {
  background-color: #3b82f6;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 16px;
}

.owl-carousel .owl-nav button:hover {
  background-color: #2563eb;
}

.owl-carousel .owl-dots .owl-dot span {
  background-color: #d1d5db;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.owl-carousel .owl-dots .owl-dot.active span {
  background-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Brands Carousel Navigation */
.home-brands-carousel {
  background: transparent !important;
}
.home-brands-carousel .owl-nav {
  position: absolute;
  top: 40%;
  left: 0;
  right: 0;
  width: 100%;
  transform: translateY(-50%);
  z-index: 10;
  pointer-events: none;
}

.home-brands-carousel .owl-nav button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.home-brands-carousel .owl-nav button:first-child {
  left: -20px;
}

.home-brands-carousel .owl-nav button:last-child {
  right: -20px;
}

.home-brands-carousel .owl-nav button {
  pointer-events: all;
  background-color: rgba(59, 130, 246, 0.9);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
}

.home-brands-carousel .owl-nav button:hover {
  background-color: #2563eb;
}

.home-brands-carousel .owl-nav button:focus {
  outline: none;
}
.home-brands-carousel .item

/* Parts Carousel Navigation */
.home-parts-carousel .owl-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  width: 100%;
  transform: translateY(-50%);
  z-index: 10;
  pointer-events: none;
}

.home-parts-carousel .owl-nav button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.home-parts-carousel .owl-nav button:first-child {
  left: -20px;
}

.home-parts-carousel .owl-nav button:last-child {
  right: -20px;
}

.home-parts-carousel .owl-nav button {
  pointer-events: all;
  background-color: rgba(59, 130, 246, 0.9);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
}

.home-parts-carousel .owl-nav button:hover {
  background-color: #2563eb;
}

.home-parts-carousel .owl-nav button:focus {
  outline: none;
}

/* Products Carousel */
.home-products-carousel {
  margin: 0;
  position: relative;
}

.home-products-carousel .owl-item {
  padding: 0 10px;
}

.home-products-carousel .owl-nav {
  position: absolute;
  top: 40%;
  left: 0;
  right: 0;
  width: 100%;
  transform: translateY(-50%);
  z-index: 10;
  pointer-events: none;
}

.home-products-carousel .owl-nav button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.home-products-carousel .owl-nav button:first-child {
  left: -20px;
}

.home-products-carousel .owl-nav button:last-child {
  right: -20px;
}

.home-products-carousel .owl-nav button {
  pointer-events: all;
  background-color: rgba(0, 0, 0, 0.8) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 20px;
  cursor: pointer;
  font-weight: bold;
}

.home-products-carousel .owl-nav button:hover {
  background-color: rgba(0, 0, 0, 1) !important;
}

.home-products-carousel .owl-nav button:focus {
  outline: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .home-services-section {
    padding-bottom: 60px;
  }

  .home-image-carousel .owl-nav {
    padding: 0 10px;
  }

  .home-image-carousel .owl-nav button {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .home-carousel-item img {
    max-height: none;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .home-services-section .flex,
  .home-equipment-section .flex {
    flex-direction: column;
  }

  .home-services-section .flex {
    align-items: center;
  }

  .home-services-section .w-2\/3,
  .home-services-section .w-1\/3 {
    width: 100% !important;
  }

  .home-services-section .w-1\/3 {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .home-services-section .md\:w-1\/2,
  .home-equipment-section .md\:w-1\/2 {
    width: 100%;
  }

  .home-equipment-section .equipment-image-wrapper,
  .home-equipment-section .w-1\/2 {
    width: 100% !important;
  }

  .home-equipment-section {
    font-size: 20px;
  }

  .search-form {
    padding: 1.5rem;
  }

  .search-form .flex-row {
    flex-direction: column !important;
  }

  .news-card {
    margin-bottom: 1rem;
    width: 100% !important;
  }

  .home-news-section .flex {
    flex-direction: column !important;
  }

  .owl-carousel .owl-nav button {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .home-services-section img {
    height: 150px;
  }

  .home-products-carousel .owl-item {
    padding: 0;
  }

  .home-equipment-section {
    max-height: none;
  }

  .home-equipment-section img {
    height: 300px;
  }

  .brands-overlay {
    height: 300px;
  }
  .imagen-suscribete {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .home-image-carousel .owl-nav {
    padding: 0 8px;
  }

  .home-image-carousel .owl-nav button {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .home-carousel-item img {
    max-height: none;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .container {
    padding: 0 12px;
  }

  .home-services-section .flex {
    align-items: center;
  }

  .home-services-section .w-2\/3,
  .home-services-section .w-1\/3 {
    width: 100% !important;
  }

  .home-equipment-section .equipment-image-wrapper,
  .home-equipment-section .w-1\/2 {
    width: 100% !important;
  }

  .home-equipment-section {
    font-size: 20px;
  }

  h2 {
    font-size: 1.5rem;
  }

  .search-form {
    padding: 1rem;
  }

  .search-form .flex-row {
    flex-direction: column !important;
  }

  .search-form input,
  .search-form select {
    padding: 0.625rem 0.75rem;
    font-size: 0.8125rem;
  }

  .product-card,
  .news-card,
  .tip-card {
    margin-bottom: 1rem;
    width: 100% !important;
  }

  .home-news-section .flex {
    flex-direction: column !important;
  }

  .parts-item-image {
    width: 80% !important;
    height: auto !important;
  }
  .brands-description {
    font: 16px sans-serif;
  }
}

/* Grayscale Map */
.grayscale-map {
  filter: grayscale(100%);
}
.consejo-container {
  padding-bottom: 60px;
}

/* Contact form overlay on first consejo image */
.form-inicio-container {
  --form-inicio-height: 380px;
  position: relative !important;
  padding-right: 10px;
  min-height: calc(var(--form-inicio-height) + 80px);
}

.form-inicio-container img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#form-inicio {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0;
  text-align: left;
  width: min(70%, 400px);
  height: var(--form-inicio-height);
  z-index: 2;
}

@media (max-width: 768px) {
  .imagen-consejos {
    height: auto !important;
  }
  #form-inicio {
    position: static;
    transform: none;
    margin: 16px auto 0;
    padding: 0;
    width: min(92%, 360px);
    height: auto;
  }

  .consejo-container .flex {
    flex-direction: column !important;
    gap: 16px;
  }

  .consejo-container .w-1\/4 {
    display: none !important;
  }

  .consejo-container .flex.mt-6 {
    display: none !important;
  }

  .consejo-container .w-3\/4,
  .consejo-container .w-1\/4,
  .consejo-container .w-full {
    width: 100% !important;
  }

  .consejo-container .flex > div {
    width: 100% !important;
  }

  .form-inicio-container {
    padding-right: 0;
    background-image: url("http://localhost/app/uploads/2026/02/Banner-Formulario.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .form-inicio-container img {
    display: none;
  }

  #form-inicio .wpcf7-form p {
    width: 100%;
  }

  #form-inicio .wpcf7-form p:has(input[name*="telefono"]),
  #form-inicio .wpcf7-form p:has(input[name*="contacto"]) {
    width: 100%;
  }

  #form-inicio .form-row {
    flex-direction: column;
    gap: 12px;
  }

  #form-inicio .form-row .form-field {
    width: 100%;
  }

  #form-inicio input,
  #form-inicio textarea,
  #form-inicio select {
    width: 100%;
    box-sizing: border-box;
  }

  #form-inicio input[type="submit"] {
    width: 282px !important;
    min-width: 282px;
    max-width: 282px;
    box-sizing: border-box;
    float: none;
    display: block;
    margin: 0 auto;
  }

  #form-inicio .form-submit,
  #form-inicio .form-submit p {
    width: 100%;
    display: block;
  }

  #form-inicio .form-submit p {
    margin: 0;
    text-align: center;
  }
}
