@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;
}

  #downloads-container {
    padding: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 1.5rem;
  }
  
  .download-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s ease;
  }
  
  .download-card:hover {
    transform: scale(1.03);
  }
  
  .download-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: #9907a1;
  }
  
  .download-card p {
    font-size: 0.9rem;
    color: #666;
  }
  
  .download-card a {
    display: inline-block;
    margin-top: 1rem;
    background: #96018c;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
  }
  
  .download-card a:hover {
    background: #d31535;
  }


  .download-btn {
    background-color: #007bff;
    color: #fff;
    padding: 12px 12px;
    border: none;
    border-radius: 10px;
    margin: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
  }
  
  .download-btn:hover {
    background-color: #0056b3;
    transform: scale(1.05);
  }
  
  .download-btn:disabled {
    background-color: #888;
    cursor: not-allowed;
  }
  
  .download-btn.descargable {
    background-color: #d93b9d !important;
  }

  /* estilos para el modal de descargas de publicidad. */
  #ad-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: opacity 0.3s ease;
}

#ad-modal.hidden {
  display: none;
}

.modal-content-ad {
  background: #fff;
  padding: 25px;
  border-radius: 18px;
  text-align: center;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  animation: fadeInUp 0.4s ease;
}

.modal-content-ad h2 {
  color: #ff6f61;
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.ad-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  margin-bottom: 15px;
}

#ad-timer {
  color: #333;
  font-size: 0.95rem;
  margin-top: 10px;
}

/* Animación suave */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}


  .catalogo-imagen {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 12px;
    margin: 10px 0;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
  }
  
  
  
  /* Estilo del footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1rem;
  }