@import url('https://fonts.googleapis.com/css2?family=Playwrite+DE+Grund:wght@100..400&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Playwrite DE Grund", cursive;
}
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

/* hasta aqui */
/* Contenedor del loader */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Contenedor de las bolitas */
.loader {
    display: flex;
    justify-content: space-between;
    width: 100px;
}

/* Estilos de las bolitas */
.dot {
    width: 20px;
    height: 20px;
    background-color: #f30d5e; /* Color de la bolita */
    border-radius: 50%;
    animation: wave 1s ease-in-out infinite;
    animation-delay: calc(0.1s * var(--i));
}

/* Animación de ola para las bolitas */
@keyframes wave {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-15px);
    }
}

/* Texto de "Cargando..." */
.loading-text {
    margin-top: 10px;
    font-size: 15px;
    color: #f20d55;
    letter-spacing: 2px;
    display: flex;
    justify-content: center;
}

/* Animación de ola para el texto */
.loading-text span {
    display: inline-block;
    animation: wave-text 1s ease-in-out infinite;
    animation-delay: calc(0.1s * var(--i));
}

@keyframes wave-text {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: white;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo img {
  width: 100px;
}

.nav-icons i {
    font-size: 24px;
    margin: 0 10px;
    cursor: pointer;
}

.menu-toggle {
    cursor: pointer;
}
.menu-toggle i {
    font-size: 24px;
}

/* Menú lateral */
.sidebar {
    position: fixed;
    left: -250px;
    top: 56px;
    width: 250px;
    height: 100%;
    background-color: white;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    transition: left 0.3s;
    z-index: 1000;
}

.sidebar ul {
    list-style: none;
    padding: 20px;
}

.sidebar ul li {
    margin: 20px 0;
}

.sidebar ul li a {
    text-decoration: none;
    color: black;
    font-size: 18px;
}

.sidebar-active {
    left: 0;
}


/* Ocultar el contenedor de búsqueda por defecto */
/* Search bar */
.search-bar {
    display: none;
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 400px;
    padding: 10px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.search-bar input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.suggestions {
    margin-top: 5px;
}

.suggestions div {
    padding: 10px;
    cursor: pointer;
    border: 1px solid #ddd;
    border-top: none;
    background-color: white;
}

.suggestions div:hover {
    background-color: #f0f0f0;
}


.dow {
  text-align: center;
  margin-top: 60px;
}


/* ---------- CONTENEDOR PRINCIPAL ---------- */
.details-container {
  background: rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  max-width: 360px;
  width: 100%;
  border-radius: 22px;
  padding: 28px;
  text-align: center;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  animation: fadeUp 0.6s ease;
}


.details-container {
    display: block;
    justify-content: center;
    align-items: center;
    left: 0;
    right: 0;
    margin: auto;
}
.details-container {
    margin-top: 40px;
}

/* ---------- IMAGEN ---------- */
.details-container img {
  width: 100%;
  max-width: 260px;
  margin: 0 auto 18px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease;
}

.details-container img:hover {
  transform: scale(1.05);
}

/* ---------- TITULO ---------- */
.details-container h1 {
  font-size: 1.4rem;
  color: #222;
  margin-bottom: 12px;
}

/* ---------- DESCRIPCIÓN ---------- */
.details-container p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

/* ---------- PESO ---------- */
.details-container .peso {
  margin-top: 12px;
  font-size: 0.9rem;
  color: #777;
}

/* ---------- BOTÓN DESCARGA ---------- */
.download-btn {
  margin-top: 22px;
  width: 100%;
  background: linear-gradient(135deg, #7b2ff7, #f107a3);
  border: none;
  border-radius: 14px;
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: all 0.35s ease;
  box-shadow: 0 12px 25px rgba(123, 47, 247, 0.35);
  position: relative;
  overflow: hidden;
}

/* efecto glow */
.download-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: 0.6s;
}

.download-btn:hover::after {
  left: 100%;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 35px rgba(123, 47, 247, 0.45);
}




#btn-download {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

#btn-download:active {
  transform: scale(0.96);
}

/* Ripple */
#btn-download::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.35) 10%, transparent 11%);
  transform: scale(10);
  opacity: 0;
  transition: transform 0.6s, opacity 0.6s;
}

#btn-download:active::after {
  transform: scale(0);
  opacity: 1;
  transition: 0s;
}



.terms-box {
  margin: 20px 0;
  font-size: 0.95rem;
}

.terms-label {
  display: flex;
  gap: 5px;
  justify-content: center;
  align-items: center;
  align-items: center;
  font-size: 10px;
  cursor: pointer;
  color: #555;
}

.terms-label input {
  accent-color: #0d6efd;
  cursor: pointer;
}

.terms-label a {
  color: #0d6efd;
  text-decoration: none;
  font-weight: 500;
}

.terms-label a:hover {
  text-decoration: underline;
}

/* botón deshabilitado */
.download-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

/* ---------- ANIMACIÓN ---------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 480px) {
  .details-container {
    padding:  22px;
  }

  .details-container h1 {
    font-size: 1.25rem;
  }
}



/* modal fondo */
.terms-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* mostrar modal */
.terms-modal.show {
  opacity: 1;
  pointer-events: auto;
}

/* contenido */
.terms-modal-content {
  background: rgba(255,255,255,0.9);
  border-radius: 16px;
  max-width: 480px;
  width: 90%;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  animation: modalScale 0.35s ease;
  display: flex;
  flex-direction: column;
}

/* header */
.terms-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid #eee;
}

.terms-header h2 {
  font-size: 1.3rem;
  color: #222;
}

.terms-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: #888;
}

/* body */
.terms-body {
  padding: 18px 22px;
  max-height: 260px;
  overflow-y: auto;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
}

/* footer */
.terms-footer {
  padding: 18px 22px;
  border-top: 1px solid #eee;
  text-align: right;
}

.terms-accept-btn {
  background: linear-gradient(135deg, #0d6efd, #084298);
  border: none;
  color: #fff;
  padding: 12px 22px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.terms-accept-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(13,110,253,0.4);
}

/* animación */
@keyframes modalScale {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}





/* Footer */
footer {
    display: grid;
    text-align: center;
    background-color: #333;
    color: white;
    padding: 10px;
    position: relative;
    bottom: 0;
    width: 100%;
    margin-top: auto; /* Empuja el footer hacia el final de la página */ 

}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.social-media {
    margin-bottom: 15px;
}

.social-media a {
    color: #fff;
    font-size: 24px;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-media a:hover {
    color: #1da1f2;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: #fff;
    margin: 0 15px;
    text-decoration: none;
    font-size: 16px;
}

.footer-links a:hover {
    text-decoration: underline;
}

footer p {
    font-size: 14px;
}