:root {
  --primary-color: #0e49d1;
  --secondary-color: #f8ec05;
  --third-color: #afb4b7;

  --fondo-blanco: #ffffff;
  --fondo-negro: #000000;
  --fondo-categoria: #4a78e6ef;

  --borde-inferior: #edeeef;

  --texto-blanco: #ffffff;
  --texto-negro: #000000;

  --boton-azul: #0e49d1;
  --boton-azul-hover: #4079fc;

  --banner-promo: #0e49d1;
}

body {
  font-family: "Roboto", sans-serif;
}

/* TOPINFORMACION */
.top-info {
  background-color: var(--fondo-blanco);
  font-size: 14px;
  /* padding: 5px 0; */
  border-bottom: 1px solid var(--borde-inferior);
}

/* NAVBAR */
.navbar-scroll {
  transition: all 0.5s ease;
}
.navbar-scroll.fixed-top {
  top: 0;
  position: fixed;
  width: 100%;
  z-index: 1030;
  background-color: var(--fondo-blanco);
  box-shadow: 0 2px 4px var(--third-color);
}
.navbar-scroll.py-3 {
  padding-top: 1.3rem !important;
  padding-bottom: 1.5rem !important;
}

nav {
  background-color: var(--fondo-blanco);
  border-bottom: 1px solid var(--borde-inferior);
}

.navbar-nav .nav-link {
  color: var(--texto-negro);
  position: relative;
  transition: color 0.1s ease-in-out;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active {
  color: var(--boton-azul);
  border-radius: 2px;
}

.navbar-nav .nav-item.highlight .nav-link {
  font-weight: 700;
}

/* LOGO */
.logo {
  object-fit: contain;
  display: block;
  width: auto;
  height: 3.5rem;
}

/* SEARCH */
.search {
  border-bottom: 1px solid var(--borde-inferior);
}

.custom-btn {
  background-color: var(--boton-azul);
  color: var(--texto-blanco);
}

.custom-btn:hover {
  background-color: var(--boton-azul-hover);
  color: var(--texto-blanco);
}

/* CARRITO DE COMPRAS */
.bg-custom {
  background-color: var(--secondary-color);
  color: var(--texto-negro);
}

/* Estilos para pantallas más grandes */
@media (min-width: 992px) {
  .navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.5px;
    width: 100%;
    height: 3px;
    background-color: transparent;
    transition: background-color 0.1s ease-in-out;
  }

  .navbar-nav .nav-link:hover::after,
  .navbar-nav .nav-link:focus::after,
  .navbar-nav .nav-link.active::after {
    background-color: var(--boton-azul);
    border-radius: 2px;
  }
}

/* Custom styles for modal search */
@media (max-width: 992px) {
  .navbar .input-group {
    display: none;
  }

  .navbar-nav {
    margin-left: 15px !important;
    /* Asegura que el margen izquierdo se aplique */
  }
}

.no-border-btn {
  background-color: var(--fondo-blanco);
  color: var(--texto-negro);
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.no-border-btn:hover {
  background-color: var(--fondo-blanco);
  color: var(--texto-negro);
}

.no-border-btn:focus,
.no-border-btn:active {
  outline: none;
  box-shadow: none;
}

/* BANERPROMOCIONES */
.promo-banner {
  background-color: var(
    --banner-promo
  ); /* Ajusta el color de fondo según tus necesidades */
  width: 100%;
  overflow: hidden;
}

.container-banner-promo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.container-banner-promo p {
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--texto-blanco);
  white-space: nowrap;
  padding: 2.5px 3px;
  margin: 0;
  animation: move-rtl 5000ms linear infinite;
}

@keyframes move-rtl {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}
/* IMAGENES DE INICIO */
.d-item {
  height: 500px;
}

.d-item-pages {
  height: 400px;
}

.d-img {
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

.centered-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white; /* Ajusta el color del texto según sea necesario */
}

/* LINEA */
.text-line {
  display: flex;
  align-items: center;
  text-align: center;
  width: 90%;
  margin: 20px 0;
}

.text-line::before,
.text-line::after {
  content: "";
  flex: 1;
  border-bottom: 3.5px solid var(--third-color);
  border-radius: 5px;
}

.text-line::before {
  margin-right: 1em; /* Ajusta el espacio antes del texto */
}

.text-line::after {
  margin-left: 1em; /* Ajusta el espacio después del texto */
}

/* PRODUCTOS NUEVOS */

.slide-container {
  max-width: 1220px;
  width: 100%;
  min-height: 570px;
  height: 100%;
  padding: 40px 0;
}

.slide-content {
  margin: 0 50px;
  overflow: hidden;
}

.card {
  border-radius: none;
  background: var(--fondo-blanco);
  border: none;
}

.item-pro {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 450px;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease-out;
}

.hover-image {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  border-radius: 5px;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
}

.item-pro:hover .product-overlay {
  opacity: 1;
}

.quick-view i {
  position: absolute;
  right: 10px;
  top: 15px;
  z-index: 42;
  font-size: 1.2rem;
  background-color: var(--fondo-blanco);
  color: var(--texto-negro);
  /* border-radius: 50%; */
  padding: 2px 5px;
  transition: background-color 0.3s;
}

.quick-view-text {
  opacity: 0;
}

.quick-view:hover .quick-view-text {
  position: absolute;
  font-size: 1rem;
  font-weight: 400;
  padding: 4.5px 18px 4.5px 10px;
  border-left: 20%;
  right: 25px;
  z-index: 41;
  top: 15px;
  opacity: 1;
  background-color: var(--fondo-blanco);
  color: var(--texto-negro);
}

.btn-add-to-cart {
  background-color: var(--fondo-blanco);
  color: var(--texto-negro);
  border-radius: none !important;
  margin: 0 0;
  font-weight: 400;
  padding: 10px 60px 10px 60px;
  border: 1px solid #000000;
  white-space: nowrap;
  display: inline;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.btn-add-to-cart:hover {
  background-color: var(--fondo-negro);
  color: var(--texto-blanco);
  border-radius: none !important;
  border: 1px solid var(--fondo-negro);
}

.item-pro:hover .hover-image {
  opacity: 1;
  transform: scale(1.1);
}

.swiper-navBtn {
  color: var(--boton-azul-hover);
  transition: color 0.3s ease;
}

.swiper-navBtn:hover {
  color: var(--boton-azul);
}

.swiper-navBtn::before,
.swiper-navBtn::after {
  font-size: 40px;
}

.swiper-button-next {
  right: 0;
}

.swiper-button-prev {
  left: 0;
}

.swiper-pagination-bullet {
  background-color: var(--boton-azul-hover);
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background-color: var(--boton-azul);
}

@media screen and (max-width: 768px) {
  .slide-content {
    margin: 0 10px;
  }
  .swiper-navBtn {
    display: none !important;
  }
  .btn-add-to-cart {
    font-size: 14px;
  }
}

@media screen and (max-width: 520px) {
  .btn-add-to-cart {
    font-size: 14px;
  }
}

/* MODAL */
.quantity {
  width: 100%;
  padding: 10px;
  border: 2px solid #ccc;
  /* border-radius: 5px;  */
  font-size: 16px;
  color: #333;
  background-color: var(--fondo-blanco);
  transition: border-color 0.3s;
}

.quantity:focus {
  border-color: #333;
  outline: none;
  background-color: #fff;
}

.btn-add-to-cart-add {
  background-color: var(--fondo-blanco);
  color: var(--texto-negro);
  border-radius: none !important;
  margin: 0;
  font-weight: 400;
  padding: 10px;
  border: 1px solid #000000;
  white-space: nowrap;
  display: inline-block;
  text-align: center;
  box-sizing: border-box;
}

.btn-add-to-cart-add:hover {
  background-color: var(--fondo-negro);
  color: var(--texto-blanco);
  border-radius: none !important;
  border: 1px solid var(--fondo-negro);
}

/* MODAL SWIPER */

img {
  width: 100%;
  display: block;
}

.img-display {
  overflow: hidden;
}
.img-showcase {
  display: flex;
  width: 100%;
  transition: all 0.5s ease;
}
.img-showcase img {
  min-width: 100%;
}
.img-select {
  display: flex;
}
.img-item {
  margin: 0.3rem;
}
.img-item:nth-child(1),
.img-item:nth-child(2),
.img-item:nth-child(3) {
  margin-right: 0;
}
.img-item:hover {
  opacity: 0.8;
}

.product-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 2rem 1rem;
}
.product-title {
  font-size: 3rem;
  text-transform: capitalize;
  font-weight: 700;
  position: relative;
  color: #12263a;
  margin: 1rem 0;
}
.product-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 80px;
  background: #12263a;
}
.product-link {
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 400;
  font-size: 0.9rem;
  display: inline-block;
  margin-bottom: 0.5rem;
  background: #256eff;
  color: #fff;
  padding: 0 0.3rem;
  transition: all 0.5s ease;
}
.product-link:hover {
  opacity: 0.9;
}
.product-rating {
  color: #ffc107;
}
.product-rating span {
  font-weight: 600;
  color: #252525;
}
.product-price {
  margin: 1rem 0;
  font-size: 1rem;
  font-weight: 700;
}
.product-price span {
  font-weight: 400;
}
.last-price span {
  color: #f64749;
  text-decoration: line-through;
}
.new-price span {
  color: #256eff;
}
.product-detail h2 {
  text-transform: capitalize;
  color: #12263a;
  padding-bottom: 0.6rem;
}
.product-detail p {
  font-size: 0.9rem;
  padding: 0.3rem;
  opacity: 0.8;
}
.product-detail ul {
  margin: 1rem 0;
  font-size: 0.9rem;
}
.product-detail ul li {
  margin: 0;
  list-style: none;
  background: url(shoes_images/checked.png) left center no-repeat;
  background-size: 18px;
  padding-left: 1.7rem;
  margin: 0.4rem 0;
  font-weight: 600;
  opacity: 0.9;
}
.product-detail ul li span {
  font-weight: 400;
}
.purchase-info {
  margin: 1.5rem 0;
}
.purchase-info input,
.purchase-info .btn {
  border: 1.5px solid #ddd;
  border-radius: 25px;
  text-align: center;
  padding: 0.45rem 0.8rem;
  outline: 0;
  margin-right: 0.2rem;
  margin-bottom: 1rem;
}
.purchase-info input {
  width: 60px;
}
.purchase-info .btn {
  cursor: pointer;
  color: #fff;
}
.purchase-info .btn:first-of-type {
  background: #256eff;
}
.purchase-info .btn:last-of-type {
  background: #f64749;
}
.purchase-info .btn:hover {
  opacity: 0.9;
}

@media screen and (min-width: 992px) {
  .card {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 1.5rem;
  }

  .product-imgs {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .product-content {
    padding-top: 0;
  }
}

/* CATEGORIAS PRINCIPALES */

.categorias-principales .row {
  width: 80%;
  /* margin: auto;  */
}

.categorias-principales .row .col-6,
.categorias-principales .row .col-md-4 {
  padding: 0.5rem;
}

.categoria-box {
  width: 100%;
  height: 500px;
  background-color: var(--fondo-categoria);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden; /* Asegura que la imagen no desborde el contenedor durante el zoom */
  position: relative;
}

.categoria-box img {
  max-width: 100%;
  max-height: 100%;
  transition: transform 0.3s ease-in-out; /* Añade una transición suave para el zoom */
}

.categoria-box:hover img {
  transform: scale(
    1.1
  ); /* Aumenta el tamaño de la imagen al pasar el cursor por encima */
}

.categoria-box .titulo {
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: center;
  color: white;
  padding: 0.5rem 0;
  font-size: 1.5rem;
  font-weight: 900;
}

/* SECTION BANNERS */

.img-banners {
  width: 100%;
  height: 500px;
  border-radius: 50px;
  border: 1px solid var(--third-color);
}

/* FOOTER */
/* Estilo para los enlaces rápidos y redes sociales en el footer */
.footer {
  background-color: var(--fondo-negro); /* Color de fondo */
  color: var(--texto-blanco); /* Color del texto */
  padding: 60px 0; /* Espaciado interior */
}

.footer h5 {
  color: var(--texto-blanco);
  font-size: 20px;
}

.footer-links li a {
  color: var(--texto-blanco); /* Color blanco para los enlaces */
  text-decoration: none; /* Quita la subrayado predeterminado */
}

.footer-links li a:hover {
  text-decoration: underline; /* Subrayado al pasar el cursor */
}

.social-icons {
  display: flex;
  flex-direction: column;
  text-align: left; /* Alinea el texto y los íconos al centro */
}

.social-icons li {
  margin-bottom: 10px;
}

.social-icons li a {
  color: var(--texto-blanco);
  text-decoration: none;
}

.social-icons li a:hover {
  text-decoration: underline;
}

/* WHATSAPP */

.whatsapp-button {
  position: fixed;
  bottom: 40px; /* Distancia desde el borde inferior */
  right: 40px; /* Distancia desde el borde derecho */
  background-color: #25d366; /* Color de fondo de WhatsApp */
  color: #fff; /* Color de texto */
  text-decoration: none;
  padding: 15px 20px;
  border-radius: 50%;
  font-size: 1.5rem;
  z-index: 1000; /* Asegura que esté por encima de otros elementos */
}

.whatsapp-button:hover {
  background-color: #128c7e; /* Cambia el color de fondo al pasar el ratón */
}

/* CONTACTO */

.contact .info-item {
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.08);
  padding: 20px 0 30px 0;
}

.contact .info-item i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  font-size: 24px;
  line-height: 0;
  color: #fff;
  background: var(--boton-azul-hover);
  border-radius: 10%;
  border: 2px solid var(--boton-azul-hover);
}

.contact .info-item h3 {
  font-size: 20px;
  color: #6c757d;
  font-weight: 700;
  margin: 10px 0;
}

.contact .info-item p {
  padding: 0;
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}

.contact .php-email-form {
  width: 100%;
  background: #fff;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.08);
  padding: 30px;
}

.contact .php-email-form .form-group {
  padding-bottom: 20px;
}

.contact .php-email-form .error-message {
  display: none;
  color: #fff;
  background: #df1529;
  text-align: left;
  border-radius: 5px;
  padding: 15px;
  font-weight: 600;
}

.contact .php-email-form .error-message br + br {
  margin-top: 25px;
}

.contact .php-email-form .sent-message {
  display: none;
  color: #fff;
  background: #059652;
  text-align: center;
  padding: 15px;
  font-weight: 600;
}

.contact .php-email-form .loading {
  display: none;
  background: #fff;
  text-align: center;
  padding: 15px;
}

.contact .php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid #059652;
  border-top-color: #fff;
  animation: animate-loading 1s linear infinite;
}

.contact .php-email-form input,
.contact .php-email-form textarea {
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
}

.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--boton-azul-hover);
}

.contact .php-email-form input {
  height: 44px;
}

.contact .php-email-form textarea {
  padding: 10px 12px;
}

.contact .php-email-form button[type="submit"] {
  background: var(--boton-azul-hover);
  border: 0;
  padding: 10px 35px;
  color: #fff;
  transition: 0.4s;
  border-radius: 5px;
}

.contact .php-email-form button[type="submit"]:hover {
  background: var(--boton-azul-hover);
}

@keyframes animate-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}
