@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   CASCADE LAYERS DEFINITION
   ========================================================================== */
@layer reset, base, layout, components, utilities;

@layer reset {
  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
  }

  img, picture, svg, video {
    display: block;
    max-width: 100%;
    height: auto;
  }

  input, button, textarea, select {
    font: inherit;
    color: inherit;
    background: transparent;
    border: none;
  }

  a {
    text-decoration: none;
    color: inherit;
  }

  ul, ol {
    list-style: none;
  }
}

@layer base {
  :root {
    /* Color Palette: Dark Industrial Tech */
    --color-bg-base: #070a13;
    --color-bg-surface: #0e1424;
    --color-bg-surface-glass: rgba(14, 20, 36, 0.7);
    --color-bg-surface-glass-hover: rgba(22, 31, 56, 0.85);
    
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-hover: rgba(255, 255, 255, 0.16);
    
    --color-text-primary: #f3f4f6;
    --color-text-secondary: #9ca3af;
    --color-text-muted: #6b7280;
    
    /* Brand Gradients (Mining / Cobre-Oro & Tech / Cian-Azul) */
    --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-cyan: linear-gradient(135deg, #06b6d4 0%, #2563eb 100%);
    --gradient-dark: linear-gradient(180deg, #090d16 0%, #06080d 100%);
    --gradient-glow-gold: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    --gradient-glow-cyan: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
    
    /* Specific Colors */
    --color-gold: #f59e0b;
    --color-cyan: #06b6d4;
    --color-red: #ef4444;
    --color-green: #10b981;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout Details */
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Container heights and scroll paddings */
    scroll-padding-top: 80px;
    color-scheme: dark;
  }

  html {
    scroll-behavior: smooth;
  }

  body {
    background-color: var(--color-bg-base);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
  }

  h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
  }
}

@layer layout {
  .container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 24px;
  }

  .section {
    padding-block: clamp(60px, 10vw, 120px);
    position: relative;
    overflow: hidden;
  }

  .grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
  }

  @media (min-width: 768px) {
    .grid-2 {
      grid-template-columns: repeat(2, 1fr);
    }
  }
}

@layer components {
  /* ==========================================================================
     NAVBAR STYLES
     ========================================================================== */
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
    border-bottom: 1px solid transparent;
    transition: var(--transition-smooth);
    padding-block: 20px;
  }

  .navbar.scrolled {
    background-color: var(--color-bg-surface-glass);
    backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--color-border);
    padding-block: 12px;
  }

  .navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .nav-logo img {
    height: 56px;
    width: auto;
    object-fit: contain;
  }

  .nav-menu {
    display: none;
    gap: 32px;
    align-items: center;
  }

  @media (min-width: 1024px) {
    .nav-menu {
      display: flex;
    }
  }

  .nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    transition: var(--transition-smooth);
    position: relative;
    padding-block: 8px;
  }

  .nav-link:hover, .nav-link.active {
    color: var(--color-text-primary);
  }

  .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
  }

  .nav-link:hover::after, .nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
  }

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  /* Hamburguer Menu for Mobile */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1100;
    padding: 8px;
  }

  .menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text-primary);
    transition: var(--transition-smooth);
  }

  .menu-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  @media (min-width: 1024px) {
    .menu-toggle {
      display: none;
    }
  }

  /* Mobile Nav Menu Overlay */
  .mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--color-bg-surface);
    border-left: 1px solid var(--color-border);
    padding: 100px 32px 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    z-index: 999;
    transition: var(--transition-smooth);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  }

  .mobile-menu.open {
    right: 0;
  }

  .mobile-menu .nav-link {
    font-size: 1.2rem;
  }

  .mobile-menu .nav-actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: auto;
  }

  /* ==========================================================================
     BUTTONS & CTAs
     ========================================================================== */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
    cursor: pointer;
    text-align: center;
    position: relative;
    overflow: hidden;
  }

  /* Primary Button (Mining / Gold) */
  .btn-primary {
    background: var(--gradient-gold);
    color: #000;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.25);
  }

  .btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    background: linear-gradient(135deg, #fbbf24 0%, #ea580c 100%);
  }

  /* Secondary Button (Tech / Cyan) */
  .btn-secondary {
    background: transparent;
    color: var(--color-cyan);
    border: 1px solid var(--color-cyan);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.1);
  }

  .btn-secondary:hover:not(:disabled) {
    transform: translateY(-2px);
    background: rgba(6, 182, 212, 0.08);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.25);
  }

  /* Ghost Button */
  .btn-ghost {
    background: rgba(255, 255, 255, 0.03);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
  }

  .btn-ghost:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-border-hover);
  }

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

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

  /* WhatsApp Floating Button */
  .whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #25d366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    z-index: 998;
    transition: var(--transition-bounce);
  }

  .whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
  }

  /* ==========================================================================
     HERO SECTION
     ========================================================================== */
  .hero-section {
    min-height: 100vh;
    padding-top: 120px;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--gradient-dark);
  }

  .hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
  }

  .hero-container {
    position: relative;
    z-index: 2;
  }

  .hero-content {
    max-width: 700px;
  }

  .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: var(--color-gold);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 24px;
    animation: fadeIn 0.8s ease-out;
  }

  .hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -0.03em;
  }

  .text-gradient-gold {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .text-gradient-cyan {
    background: var(--gradient-cyan);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-text-secondary);
    margin-bottom: 36px;
    text-wrap: pretty;
  }

  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
  }

  .hero-visual {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin-inline: auto;
  }

  .hero-visual::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: var(--gradient-glow-cyan);
    z-index: -1;
    filter: blur(40px);
  }

  /* Mockup Card in Hero */
  .hero-mockup {
    background: var(--color-bg-surface-glass);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
  }

  .hero-mockup:hover {
    transform: translateY(-5px);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 25px 50px rgba(6, 182, 212, 0.15);
  }

  /* ==========================================================================
     CHALLENGE / PROBLEM SECTION
     ========================================================================== */
  .challenge-card {
    background: var(--color-bg-surface-glass);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: clamp(30px, 5vw, 50px);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
  }

  .challenge-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: var(--gradient-glow-gold);
    z-index: -1;
    filter: blur(60px);
  }

  .section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
  }

  .section-title span {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .challenge-text p {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    text-wrap: pretty;
  }

  .challenge-text p:last-child {
    margin-bottom: 0;
  }

  .challenge-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .challenge-icon-box {
    background: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 50%;
    width: clamp(150px, 20vw, 220px);
    height: clamp(150px, 20vw, 220px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: pulseGlow 4s infinite alternate;
  }

  .challenge-icon-box svg {
    width: 80px;
    height: 80px;
    color: var(--color-gold);
  }

  /* ==========================================================================
     SERVICES SECTION (TWO PILLARS)
     ========================================================================== */
  .services-section {
    background: linear-gradient(180deg, var(--color-bg-base) 0%, #0a0e1b 100%);
  }

  .services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 48px;
  }

  @media (min-width: 992px) {
    .services-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  /* Service Card */
  .service-card {
    background: var(--color-bg-surface-glass);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
  }

  .service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--card-accent-gradient);
    opacity: 0.6;
    transition: var(--transition-smooth);
  }

  /* Different accents for both pillars */
  .service-card.pillar-consulting {
    --card-accent-gradient: var(--gradient-gold);
    --card-glow-gradient: var(--gradient-glow-gold);
  }

  .service-card.pillar-solutions {
    --card-accent-gradient: var(--gradient-cyan);
    --card-glow-gradient: var(--gradient-glow-cyan);
  }

  .service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.15);
    background-color: var(--color-bg-surface-glass-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  }

  .service-card:hover::before {
    height: 6px;
    opacity: 1;
  }

  .service-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: var(--border-radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    color: var(--card-color, var(--color-gold));
    transition: var(--transition-smooth);
  }

  .service-card.pillar-consulting .service-icon-wrapper {
    --card-color: var(--color-gold);
  }
  .service-card.pillar-solutions .service-icon-wrapper {
    --card-color: var(--color-cyan);
  }

  .service-card:hover .service-icon-wrapper {
    background: var(--card-accent-gradient);
    color: #000;
    transform: scale(1.05) rotate(5deg);
    border-color: transparent;
  }

  .service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    font-weight: 700;
  }

  .service-card-desc {
    color: var(--color-text-secondary);
    margin-bottom: 28px;
    font-size: 1.05rem;
    text-wrap: pretty;
  }

  .service-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 36px;
  }

  .service-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
  }

  .service-item svg {
    width: 20px;
    height: 20px;
    color: var(--card-color, var(--color-gold));
    flex-shrink: 0;
    margin-top: 3px;
  }

  .service-item span {
    font-size: 0.95rem;
    color: var(--color-text-primary);
  }

  .service-card .btn {
    margin-top: auto;
    width: 100%;
  }

  /* ==========================================================================
     IMPACT SECTION
     ========================================================================== */
  .impact-section {
    background: var(--color-bg-base);
    position: relative;
  }

  .impact-section::before {
    content: '';
    position: absolute;
    bottom: -150px;
    left: 5%;
    width: 350px;
    height: 350px;
    background: var(--gradient-glow-cyan);
    z-index: 1;
    filter: blur(80px);
  }

  .impact-container {
    position: relative;
    z-index: 2;
  }

  .impact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 48px;
  }

  @media (min-width: 640px) {
    .impact-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  .impact-card {
    background: var(--color-bg-surface-glass);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 36px 24px;
    text-align: center;
    backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
  }

  .impact-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    background-color: var(--color-bg-surface-glass-hover);
  }

  .impact-number {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 8px;
    font-family: var(--font-heading);
    letter-spacing: -0.03em;
  }

  .impact-card:nth-child(1) .impact-number,
  .impact-card:nth-child(3) .impact-number {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .impact-card:nth-child(2) .impact-number {
    background: var(--gradient-cyan);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .impact-desc {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  /* ==========================================================================
     METHOD / PROCESS SECTION
     ========================================================================== */
  .timeline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 50px;
    position: relative;
  }

  @media (min-width: 768px) {
    .timeline {
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
    }
  }

  .timeline-step {
    background: var(--color-bg-surface-glass);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 32px;
    position: relative;
    backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
  }

  .timeline-step:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background-color: var(--color-bg-surface-glass-hover);
  }

  .step-number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 16px;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.8;
  }

  .timeline-step h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
  }

  .timeline-step p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    text-wrap: pretty;
  }

  /* ==========================================================================
     FUNNEL / CONVERSION SECTION (THE CORE)
     ========================================================================== */
  .funnel-section {
    background: linear-gradient(180deg, #0a0e1b 0%, var(--color-bg-base) 100%);
    position: relative;
  }

  .funnel-container {
    max-width: 1000px;
  }

  .funnel-box {
    background: var(--color-bg-surface-glass);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(16px);
    overflow: hidden;
    margin-top: 40px;
  }

  /* Tabs Navigation */
  .funnel-tabs {
    display: flex;
    border-bottom: 1px solid var(--color-border);
    background: rgba(0, 0, 0, 0.2);
  }

  .funnel-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 16px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
    border-bottom: 3px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  @media (max-width: 480px) {
    .funnel-tab {
      font-size: 0.8rem;
      padding: 16px 8px;
    }
  }

  .funnel-tab svg {
    width: 20px;
    height: 20px;
  }

  .funnel-tab.active {
    color: var(--tab-color, var(--color-gold));
    border-bottom-color: var(--tab-color, var(--color-gold));
    background: rgba(255, 255, 255, 0.02);
  }

  .funnel-tab[data-tab="booking"] {
    --tab-color: var(--color-gold);
  }

  .funnel-tab[data-tab="demo"] {
    --tab-color: var(--color-cyan);
  }

  /* Tabs Content Pane */
  .funnel-pane {
    display: none;
    padding: clamp(24px, 5vw, 48px);
    animation: fadeIn 0.4s ease-out;
  }

  .funnel-pane.active {
    display: block;
  }

  /* Forms Global Styles */
  .form-group {
    margin-bottom: 20px;
  }

  .form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
  }

  .form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    padding: 12px 16px;
    color: var(--color-text-primary);
    transition: var(--transition-smooth);
    outline: none;
  }

  .form-control:focus {
    border-color: var(--form-accent-color, var(--color-gold));
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.1);
  }

  .funnel-pane[data-tab="demo"] .form-control:focus {
    --form-accent-color: var(--color-cyan);
  }

  .form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  @media (min-width: 640px) {
    .form-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  /* Custom dropdown styling */
  select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
  }

  /* Native validation outline */
  .form-control:user-invalid {
    border-color: var(--color-red);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.15);
  }

  /* TAB 1: CALENDAR BOOKING LAYOUT */
  .booking-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
  }

  @media (min-width: 768px) {
    .booking-layout {
      grid-template-columns: 1.2fr 0.8fr;
    }
  }

  /* Calendar Widget */
  .calendar-widget {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 20px;
  }

  .calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
  }

  .calendar-month-title {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: capitalize;
  }

  .calendar-nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
  }

  .calendar-nav-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--color-border-hover);
  }

  .calendar-nav-btn svg {
    width: 16px;
    height: 16px;
  }

  .calendar-grid-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
  }

  .calendar-grid-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    text-align: center;
  }

  .calendar-day-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
  }

  .calendar-day-cell:not(.empty):not(.disabled):hover {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-gold);
    border-color: rgba(245, 158, 11, 0.3);
  }

  .calendar-day-cell.selected {
    background: var(--gradient-gold) !important;
    color: #000 !important;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
  }

  .calendar-day-cell.disabled {
    color: var(--color-text-muted);
    cursor: not-allowed;
    opacity: 0.45;
  }

  .calendar-day-cell.empty {
    cursor: default;
    background: transparent;
    border: none;
  }

  /* Time Slots Widget */
  .slots-widget {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .slots-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .slots-title svg {
    width: 18px;
    height: 18px;
  }

  .slots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 24px;
  }

  .slot-btn {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-smooth);
  }

  .slot-btn:hover:not(.disabled) {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--color-gold);
    color: var(--color-gold);
  }

  .slot-btn.selected {
    background: var(--gradient-gold) !important;
    color: #000 !important;
    border-color: transparent !important;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.2);
  }

  .slot-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: transparent;
  }

  /* Booking form container in modal or toggle */
  .booking-form-wrapper {
    border-top: 1px solid var(--color-border);
    padding-top: 24px;
    margin-top: 24px;
    animation: slideDown 0.4s ease-out;
  }

  .selected-summary {
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: var(--border-radius-sm);
    padding: 12px 16px;
    font-size: 0.9rem;
    color: var(--color-gold);
    font-weight: 600;
    margin-bottom: 20px;
  }

  /* TAB 2: DEMO PORTAL LAYOUT */
  .demo-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Interactive Software Demo Mockup */
  .demo-live-dashboard {
    background: #090e18;
    border: 1px solid rgba(6, 182, 212, 0.25);
    border-radius: var(--border-radius-md);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 500px;
    position: relative;
  }

  .demo-dashboard-header {
    background: #0d1424;
    border-bottom: 1px solid var(--color-border);
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .dashboard-brand {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .dashboard-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-green);
    animation: flash 2s infinite;
  }

  .dashboard-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--color-text-primary);
  }

  .dashboard-system-select {
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    color: var(--color-cyan);
    cursor: pointer;
  }

  .demo-dashboard-body {
    display: flex;
    flex: 1;
    min-height: 400px;
  }

  @media (max-width: 767px) {
    .demo-dashboard-body {
      flex-direction: column;
    }
  }

  /* Left nav in demo */
  .demo-dashboard-nav {
    width: 200px;
    background: #0c111e;
    border-right: 1px solid var(--color-border);
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  @media (max-width: 767px) {
    .demo-dashboard-nav {
      width: 100%;
      flex-direction: row;
      overflow-x: auto;
      border-right: none;
      border-bottom: 1px solid var(--color-border);
      padding: 10px;
    }
  }

  .demo-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
  }

  .demo-nav-item:hover, .demo-nav-item.active {
    color: var(--color-cyan);
    background: rgba(6, 182, 212, 0.06);
  }

  .demo-nav-item svg {
    width: 16px;
    height: 16px;
  }

  /* Main content in demo */
  .demo-dashboard-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    background: #090d16;
  }

  /* Metrics cards grid inside demo */
  .demo-metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  @media (min-width: 1024px) {
    .demo-metrics-grid {
      grid-template-columns: repeat(4, 1fr);
    }
  }

  .demo-metric-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    padding: 14px;
  }

  .demo-metric-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
  }

  .demo-metric-value {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-text-primary);
  }

  .demo-metric-trend {
    font-size: 0.65rem;
    font-weight: 700;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .demo-metric-trend.up { color: var(--color-green); }
  .demo-metric-trend.down { color: var(--color-red); }

  /* Demo interactive interface: charts and alerts split */
  .demo-interactive-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  @media (min-width: 992px) {
    .demo-interactive-split {
      grid-template-columns: 1.2fr 0.8fr;
    }
  }

  /* Chart panel */
  .demo-chart-panel {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    padding: 16px;
    display: flex;
    flex-direction: column;
    min-height: 220px;
  }

  .demo-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
  }

  .demo-panel-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text-secondary);
  }

  .demo-chart-container {
    flex: 1;
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 120px;
    padding-inline: 8px;
    border-bottom: 1px solid var(--color-border);
    border-left: 1px solid var(--color-border);
    margin-bottom: 8px;
  }

  /* Animated chart bars simulating data flow */
  .demo-chart-bar {
    flex: 1;
    background: var(--gradient-cyan);
    border-radius: 2px 2px 0 0;
    transition: height 0.8s ease;
    position: relative;
  }

  .demo-chart-bar::after {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #00f2fe;
    border-radius: 50%;
    box-shadow: 0 0 10px #00f2fe;
    opacity: 0;
    transition: var(--transition-smooth);
  }

  .demo-chart-bar:hover::after {
    opacity: 1;
  }

  /* Fleet Status interactive panel */
  .demo-fleet-panel {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    padding: 16px;
    display: flex;
    flex-direction: column;
  }

  .demo-fleet-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    max-height: 160px;
  }

  .demo-fleet-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-smooth);
  }

  .demo-fleet-item:hover, .demo-fleet-item.active {
    background: rgba(6, 182, 212, 0.08);
    border-color: rgba(6, 182, 212, 0.3);
  }

  .fleet-name {
    font-size: 0.8rem;
    font-weight: 700;
  }

  .fleet-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 100px;
  }

  .fleet-badge.healthy {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-green);
  }

  .fleet-badge.alert {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-red);
    animation: flash 1.5s infinite;
  }

  /* Fleet detail subpanel */
  .fleet-detail-box {
    margin-top: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    border-left: 3px solid var(--color-cyan);
    font-size: 0.75rem;
    animation: slideDown 0.3s ease-out;
  }

  /* Booking Success & Demo Success cards styling */
  .success-card {
    text-align: center;
    padding: 40px 20px;
    animation: scaleUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }

  .success-icon-box {
    width: 72px;
    height: 72px;
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid var(--color-green);
    color: var(--color-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    position: relative;
  }

  .success-icon-box svg {
    width: 36px;
    height: 36px;
  }

  .success-card h3 {
    font-size: 1.75rem;
    margin-bottom: 16px;
    color: var(--color-text-primary);
  }

  .success-card p {
    color: var(--color-text-secondary);
    margin-bottom: 30px;
    max-width: 480px;
    margin-inline: auto;
  }

  /* ==========================================================================
     FOOTER SECTION
     ========================================================================== */
  .footer {
    background: #04070d;
    border-top: 1px solid var(--color-border);
    padding-block: 60px 30px;
    position: relative;
    z-index: 2;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
  }

  @media (min-width: 768px) {
    .footer-grid {
      grid-template-columns: 2fr 1fr;
    }
  }

  .footer-brand {
    max-width: 400px;
  }

  .footer-brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
  }

  .footer-brand-logo img {
    height: 56px;
    width: auto;
  }

  .footer-brand p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
    text-wrap: pretty;
  }

  .footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    transition: var(--transition-smooth);
  }

  .footer-contact-item:hover {
    color: var(--color-gold);
  }

  .footer-contact-item svg {
    width: 18px;
    height: 18px;
    color: var(--color-gold);
  }

  .footer-consultant {
    border-left: 2px solid var(--color-gold);
    padding-left: 20px;
  }

  .footer-consultant-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
  }

  .footer-consultant-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text-primary);
  }

  .footer-consultant-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
  }

  .footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--color-text-muted);
  }

  @media (min-width: 768px) {
    .footer-bottom {
      flex-direction: row;
    }
  }

  .footer-legal-links {
    display: flex;
    gap: 20px;
  }

  .footer-legal-link:hover {
    color: var(--color-text-secondary);
  }
}

@layer utilities {
  /* Text Align */
  .text-center { text-align: center; }
  .text-left { text-align: left; }
  .text-right { text-align: right; }

  /* Spacings */
  .mt-12 { margin-top: 12px; }
  .mt-24 { margin-top: 24px; }
  .mb-12 { margin-bottom: 12px; }
  .mb-24 { margin-bottom: 24px; }
  .py-40 { padding-block: 40px; }

  /* Widths */
  .w-full { width: 100%; }

  /* Focus rings */
  :focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 4px;
  }

  .funnel-pane[data-tab="demo"] :focus-visible {
    outline-color: var(--color-cyan);
  }

  /* Visibility and layout display adjustments */
  .hidden { display: none !important; }
}

@layer components {
  /* ==========================================================================
     FOUNDERS SECTION
     ========================================================================== */
  .founders-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 48px;
  }

  @media (min-width: 768px) {
    .founders-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 32px;
    }
  }

  @media (min-width: 1024px) {
    .founders-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  .founder-card {
    background: var(--color-bg-surface-glass);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: 40px 32px;
    backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
  }

  .founder-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--founder-accent-gradient);
    opacity: 0.6;
    transition: var(--transition-smooth);
  }

  .founder-card.founder-alexander {
    --founder-accent-gradient: var(--gradient-gold);
    --founder-color: var(--color-gold);
  }

  .founder-card.founder-erick {
    --founder-accent-gradient: var(--gradient-cyan);
    --founder-color: var(--color-cyan);
  }

  .founder-card.founder-miguel {
    --founder-accent-gradient: var(--gradient-gold);
    --founder-color: var(--color-gold);
  }

  .founder-card.founder-miguel .founder-img-wrapper img {
    object-position: 47.5% 25%;
  }

  .founder-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.15);
    background-color: var(--color-bg-surface-glass-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  }

  .founder-card:hover::before {
    height: 6px;
    opacity: 1;
  }

  .founder-img-wrapper {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--color-border);
    margin-bottom: 24px;
    transition: var(--transition-smooth);
    position: relative;
    background: #0d1220;
  }

  .founder-card:hover .founder-img-wrapper {
    border-color: var(--founder-color);
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
  }

  .founder-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
    transition: var(--transition-smooth);
  }

  .founder-card:hover .founder-img-wrapper img {
    filter: grayscale(0);
  }

  .founder-card h3 {
    font-size: 1.5rem;
    margin-bottom: 6px;
    font-weight: 700;
  }

  .founder-role {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--founder-color);
    margin-bottom: 16px;
  }

  .founder-bio {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    text-wrap: pretty;
  }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes flash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
  }
  100% {
    box-shadow: 0 0 35px rgba(245, 158, 11, 0.25);
    border-color: rgba(245, 158, 11, 0.45);
  }
}
