/* Estilos generales */
body {
  background: #000;
  color: #fff;
  font-family: 'Courier New', Courier, monospace;
  margin: 0;
  padding: 0;
}

/* Clase común para botones */
.btn-common,
.header-buttons button,
.header-buttons .logout-btn,
.btn-ver,
.btn-ir,
.btn-ganar,
.hazlo-tuyo,
.ver-button,
.ir-button,
.copy-button,
.close-button,
.social-button {
  background: #111;
  color: #00CC00;
  border: 1px solid #00CC00;
  padding: 8px 12px;
  font-family: 'Courier New', Courier, monospace;
  text-decoration: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.header-buttons button,
.header-buttons .logout-btn {
  padding: 8px 16px;
}

.btn-common:hover,
.header-buttons button:hover,
.header-buttons .logout-btn:hover,
.btn-ver:hover,
.btn-ir:hover,
.btn-ganar:hover,
.hazlo-tuyo:hover,
.ver-button:hover,
.ir-button:hover,
.copy-button:hover,
.social-button:hover {
  background: #00CC00;
  color: #000;
}

.close-button {
  background: #dc3545;
  color: #fff;
  border: none;
}

.close-button:hover {
  background: #c82333;
  color: #fff;
}

/* Header */
header {
  background: #000;
  padding: 20px;
  border-bottom: 1px solid #00CC00;
  text-align: center;
  position: relative;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.header-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.header-logo h1 {
  color: #00CC00;
  font-size: 24px;
  margin: 0;
}

header img {
  width: 20vw;
  min-width: 150px;
  max-width: 250px;
  height: auto;
  margin-bottom: 10px;
}

@media (max-width: 600px) {
  .header-container {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .header-content {
    flex-direction: column;
    gap: 10px;
  }

  .header-logo h1 {
    font-size: 18px;
    text-align: center;
  }

  .header-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .header-buttons button,
  .header-buttons .logout-btn {
    padding: 6px 12px;
    font-size: 0.9rem;
  }

  header img {
    width: 30vw;
    min-width: 120px;
    max-width: 200px;
  }
}

/* Buscador */
.search {
  padding: 20px;
  text-align: center;
}

.search input {
  background: #111;
  color: #fff;
  border: 1px solid #00CC00;
  padding: 10px;
  width: 300px;
  outline: none;
}

.search input::placeholder {
  color: #00CC00;
  opacity: 0.7;
}

/* Contenedor de widgets */
.container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
}

/* Tarjetas de widgets */
.card {
  background: #111;
  border: 1px solid #00CC00;
  border-radius: 5px;
  padding: 15px;
  margin-bottom: 15px;
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  color: #00CC00;
  font-size: 1.3rem;
  margin: 0 0 10px;
}

.card p {
  color: #fff;
  font-size: 0.9rem;
  margin: 0 0 15px;
}

.badge {
  background: #00CC00;
  color: #000;
  padding: 5px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  display: inline-block;
  margin-bottom: 10px;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 600px) {
  .card {
    padding: 10px;
    margin-bottom: 10px;
  }
  .card h3 {
    font-size: 1.1rem;
  }
  .card p {
    font-size: 0.85rem;
  }
  .btn-ver,
  .btn-ir,
  .btn-ganar {
    padding: 6px 8px;
    font-size: 0.8rem;
  }
}

/* Footer */
footer {
  background: #000;
  color: #00CC00;
  text-align: center;
  padding: 10px;
  width: 100%;
  border-top: 1px solid #00CC00;
  position: relative;
  margin-top: 20px;
}

.footer-content p {
  margin: 0;
  font-size: 0.9rem;
}

.footer-links a {
  color: #00CC00;
  text-decoration: none;
  margin: 0 10px;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #fff;
}

/* Popups */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.popup-overlay.show {
  display: block !important;
  opacity: 1;
}

.popup-container {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  background: #111;
  border: 1px solid #00CC00;
  padding: 20px;
  border-radius: 5px;
  max-width: 500px;
  width: 90%;
  z-index: 1000;
  color: #fff;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.popup-container.show {
  display: block !important;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.popup-container h3 {
  color: #00CC00;
  font-size: 1.5rem;
  margin: 0 0 15px;
}

.popup-content {
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #E53935;
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1rem;
}

.promo-text {
  white-space: pre-wrap;
  text-align: left;
  background: #222;
  padding: 10px;
  border-radius: 5px;
  margin: 10px 0;
  font-size: 14px;
  color: #fff;
}

.promo-text a {
  color: #00CC00;
  text-decoration: none;
}

.promo-text a:hover {
  color: #fff;
}

.popup-legend {
  font-size: 12px;
  color: #00CC00;
  margin: 10px 0;
}

.popup-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
  justify-content: center;
}

.social-button {
  color: #fff;
}

.social-button.facebook {
  background: #3b5998;
  border-color: #3b5998;
}

.social-button.facebook:hover {
  background: #2d4373;
}

.social-button.twitter {
  background: #1da1f2;
  border-color: #1da1f2;
}

.social-button.twitter:hover {
  background: #1a91da;
}

.social-button.whatsapp {
  background: #25D366;
  border-color: #25D366;
}

.social-button.whatsapp:hover {
  background: #20b658;
}

.social-button.email {
  background: #6c757d;
  border-color: #6c757d;
}

.social-button.email:hover {
  background: #5a6268;
}

.copy-button {
  background: #00CC00;
  color: #fff;
}

.copy-button:hover {
  background: #00b300;
  color: #fff;
}

/* Estilos para grok_plantilla-ruta.php */
.body-container {
  max-width: 800px;
  margin: 0 auto;
  background: #111;
  padding: 20px;
  border-radius: 5px;
  border: 1px solid #00CC00;
  margin-bottom: 40px;
}

.intro-section {
  background: #222;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.intro-section p {
  color: #fff;
  margin: 0;
}

.fragment-section {
  margin: 20px 0;
}

.fragment-content {
  display: none;
  color: #fff;
}

.fragment-content.show {
  display: block;
}

.toggle-button {
  background: #111;
  color: #00CC00;
  border: 1px solid #00CC00;
  padding: 8px 12px;
  font-family: 'Courier New', Courier, monospace;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.toggle-button:hover {
  background: #00CC00;
  color: #000;
}

.video-section, .audio-section {
  margin: 20px 0;
}

video, audio {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.download-link {
  color: #00CC00;
  text-decoration: none;
}

.download-link:hover {
  color: #fff;
}

.action-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0;
}

/* Estilo para el enlace "Regresar" */
.back-link {
  background: #111;
  color: #00CC00 !important;
  border: 1px solid #00CC00;
  padding: 8px 12px;
  font-family: 'Courier New', Courier, monospace;
  text-decoration: none;
  border-radius: 3px;
  transition: background 0.2s ease, color 0.2s ease;
  display: inline-block;
  position: absolute;
  top: 10px;
  left: 10px;
}

.back-link:hover,
.back-link:visited,
.back-link:active {
  background: #00CC00;
  color: #000 !important;
}
/* Estilos para enlaces en accordion-section (fondo negro) */
.accordion-section a {
  color: #FFFFFF; /* Blanco para máxima visibilidad */
  text-decoration: none; /* Opcional: elimina el subrayado */
}
  
.accordion-section a:hover {
  color: #00CC00; /* Verde (mismo tono que usas en otros elementos) al pasar el ratón */
}

@media (max-width: 600px) {
  .body-container {
    padding: 15px;
    margin-bottom: 20px;
  }
  .action-buttons {
    flex-direction: column;
  }
  .hazlo-tuyo, .ver-button, .ir-button {
    width: 100%;
  }
  .popup-container {
    width: 95%;
    padding: 15px;
  }
  .popup-buttons {
    flex-direction: column;
  }
  .social-button, .copy-button, .close-button {
    width: 100%;
  }
  .back-link {
    top: 5px;
    left: 5px;
    padding: 6px 8px;
  }
}