/* Containers */
.container {
  width: 100%;
  max-width: 1280px;
  padding-inline: var(--p-md);
  margin: 0 auto;
}

/* WP img Alignment*/

.alignleft {
  float: left;
  margin: 0 24px 24px 0;
}
.alignright {
  float: right;
  margin: 0 0 24px 24px;
}
.centered,
.aligncenter {
  display: block;
  margin: 0 auto 30px;
}

/* Buttons */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.25rem;
  gap: var(--p-sm);
  border-radius: 8px;
  padding-inline: var(--p-md);
  font-size: clamp(0.875rem, 0.775rem + 0.5vw, 1rem);
  line-height: 2.25rem;
  font-weight: 500;
  color: var(--color-seccondary-dark);
  background-color: var(--color-light);
  transition: all var(--tr-short) var(--tr-simple);

  &:hover {
    background-color: var(--color-seccondary);
    color: var(--color-light);
  }
}

.btn-primary {
  background-color: var(--color-primary);
}

.btn-seccondary-dark {
  background-color: var(--color-seccondary-dark);
  color: var(--color-light);
}

.btn-wa {
  background-color: var(--color-wa);
  color: var(--color-light);
}

/* Inputs */
input[type="search"] {
  border: solid 1px var(--color-seccondary-dark);
  height: 100%;
  max-height: 36px;
  padding: var(--p-md);
  width: 100%;
}
input[type="number"] {
  width: 50px;
  height: 36px;
  border: solid 1px var(--color-seccondary-dark);
  padding: var(--p-md) 0 var(--p-md) var(--p-md);
}

/* Lightbox */

/* Lightbox oculto por defecto */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: none; /* Oculto inicialmente */
  justify-content: center;
  align-items: center;
  z-index: 9999; /* Asegura que esté por encima de todo el sitio */

  /* Clase que activará JavaScript para mostrarlo */
  &.is-active {
    display: flex;
  }

  /* Contenedor interno centrado, con fondo blanco estricto para PNGs transparentes */
  .lightbox-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff; /* Fondo blanco para las transparencias del PNG */
    padding: var(--p-lg);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    max-width: 90vw;
    max-height: 90vh;
  }

  img {
    max-width: 80vw;
    max-height: 80vh;
    object-fit: contain;
    display: block;
    border-radius: 4px;
  }

  /* Botón de la X para cerrar */
  .lightbox-close {
    position: absolute;
    top: -12px;
    right: -12px;
    background: var(--color-seccondary-dark);
    color: var(--color-primary);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 22px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background var(--tr-short) var(--tr-simple);

    &:hover {
      background: var(--color-seccondary);
    }
  }
}
