/* ===== AGENTE CANGREJO COLOR OVERRIDES ===== */
/* Estrategia: Incrementar presencia del rojo #B71C1C para balancear navy dominante */
:root {
  --red: #B71C1C !important;
  --ink: #0A0F2A !important;
  --paper: #FAF3EC !important;
  --paper-50: rgba(250,243,236,0.5) !important;
  --paper-06: rgba(250,243,236,0.06) !important;
  --border: rgba(183,28,28,0.2) !important;        /* Changed from gold to red tint */
  --text-muted: rgba(250,243,236,0.6) !important;
  --text-tertiary: rgba(250,243,236,0.4) !important;
  --ink-50: rgba(10,15,42,0.5) !important;
  --gold: #C8A45C !important;
  --red-glow: rgba(183,28,28,0.4) !important;
}
body, section, footer, .hero { background-color: #0A0F2A !important; }
.hero { background: linear-gradient(165deg, #7A1515 0%, #B71C1C 30%, #C62828 55%, #8B0000 100%) !important; }
/* Adjust hero grid overlay opacity for red background */
.hero-grid {
  opacity: 0.12 !important;
  background-image:
    linear-gradient(rgba(250,243,236,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250,243,236,0.05) 1px, transparent 1px) !important;
}
footer { background: #060918 !important; }

/* ═══ BACKGROUND SECTION ALTERNATION ═══ */
/* Alternate navy with dark red backgrounds for visual rhythm */
.intro-section { background: linear-gradient(180deg, #0A0F2A 0%, #060918 100%) !important; }
.how-section { background: #060918 !important; }
.terminal-section { background: linear-gradient(180deg, #060918 0%, #0A0F2A 100%) !important; }
.offline-section, .three-col { background: #0A0F2A !important; }
.illust-section { background: linear-gradient(135deg, #0A0F2A 0%, #060918 50%, #0A0F2A 100%) !important; }
.cta-section { background: linear-gradient(165deg, #060918 0%, #0A0F2A 100%) !important; }
/* Add a dark red background for the problem section to break the navy monotony */
.problem-section { background: linear-gradient(180deg, #060918 0%, #0A0F2A 100%) !important; }

/* ═══ DECORATIVE ELEMENTS ═══ */
.content-lines { opacity: 0.4 !important; }
.content-lines:before,
.content-lines:after {
  background: rgba(183,28,28,0.15) !important;     /* Red-tinted content lines */
}
.signal-eye, .problem-eye-svg, .eye-linework { opacity: 0.9 !important; }
.footer-watermark { opacity: 0.05 !important; }

/* ═══ SECTION DIVIDERS — RED TINT ═══ */
.section-divider {
  opacity: 0.5 !important;
  background: linear-gradient(90deg, transparent, rgba(183,28,28,0.4), transparent) !important;
  height: 2px !important;
}
.problem-divider {
  border-top: 2px solid rgba(183,28,28,0.25) !important;
}
.three-col-divider {
  background: rgba(183,28,28,0.25) !important;
}

/* ═══ HERO TICKER — RED ACCENTS ═══ */
.hero-ticker {
  border-top: 2px solid rgba(183,28,28,0.25) !important;
  border-bottom: 1px solid rgba(183,28,28,0.1) !important;
}
.hero-ticker-inner span {
  color: #B71C1C !important;
  -webkit-text-stroke: 0.3px rgba(183,28,28,0.3) !important;
}

/* ═══ BADGES & ICONS — RED INSTEAD OF GOLD ═══ */
.badge svg path { fill: #B71C1C !important; }
.three-col-badge svg path { fill: #B71C1C !important; }
.how-intro-badge svg path { fill: #B71C1C !important; }

/* ═══ STEP NUMBERS & PROGRESS ═══ */
.how-step-num { color: #B71C1C !important; }
.how-step.active .how-step-num { color: #B71C1C !important; }
.how-step-progress-fill { background: #B71C1C !important; }
.how-step.active .how-step-progress-fill { background: #B71C1C !important; }

/* ═══ SUCCESS & STATUS LABELS ═══ */
.success { color: #B71C1C !important; }
.term-line .success { color: #B71C1C !important; }

/* ═══ TRAINING/PROGRESS BARS ═══ */
.training-bar-fill { background: #B71C1C !important; }

/* ═══ SECTION LABELS — RED ACCENT ═══ */
.section-label,
.mono-label {
  color: rgba(183,28,28,0.85) !important;
}

/* ═══ BUTTONS ═══ */
.btn-chamfer.btn-red {
  background: #B71C1C !important;
  border-color: #B71C1C !important;
}
.btn-chamfer.btn-dark {
  background: #0A0F2A !important;
  border: 2px solid #B71C1C !important;  /* Changed from gold to red */
}
.btn-chamfer.btn-outline {
  border-color: rgba(183,28,28,0.4) !important;
}
.btn-chamfer.btn-outline:hover {
  border-color: #B71C1C !important;
  background: rgba(183,28,28,0.1) !important;
}

/* ═══ HERO WATERMARK ═══ */
.hero-watermark { opacity: 0.04 !important; }

/* ═══ CARDS — RED BORDERS & HOVER ═══ */
.offline-card[style*="background"] {
  background: rgba(6,9,24,0.95) !important;
  border-color: rgba(183,28,28,0.15) !important;
}
.offline-card:hover {
  border-color: rgba(183,28,28,0.5) !important;
}

/* Card grid (illust-cards) */
.illust-card {
  border-color: rgba(183,28,28,0.25) !important;  /* More visible red-tinted border */
  background: rgba(183,28,28,0.03) !important;    /* Subtle red tint bg */
}
.illust-card:hover {
  border-color: rgba(183,28,28,0.4) !important;   /* Red on hover */
  background: rgba(183,28,28,0.08) !important;    /* Stronger red tint on hover */
  box-shadow: 0 0 20px rgba(183,28,28,0.15) !important;
}

/* ═══ MONITOR / TERMINAL — RED ACCENTS ═══ */
.monitor-bezel {
  border-color: rgba(183,28,28,0.2) !important;   /* Red-tinted bezel */
}
.monitor-screen {
  border-color: rgba(183,28,28,0.15) !important;
}
.monitor-led {
  background: #B71C1C !important;
  box-shadow: 0 0 8px rgba(183,28,28,0.6) !important;
}
.monitor-bezel-bottom {
  border-top-color: rgba(183,28,28,0.15) !important;
}
.monitor-bezel-bottom .model-tag {
  color: #B71C1C !important;
  opacity: 0.8 !important;
}

/* ═══ TERMINAL — RED ACCENTS ═══ */
.term-off { color: #B71C1C !important; }
.term-line .cmd { color: rgba(183,28,28,0.7) !important; }
.prompt { color: #B71C1C !important; }

/* ═══ TERMINAL GLOBE ASCII ART ═══ */
.term-ascii {
  margin: 0 !important;
  font-family: 'Chivo Mono', monospace !important;
  font-size: 0.45rem !important;
  line-height: 1.05 !important;
  color: #C8A45C !important;
  text-shadow: 0 0 10px rgba(200,164,92,0.10) !important;
  white-space: pre !important;
  text-align: left !important;
}

/* Terminal scrollable overflow for globe art */
.terminal-window {
  max-height: 550px !important;
}
@media (max-width: 768px) {
  .terminal-window {
    max-height: none !important;
  }
}

/* ═══ BLUEPRINT ANNOTATION LINES — RED ═══ */
.bp-line-left, .bp-line-right {
  background: rgba(183,28,28,0.3) !important;
}
.bp-dot {
  border-color: #B71C1C !important;
  background: rgba(183,28,28,0.5) !important;
}
.bp-title {
  color: rgba(183,28,28,0.9) !important;
}

/* ═══ EARLY ACCESS / FORM ═══ */
.email-input {
  border-color: rgba(183,28,28,0.3) !important;   /* Red-tinted input border */
  background: rgba(183,28,28,0.04) !important;
}
.email-input:focus {
  border-color: #B71C1C !important;                /* Solid red on focus */
  box-shadow: 0 0 10px rgba(183,28,28,0.2) !important;
}
.submit-button {
  background: #B71C1C !important;
  flex-shrink: 0 !important;
  min-width: 180px !important;
  padding: .85rem 2rem !important;
  font-size: .8rem !important;
}

/* ═══ HERO TEXT ═══ */
.hero h1, .hero-headline, .display.headline, h1 { color: #FAF3EC !important; opacity: 1 !important; }
.hero-sub, .hero-desc, .hero p { color: rgba(250,243,236,0.85) !important; opacity: 1 !important; }
.hero-watermark { opacity: 0.04 !important; }

/* Hero text ticker items */
.hero-ticker-inner span {
  color: #B71C1C !important;
  opacity: 0.9 !important;
}

/* ═══ HEADINGS WITH RED ACCENTS ═══ */
.headline, .display, [class*="headline"], [class*="title"] {
  color: #FAF3EC !important;
}
/* Red highlight in section titles */
.section-title,
.display {
  color: #FAF3EC !important;
}
.problem-headline {
  color: #FAF3EC !important;
}

/* ═══ SVG DIAGRAM ELEMENTS (INTRO) ═══ */
.svg-card .card-accent {
  fill: #B71C1C !important;
}

/* ═══ FAQ — RED ACCENTS ═══ */
.faq-question-number {
  color: #B71C1C !important;
}
.faq-chevron {
  color: rgba(183,28,28,0.4) !important;
}
.faq-item[open] .faq-chevron {
  color: #B71C1C !important;
}

/* ═══ FOOTER — RED ACCENTS ═══ */
.footer-col a:hover {
  color: #B71C1C !important;
}
.footer-status-dot {
  background: #B71C1C !important;
  box-shadow: 0 0 6px rgba(183,28,28,0.6) !important;
}

/* ═══ PROBLEM SECTION — RED ACCENTS ═══ */
.problem-grid > div {
  border-color: rgba(183,28,28,0.15) !important;
}
.problem-card-label {
  color: #B71C1C !important;
}
.problem-card-number {
  color: rgba(183,28,28,0.4) !important;
}
.problem-divider {
  border-top: 2px solid rgba(183,28,28,0.3) !important;
}
.problem-eye-svg circle,
.problem-eye-svg line {
  stroke: rgba(183,28,28,0.3) !important;
}

/* ═══ THREE-COL SECTION — RED DIVIDER ═══ */
.three-col-divider {
  background: rgba(183,28,28,0.2) !important;
}

/* ═══ STATS STRIP ═══ */
.stat-label {
  color: #B71C1C !important;
}

/* ═══ GLOBE / CONNECTION LINES ═══ */
.globe-line-left,
.globe-line-right {
  opacity: 0.6 !important;
  stroke: rgba(183,28,28,0.3) !important;
}

/* ═══ CTA SECTION — ENHANCED RED GLOW ═══ */
.cta-btn {
  box-shadow: 0 0 40px rgba(183,28,28,0.3) !important;
}

/* ═══ SECTION LABEL BADGES — RED ACCENT ═══ */
.g-section-label .badge,
.section-header .badge {
  border-color: rgba(183,28,28,0.4) !important;
}

/* ═══ GENERAL RED ACCENTS ═══ */
/* Red accent on specific border elements */
.illust-grid .illust-card {
  border-color: rgba(183,28,28,0.25) !important;
}
.three-col-divider {
  background: rgba(183,28,28,0.2) !important;
}
.offline-section:before {
  background: rgba(183,28,28,0.15) !important;
}

/* ═══ BODY TEXT ═══ */
body, .hero { color: #FAF3EC !important; }

/* ═══ SURVEILLANCE EYE — ROJO INTENSO ═══ */
.signal-eye, .problem-eye-svg, .eye-linework { opacity: 0.9 !important; }
.problem-eye-svg circle,
.problem-eye-svg line {
  stroke: #B71C1C !important;
  stroke-width: 1.5 !important;
  opacity: 0.85 !important;
}
.problem-eye-svg circle:first-child {
  stroke: #B71C1C !important;
  opacity: 0.6 !important;
}
#eye-pupil {
  fill: #B71C1C !important;
  opacity: 1 !important;
}
#eye-pupil + circle,
.eye-blink-target path {
  stroke: #B71C1C !important;
  stroke-width: 2 !important;
  opacity: 0.9 !important;
}
.eye-blink-target {
  opacity: 0.8 !important;
}

/* ═══ BUTTON VISIBILITY ═══ */
.btn-chamfer.btn-red, .btn-chamfer[style*="background: transparent"] {
  border-color: #B71C1C !important;
}
.waitlist-form .btn-chamfer {
  background: #B71C1C !important;
}

/* ═══ WAITLIST SUCCESS ICON ═══ */
.waitlist-success svg {
  stroke: #B71C1C !important;
}

/* Force animations to play - override missing is-visible class */
.hero .hero-ticker-inner,
.hero .hero-watermark,
#eye-pupil,
.offline-section .globe-line-left,
.offline-section .globe-line-right,
.cta-section svg {
  animation-play-state: running !important;
}
.how-step.active .how-step-progress-fill {
  animation-play-state: running !important;
}

/* ═══ ADDITIONAL RED DECORATIVE DETAILS ═══ */
/* Red top border accent on key sections */
.problem-section,
.offline-section,
.illust-section,
.how-section,
.terminal-section {
  border-top: 1px solid rgba(183,28,28,0.1) !important;
}

/* ════════════════════════════════════════════════════
   🦀 AGENTE CANGREJO — TOUCHES CREATIVOS
   ════════════════════════════════════════════════════ */

/* ── 1. SCROLL PROGRESS BAR ─────────────────────── */
#cangrejo-progress-bar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 0% !important;
  height: 3px !important;
  background: linear-gradient(90deg, #B71C1C, #C8A45C, #B71C1C) !important;
  z-index: 999999 !important;
  transition: width 150ms ease-out !important;
  box-shadow: 0 0 12px rgba(183,28,28,0.5) !important;
  pointer-events: none !important;
}
/* Glow edge on the tip */
#cangrejo-progress-bar::after {
  content: '' !important;
  position: absolute !important;
  right: 0 !important;
  top: 0 !important;
  width: 20px !important;
  height: 3px !important;
  background: #C8A45C !important;
  filter: blur(4px) !important;
  opacity: 0.8 !important;
}

/* ── 2. FLOATING CRAB MASCOT ────────────────────── */
#cangrejo-mascot {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  width: 64px !important;
  height: 64px !important;
  z-index: 99999 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  opacity: 0 !important;
  transform: translateY(20px) !important;
  transition: opacity 0.6s ease, transform 0.6s ease !important;
  border-radius: 50% !important;
  box-shadow: 0 4px 20px rgba(183,28,28,0.25) !important;
  background: rgba(6,9,24,0.6) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  padding: 6px !important;
  border: 1px solid rgba(183,28,28,0.2) !important;
}
#cangrejo-mascot.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}
#cangrejo-mascot img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
}
/* Floating bob animation */
@keyframes crab-bob {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-4px) rotate(-2deg); }
  50% { transform: translateY(-2px) rotate(1deg); }
  75% { transform: translateY(-5px) rotate(-1deg); }
}
#cangrejo-mascot img.bob {
  animation: crab-bob 3s ease-in-out infinite !important;
}
/* Snap on hover (claw click) */
#cangrejo-mascot:hover img {
  animation: crab-snap 0.4s ease !important;
}
@keyframes crab-snap {
  0% { transform: scale(1) rotate(0deg); }
  20% { transform: scale(0.85) rotate(-5deg); }
  40% { transform: scale(1.1) rotate(3deg); }
  60% { transform: scale(0.95) rotate(-2deg); }
  80% { transform: scale(1.02) rotate(1deg); }
  100% { transform: scale(1) rotate(0deg); }
}
/* Crab tooltip on hover */
#cangrejo-mascot::after {
  content: '🦀 agente cangrejo' !important;
  position: absolute !important;
  right: 72px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: #0A0F2A !important;
  color: #C8A45C !important;
  font-family: 'Chivo Mono', monospace !important;
  font-size: 0.65rem !important;
  padding: 4px 10px !important;
  border-radius: 4px !important;
  white-space: nowrap !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.3s ease !important;
  border: 1px solid rgba(183,28,28,0.3) !important;
}
#cangrejo-mascot:hover::after {
  opacity: 1 !important;
}

/* ── 3. SLOGAN IN FOOTER ────────────────────────── */
#cangrejo-slogan {
  margin-top: 1rem !important;
  padding-top: 0.75rem !important;
  border-top: 1px solid rgba(183,28,28,0.12) !important;
}
#cangrejo-slogan .slogan-text {
  font-family: 'Chivo Mono', monospace !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.05em !important;
  color: rgba(250,243,236,0.5) !important;
  text-align: center !important;
  display: block !important;
}
#cangrejo-slogan .slogan-text .highlight {
  color: #C8A45C !important;
  font-weight: 700 !important;
}
/* Subtle gold shimmer on the slogan */
@keyframes slogan-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
#cangrejo-slogan .slogan-text .shimmer {
  background: linear-gradient(90deg, #C8A45C, #FAF3EC, #C8A45C) !important;
  background-size: 200% auto !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: slogan-shimmer 3s ease-in-out infinite !important;
}

/* ── 4. BUTTON "PINZA" HOVER EFFECT ─────────────── */
.btn-chamfer.btn-red,
.submit-button,
.cta-btn,
a[href*="waitlist"],
a[href*="#early-access"],
#hero-join-btn,
#nav-join-btn {
  position: relative !important;
  overflow: hidden !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.btn-chamfer.btn-red:hover,
.submit-button:hover,
.cta-btn:hover,
a[href*="waitlist"]:hover,
a[href*="#early-access"]:hover,
#hero-join-btn:hover {
  transform: scale(1.03) !important;
  box-shadow: 0 0 30px rgba(183,28,28,0.4) !important;
}
.btn-chamfer.btn-red:active,
.submit-button:active {
  transform: scale(0.97) !important;
}
/* Snap flash on click */
@keyframes snap-flash {
  0% { box-shadow: 0 0 0 0 rgba(183,28,28,0.6); }
  100% { box-shadow: 0 0 0 20px rgba(183,28,28,0); }
}
.btn-chamfer.btn-red:active::after,
.submit-button:active::after {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  animation: snap-flash 0.4s ease-out !important;
  border-radius: inherit !important;
}

/* ── 5. FLOATING CRAB ON MOBILE ─────────────────── */
@media (max-width: 768px) {
  #cangrejo-mascot {
    width: 48px !important;
    height: 48px !important;
    bottom: 16px !important;
    right: 16px !important;
  }
  #cangrejo-mascot::after {
    display: none !important;
  }
  #cangrejo-progress-bar {
    height: 2px !important;
  }
}

/* ── 6. REDUCED MOTION SAFE ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
  #cangrejo-mascot img.bob {
    animation: none !important;
  }
  #cangrejo-mascot:hover img {
    animation: none !important;
    transform: scale(1.05) !important;
  }
  #cangrejo-slogan .slogan-text .shimmer {
    -webkit-text-fill-color: #C8A45C !important;
    animation: none !important;
  }
}

/* ═══ 7. FORM RESPONSIVE — STACK ON MOBILE ═══ */
@media (max-width: 640px) {
  .form-row {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  .form-row .submit-button {
    width: 100% !important;
    min-width: unset !important;
  }
}


