/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: Tema hijo de Astra
Author: Tu Nombre
Author URI: https://tusitio.com/
Template: astra
Version: 1.0
*/

/* Aquí puedes escribir estilos personalizados */

/* Variables de color */

:root {
  --primary-color: #00d3c5;
  --primary-hover: #00d3c5;
  --shadow-color: rgba(82, 92, 235, 0.3);
  --text-color: #333;
}

.woocommerce ul.products li.product a {
  pointer-events: none;
}

a.woocommerce-LoopProduct-link.woocommerce-loop-product__link {
  pointer-events: none;
}

.review-rating {
  display: none;
}

h2.woocommerce-loop-product__title {
  margin-bottom: 15px !important;
  text-align: center;
}

.fr-cot-jm input,
.fr-cot-jm textarea {
  border-radius: 10px !important;
}

.fr-cot-jm h4 {
  text-align: center;
}

.subcats-list ul {
  position: sticky;
  top: 180px;
  margin: 0px;
}

/* Contenedor principal */
.container-temp {
  margin-top: 10%;
  display: flex;
  width: 100%;
  gap: 1.5rem;
}

/* Lista de subcategorías */
.subcats-list {
  width: 20%;
}

/* Botones de subcategoría */
.subcat-btn {
  background-color: #fff;
  /* fondo blanco cuando está inactivo */
  padding: 0.6rem 1.5rem;
  color: #003ebd;
  /* texto inactivo */
  cursor: pointer;
  font-weight: 600;
  /*  border: 1px solid #003ebd; */
  transition: background-color 0.3s ease, box-shadow 0.3s ease,
    transform 0.15s ease, color 0.3s ease;
  user-select: none;
  text-align: left;
  margin-bottom: 10px;
  list-style: none;
  /* border-radius: 15px; */
}

.reset {
  color: red;

  background-color: #fff;
  /* fondo blanco cuando está inactivo */
  padding: 0.6rem 1.5rem;

  cursor: pointer;
  font-weight: 600;
  /*   border: 1px solid red; */
  transition: background-color 0.3s ease, box-shadow 0.3s ease,
    transform 0.15s ease, color 0.3s ease;
  user-select: none;
  text-align: left;
  margin-bottom: 10px;
  list-style: none;
  /* border-radius: 15px; */
}

.reset:hover {
  background-color: #fff;
  /* fondo sigue blanco */
  color: red;
  /* texto activo */
  /* box-shadow: 0px 4px 16px -3px red; */
  /*  border: 2px solid red;  */
  /
}

.subcat-btn:hover,
.subcat-btn.active {
  background-color: #00d3c526;
  color: #00d3c5;
}

/* Contenedor de productos */
#productos-container {
  width: 80%;
  min-height: 550px;
}


/* Loader */
.skeleton-loader-row {
  width: 100%;
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.skeleton-card {
  flex: 0 0 220px;
  height: 300px;
  background: linear-gradient(90deg, #eee 25%, #ddd 37%, #eee 63%);
  background-size: 400% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

@keyframes shimmer {
  0% {
    background-position: -400px 0;
  }

  100% {
    background-position: 400px 0;
  }
}

/* Paginación */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 1.4rem;
  margin-bottom: 7%;
}

.pagination button {
  background: #f7f7f7;
  border: 1px solid;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  color: var(--primary-color);
  box-shadow: 0 4px 8px rgba(82, 92, 235, 0.15);
  transition: background-color 0.25s ease, color 0.25s ease;
}

.pagination button:hover {
  background: var(--primary-color);
  color: #fff;
}

/* Grid de productos 4 columnas */
.products.columns-4 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 0px !important;
  list-style: none !important;
  margin: 0 !important;
}

/* Item producto */
.products.columns-4 li.product {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(82, 92, 235, 0.15);
  padding: 1rem;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.products.columns-4 li.product:hover {
  box-shadow: 0 18px 28px rgba(82, 92, 235, 0.3);
  transform: translateY(-5px);
}

/* Responsividad */

/* Tablet */
@media (max-width: 1024px) {
  .products.columns-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 1.5rem 0;
  }

  .container-temp {
    padding: 1.5rem 1rem;
  }
}

/* Móviles */
@media (max-width: 480px) {
  #productos-container {
    width: 70%;
    min-height: 550px;
  }

  .subcats-list {
    width: 30%;
  }

  .products.columns-4 {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem 0;
  }

  .subcat-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    box-shadow: 0 3px 8px rgba(82, 92, 235, 0.2);
  }

  .container-temp {
    padding: 1rem 0.5rem;
  }
}



/* app de credito start */
.app-credit-form {
  max-width: 1400px;
  margin: auto;
  font-family: system-ui, sans-serif;
  padding: 20px;
}

/* SECCIONES */
.app-section {
  box-shadow: 0px 1px 2px 1px #00d3c597;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
}

/* FULL WIDTH */
.app-full {
  width: 100%;
}

/* GRID 2 COLUMNAS */
.app-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

/* INPUTS */
.app-credit-form input,
.app-credit-form select,
.app-credit-form textarea {
  width: 100%;
  padding: .6rem;
  border: 1px solid #333;
  border-radius: 6px;


}

.app-credit-form label {
  display: block;
  font-weight: 600;
  margin: 10px 0 4px;
}

/* RADIO / CHECK */
.app-credit-form input[type=radio],
.app-credit-form input[type=checkbox] {
  width: auto;
  margin-right: 6px;
}

/* BOTÓN */
.app-button {
  background: #046bd2;
  color: #ffffff;
  padding: 14px 40px;
  border-radius: 10px;
  font-weight: 700;
  border: none;
  cursor: pointer;

  display: block;
  margin: 30px auto;
}

/* MOBILE */
@media (max-width: 900px) {
  .app-grid-2 {
    grid-template-columns: 1fr;
  }
}

/*otra css adicional*/
.legal-box {
    border: 1px solid #ccc;
    padding: 16px;
    border-radius: 10px;
    background: #f9f9f9;
    margin-top: 20px;
}

.checkbox-legal {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    margin-top: 12px;
    cursor: pointer;
}
