/* ==========================================================================
   SHARED DESIGN SYSTEM - BALLESTASTUDIO LANDING PAGES (3er Corte)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

/* ── DEMO BANNER (Portfolio showcase strip) ──────────────────────────────────
   Muestra una franja superior en las demos de portafolio de Ballestastudio.
   Se adapta automáticamente al tema claro/oscuro.
   ────────────────────────────────────────────────────────────────────────── */
.demo-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 20px;
    background: rgba(10, 10, 20, 0.92);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.72);
    flex-wrap: wrap;
    text-align: center;
    line-height: 1.5;
}

[data-theme="light"] .demo-banner {
    background: rgba(240, 240, 250, 0.96);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    color: rgba(30, 30, 50, 0.75);
}

.demo-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #0A5CFF, #7C3AED);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    padding: 4px 10px;
    border-radius: 3px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.demo-banner p { margin: 0; }
.demo-banner strong { color: #fff; font-weight: 700; }
[data-theme="light"] .demo-banner strong { color: #1a1a2e; }
.demo-banner a {
    color: #60a5fa;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(96,165,250,0.4);
    transition: border-color 0.2s, color 0.2s;
    white-space: nowrap;
}
.demo-banner a:hover { color: #93c5fd; border-color: #93c5fd; }
[data-theme="light"] .demo-banner a { color: #1d4ed8; border-color: rgba(29,78,216,0.3); }

/* Ajuste para que el contenido no quede oculto detrás del banner fijo */
body:has(.demo-banner) { padding-bottom: 52px; }



:root {
  /* Brand Color System (Vibrant Blue & Dark Contrasts) */
  --brand-blue: #0A5CFF;
  --brand-blue-hover: #0046d5;
  --brand-blue-light: rgba(10, 92, 255, 0.06);
  --brand-blue-glow: rgba(10, 92, 255, 0.35);

  /* Ambient Glow Animation variables (Light Mode) */
  --glow-opacity-max: 0.75;
  --glow-opacity-min: 0.55;
  --glow-blue: rgba(10, 92, 255, 0.18);
  --glow-purple: rgba(168, 85, 247, 0.18);

  /* Light Theme Variables */
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-alt: #f1f5f9;
  
  --text-title: #0f172a;
  --text-main: #334155;
  --text-muted: #64748b;
  
  --border-color: #e2e8f0;
  --border-focus: #0A5CFF;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 15px 40px rgba(10, 92, 255, 0.06);

  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Poppins', sans-serif;
  
  --max-width: 1200px;
  --grid-gap: 30px;
  --transition-speed: 0.3s;
}

/* Dark Theme Variables */
[data-theme="dark"] {
  --bg-body: #07090e;
  --bg-card: #10141f;
  --bg-alt: #161c2c;
  
  --text-title: #f8fafc;
  --text-main: #cbd5e1;

  /* Ambient Glow Animation variables (Dark Mode) */
  --glow-opacity-max: 0.9;
  --glow-opacity-min: 0.7;
  --glow-blue: rgba(10, 92, 255, 0.32);
  --glow-purple: rgba(168, 85, 247, 0.32);
  --text-muted: #94a3b8;
  
  --border-color: #1e293b;
  --border-focus: #0A5CFF;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 15px 45px rgba(0, 0, 0, 0.45);
}

/* ==========================================================================
   BILINGUAL SYSTEM SWITCHING
   ========================================================================== */
html:not([lang="en"]) .lang-en {
  display: none !important;
}
html[lang="en"] .lang-es {
  display: none !important;
}

/* ==========================================================================
   CSS RESET & BASE LAYOUT
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 15px;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.65;
  transition: background-color var(--transition-speed), color var(--transition-speed);
  position: relative;
  overflow-x: hidden;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-blue);
}

/* Container & Grids */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--grid-gap);
}

.col-1 { grid-column: span 1; }
.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-10 { grid-column: span 10; }
.col-11 { grid-column: span 11; }
.col-12 { grid-column: span 12; }

/* Sections */
.section-padding {
  padding: 80px 0;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.section-header {
  margin-bottom: 50px;
  max-width: 700px;
}
.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-title);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text-title) 30%, var(--brand-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

p {
  color: var(--text-main);
  margin-bottom: 16px;
}

p.lead {
  font-size: 1.15rem;
  line-height: 1.6;
}

/* ==========================================================================
   INTERACTIVE ELEMENTS & BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-speed);
  border: none;
}

.btn-primary {
  background-color: var(--brand-blue);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--brand-blue-glow);
}

.btn-primary:hover {
  background-color: var(--brand-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--brand-blue-glow);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-title);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--brand-blue);
  background-color: var(--brand-blue-light);
  color: var(--brand-blue);
  transform: translateY(-2px);
}

.badge {
  font-size: 0.75rem;
  font-weight: 600;
  background-color: var(--brand-blue-light);
  border: 1px solid rgba(10, 92, 255, 0.15);
  color: var(--brand-blue);
  padding: 4px 10px;
  border-radius: 30px;
  display: inline-block;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ==========================================================================
   HEADER & THEME TOGGLE
   ========================================================================== */
.header-wireframe {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color var(--transition-speed);
}

[data-theme="dark"] .header-wireframe {
  background-color: rgba(7, 9, 14, 0.85);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-container {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-container img {
  height: 38px;
  object-fit: contain;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.currency-switcher {
  display: inline-flex;
  align-items: center;
}

.currency-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-title);
  transition: all var(--transition-speed);
}

.currency-btn:hover {
  border-color: var(--brand-blue);
  background-color: var(--brand-blue-light);
}

.currency-label {
  transition: color var(--transition-speed);
}

.currency-label.active {
  color: var(--brand-blue);
}

.currency-label:not(.active) {
  color: var(--text-muted);
}

.currency-divider {
  color: var(--border-color);
  margin: 0 2px;
}

.theme-toggle-btn {
  background: none;
  border: 1px solid var(--border-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-title);
  transition: all var(--transition-speed);
}

.theme-toggle-btn:hover {
  border-color: var(--brand-blue);
  background-color: var(--brand-blue-light);
  color: var(--brand-blue);
}

.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }
.sun-icon { display: none; }
.moon-icon { display: block; }

/* ==========================================================================
   CARDS & WRAPPERS
   ========================================================================== */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-speed);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-title);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: var(--bg-body);
  color: var(--text-title);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition-speed);
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-blue);
}

.success-msg {
  display: none;
  margin-top: 15px;
  padding: 12px;
  background-color: rgba(34, 197, 94, 0.1);
  border: 1px solid rgb(34, 197, 94);
  color: rgb(34, 197, 94);
  border-radius: 6px;
  font-weight: 550;
  font-size: 0.9rem;
  text-align: center;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-wireframe {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 50px 0 30px 0;
  font-size: 0.95rem;
  transition: background-color var(--transition-speed);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: bold;
  font-size: 0.85rem;
  transition: all var(--transition-speed);
}

.social-link:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  box-shadow: 0 0 8px var(--brand-blue-glow);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .grid-12 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
    grid-column: span 1;
  }
  .footer-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .section-padding { padding: 60px 0; }
}

/* ==========================================================================
   FLOATING UTILITY CONTROLS (Bilingual, Theme & WhatsApp Float)
   ========================================================================== */
/* Floating Controls Styles */
.fc-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 10000;
}

.fc-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #ffffff;
  color: #374151; /* gray-700 */
  border: 1px solid #e5e7eb; /* gray-200 */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.fc-btn:hover {
  transform: scale(1.05);
}

.fc-btn:active {
  transform: scale(0.95);
}

/* Dark mode styles */
[data-theme="dark"] .fc-btn,
.dark .fc-btn {
  background-color: #1e293b; /* slate-800 */
  color: #cbd5e1; /* slate-300 */
  border-color: #334155; /* slate-700 */
}

/* Language Button specific */
.fc-lang-btn {
  flex-direction: column;
  font-size: 10px;
  font-weight: 700;
}

.fc-lang-label {
  font-weight: 600;
  line-height: 1;
}

.fc-lang-label.active {
  color: #0b5d67;
}

[data-theme="dark"] .fc-lang-label.active,
.dark .fc-lang-label.active {
  color: #3cd2e2;
}

.fc-lang-label:not(.active) {
  color: #9ca3af; /* gray-400 */
}

.fc-lang-divider {
  height: 1px;
  width: 16px;
  background-color: #d1d5db; /* gray-300 */
  margin: 2px 0;
}

[data-theme="dark"] .fc-lang-divider,
.dark .fc-lang-divider {
  background-color: #475569; /* slate-600 */
}

/* Theme Button specific */
.fc-icon {
  width: 20px;
  height: 20px;
}

.fc-sun-icon {
  display: block;
}

.fc-moon-icon {
  display: none;
}

[data-theme="dark"] .fc-sun-icon,
.dark .fc-sun-icon {
  display: none;
}

[data-theme="dark"] .fc-moon-icon,
.dark .fc-moon-icon {
  display: block;
}

/* WhatsApp Float Button inside fc-panel */
.wa-float {
  background-color: #25D366 !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 10px 24px -4px rgba(37,211,102,0.55), 0 4px 8px rgba(0,0,0,0.12) !important;
  position: relative;
}

.wa-float:hover {
  background-color: #20ba5a !important;
  box-shadow: 0 14px 30px -4px rgba(37,211,102,0.65), 0 6px 10px rgba(0,0,0,0.15) !important;
}

.wa-float:active {
  transform: scale(0.95);
}

.wa-float svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.wa-float-label {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #1e293b;
  color: #ffffff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 550;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
}

.wa-float-label::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 6px solid #1e293b;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.wa-float:hover .wa-float-label {
  opacity: 1;
}

@media (max-width: 600px) {
  .wa-float-label {
    display: none;
  }
}

/* ==========================================================================
   PREMIUM EFFECTS (Pinterest references: Neon glow, Glassmorphism, Grids)
   ========================================================================== */
.grid-backdrop {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(10, 92, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10, 92, 255, 0.03) 1px, transparent 1px);
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

[data-theme="dark"] .grid-backdrop {
  background-image: 
    linear-gradient(to right, rgba(10, 92, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10, 92, 255, 0.04) 1px, transparent 1px);
}

.ambient-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--glow-blue) 0%, transparent 70%);
  filter: blur(80px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.glass-card {
  background: rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
}

[data-theme="dark"] .glass-card {
  background: rgba(16, 20, 31, 0.45) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3) !important;
}

.glass-card:hover {
  border-color: rgba(10, 92, 255, 0.4) !important;
  box-shadow: 0 15px 45px rgba(10, 92, 255, 0.12) !important;
  transform: translateY(-4px);
}

.glow-hover {
  position: relative;
  overflow: hidden;
}

.glow-hover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(10, 92, 255, 0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.glow-hover:hover::after {
  opacity: 1;
}

.fade-in-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   EXPANDED LAYOUT UTILITIES (Bento Grid, Pricing Toggle & Neon Glows)
   ========================================================================== */

/* Neon glowing curve decoration (Reference 1 style) */
.neon-glow-wave {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  opacity: 0.25;
  filter: blur(2px);
}

[data-theme="dark"] .neon-glow-wave {
  opacity: 0.45;
}

/* Centered Hero adjustments */
.hero-center {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

/* Partner logos row */
.partner-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 60px;
  opacity: 0.4;
  transition: opacity 0.3s;
}

.partner-logos:hover {
  opacity: 0.7;
}

.partner-logo-item {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-title);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.partner-logo-item svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Process Step Badge Card */
.step-number-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-blue-light);
  border: 1px solid rgba(10, 92, 255, 0.2);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
  margin-top: 40px;
}

.bento-stack {
  display: flex;
  flex-direction: column;
  gap: var(--grid-gap);
}

.bento-tall-img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  object-fit: cover;
  aspect-ratio: 1.4;
}

/* Prompt Console Simulator */
.prompt-simulator {
  background-color: #0c0f17;
  border: 1px solid #1e293b;
  border-radius: 8px;
  font-family: monospace;
  font-size: 0.85rem;
  color: #38bdf8;
  overflow: hidden;
  text-align: left;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
  margin-top: 15px;
}

.prompt-bar {
  background: #111827;
  padding: 8px 12px;
  border-bottom: 1px solid #1e293b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.prompt-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.prompt-dot.red { background: #ef4444; }
.prompt-dot.yellow { background: #f59e0b; }
.prompt-dot.green { background: #10b981; }

.prompt-terminal {
  padding: 15px;
  min-height: 120px;
  color: #e5e7eb;
}

.prompt-input-line {
  color: #38bdf8;
  margin-bottom: 8px;
}

.prompt-output-line {
  color: #10B981;
  margin-top: 10px;
  display: none;
}

.prompt-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background-color: #e5e7eb;
  animation: blink 1s step-end infinite;
  vertical-align: middle;
  margin-left: 2px;
}

@keyframes blink {
  50% { opacity: 0; }
}

.prompt-triggers {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.prompt-trigger-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.78rem;
  color: var(--text-title);
  cursor: pointer;
  font-weight: 600;
  transition: all var(--transition-speed);
}

.prompt-trigger-btn:hover, .prompt-trigger-btn.active {
  border-color: var(--brand-blue);
  background-color: var(--brand-blue-light);
  color: var(--brand-blue);
}

/* Pricing Toggle Switch */
.pricing-toggle-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 45px;
}

.pricing-toggle-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  transition: color var(--transition-speed);
}

.pricing-toggle-label.active {
  color: var(--brand-blue);
}

.pricing-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

.pricing-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.pricing-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border-color);
  transition: .4s;
  border-radius: 34px;
}

.pricing-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

input:checked + .pricing-slider {
  background-color: var(--brand-blue);
}

input:checked + .pricing-slider:before {
  transform: translateX(24px);
}

.pricing-discount-badge {
  background: #f59e0b;
  color: #000;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 5px;
}

/* Pricing Card highlights */
.pricing-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pricing-card-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.pricing-card-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-title);
  margin-top: 10px;
}

.pricing-card-price span {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  text-align: left;
}

.pricing-features-list li {
  margin-bottom: 12px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-features-list li::before {
  content: "✓";
  color: var(--brand-blue);
  font-weight: bold;
}

.pricing-card.highlight {
  border-color: var(--brand-blue) !important;
  box-shadow: 0 15px 45px var(--brand-blue-glow) !important;
}

.pricing-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--brand-blue);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  text-transform: uppercase;
}

/* SVG Charts & Gauges Styles */
.svg-chart-path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

.fade-in-reveal.revealed .svg-chart-path {
  animation: drawLine 2.5s ease forwards;
}

.svg-bar-rect {
  transform-origin: bottom;
  transform: scaleY(0);
}

.fade-in-reveal.revealed .svg-bar-rect {
  animation: scaleBar 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

@keyframes scaleBar {
  to { transform: scaleY(1); }
}

.gauge-circle {
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  transform: rotate(-90deg);
  transform-origin: 50px 50px;
}

.fade-in-reveal.revealed .gauge-circle {
  animation: fillGauge 2s ease forwards;
}

@keyframes fillGauge {
  to { stroke-dashoffset: 57; } /* 80% filled */
}

/* Responsiveness adjustments */
@media (max-width: 992px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   SUBTLE BACKGROUND ANIMATIONS, CONTRAST SECTIONS & ACCORDION FAQS
   ========================================================================== */

/* Subtly animated ambient glow circles */
.ambient-glow {
  animation: floatGlow 18s ease-in-out infinite alternate;
}

@keyframes floatGlow {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: var(--glow-opacity-max);
  }
  50% {
    transform: translate(60px, -60px) scale(1.15);
    opacity: var(--glow-opacity-min);
  }
  100% {
    transform: translate(-30px, 30px) scale(0.95);
    opacity: var(--glow-opacity-max);
  }
}

/* Vibrant brand blue section for visual contrast */
.bg-brand-blue {
  background-color: var(--brand-blue) !important;
  color: #ffffff !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.bg-brand-blue h1, .bg-brand-blue h2, .bg-brand-blue h3, .bg-brand-blue h4 {
  color: #ffffff !important;
}

.bg-brand-blue p {
  color: rgba(255, 255, 255, 0.85) !important;
}

.bg-brand-blue .badge {
  background-color: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
}

.bg-brand-blue .glass-card {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
  color: #ffffff !important;
}

.bg-brand-blue .glass-card:hover {
  border-color: rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 15px 40px rgba(255, 255, 255, 0.18) !important;
  transform: translateY(-4px);
}

.bg-brand-blue .step-number-badge {
  background: rgba(255, 255, 255, 0.22) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  color: #ffffff !important;
}

.bg-brand-blue .glass-card p {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* FAQ Accordion */
.faq-accordion {
  max-width: 800px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all var(--transition-speed);
}

.faq-item:hover {
  border-color: var(--brand-blue);
}

.faq-trigger {
  width: 100%;
  padding: 18px 24px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-title);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.faq-icon {
  font-size: 1.25rem;
  transition: transform var(--transition-speed);
  color: var(--brand-blue);
  display: inline-block;
  line-height: 1;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s ease, border-color 0.4s ease;
  padding: 0 24px;
  color: var(--text-main);
  font-size: 0.95rem;
}

.faq-item.active .faq-content {
  max-height: 250px; /* Suficiente para respuestas de FAQs */
  padding: 0 24px 20px 24px;
  border-top: 1px solid var(--border-color);
  margin-top: -1px;
}

/* Tools Integration Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  transition: all var(--transition-speed);
}

.tool-card:hover {
  border-color: var(--brand-blue);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.tool-card svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
  color: var(--brand-blue);
}

.tool-card span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-title);
}

/* Pulsing end-point for SVG line charts */
.pulse-circle {
  transform-origin: 300px 10px;
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.45;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ==========================================================================
   CLEAN FOOTER SYSTEM (Universal Minimalist Footer)
   ========================================================================== */
.clean-footer {
  display: block;
  width: 100%;
  padding: 40px 0;
  border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  background-color: var(--bg-footer, transparent);
  transition: all 0.3s ease;
}

.clean-footer-container {
  max-width: var(--max-w, 1200px);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.clean-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.clean-footer-logo {
  height: 28px;
  width: auto;
  display: block;
}

.clean-footer-tagline {
  font-size: 0.82rem;
  color: var(--text-muted, rgba(255, 255, 255, 0.45));
  font-weight: 400;
  border-left: 1px solid var(--border-color, rgba(255, 255, 255, 0.15));
  padding-left: 12px;
  line-height: 1.2;
}

.clean-footer-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.clean-footer-nav a {
  font-size: 0.85rem;
  color: var(--text-muted, rgba(255, 255, 255, 0.6));
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.clean-footer-nav a:hover {
  color: var(--brand-blue, var(--re-gold, #C9A96E));
}

.clean-footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted, rgba(255, 255, 255, 0.45));
  text-align: right;
}

@media (max-width: 768px) {
  .clean-footer-container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .clean-footer-brand {
    flex-direction: column;
    gap: 8px;
  }
  .clean-footer-tagline {
    border-left: none;
    padding-left: 0;
  }
  .clean-footer-nav {
    justify-content: center;
    gap: 16px;
  }
  .clean-footer-copy {
    text-align: center;
  }
}
