/* variables de colores utilizados*/
:root {
  --body-bg: #fff5f5; /* fondo principal del body, sutil tintado para armonizar con --brand-red */
  --texto-oscuro: #2d2d2d;
  --brand-red: #c62828; /* Color de hover del menu desplegable */
  --rojo-hover: #b71c1c;
  --background: #101922;

  /* fondo principal del body */
  /*   --azul: rgba(3, 28, 136, 0.85);*/
  /*  --negro: rgba(0, 0, 0, 0.85);*/
  /*   --rojo: rgb(255, 0, 0);

  /*Se utilizaran en el main*/
  --primary-red: #8b0000;
  --accent-red: #dc143c;
  --dark-bg: #1a0000f5;
  --light-text: #ffffff;
}

body {
  font-family: 'sans-serif', sans-serif;
  background-color: var(--body-bg);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, #25d366, #128c7e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  z-index: 1001;
  animation: pulse 2s infinite;
  text-decoration: none;
}

.whatsapp-float i {
  font-size: 32px;
  color: white;
}

/* --------------------------------------------------------------------------------
                            Inicio de estilo para el header -----------------------
-----------------------------------------------------------------------------------*/

header img {
  width: 11.5rem;
  height: auto;
  transition: transform 0.5s ease;
}

header img:hover {
  transform: scale(1.1);
}

.contact-info-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--texto-oscuro);
  transition: all 0.3s ease;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.contact-info-header:hover {
  color: var(--brand-red);
  transform: translateY(-2px);
}

.contact-info-header svg {
  transition: transform 0.3s ease;
}

.contact-info-header:hover svg {
  transform: scale(1.2);
}

/* Iconos de redes sociales */
.social-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 30%;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-header:hover {
  transform: translateY(-5px) rotate(5deg);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-header.facebook:hover {
  background: #1877f2;
  color: white;
}

.social-header.instagram:hover {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
  color: white;
}

/* --------------------------------------------------------------------------------
                            Final del estilo para el header -----------------------
-----------------------------------------------------------------------------------*/

/* ----------------------------------------------------------------------------------
                        Estilo para la barra de navegacion-------------------------
-------------------------------------------------------------------------------------*/
.navbar-brand {
  font-size: 1.4rem !important;
  font-weight: 700;
  color: var(--texto-oscuro) !important;
  transition: color 0.3s ease;
}

.navbar-brand:hover {
  color: var(--rojo-hover) !important;
}

.navbar-nav {
  gap: 0;
}

.nav-item {
  position: relative;
  padding: 0px 25px 0px 25px;
  font-size: 1.125rem;
  font-weight: 500;
  color: black;
}

.nav-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 30px;
  width: 3px;
  background: rgba(0, 0, 0, 0.712);
}

.nav-link {
  font-size: 1.125rem !important;
  font-weight: 500;
  color: var(--background) !important;
  padding: 0.5rem 0 !important;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--rojo-hover);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--brand-red) !important;
}

.nav-link:hover::before {
  width: 100%;
}

.nav-link.active::before {
  width: 100%;
}

/* Botón WhatsApp */
.boton-whatsapp {
  background: linear-gradient(
    45deg,
    #25d366 0%,
    /* Verde WhatsApp principal */ #20c659 25%,
    /* Verde medio */ #1ebea5 50%,
    /* Verde agua */ #00a884 75%,
    /* Verde oscuro */ #007c65 100% /* Verde profundo */
  );
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
}

.boton-whatsapp:hover {
  color: white;
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(37, 211, 102, 0.5);
  filter: brightness(1.1);
}

.boton-whatsapp svg {
  width: 1.6rem;
  height: auto;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}
/* final del header y la barra de naavegacion*/

/* ESTILOS PARA EL ENCABEZADO DE LA PAGINA */
.page-hero {
  /*   background: linear-gradient(135deg, var(--brand-red), #d32f2f)*/
  color: white;
  padding: 60px 0 30px 0;
  text-align: center;
  background: linear-gradient(0deg, var(--dark-bg) 0%, var(--primary-red) 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

/* ESTILOS PARA LA BARRA DE BUSQUEDA*/
.search-section {
  padding: 30px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-bar {
  max-width: 700px;
  margin: 0 auto;
  background-color: transparent !important;

}

.search-input {
  border-radius: 50px !important;
  padding: 10px 25px 10px 50px !important;
  border: 2px solid #ddd !important;
  font-size: 1.1rem !important;
  transition: all 0.3s;
  
}

.search-input:focus {
  border-color: var(--brand-red) !important;
  box-shadow: 0 0 0 0.2rem rgba(198, 40, 40, 0.25) !important;
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 1.2rem;
  pointer-events: none;
}

/* ESTILOS PARA LA SECCION DE FILTROS*/
.filters-section {
  background: white !important;
  padding: 30px 0px 0px 0 !important;
  border-bottom: 3px solid #f8f9fa;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-select {
  border: 2px solid #e0e0e0 !important;
  border-radius: 10px !important;
  padding: 12px 15px !important;
  font-size: 1rem;
  transition: all 0.3s ease !important;
  cursor: pointer;
}

.filter-select:focus {
  border-color: rgba(179, 152, 152, 0.993) !important;
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.801) !important;
  outline: none !important;
}

.filter-select:hover {
  border-color: rgba(197, 49, 49, 0.582) !important;
}

.form-label {
  color: var(--texto-oscuro);
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.form-label i {
  color: var(--brand-red);
}

.filter-tag {
  display: inline-flex;
  margin-bottom: 20px;
  align-items: center;
  padding: 8px 15px 8px 15px;
  background: linear-gradient(135deg, #ff0000, #2d2424);
  color: white;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 500;
  animation: slideIn 0.5s ease;
}

.filter-tag i {
  margin-right: 5px;
  cursor: pointer;
  font-size: 1rem;
}

.filter-tag i:hover {
  transform: scale(1.2);
}

.results-info {
  padding: 30px 0;
  color: #666;
  font-size: 1.1rem;
}

.product-card {
  border: none !important;
  border-radius: 15px !important;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100% !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background: white !important;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.product-card img {
  height: 250px;
  object-fit: cover;
  background: #f8f9fa;
  width: 100%;
  padding: 25px;
}

.product-card:hover img {
  transform: scale(1.1);
}

.product-badge {
  position: relative;
  top: 10px;
  background: var(--brand-red);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 1;
}

.position-relative {
  background: #f8f9fa;
}

.badge-nuevo {
  background: #28a745;
}

.badge-oferta {
  background: #ff9800;
}

.product-category {
  display: inline-block;
  padding: 4px 12px;
  background: #e3f2fd;
  color: #1976d2;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.product-features {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

.product-features li {
  padding: 5px 0;
  font-size: 0.9rem;
  color: #1a1919;
}

.product-features li i {
  color: var(--brand-red);
  margin-right: 5px;
}

.price-section {
  border: 1px solid var(--border-light);
  border-left: 5px solid var(--brand-red);
  border-radius: 6px;
  padding: 14px 16px;
  text-align: left;
  transition: all 0.3s ease;
}

.price-label {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.price {
  font-size: 1.75rem !important;
  font-weight: 550;
  color: var(--brand-red);
  display: flex;
  align-items: center;
}

.price-currency {
  font-size: 1.5rem;
  margin-right: 5px;
}

.btn-contact {
  background: linear-gradient(45deg, #25d366, #128c7e);
  color: white !important;
  border: none !important;
  padding: 10px 0 !important;
  border-radius: 20px !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
  width: 100%;
  text-decoration: none !important;
  display: inline-block !important;
  text-align: center !important;
}

.btn-contact:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4) !important;
  color: white !important;
}

.btn-details {
  background: white;
  color: var(--brand-red) !important;
  border: 1px solid var(--brand-red) !important;
  padding: 10px 0 !important;
  border-radius: 20px !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
  width: 100%;
}

.btn-details:hover {
  background: var(--brand-red) !important;
  color: white !important;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--brand-red);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  display: none;
}

.no-results i {
  font-size: 4rem;
  color: #ccc;
  margin-bottom: 20px;
}

.no-results button i {
  font-size: 1rem;
  color: red;
}

.no-results button:hover {
  color: rgb(255, 255, 255);
  i {
    color: rgb(255, 255, 255);
  }
}

/* --- MODAL ---- */

.modal-header {
  background: var(--brand-red);
  color: white;
}

.modal-img {
  max-height: 400px;
  object-fit: contain;
  background: #f8f9fa;
  width: 100%;
}

.spec-table {
  width: 100%;
  margin: 20px 0;
}

.spec-table tr {
  border-bottom: 1px solid #eee;
}

.spec-table td {
  padding: 10px;
}

.spec-table td:first-child {
  font-weight: 600;
  color: var(--texto-oscuro);
  width: 40%;
}

/* ESTILOS PARA EL FOOTER */
.footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #dc3545 0%, #ff6b6b 50%, #dc3545 100%);
}

.footer h3 {
  color: #dc3545;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-logo {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-logo img {
  background: #ffffff;
  padding: 15px;
  border-radius: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.footer-logo img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

@media (max-width: 768px) {
  .footer-logo img {
    max-width: 150px !important;
  }
}

.footer h5 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: #dc3545;
}

.footer p {
  color: #cccccc;
  line-height: 1.8;
  margin-bottom: 0.8rem;
}

.footer-link {
  color: #cccccc;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  padding: 0.3rem 0;
  position: relative;
}

.footer-link::before {
  content: '›';
  margin-right: 0.5rem;
  color: #dc3545;
  font-weight: bold;
}

.footer-link:hover {
  color: #dc3545;
  transform: translateX(5px);
}

.contact-info {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.5rem;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.contact-info:hover {
  background: rgba(220, 53, 69, 0.1);
}

.contact-info i {
  color: #dc3545;
  font-size: 1.2rem;
  margin-right: 1rem;
  width: 25px;
  text-align: center;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  background: #dc3545;
  color: #ffffff;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

.footer-bottom {
  background: #0d0d0d;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
}

.footer-bottom p {
  color: #999999;
  margin: 0;
  font-size: 0.9rem;
}

.footer-bottom strong {
  color: #dc3545;
}

@media (max-width: 768px) {
  .footer h5::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .text-md-start {
    text-align: center !important;
  }

  .contact-info {
    justify-content: center;
  }
}

@media (max-width: 450px) {
  /* Estilos para la imagen del logo tipo del header */
  header img {
    margin: auto;
    width: 13rem;
    margin-left: 40px;
  }
  /*Estilos para el contenedor de el icono de WhatSapp y Ubicacion*/
  #cont_info {
    display: flex;
    flex-direction: column; /* uno debajo del otro */
    align-items: center; /* centrados horizontalmente */
    gap: 0; /* sin espacio entre ellos */
  }
  /* ---------------------------------------------
      Estilos para tables de la barra de navegacion
  ----------------------------------------------*/
  .nav-item::after {
    display: none;
  }

  .nav-item:not(:last-child)::after {
    display: none;
    content: none; /* también ayuda a eliminarlo completamente */
  }

  .navbar-collapse {
    margin-top: 0.1rem;
    background: #f8f9fa;
    border-radius: 10px;
  }

  .boton-whatsapp {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
  }

  .contact-info-header {
    font-size: 1.05rem;
    font-weight: 700;
    padding: 0.3rem 0.5rem;
    letter-spacing: -0.5px;
  }
}

@media (min-width: 450px) and (max-width: 992px) {
  /* ---------------------------------------------
      Estilos para table de la imagen del header
  ----------------------------------------------*/
  header img {
    margin: auto;
    width: 13rem;
    margin-left: 75px;
  }

  #cont_info {
    flex-direction: column;
    gap: 0.5rem !important;
  }

  /* ---------------------------------------------
      Estilos para tables de la barra de navegacion
  ----------------------------------------------*/
  .nav-item::after {
    display: none;
  }

  .nav-item:not(:last-child)::after {
    display: none;
    content: none; /* también ayuda a eliminarlo completamente */
  }

  .navbar-collapse {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
  }

  .boton-whatsapp {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
  }

  .contact-info-header {
    font-size: 1.05rem;
    font-weight: 700;
    padding: 0.3rem 0.5rem;
    letter-spacing: -0.5px;
  }
}
