/* ============================================================
   DAVTOOL AGENDA — LANDING OPTIMIZADO (ADICIONES)
   Este archivo se carga DESPUES de stylelanding.css
   Solo agrega y ajusta — no rompe estilos existentes
   ============================================================ */

/* ============================================================
   URGENCY BAR
   ============================================================ */
.urgency-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  background: var(--brand);
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.92);
  font-weight: 500;
  transition: transform 0.3s var(--ease);
  overflow: hidden;
  white-space: nowrap;
}

.urgency-bar.hidden {
  transform: translateY(-100%);
}

.ub-dot {
  width: 7px;
  height: 7px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  flex-shrink: 0;
  animation: ub-pulse 1.8s ease infinite;
}

@keyframes ub-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.ub-text { opacity: 0.85; }

.ub-sep {
  opacity: 0.4;
  font-weight: 300;
}

.urgency-bar strong {
  color: white;
  font-weight: 700;
}

.ub-cta {
  margin-left: 0.75rem;
  padding: 0.25rem 0.875rem;
  background: white;
  color: var(--brand);
  font-weight: 700;
  font-size: 0.75rem;
  border-radius: 50px;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.ub-cta:hover {
  background: rgba(255,255,255,0.9);
  transform: scale(1.03);
}

/* Header pushed down when urgency bar is visible.
   --urgency-bar-h se calcula en JS con ResizeObserver y se setea en :root.
   El fallback 0px evita saltos antes de que el JS cargue. */
body.has-urgency-bar .header {
  top: var(--urgency-bar-h, 0px);
  transition: top 0.2s ease, background 0.4s var(--ease), border-color 0.4s;
}

body.has-urgency-bar .hero {
  padding-top: calc(var(--urgency-bar-h, 0px) + 7.5rem);
}

/* ============================================================
   BUSINESS TYPE SELECTOR
   ============================================================ */
.biz-selector {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.bs-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.bs-options {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.bs-btn {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.875rem;
  border-radius: 50px;
  border: 1px solid var(--bg-border-strong);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  letter-spacing: -0.01em;
}

.bs-btn:hover {
  border-color: rgba(199, 94, 42, 0.4);
  color: var(--text-secondary);
  background: var(--brand-dim);
}

.bs-btn.active {
  border-color: var(--brand);
  background: var(--brand-dim);
  color: var(--brand-light);
  box-shadow: 0 0 12px rgba(199,94,42,0.2);
}

/* Hero title transition */
.title-highlight {
  display: inline-block;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.title-highlight.changing {
  opacity: 0;
  transform: translateY(6px);
}

.hero-description {
  transition: opacity 0.25s ease;
}

.hero-description.changing {
  opacity: 0;
}

/* ============================================================
   HERO PROOF STRIP (reemplaza hero-trust)
   ============================================================ */
.hero-proof {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hp-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hp-dot {
  width: 3px;
  height: 3px;
  background: var(--text-muted);
  border-radius: 50%;
  opacity: 0.4;
}

/* ============================================================
   MOCK STATUS OK (reemplaza mub-upgrade en PRO)
   ============================================================ */
.mock-status-ok {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 50px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ============================================================
   ANTES VS DESPUES SECTION
   ============================================================ */
.before-after {
  position: relative;
  z-index: 1;
  background: var(--bg-base);
  padding: 6rem 2rem;
  border-top: 1px solid var(--bg-border);
  border-bottom: 1px solid var(--bg-border);
}

.ba-title {
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.ba-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 3.5rem;
  font-weight: 400;
}

.ba-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 960px;
  margin: 0 auto 3rem;
}

.ba-card {
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  border: 1px solid transparent;
  transition: all 0.35s var(--ease);
}

.ba-before {
  background: var(--bg-card);
  border-color: var(--bg-border-strong);
}

.ba-before:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

.ba-after {
  background: var(--bg-card);
  border-color: rgba(199, 94, 42, 0.35);
  box-shadow: 0 0 32px rgba(199, 94, 42, 0.08);
}

.ba-after:hover {
  border-color: rgba(199, 94, 42, 0.55);
  background: var(--bg-card-hover);
  box-shadow: 0 0 48px rgba(199, 94, 42, 0.14);
  transform: translateY(-3px);
}

.ba-card-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.75rem;
}

.ba-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ba-icon-before {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border-strong);
  color: var(--text-muted);
}

.ba-icon-after {
  background: var(--brand-dim);
  border: 1px solid rgba(199, 94, 42, 0.35);
  color: var(--brand-light);
}

.ba-label-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.before-tag { color: var(--text-secondary); }
.after-tag  { color: var(--brand-light); }

.ba-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.ba-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.ba-before-list li {
  color: var(--text-secondary);
}

.ba-after-list li {
  color: var(--text-secondary);
}

.ba-list li svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* Arrow separator */
.ba-arrow-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.ba-arrow-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, transparent, var(--bg-border-strong), transparent);
}

.ba-arrow-icon {
  color: var(--brand-light);
  opacity: 0.7;
  animation: arrow-pulse 2s ease infinite;
}

@keyframes arrow-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.1); }
}

/* CTA below before/after */
.ba-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  text-align: center;
}

.ba-cta-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ============================================================
   BUTTON IMPROVEMENTS — pulse + glow
   ============================================================ */
.btn-pulse {
  position: relative;
  overflow: hidden;
}

.btn-pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 var(--brand-glow);
  animation: btn-ring 2.5s ease infinite;
}

@keyframes btn-ring {
  0% { box-shadow: 0 0 0 0 rgba(199, 94, 42, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(199, 94, 42, 0); }
  100% { box-shadow: 0 0 0 0 rgba(199, 94, 42, 0); }
}

.btn-hero-glow {
  box-shadow: 0 0 40px rgba(199, 94, 42, 0.45), 0 4px 16px rgba(0,0,0,0.3);
}

.btn-hero-glow:hover {
  box-shadow: 0 0 60px rgba(199, 94, 42, 0.6), 0 8px 24px rgba(0,0,0,0.4);
}

/* ============================================================
   INTERACTIVE HOVER STATES IMPROVEMENTS
   ============================================================ */
.feature-card {
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--brand);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s var(--ease);
  border-radius: 3px 0 0 3px;
}

.feature-card:hover::before {
  transform: scaleY(1);
}

.who-card {
  position: relative;
  overflow: hidden;
}

.who-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}

.who-card:hover::after {
  transform: scaleX(1);
}

/* Pricing card active state on featured */
.pricing-card.featured:hover {
  box-shadow: 0 0 80px rgba(199, 94, 42, 0.2), 0 28px 72px rgba(0,0,0,0.6);
}

/* ============================================================
   FOR-WHO SECTION — override for dark bg version
   ============================================================ */
/* The for-who section is light by default — keeping as-is,
   just adding minor spacing refinement */
.for-who {
  padding: 6rem 2rem 5rem;
}

/* ============================================================
   BEFORE-AFTER RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .ba-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .ba-arrow-center {
    flex-direction: row;
    padding: 1.25rem 0;
  }

  .ba-arrow-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--bg-border-strong), transparent);
  }

  .ba-arrow-icon {
    transform: rotate(0deg);
  }

  .before-after {
    padding: 4rem 1.25rem;
  }
}

@media (max-width: 768px) {
  /* Urgency bar */
  .urgency-bar {
    font-size: 0.7rem;
    padding: 0.5rem 1rem;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: center;
    white-space: normal;
    text-align: center;
    line-height: 1.5;
  }

  .ub-sep { display: none; }

  .ub-cta {
    margin-left: 0;
    margin-top: 0.25rem;
  }

  body.has-urgency-bar .header {
    /* la variable --urgency-bar-h se actualiza automaticamente en JS */
  }

  body.has-urgency-bar .hero {
    /* idem — el calc() en la regla base ya maneja mobile */
  }

  /* Biz selector */
  .biz-selector {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .bs-options {
    gap: 0.375rem;
  }

  .bs-btn {
    font-size: 0.7875rem;
    padding: 0.3rem 0.75rem;
  }

  /* Hero proof */
  .hero-proof {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .hp-dot { display: none; }

  /* BA cards */
  .ba-card {
    padding: 1.75rem 1.25rem;
  }

  .ba-list li {
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .urgency-bar {
    display: none; /* En pantallas muy pequenas, ocultar para no consumir demasiado espacio */
  }

  body.has-urgency-bar .header {
    /* urgency bar oculta en 480px — header vuelve a top:0 via JS */
  }

  body.has-urgency-bar .hero {
    padding-top: 6rem;
  }

  .ba-card-header {
    margin-bottom: 1.25rem;
  }
}
