@import url("https://fonts.googleapis.com/css2?family=Khula:wght@300;400;600;700;800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");

:root {
  --btn-color: #1a2f52; /* button color*/
  --btn-bg: #ebce33; /* button bg color*/

  --primary-text-color: #1d1b1b;
}

html {
  scroll-behavior: smooth;
  font-family: "Roboto", sans-serif;
  background-color: #f4f4f4;
}

header {
  background-color: #1a2f52;
  color: #000;
  z-index: 100;
}

header > .collapsable-header {
  display: flex;
  gap: 1rem;
  width: 100%;
  background-color: inherit;
  place-content: center;
  overflow: hidden;
  transition: width 0.3s ease;
}

.animated-collapse {
  transition: width 0.3s ease;
}

.header-links {
  display: flex;
  align-items: center;
  min-width: fit-content;
  border-radius: 25px;
  padding: 5px 10px;
  transition: background-color 0.5s, color 0.5s;
}

.header-links:hover {
  color: #fff;
  background-color: #000;
}

.black-text {
  color: #000;
}

.white-text {
  color: #fff;
}

.primary-text-color {
  color: var(--primary-text-color);
}

.opacity-0 {
  opacity: 0 !important;
}

.opacity-100 {
  opacity: 100 !important;
}

.btn {
  padding: 10px 15px;
  width: max-content;
  border-radius: calc(infinity * 1px);
  color: var(--btn-color);
  background-color: var(--btn-bg);
  justify-content: center;
  align-items: center;
  display: flex;
  cursor: pointer;
}
.btn-password {
  padding: 5px 8px;
  cursor: pointer;
}

.btn:hover {
}

.btn:disabled {
  cursor: default;
}

.input {
  padding: 10px;
  /* background-color: transparent;
  border-radius: 10px;
  outline: none;
  min-width: 100px;
  border: 1px solid #b3b3b3; */
  /* transition: border 0.3s; */
}

/* .input:active,
.input:focus,
.input:focus-within {
  border-bottom: 2px solid #be3345 !important;
} */

.input-error {
  border-bottom: 3px solid #ff1e1e;
}

.input-error:focus-within {
  border-bottom: 3px solid #fd0101;
}

.error-container {
  /* container used to display errors */
  border: 3px solid #f5c6cb;
  background-color: #f8d7da;
  color: #932504;
  width: 100%;
  max-width: 450px;
  border-radius: 5px;
  min-height: 50px;
  padding: 5px 10px;
}

.error-container ul {
  list-style: decimal;
}

.error-container li {
  margin-left: 10px;
}

.error-container li > ul {
  list-style: circle;
}

/* Slideshow container */
.slideshow-container {
  width: 100%;
  /* height: 100%; */
  position: relative;
  margin: auto;
  overflow: hidden;
  display: block;
  height: 100%;
}

/* Next & previous buttons for slideshow */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  z-index: 10;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Navigation dots styling */
.dots-container {
  text-align: center;
  margin-top: 20px;
}

.dot {
  height: 10px;
  width: 10px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  margin: 0 5px;
  cursor: pointer;
}

.dots-container .active,
.dot:hover {
  background-color: #717171;
}

.footer-link {
  color: #0d0d0d;
  transition: color 0.3s;
}

.footer-link:hover {
  color: #483cf4;
}

.review-container {
  position: relative;
  max-width: 600px;
  margin: auto;
}

.review-slide {
  display: none;
  padding: 20px;
  text-align: center;
}

/* Fading animation */

.fade {
  animation: fadeEffect 1s ease-in-out;
}

@keyframes fadeEffect {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.stars {
  display: inline-block;
  font-size: 40px;
  cursor: pointer;
}
.stars .star {
  color: #ccc;
  transition: color 0.2s;
}
.stars .star:hover,
.stars .star.active {
  color: gold;
}

/* --------- collapsible div ---------- */
.collapsible {
  background-color: #f3f0f0;
  color: #2b2929;
  /* cursor: pointer; */
  padding: 5px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 16px;
  transition: 0.4s;
}

/* Style for the collapsible content */
.content {
  padding: 0 18px;
  /* display: none; */
  height: 0px;
  overflow: hidden;
  background-color: transparent;
  transition: height 0.5s;
  text-align: justify;
  margin-top: 10px;
}

.collapsible .active,
.collapsible:hover {
  /* background-color: #dedddd; */
}

/* --------------------- pagination -------------------- */

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 5% 5px;
}

.pagination .page-item {
  display: flex;
  font-size: larger;
  padding: 5px 15px;
  border: 1px solid #1e85ec;
  /* background-color: #1e85ec; */
  color: #000;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
}

.pagination .page-item:hover {
  color: #fff;
  background-color: #2085e9;
}

.pagination .page-item:disabled {
  background-color: #ebf5ff;
}

.pagination .active {
  color: #fff;
  background-color: #2085e9;
}

/* .pagination .active:hover{
    background-color: #fd7171;
} */

.pagination .disabled {
  color: #babcbd;
  background-color: #e2e2e2;
  border: 1px solid #cccdcf;
}

.pagination .disabled:hover {
  color: #babcbd;
  background-color: #e2e2e2;
  border: 1px solid #cccdcf;
}

/* On smaller screens, decrease text size */
@media only screen and (max-width: 300px) {
  .prev,
  .next,
  .text {
    font-size: 11px;
  }
}

@media not all and (min-width: 1024px) {
  header .collapsable-header {
    position: flex;
    right: 0px;
    flex-direction: column;
    opacity: 0;
    width: 0vw;
    justify-content: space-between;
    padding: 5px;
    padding-bottom: 5%;
    place-items: center;
    background-color: #1a2f52;
    color: white;
    overflow-y: auto;
  }

  .header-links {
    display: flex;
    color: white;
  }
}

.card {
  display: flex;
  flex-direction: column;
  padding: 5px;
  background-color: #fff;
  border-radius: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* On small screens: apply style when the card has the .active class (clicked) */
@media (max-width: 767px) {
  .card.active {
    background-color: #1a2f52;
    color: #fff;
    transform: translateY(-10px);
  }
}

/* On medium and larger screens: apply style on hover */
@media (min-width: 768px) {
  .card:hover {
    background-color: #1a2f52;
    color: #fff;
  }

  .image-main:hover {
    display: none;
  }

  .image-alt:hover {
    display: block;
  }
}

@keyframes pulseClick {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.85);
  }
  100% {
    transform: scale(1);
  }
}

.pulse {
  animation: pulseClick 0.3s ease-in-out;
}

/* Clase para cambio de color temporal */
.clicked {
  background-color: #ebce33 !important; /* Tailwind green-600 */
}

.text-clicked {
  color: #1a2f52 !important; /* texto blanco temporal */
}

@keyframes zoomInOut {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.zoomIn {
  animation: zoomInOut 0.3s ease-in-out;
}

/* start rating */

.star-rating {
  color: #ced4da;
}
.star-rating i {
  letter-spacing: -1px;
  width: auto;
}
.star-rating a {
  margin-left: 10px;
}

.star-rating.One i:first-child {
  color: #ffc107;
}

.star-rating.Two i:first-child, .star-rating.Two i:first-child + i {
  color: #ffc107;
}

.star-rating.Three i:first-child, .star-rating.Three i:first-child + i, .star-rating.Three i:first-child + i + i {
  color: #ffc107;
}

.star-rating.Four i:first-child, .star-rating.Four i:first-child + i, .star-rating.Four i:first-child + i + i, .star-rating.Four i:first-child + i + i + i {
  color: #ffc107;
}

.star-rating.Five i {
  color: #ffc107;
}

/* carousel */
.vertical-carousel {
  aspect-ratio: 9 / 16;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  border-radius: 1rem;
  background-color: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vertical-carousel img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  position: absolute;
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* Contador de imágenes */
.image-counter {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  z-index: 10;
}

/* Cuando las imágenes ya están cargadas */
.vertical-carousel img.loaded {
  animation: simpleCarousel 5s infinite;
  opacity: 0;
}

.vertical-carousel img.active {
  opacity: 1;
}

/* Animación simple */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* Fondo de seguridad */
.image-container-vertical {
  aspect-ratio: 9 / 16;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  border-radius: 1rem;
  overflow: hidden;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-container-vertical img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}