/* Reset básico */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Fira Code', monospace; background: #f5f5f5; color: #333; line-height: 1.6; }
.container { max-width: 960px; margin: 0 auto; padding: 2rem; }
a { text-decoration: none; color: inherit; }
.section { margin-top: 3rem; }
.site-header img { margin: 0 60px }
.site-header { display: flex; background: #111; color: #cee; padding: 4rem 0; text-align: center; }
@media (max-width: 700px) {
  .site-header {
    display: block;
  }
}
.site-header h1 { font-size: 2.5rem; }
.site-header .subtitle { margin-top: 0.5rem; font-size: 1.2rem; color: #8f8; }
.btn { display: inline-block; margin-top: 1.5rem; padding: 0.75rem 1.5rem; border-radius: 4px; font-weight: bold; }
.btn-whatsapp { background: #128C7E; color: #fff; }
.btn-whatsapp:hover { background: #075E54; }
.code-style { background: #272822; color: #f8f8f2; padding: 1rem; border-radius: 4px; overflow-x: auto; }
.code-style pre {
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
}
/* En móviles, permitir que el contenido se ajuste y eliminar scroll horizontal */
@media (max-width: 600px) {
  .code-style {
    overflow-x: visible;
  }
  .tweets-container {
    overflow-x: scroll;
    scale: 0.8;
  }
}
/* En desktop o pantallas más anchas, dos columnas para secciones marcadas */
@media (min-width: 800px) {
  .code-style.two-col {
    /* permitir ajuste en lugar de scroll */
    overflow-x: visible;
  }
  .code-style.two-col pre {
    /* columnas para listado amplio */
    columns: 2;
    -webkit-columns: 2;
    -moz-columns: 2;
    column-gap: 2rem;
  }
}
.videos { margin-top: 2rem; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.video-grid iframe { width: 100%; height: 200px; border-radius: 4px; }
.site-footer { background: #111; color: #888; text-align: center; padding: 2rem 0; margin-top: 3rem; }

/* Floating WhatsApp button */
.btn-whatsapp-floating {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  margin: 0;
  display: none;
  z-index: 1000;
  /* Sombra sutil para destacar el botón */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* Sección de testimonios: scroll horizontal de embeds de Twitter */
.tweets-container {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding: 1rem -1rem;
}
.tweets-container .twitter-tweet {
  flex: 0 0 auto;
  min-width: 300px;
}
@media (max-width: 400px) {
  .btn-whatsapp-floating {
    bottom: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
  }
}