/* Restaurar estilo original de la tabla en testigos/index.php */
.testigos-article {
  max-width: none !important;
  padding: 0 !important;
  background: none !important;
  border-radius: 0 !important;
}
/* Onboarding Ticket Generator Custom Styles */
.ticket-generator .btn-cta-invite {
  width: 100%;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-2));
  color: #07101a;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(255,184,107,0.13);
  transition: filter 0.18s;
}
.ticket-generator .btn-cta-invite:hover {
  filter: brightness(1.08);
}
.ticket-generator .btn-cta-invite.border-accent {
  background: #fff;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
  box-shadow: none;
}
.ticket-generator .form-control {
  width: 100%;
  border-radius: 14px;
  border: 1.5px solid var(--color-accent);
  background: #fffbe9;
  color: #07101a;
  font-size: 1.05rem;
  padding: 0.7rem 1rem;
  margin-bottom: 0.5rem;
  resize: none;
  box-shadow: 0 1px 4px rgba(255,184,107,0.07);
}
.ticket-generator .form-control:focus {
  outline: none;
  border-color: #ffb86b;
  box-shadow: 0 0 0 2px #ffb86b33;
}
.ticket-generator #tabla_de_tickets {
  background: #fffbe9;
  border-radius: 12px;
  border: 1.5px solid var(--color-accent);
  padding: 1rem 1.2rem;
  margin-top: 0.5rem;
  font-size: 0.98rem;
  color: #07101a;
  min-height: 60px;
}
.ticket-generator #tabla_de_tickets .small {
  font-size: 0.93em;
  color: #7c6a3c;
}
.ticket-generator #tabla_de_tickets .border-bottom {
  border-bottom: 1px solid #ffe3b0;
  margin-bottom: 0.3em;
  padding-bottom: 0.2em;
}
/* Imagen hero laboratorio de curación */

.laboratorio-hero-figure {
  margin: 2.5rem auto 2.5rem auto;
  text-align: center;
}
.laboratorio-hero-figure img.img-fluid {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 900px;
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 12px 48px rgba(2,6,23,0.22);
}

@media (max-width: 1100px) {
  .laboratorio-hero-figure img.img-fluid {
    max-width: 98vw;
    border-radius: 16px;
  }
}
@media (max-width: 700px) {
  .laboratorio-hero-figure img.img-fluid {
    max-width: 100vw;
    border-radius: 10px;
  }
}
/* Laboratorio de Curación: estilos específicos */
.bg-accent-dark {
  background-color: #ffb86b;
  color: #07101a;
}

.blockquote-keychain {
  background: linear-gradient(90deg, rgba(255,184,107,0.12), rgba(255,184,107,0.04));
  border-left: 5px solid var(--color-accent);
  font-style: italic;
  color: var(--color-accent);
  border-radius: var(--radius);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.italic {
  font-style: italic;
}
/* style.css - La Colmena: Estructura Original + Estética Mejorada */

:root {
  --color-bg: #070d17;
  --color-surface: #0f172a;
  --color-accent: #ffb86b;
  --color-accent-2: #ffd89a;
  --color-dark: #07101a;
  --color-text: #f1f5f9;
  --color-muted: #94a3b8;
  --max-width: 1100px;
  --gap: 1.5rem;
  --radius: 12px;
  --transition: 250ms ease;
  --brand-font: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Reset-ish */
* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  background-color: var(--color-bg);
  background-image: radial-gradient(circle at top right, rgba(255,184,107,0.05), transparent 40%);
  color: var(--color-text);
  font-family: var(--brand-font);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-accent); text-decoration: none; transition: var(--transition); }
a:hover { filter: brightness(1.2); text-decoration: none; }

/* Corrección de Imágenes */
img { 
  max-width: 100%; 
  height: auto; 
  display: block; 
  object-fit: contain; /* Evita que se deformen */
}

/* Contenedor con márgenes reales */
.container { 
  width: 100%; 
  max-width: var(--max-width); 
  margin: 0 auto; 
  padding: 0 1.5rem; /* Asegura márgenes laterales en móviles */
}

/* Asegura separación del contenido principal cuando no se usa la clase .container
   Aplica margen interior a secciones y main para evitar que queden pegadas al borde */
main, section, .page, .content {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 768px) {
  main, section, .page, .content {
    padding-left: 1.75rem;
    padding-right: 1.75rem;
  }
}

@media (min-width: 1024px) {
  main, section, .page, .content {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Header */
.site-header { 
  background: rgba(7, 13, 23, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  margin-bottom: 0.9rem; /* breathing space below header */
  box-shadow: 0 6px 18px rgba(2,6,23,0.25);
}

.header-container { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: var(--gap); 
  padding: 1.25rem 0; /* increased vertical spacing for header */
}

/* Ensure header contents keep horizontal breathing room on small/medium screens */
@media (max-width: 1024px) {
  .site-header .header-container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

.logo-area img { 
  height: 40px; /* Tamaño controlado */
  width: auto;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle { 
  width: 32px; 
  height: 24px; 
  display: flex; 
  flex-direction: column; 
  justify-content: space-between; 
  cursor: pointer; 
}

.mobile-menu-toggle span { 
  display: block; 
  height: 3px; 
  background: var(--color-accent); 
  border-radius: 3px; 
}

/* Navigation logic */
.main-nav { display: none; } /* Oculto en móvil */

.nav-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.nav-list a { 
  display: block; 
  padding: 0.75rem 1rem; 
  border-radius: var(--radius); 
  color: var(--color-text); 
}

.nav-list a.active { background: rgba(255,184,107,0.1); color: var(--color-accent); }

/* Mobile Panel */
.mobile-nav-panel { 
  position: fixed; 
  inset: 72px 0 0 0; /* accounts for taller header */
  background: var(--color-bg); 
  padding: 1.5rem; 
  z-index: 90; 
  opacity: 0; 
  pointer-events: none; 
  transform: translateY(-10px);
  transition: all var(--transition);
}

.mobile-nav-panel.open { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* Dropdown móvil */
.dropdown-menu { display: none; padding-left: 1.5rem; border-left: 1px solid rgba(255,184,107,0.2); margin: 0.5rem 0; }
.dropdown:hover .dropdown-menu { display: block; }

/* Action Area */
.action-area { display: flex; align-items: center; gap: 1rem; }
.hive-price { font-size: 0.85rem; color: var(--color-muted); display: flex; align-items: center; gap: 0.4rem; }
.hive-auth {
  display: flex;
  align-items: center;
  min-height: 40px;
}

.hive-auth-login {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hive-auth-login input {
  width: 140px;
  border: 1px solid rgba(255,184,107,0.25);
  background: rgba(15, 23, 42, 0.8);
  color: var(--color-text);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
}

.hive-auth-btn {
  border: none;
  background: rgba(255,184,107,0.16);
  color: var(--color-accent);
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
}

.hive-auth-btn:hover {
  background: rgba(255,184,107,0.26);
}

.hive-auth-user {
  display: none;
  align-items: center;
  gap: 0.45rem;
  position: relative;
}

.hive-auth-user img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,184,107,0.3);
}

.hive-auth-toggle {
  border: 1px solid rgba(255,184,107,0.22);
  background: rgba(15, 23, 42, 0.8);
  color: var(--color-text);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.hive-auth-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--color-surface);
  border: 1px solid rgba(255,184,107,0.22);
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.34);
  padding: 0.4rem;
  display: none;
  z-index: 120;
}

.hive-auth-menu.open {
  display: block;
}

.hive-auth-menu a,
.hive-auth-menu button {
  width: 100%;
  display: block;
  text-align: left;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--color-text);
  text-decoration: none;
  padding: 0.55rem 0.6rem;
  font-size: 0.86rem;
  cursor: pointer;
}

.hive-auth-menu a:hover,
.hive-auth-menu button:hover {
  background: rgba(255,184,107,0.12);
  color: var(--color-accent);
}

.hive-auth.is-authenticated .hive-auth-login {
  display: none;
}

.hive-auth.is-authenticated .hive-auth-user {
  display: inline-flex;
}
.hive-price .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  will-change: transform, opacity;
  animation: hive-pulse 1.4s ease-in-out infinite;
}

@keyframes hive-pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.45; }
  100% { transform: scale(1); opacity: 1; }
}


@media (prefers-reduced-motion: reduce) {
  .hive-price .status-dot { animation: none; }
}

.btn-cta-invite {
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-2));
  color: #07101a !important;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(255,184,107,0.2);
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-2));
  color: #07101a;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: none;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(255,184,107,0.25);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

/* Secondary button ("¿Qué es Hive?") - mobile-first: prominent */
.btn-secondary {
  display: inline-block;
  background: var(--color-accent);
  color: #07101a;
  padding: 0.65rem 1.1rem;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1.05rem; /* larger on mobile */
  box-shadow: 0 6px 18px rgba(255,184,107,0.16);
  text-decoration: none;
  margin-left: 0.75rem;
  cursor: pointer;
}

/* On larger screens make it more subtle (outlined) so the CTA keeps prominence */
@media (min-width: 769px) {
  .btn-secondary {
    background: transparent;
    color: var(--color-accent);
    border: 2px solid rgba(255,184,107,0.18);
    font-size: 0.95rem;
    box-shadow: none;
    margin-left: 0.6rem;
  }
}

body.modal-open {
  overflow: hidden;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 13, 23, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
  z-index: 200;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  width: min(720px, 100%);
  max-height: 85vh;
  overflow-y: auto;
  background: var(--color-surface);
  border-radius: 18px;
  padding: 1.75rem;
  border: 1px solid rgba(255,184,107,0.2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--color-text);
  font-size: 1.75rem;
  cursor: pointer;
}

.modal-subtitle {
  color: var(--color-muted);
  margin-bottom: 1.25rem;
}

.modal-tabs {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.modal-tab {
  border: 1px solid rgba(255,184,107,0.2);
  background: transparent;
  color: var(--color-text);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
}

.modal-tab.is-active {
  background: rgba(255,184,107,0.2);
  color: var(--color-accent);
}

.modal-panel {
  display: none;
}

.modal-panel.is-active {
  display: block;
}

.modal-alert {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255,184,107,0.2);
  background: rgba(255,184,107,0.08);
}

.modal-alert.error {
  border-color: rgba(255, 88, 88, 0.4);
  background: rgba(255, 88, 88, 0.08);
}

.modal-alert.success {
  border-color: rgba(74, 222, 128, 0.4);
  background: rgba(74, 222, 128, 0.08);
}

.contact-form {
  display: grid;
  gap: 0.85rem;
}

.contact-form label {
  font-size: 0.95rem;
  color: var(--color-text);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  background: rgba(7, 13, 23, 0.6);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  color: var(--color-text);
  font-family: var(--brand-font);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: rgba(255,184,107,0.6);
  box-shadow: 0 0 0 2px rgba(255,184,107,0.15);
}

.contact-form button {
  width: 100%;
}

.social-rows {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-row {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr 1.2fr auto;
  align-items: center;
}

.social-field-custom {
  grid-column: 1 / -1;
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255,184,107,0.25);
  color: var(--color-text);
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

.btn-ghost:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-add-social {
  width: 100%;
  margin-left: 0;
}

.form-error {
  color: #fb7185;
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .social-row {
    grid-template-columns: 1fr;
  }

  .social-row .btn-ghost {
    width: 100%;
  }
}

.footer-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  margin-bottom: 0.75rem;
}

.footer-cta .btn-secondary {
  margin-left: 0;
}

.footer-cta .btn-primary,
.footer-cta .btn-secondary {
  min-width: 170px;
}

/* Price change indicator */
.price-change { margin-left: 0.4rem; font-size: 0.85rem; color: var(--color-muted); display: inline-flex; align-items: center; gap: 0.25rem; }
.price-change.positive { color: #4ade80; }
.price-change.negative { color: #fb7185; }

/* Floating CTA (mobile) - hidden by default, visible on small screens */
.floating-cta {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-2));
  color: #07101a;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 8px 20px rgba(2,6,23,0.45);
  z-index: 220;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Hide header CTA and show floating CTA on mobile/tablet */
@media (max-width: 1024px) {
  .action-area .btn-cta-invite { display: none !important; }
  .floating-cta { display: inline-flex; }
}

/* Ensure floating CTA hidden on large screens */
@media (min-width: 1025px) {
  .floating-cta { display: none; }
}

/* Grid & Cards */
.grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin: 2rem 0; }
.card { 
  background: var(--color-surface); 
  border: 1px solid rgba(255,255,255,0.05); 
  padding: 1.5rem; 
  border-radius: var(--radius); 
  transition: var(--transition);
}
.card:hover { transform: translateY(-5px); border-color: rgba(255,184,107,0.3); }

/* Footer */
.site-footer { margin-top: 4rem; background: #04080f; padding: 3.5rem 0; border-top: 1px solid rgba(255,255,255,0.05); }
.site-footer .footer-container { padding: 0 1.5rem; }
.footer-container { display: grid; grid-template-columns: 1fr; gap: 2rem; }

/* Footer logo sizing: smaller, like a compact logo */
.site-footer .footer-brand img {
  height: 120px;
  width: auto;
  display: inline-block;
}
.footer-bottom { 
  margin-top: 2rem; 
  padding: 1.5rem 1.5rem 2rem; /* top, sides, bottom */
  border-top: 1px solid rgba(255,255,255,0.03); 
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start; /* keep items left-aligned on mobile */
}

/* Mobile-specific header improvements */
@media (max-width: 640px) {
  .header-container {
    padding: 0.6rem 0;
    align-items: center;
    flex-wrap: wrap;
  }

  /* slightly smaller shadow and margin on very small screens */
  .site-header {
    margin-bottom: 0.6rem;
    box-shadow: 0 4px 12px rgba(2,6,23,0.18);
  }

  /* extra horizontal padding for very small screens */
  .site-header .header-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .logo-area img { height: 32px; }

  .mobile-menu-toggle { order: 2; margin-left: 0.5rem; }

  .action-area {
    order: 3;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 0.45rem;
  }

  .hive-auth {
    width: 100%;
    justify-content: flex-end;
  }

  .hive-auth-login {
    width: 100%;
    justify-content: flex-end;
  }

  .hive-auth-login input {
    width: min(180px, 52vw);
  }

  .hive-price { font-size: 0.8rem; gap: 0.35rem; }

  .btn-cta-invite { padding: 0.45rem 0.9rem; font-size: 0.85rem; }

  .mobile-nav-panel { inset: 64px 0 0 0; }

  .nav-list { gap: 0.35rem; }
  .nav-list a { padding: 0.6rem 0.75rem; }
}

/* Desktop Styles */
@media (min-width: 1024px) {
  .main-nav { display: block; }
  .mobile-menu-toggle { display: none; }
  .nav-list { flex-direction: row; gap: 1rem; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .footer-container { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
  
  /* Dropdown desktop horizontal */
  .dropdown {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: -10px;
  }
  .dropdown-menu { 
    position: absolute; 
    top: calc(100% - 4px); 
    left: 0; 
    background: var(--color-surface); 
    width: 200px; 
    padding: 0.5rem; 
    border-radius: 8px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
    display: none; 
  }
  .dropdown:hover .dropdown-menu,
  .dropdown:focus-within .dropdown-menu { display: block; }
}

  /* Secciones reutilizables y elementos de proceso */
  .section-padding { padding: 5rem 0; }
  .bg-surface { background-color: var(--color-surface); }
  .section-title { text-align: center; margin-bottom: 3rem; font-size: 2.2rem; }

  .hero-subtitle { 
    max-width: 700px; 
    margin: 0 auto 2.5rem; 
    color: var(--color-muted); 
    font-size: 1.2rem; 
  }

  .process-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 2rem; 
    text-align: center; 
  }

  .step-num { 
    width: 50px; 
    height: 50px; 
    background: var(--color-accent); 
    color: #000; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin: 0 auto 1rem; 
    border-radius: 50%; 
    font-weight: bold; 
    font-size: 1.5rem; 
  }

  .cta-box { text-align: center; padding: 4rem 2rem; border: 2px solid var(--color-accent); }

  .post-thumb {
    width: 100%;
    height: 200px; /* Asegúrate de que tenga una altura visible */
    background-size: cover;    /* Esto hace que la imagen cubra todo el espacio sin deformarse */
    background-position: center; /* Centra la imagen para que no se vea solo la parte superior */
    background-repeat: no-repeat;
    border-radius: var(--radius) var(--radius) 0 0; /* Redondea solo las esquinas superiores */
    display: block;
    position: relative; /* permite posicionar el badge dentro */
}

  /* Onboarding diagram: centered and smaller on desktop */
  .onboarding-diagram img {
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: 900px; /* default max width for smaller screens */
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  }

  .solicitud-canales .channel-card {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .solicitud-canales .channel-card p {
    min-height: 4.8em;
  }

  .solicitud-canales .channel-card .btn-cta {
    margin-top: auto;
    font-family: var(--brand-font);
    font-size: 1rem;
    line-height: 1.2;
    text-align: center;
  }

  @media (min-width: 1000px) {
    .onboarding-diagram img {
      width: 50%; /* reducir al 50% del contenedor desde 700px en adelante */
      max-width: none;
    }
  }

  /* Responsive: author-card (aside) - ajustes para móviles */
  @media (max-width: 700px) {
    .author-box .author-card {
      flex-direction: column;
      text-align: center;
      gap: 1rem;
      align-items: center; /* centra el contenido cuando está en columna */
      padding: 1.5rem; /* más compacto en móvil */
    }

    .author-box .author-avatar {
      margin: 0 auto;
      flex-shrink: 0;
    }

    .author-box .author-avatar img {
      width: 96px;
      height: 96px;
      border-radius: 50%;
      object-fit: cover;
      border: 3px solid var(--color-accent);
    }

    .author-box .author-info {
      text-align: center;
    }

    .author-box .author-meta {
      display: flex;
      justify-content: center;
      gap: 1rem;
      flex-wrap: wrap;
      margin-top: 0.5rem;
    }
  }

  /* Centrar imágenes agregadas en la página "¿Qué es Hive?" y secciones relacionadas (escritorio) */
  @media (min-width: 1025px) {
    .hero-img,
    #que-es-hive figure img,
    #ecosistema-apps figure img,
    #economia-hive figure img,
    #seguridad-llaves figure img,
    #faq-hive figure img,
    #etiqueta-honor figure img,
    #impacto-real figure img,
    .identity-section .grid > div img {
      display: block;
      margin-left: auto;
      margin-right: auto;
    }
  }

  /* Mobile: colocar el bloque lateral (logo / stats) debajo del contenido principal
     y desactivar el comportamiento sticky que provoca superposición */
  @media (max-width: 768px) {
    .identity-section .grid {
      grid-template-columns: 1fr; /* forzar apilado vertical */
    }

    /* Mantener sticky pero mostrar debajo del texto en móvil.
       Ajustamos `top` para no solapar el header y forzamos el orden. */
    .identity-section .grid > div:first-child {
      order: 2; /* poner el bloque del logo después del texto */
      position: sticky !important; /* conservar sticky */
      top: 84px !important; /* espacio bajo el header */
      align-self: start;
    }

    .identity-section .grid > div:last-child {
      order: 1; /* asegurar que el texto vaya primero */
    }
  }

/* Badge para destacar (Top Curación) - fuerte sombra para legibilidad sobre fondos claros */
.post-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  /* más transparente: menos opacidad en fondo y sombras */
  background: linear-gradient(180deg, rgba(2,6,23,0.72), rgba(2,6,23,0.56));
  color: #ffffff;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.4px;
  box-shadow: 0 10px 22px rgba(2,6,23,0.45), 0 1px 4px rgba(0,0,0,0.28) inset;
  text-shadow: 0 2px 6px rgba(0,0,0,0.34);
  z-index: 60;
  border: 1px solid rgba(255,255,255,0.04);
  will-change: transform, opacity;
}

@media (max-width: 640px) {
  .post-badge {
    top: 10px;
    left: 10px;
    padding: 0.5rem 0.85rem;
    font-size: 0.9rem;
  }
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    flex: 1;
    min-width: 200px;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: var(--brand-font);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
}

/* Ajuste móvil */
@media (max-width: 768px) {
    .stat-divider { display: none; }
    .stats-grid { flex-direction: column; }
    .stat-number { font-size: 2.5rem; }
}

.final-cta {
  margin-top: 1.5rem;
}

/* que-es-hive.php styles */
.hero-small {
  background: linear-gradient(180deg, rgba(255,184,107,0.04) 0%, transparent 100%);
  padding-top: 3.5rem;
  padding-bottom: 2.5rem;
}
.hero-small .text-accent { font-size: 1.9rem; font-weight: 800; }
.hero-small .hero-subtitle { margin-top: 0.6rem; color: var(--color-muted); max-width: 820px; }

.onboarding-hero .container {
  max-width: 900px;
  text-align: left;
}

.onboarding-hero .text-accent {
  margin-bottom: 1.2rem;
}

.onboarding-hero .hero-subtitle {
  max-width: 900px;
  margin: 0 0 1.1rem 0;
  font-size: 1.05rem;
}

.concept-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem; align-items: center; }
.highlight-card { padding: 1.6rem; border-left: 4px solid var(--color-accent); box-shadow: 0 8px 22px rgba(2,6,23,0.18); }

.ecosystem-section { background: rgba(255,184,107,0.01); }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.ecosystem-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.eco-category { background: transparent; padding: 1rem 1rem 0.5rem 1rem; border-radius: 10px; }
.eco-category h4 { margin-bottom: 0.6rem; font-size: 1rem; color: var(--color-accent); }
.eco-category ul { margin: 0; padding-left: 1rem; color: var(--color-text); }
.eco-category li { margin-bottom: 0.45rem; color: var(--color-muted); }

.alert-box-warning { background: linear-gradient(180deg, rgba(255,200,110,0.06), rgba(255,184,107,0.03)); border-left: 4px solid rgba(255,184,107,0.9); padding: 1.2rem 1.25rem; border-radius: 10px; box-shadow: 0 8px 22px rgba(2,6,23,0.12); }
.alert-box-warning h3 { margin-top: 0; margin-bottom: 0.6rem; }

.keys-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.key-card { padding: 1.1rem; border-radius: 10px; background: linear-gradient(180deg, rgba(7,11,18,0.6), rgba(7,11,18,0.4)); border: 1px solid rgba(255,255,255,0.03); box-shadow: 0 6px 18px rgba(2,6,23,0.12); }
.risk-label { display: inline-block; padding: 0.25rem 0.5rem; border-radius: 999px; font-weight: 700; font-size: 0.75rem; margin-bottom: 0.6rem; }
.risk-low { background: rgba(74,222,128,0.12); color: #9ff2b4; }
.risk-medium { background: rgba(255,184,107,0.08); color: var(--color-accent); }
.risk-high { background: rgba(251,113,133,0.08); color: #ff9fb0; }

.comparison-table { width: 100%; border-collapse: collapse; background: transparent; }
.comparison-table th, .comparison-table td { padding: 0.9rem 0.8rem; border-bottom: 1px solid rgba(255,255,255,0.04); text-align: left; }
.comparison-table thead th { background: rgba(255,184,107,0.02); font-weight: 700; color: var(--color-accent); }

/* Responsive table container to prevent page overflow on small screens */
.table-container { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.comparison-table { width: 100%; min-width: 300px; }
.comparison-table th, .comparison-table td {
  white-space: normal;
  word-break: normal; /* evitar romper palabras arbitrariamente */
  overflow-wrap: break-word; /* permite dividir palabras solo en puntos seguros */
  -webkit-hyphens: none;
  -ms-hyphens: none;
  hyphens: none; /* desactivar guionado automático */
}

@media (max-width: 480px) {
  .comparison-table thead { display: table-header-group; }
  .comparison-table tr { display: table-row; }
  .comparison-table th, .comparison-table td { padding: 0.7rem 0.6rem; font-size: 0.9rem; }
}

.cta-box.card { padding: 2rem; border: 1px solid rgba(255,184,107,0.06); }
.btn-cta-invite.large { padding: 0.9rem 1.4rem; font-size: 1rem; }

@media (max-width: 640px) {
  .hero-small .text-accent { font-size: 1.4rem; }
  .highlight-card { padding: 1rem; }
  .section-header { margin-bottom: 2rem; }
  .onboarding-hero .hero-subtitle { font-size: 1rem; }
}

/* Mobile: make hero image more prominent */
@media (max-width: 640px) {
  .hero-figure {
    margin-top: 0.5rem;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
  .hero-figure picture,
  .hero-figure img {
    width: 100vw;
    max-width: none;
    height: auto;
    display: block;
    border-radius: 0; /* full-bleed on small screens */
    object-fit: cover; /* fill the area without letterboxing */
    max-height: 60vh; /* limit vertical space to avoid overtall images */
  }
  .hero-small {
    padding-top: 2.5rem;
    padding-bottom: 2rem;
  }
  .hero-small .hero-subtitle { font-size: 1rem; }
}

.link-post {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  /* Mobile-first: display block so vertical spacing (margin-top) applies reliably */
  display: block;
  font-size: 1rem; /* mobile-priority size (reduced) */
  margin-top: 3rem;   /* slightly less separation on mobile */
}

/* Reduce spacing on larger screens (desktop) */
@media (min-width: 769px) {
  .link-post {
    display: inline-block;
    font-size: 0.95rem;
    margin-top: 1rem; /* smaller separation on desktop */
  }
}


/* Contenedor de la Guía */
.security-guide {
    max-width: 1000px;
    margin: 0 auto;
}

/* Caja de Alerta (Regla de Oro) */
.alert-box-warning {
    background: rgba(255, 184, 107, 0.1);
    border-left: 5px solid var(--color-accent);
    padding: 2rem;
    border-radius: var(--radius);
    margin-bottom: 3rem;
}

.alert-box-warning h3 {
    color: var(--color-accent);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Grid de Llaves */
.keys-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.key-card {
    background: var(--color-surface);
    padding: 1.5rem;
    border-radius: var(--radius);
    border-top: 4px solid transparent;
    transition: transform 0.3s ease;
}

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

/* Colores de Riesgo para las Llaves */
.key-card.low { border-top-color: #4ade80; }    /* Verde - Posting */
.key-card.medium { border-top-color: #fbbf24; } /* Amarillo - Active */
.key-card.high { border-top-color: #f87171; }   /* Rojo - Owner */

.key-card h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.risk-label {
    display: inline-block;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-weight: bold;
    text-transform: uppercase;
}

.risk-low { background: rgba(74, 222, 128, 0.2); color: #4ade80; }
.risk-medium { background: rgba(251, 191, 36, 0.2); color: #fbbf24; }
.risk-high { background: rgba(248, 113, 113, 0.2); color: #f87171; }

/* Guia Keychain: pasos de instalacion */
.keychain-setup-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.keychain-setup-card {
  border-top: 4px solid #4a90e2;
}

.keychain-step-label {
  font-weight: 700;
  color: #4a90e2;
}

.keychain-hero-figure {
  margin: 0;
  text-align: center;
}

.keychain-hero-img {
  width: 100%;
  max-width: 900px;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.35);
}

.keychain-ecosystem-list {
  column-count: 2;
  list-style-position: inside;
}

@media (max-width: 640px) {
  .keychain-ecosystem-list {
    column-count: 1;
  }
}

.keychain-ecosystem-note {
  margin-top: 1rem;
  font-style: italic;
}

.keychain-finance-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.keychain-finance-title {
  color: var(--color-accent);
}

.keychain-final-cta {
  text-align: center;
  padding: 2.5rem;
}

@media (max-width: 640px) {
  .keychain-final-cta {
    padding: 1.75rem 1.25rem;
  }
}

.keychain-final-link {
  margin-top: 1.25rem;
}

.keychain-infographic {
  margin: 2rem auto 0;
  text-align: center;
}

.keychain-infographic-img {
  width: 100%;
  max-width: 960px;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.35);
}

/* Pasos de autorizacion remota */
.remote-auth-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.remote-auth-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.remote-step-index {
  border-radius: 50%;
  width: 40px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  color: #07101a;
}

.remote-step-index.step-accent { background: var(--color-accent); }
.remote-step-index.step-blue { background: #4a90e2; }
.remote-step-index.step-green { background: #27ae60; }
.remote-step-index.step-yellow { background: #f1c40f; }

/* Tabla de Economía (Opcional para Desktop) */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--color-surface);
    border-radius: var(--radius);
    overflow: hidden;
}

.comparison-table th, .comparison-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  word-break: normal;
  overflow-wrap: break-word;
  -webkit-hyphens: none;
  -ms-hyphens: none;
  hyphens: none;
}

.comparison-table th {
    background: rgba(255,184,107,0.05);
    color: var(--color-accent);
}

.vision-item h4 {
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.vision-item p.small {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--color-muted);
}

.lead {
    color: #fff;
    font-weight: 300;
}

.vision-content blockquote {
    border: none;
    font-size: 1.4rem;
    margin: 3rem 0;
    color: var(--color-accent);
}

/* Desplazamiento suave */
html {
    scroll-behavior: smooth;
}

.toc-link {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
    display: block;
}

.toc-link:hover {
    color: var(--color-accent);
    padding-left: 5px; /* Pequeño efecto visual */
}

/* Evitar que el menú tape el título al saltar */
section[id] {
    scroll-margin-top: 80px; 
}

#backToTop {
  display: none; /* Se activa con JS */
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
    border: none;
    outline: none;
    background-color: var(--color-accent);
    color: var(--color-dark);
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s, background-color 0.3s, opacity 0.3s;
    font-size: 1.2rem;
}

#backToTop:hover {
    background-color: #ff9d4d; /* Un tono más claro que el accent */
    transform: scale(1.1);
}

/* Animación de entrada */
#backToTop.show {
    display: block;
    animation: fadeIn 0.5s;
}

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

/* Evita solapamiento entre #backToTop y .floating-cta en pantallas pequeñas */
@media (max-width: 1024px) {
  /* Sitúa el botón de 'volver arriba' encima de la floating CTA para evitar solapamiento
     (alineado a la derecha, pero más alto en la pantalla). */
  #backToTop {
    right: 16px; /* mismo margen lateral que la floating CTA */
    bottom: 92px; /* subirlo para que no tape la CTA */
    z-index: 9999; /* asegurar que esté por encima si aún se solapan */
  }
  /* En pantallas muy pequeñas, subir un poco más por seguridad */
  @media (max-width: 420px) {
    #backToTop { bottom: 108px; }
  }
}


/* ASIDE (estilizado básico para sidebar) */

article {
    max-width: 600px;
    margin: 0 auto 0 auto;
    background-color: white;
    border-radius: 15px;
    padding: 1em;
}

.terms_open {
    color: var(--accent-color, #e31337); /* Usa tu color de acento o el rojo de Hive */
    cursor: pointer;
    text-decoration: underline;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.terms_open:hover {
    opacity: 0.8;
    text-decoration: none; /* Efecto visual al pasar el mouse */
}


/* Estilo para el Input de Usuario */
.input-hive {
    width: 100%;
    max-width: 400px;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    outline: none;
    background-color: #fdfdfd;
}

.input-hive:focus {
    border-color: var(--accent-color, #e31337);
    box-shadow: 0 0 8px rgba(227, 19, 55, 0.2);
    background-color: #fff;
}

/* Estilo para el Botón Continuar */
.btn-hive {
    width: 100%;
    max-width: 400px;
    padding: 15px 25px;
    background-color: var(--accent-color, #e31337);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-hive:hover:not(:disabled) {
    background-color: #b30f2b; /* Un tono más oscuro del rojo */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-hive:active:not(:disabled) {
    transform: translateY(0);
}

/* Estado Deshabilitado */
.btn-hive:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.7;
}

/* Botón Secundario (Descarga) */
.btn-secundario {
    background-color: #6c757d !important; /* Gris profesional */
    max-width: 300px !important;
    font-size: 0.95rem !important;
    padding: 12px 20px !important;
}

.btn-secundario:hover:not(:disabled) {
    background-color: #5a6268 !important;
}

/* Ajuste para que los botones dentro del div se vean bien */
.btn-hive {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 400px;
}

/* Animación de alerta */
.alerta {
    animation: fadeInDown 0.5s ease-out;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

