/* ==========================================================
   GREGOR — Landing Page CSS
   Estilo: full dark, amber accents, GitHub-inspired
   NO usa Tailwind nuevo — CSS puro con clases semanticas
   ========================================================== */

/* ----------------------------------------------------------
   1. VARIABLES GLOBALES
   ---------------------------------------------------------- */
:root {
  --landing-bg:          #000000;
  --landing-bg-subtle:   #0d1117;
  --landing-bg-card:     #161b22;
  --landing-border:      rgba(255, 255, 255, 0.1);
  --landing-border-hover:rgba(255, 255, 255, 0.25);

  --amber:               #FFAC33;
  --amber-dark:          #e07721;
  --amber-glow:          rgba(255, 172, 51, 0.25);
  --amber-glow-strong:   rgba(255, 172, 51, 0.45);

  --text-primary:        #ffffff;
  --text-secondary:      #8b949e;
  --text-muted:          #484f58;

  --font-main:           'WixMadeforDisplay', sans-serif;

  --radius-sm:           6px;
  --radius-md:           12px;
  --radius-lg:           20px;
  --radius-full:         9999px;

  --transition:          all 0.3s ease;
  --transition-fast:     all 0.15s ease;
}

/* ----------------------------------------------------------
   2. RESET Y BASE DEL LANDING
   ---------------------------------------------------------- */
.landing-page {
  background-color: var(--landing-bg);
  color: var(--text-primary);
  font-family: var(--font-main);
  overflow-x: hidden;
}

.landing-page *,
.landing-page *::before,
.landing-page *::after {
  box-sizing: border-box;
}

/* Smooth scroll para el landing */
html:has(.landing-page) {
  scroll-behavior: smooth;
}

/* ----------------------------------------------------------
   3. NAVBAR DEL LANDING
   ---------------------------------------------------------- */
.landing-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--landing-border);
}

.landing-navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}

.landing-navbar-logo img {
  width: 44px;
  height: auto;
}

.landing-navbar-logo span {
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-family: var(--font-main);
  font-weight: 600;
  white-space: nowrap;
}

.landing-navbar-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.landing-navbar-links a {
  display: block;
  padding: 0.4rem 0.75rem;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.landing-navbar-links a:hover,
.landing-navbar-links a.is-active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.landing-navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Boton Sign In del navbar */
.landing-btn-signin {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1rem;
  background: var(--amber);
  color: #000;
  font-family: var(--font-main);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  white-space: nowrap;
}

.landing-btn-signin:hover {
  background: var(--amber-dark);
  color: #fff;
}

/* Mobile hamburger (oculto en desktop) */
.landing-navbar-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.25rem;
  background: none;
  border: none;
}

.landing-navbar-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* Mobile menu overlay */
.landing-mobile-menu {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(0, 0, 0, 0.97);
  border-bottom: 1px solid var(--landing-border);
  padding: 1rem 1.5rem;
  flex-direction: column;
  gap: 0.5rem;
}

.landing-mobile-menu.is-open {
  display: flex;
}

.landing-mobile-menu a {
  display: block;
  padding: 0.6rem 0.5rem;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--landing-border);
}

.landing-mobile-menu a:last-child {
  border-bottom: none;
}

.landing-mobile-menu a:hover {
  color: var(--text-primary);
}

/* ----------------------------------------------------------
   4. HERO — Fondo negro + particulas parallax
   ---------------------------------------------------------- */

/* Particulas: fixed para efecto parallax */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* Hero section por encima de las particulas */
.hero-section {
  position: relative;
  height: 100vh;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Overlay semitransparente para legibilidad */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Contenido centrado del hero */
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 2rem;
  max-width: 920px;
  width: 100%;
}

.hero-logo {
  width: 140px;
  height: auto;
  margin-bottom: 1.5rem;
}

.hero-eyebrow {
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.75rem 0;
  opacity: 0.9;
}

.hero-title {
  font-family: var(--font-main);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  margin: 0 0 1rem 0;
  letter-spacing: -0.75px;
  max-width: 860px;
}

.hero-subtitle {
  font-family: var(--font-main);
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 400;
  color: #c9d1d9;
  line-height: 1.65;
  margin: 0 0 2.25rem 0;
  max-width: 680px;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* CTA principal */
.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background: var(--amber);
  color: #000;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  min-width: 200px;
  justify-content: center;
}

.hero-btn-primary:hover {
  background: var(--amber-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--amber-glow);
}

/* CTA secundario: Create Account — estilo outline */
.hero-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 2rem;
  background: transparent;
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  min-width: 200px;
}

.hero-btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.75);
  color: #ffffff;
}

/* Scroll chevron */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-muted);
  animation: chevronBounce 2s ease-in-out infinite;
}

.hero-scroll-indicator svg {
  width: 24px;
  height: 24px;
}

@keyframes chevronBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50%       { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* ----------------------------------------------------------
   5. SECCIONES DEL LANDING (por encima de particulas)
   ---------------------------------------------------------- */

/* Contenedor de todas las secciones despues del hero */
.landing-sections {
  position: relative;
  z-index: 2;
  background: var(--landing-bg);
}

/* Base para todas las secciones */
.landing-section {
  padding: 5rem 1.5rem;
  position: relative;
}

.landing-section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* Titulos de seccion */
.landing-section-title {
  font-family: var(--font-main);
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin: 0 0 0.75rem 0;
}

.landing-section-subtitle {
  font-family: var(--font-main);
  font-size: 1rem;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.6;
  margin: 0 auto 3rem auto;
  max-width: 600px;
}

/* Separador decorativo */
.landing-divider {
  width: 48px;
  height: 3px;
  background: var(--amber);
  border-radius: var(--radius-full);
  margin: 0 auto 1rem auto;
}

/* ----------------------------------------------------------
   6. PIPELINE INTERACTIVO — Trait Design
   ---------------------------------------------------------- */
.pipeline-landing-section {
  background: var(--landing-bg-subtle);
  border-top: 1px solid var(--landing-border);
  border-bottom: 1px solid var(--landing-border);
}

/* Contenedor del flujo */
.pipeline-landing-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  max-width: 1000px;
  margin: 0 auto 3rem auto;
}

/* Etapa individual */
.pipeline-landing-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

/* Badge de etapa (adaptado a dark) */
.pipeline-landing-badge {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  min-width: 9rem;
  text-align: center;
  border-radius: var(--radius-full);
  font-family: var(--font-main);
  font-size: 0.875rem;
  font-weight: 700;
  background: rgba(255, 172, 51, 0.08);
  color: var(--amber);
  border: 2px solid var(--amber);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  user-select: none;
}

.pipeline-landing-badge:hover,
.pipeline-landing-badge.is-active {
  background: var(--amber);
  color: #000;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--amber-glow-strong);
}

/* Flecha entre etapas */
.pipeline-landing-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.pipeline-landing-arrow svg {
  width: 20px;
  height: 20px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Panel de detalle por modulo */
.pipeline-detail-panels {
  max-width: 900px;
  margin: 0 auto 2rem auto;
}

.pipeline-detail-panel {
  display: none;
  align-items: flex-start;
  gap: 1.5rem;
  background: var(--landing-bg-card);
  border: 1px solid var(--landing-border);
  border-top: 3px solid var(--amber);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  animation: panelFadeIn 0.25s ease;
}

.pipeline-detail-panel.is-visible {
  display: flex;
}

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

.pipeline-detail-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 172, 51, 0.1);
  border-radius: var(--radius-md);
}

.pipeline-detail-icon img,
.pipeline-detail-icon svg {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.pipeline-detail-body {
  flex: 1;
}

.pipeline-detail-title {
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
}

.pipeline-detail-desc {
  font-family: var(--font-main);
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* Dos workflows */
.pipeline-workflows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto 2.5rem auto;
}

.pipeline-workflow-card {
  background: var(--landing-bg-card);
  border: 1px solid var(--landing-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.pipeline-workflow-card h4 {
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  color: var(--amber);
  margin: 0 0 0.5rem 0;
}

.pipeline-workflow-card p {
  font-family: var(--font-main);
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Info adicional: colaboracion y organismos */
.pipeline-info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}

.pipeline-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-family: var(--font-main);
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.pipeline-info-item-icon {
  flex-shrink: 0;
  font-size: 1.25rem;
  margin-top: 1px;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--amber);
}
.pipeline-info-item-icon svg {
  width: 100%;
  height: 100%;
}

.pipeline-info-item a {
  color: var(--amber);
  text-decoration: none;
}

.pipeline-info-item a:hover {
  text-decoration: underline;
}

/* Organismos badges */
.organism-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.organism-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  font-family: var(--font-main);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}

/* ----------------------------------------------------------
   7. FEATURE CARDS — Other Tools
   ---------------------------------------------------------- */
.features-section {
  background: var(--landing-bg);
  border-top: 1px solid var(--landing-border);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-card {
  background: var(--landing-bg-card);
  border: 1px solid var(--landing-border);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  border-color: var(--amber);
  box-shadow: 0 0 0 1px var(--amber), 0 8px 32px rgba(0, 0, 0, 0.4);
}

.feature-card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.feature-card-title {
  font-family: var(--font-main);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
}

.feature-card-desc {
  font-family: var(--font-main);
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
  flex: 1;
}

.feature-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-main);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--amber);
  text-decoration: none;
  transition: var(--transition-fast);
}

.feature-card-link:hover {
  color: var(--amber-dark);
  gap: 0.6rem;
}

.feature-card-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Card "Coming Soon" */
.feature-card.is-coming-soon {
  opacity: 0.55;
  cursor: default;
}

.feature-card.is-coming-soon:hover {
  border-color: var(--landing-border);
  box-shadow: none;
}

.feature-card-badge-soon {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--landing-border);
  border-radius: var(--radius-full);
  font-family: var(--font-main);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

/* ----------------------------------------------------------
   8. CTA DE REGISTRO
   ---------------------------------------------------------- */
.cta-section {
  background: var(--landing-bg-subtle);
  border-top: 1px solid var(--landing-border);
  text-align: center;
}

.cta-title {
  font-family: var(--font-main);
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.75rem 0;
}

.cta-subtitle {
  font-family: var(--font-main);
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0 0 2rem 0;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.cta-btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 2rem;
  background: var(--amber);
  color: #000;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.cta-btn-primary:hover {
  background: var(--amber-dark);
  color: #fff;
  box-shadow: 0 4px 16px var(--amber-glow);
}

.cta-btn-secondary {
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: var(--transition-fast);
}

.cta-btn-secondary:hover {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

/* ----------------------------------------------------------
   9. SECCION DE CONTACTO
   ---------------------------------------------------------- */
.contact-section {
  background: var(--landing-bg);
  border-top: 1px solid var(--landing-border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Formulario */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-label {
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-input {
  width: 100%;
  padding: 0.6rem 0.85rem;
  background: var(--landing-bg-card);
  border: 1px solid var(--landing-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.925rem;
  transition: var(--transition-fast);
  outline: none;
}

.contact-input::placeholder {
  color: var(--text-muted);
}

.contact-input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(255, 172, 51, 0.12);
}

.contact-textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-submit {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  background: var(--amber);
  color: #000;
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.contact-submit:hover {
  background: var(--amber-dark);
  color: #fff;
}

.contact-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Mensaje de feedback del form */
.contact-feedback {
  font-family: var(--font-main);
  font-size: 0.875rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  display: none;
}

.contact-feedback.success {
  display: block;
  background: rgba(45, 164, 78, 0.15);
  border: 1px solid rgba(45, 164, 78, 0.4);
  color: #3fb950;
}

.contact-feedback.error {
  display: block;
  background: rgba(248, 81, 73, 0.15);
  border: 1px solid rgba(248, 81, 73, 0.4);
  color: #f85149;
}

/* Boton submit — estado loading */
.cta-btn-primary.is-loading {
  opacity: 0.85;
  cursor: wait;
  pointer-events: none;
}

@keyframes mailFly {
  0%   { transform: translateX(0) translateY(0) rotate(0deg);   opacity: 1; }
  40%  { transform: translateX(6px) translateY(-4px) rotate(-8deg); opacity: 1; }
  70%  { transform: translateX(14px) translateY(-8px) rotate(-14deg); opacity: 0.7; }
  100% { transform: translateX(0) translateY(0) rotate(0deg);   opacity: 1; }
}

.contact-btn-mail {
  animation: mailFly 1.2s ease-in-out infinite;
  flex-shrink: 0;
}

/* Info de contacto (lado derecho) */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-title {
  font-family: var(--font-main);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.25rem 0;
}

.contact-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-info-label {
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-info-value {
  font-family: var(--font-main);
  font-size: 0.925rem;
  color: var(--text-secondary);
}

.contact-info-value a {
  color: var(--amber);
  text-decoration: none;
}

.contact-info-value a:hover {
  text-decoration: underline;
}

.contact-info-separator {
  height: 1px;
  background: var(--landing-border);
}

/* ----------------------------------------------------------
   10. FOOTER DEL LANDING
   ---------------------------------------------------------- */
.landing-footer {
  padding: 1.5rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  border-top: 1px solid var(--landing-border);
  background: var(--landing-bg);
}

.landing-footer a {
  display: inline-flex;
  align-items: center;
}

.landing-footer img {
  height: 28px;
  width: auto;
  opacity: 0.7;
  transition: var(--transition-fast);
}

.landing-footer img:hover {
  opacity: 1;
}

/* ----------------------------------------------------------
   11. AVATAR EN NAVBAR DEL LANDING (usuario logueado)
   ---------------------------------------------------------- */
.landing-navbar-avatar-wrap {
  position: relative;
}

.landing-navbar-avatar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--amber);
  background: rgba(255,172,51,0.15);
  cursor: pointer;
  padding: 0;
  color: var(--amber);
  font-weight: 700;
  font-size: 0.9rem;
  transition: border-color var(--transition-fast);
}
.landing-navbar-avatar-btn:hover {
  border-color: var(--amber-dark);
}
.landing-navbar-avatar-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-navbar-avatar-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  z-index: 200;
  overflow: hidden;
}
.landing-navbar-avatar-wrap:hover .landing-navbar-avatar-dropdown,
.landing-navbar-avatar-wrap:focus-within .landing-navbar-avatar-dropdown {
  display: block;
}

.landing-navbar-avatar-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.landing-navbar-avatar-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  display: block;
}
.landing-navbar-avatar-username {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.landing-navbar-avatar-dropdown a {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.landing-navbar-avatar-dropdown a:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}
.landing-navbar-avatar-dropdown a.is-dashboard {
  color: var(--amber);
  font-weight: 600;
}
.landing-navbar-avatar-dropdown a.is-dashboard:hover {
  background: var(--db-amber-bg, rgba(245,158,11,0.08));
  color: var(--amber);
}

/* ----------------------------------------------------------
   12. RESPONSIVE
   ---------------------------------------------------------- */

/* ----------------------------------------------------------
   Tablet: max 900px */
@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pipeline-workflows {
    grid-template-columns: 1fr;
  }

  .pipeline-info-row {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Mobile: max 640px */
@media (max-width: 640px) {
  .landing-navbar-links {
    display: none;
  }

  .landing-navbar-hamburger {
    display: flex;
  }

  .landing-navbar-actions .landing-btn-signin {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  /* Pipeline: vertical en mobile */
  .pipeline-landing-flow {
    flex-direction: column;
    gap: 0.75rem;
  }

  .pipeline-landing-arrow {
    transform: rotate(90deg);
    width: 32px;
    height: 32px;
  }

  .pipeline-detail-panel {
    flex-direction: column;
  }

  .hero-logo {
    width: 110px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .landing-section {
    padding: 3.5rem 1rem;
  }

  .cta-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* ----------------------------------------------------------
   PASO 8: Focus states — accesibilidad teclado
   ---------------------------------------------------------- */
.landing-navbar-links a:focus-visible,
.landing-btn-signin:focus-visible,
.hero-btn-primary:focus-visible,
.hero-btn-outline:focus-visible,
.cta-btn-primary:focus-visible,
.cta-btn-secondary:focus-visible,
.feature-card-link:focus-visible,
.pipeline-landing-badge:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.contact-input:focus-visible {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(255, 172, 51, 0.12);
  outline: none;
}

/* ----------------------------------------------------------
   PASO 8: prefers-reduced-motion
   ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-scroll-indicator svg,
  .contact-btn-mail {
    animation: none;
  }

  .pipeline-detail-panel {
    transition: none;
  }

  .pipeline-landing-badge,
  .feature-card,
  .db-quick-card {
    transition: none;
  }
}

/* ----------------------------------------------------------
   PASO 8: Parallax mobile — desactivar position:fixed en
   dispositivos pequeños para evitar problemas de performance
   ---------------------------------------------------------- */
@media (max-width: 640px) {
  #particles-js {
    position: absolute;
  }
}
