/* DashDev 2.0 - Core Design System & CSS3 Stylesheet
   Pure CSS3 with Custom Properties, Glassmorphism, Responsive Grid & Fluid Typography */

:root {
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Theme Tokens - Light Mode */
  --bg-surface: #f8fafc;
  --bg-surface-elevated: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-card-contrast: #0f172a;
  --text-contrast: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #334155;
  --text-subtle: #64748b;
  --border-subtle: rgba(226, 232, 240, 0.9);
  --border-active: rgba(37, 99, 235, 0.35);
  --primary-accent: #2563eb;
  --primary-glow: rgba(37, 99, 235, 0.25);
  --cyan-glow: #0284c7;
  --cyan-bright: #0ea5e9;
  --emerald-accent: #059669;
  --amber-accent: #d97706;
  --grid-line: rgba(148, 163, 184, 0.15);
  --nav-bg: rgba(255, 255, 255, 0.85);
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.06), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 30px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 40px -8px rgba(15, 23, 42, 0.12);
  --chip-bg: #f1f5f9;
  --chip-border: #e2e8f0;
  --chip-active-bg: #2563eb;
  --chip-active-text: #ffffff;
}

.dark {
  /* Theme Tokens - Dark Mode */
  --bg-surface: #060b13;
  --bg-surface-elevated: #0d1727;
  --bg-card: rgba(13, 23, 39, 0.75);
  --bg-card-hover: rgba(18, 32, 54, 0.92);
  --bg-card-contrast: #03070d;
  --text-contrast: #ffffff;
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-subtle: #94a3b8;
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-active: rgba(56, 189, 248, 0.4);
  --primary-accent: #2563eb;
  --primary-glow: rgba(56, 189, 248, 0.3);
  --cyan-glow: #38bdf8;
  --cyan-bright: #38bdf8;
  --emerald-accent: #10b981;
  --amber-accent: #f59e0b;
  --grid-line: rgba(255, 255, 255, 0.05);
  --nav-bg: rgba(6, 11, 19, 0.85);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 14px 40px -4px rgba(0, 0, 0, 0.6), 0 0 20px -2px rgba(37, 99, 235, 0.2);
  --shadow-lg: 0 24px 50px -10px rgba(0, 0, 0, 0.8), 0 0 30px -4px rgba(56, 189, 248, 0.15);
  --chip-bg: rgba(30, 41, 59, 0.6);
  --chip-border: rgba(255, 255, 255, 0.08);
  --chip-active-bg: #2563eb;
  --chip-active-text: #ffffff;
}

/* CSS Reset & Defaults */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-surface);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

::selection {
  background-color: rgba(37, 99, 235, 0.3);
  color: var(--cyan-glow);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-surface);
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
}
.font-mono {
  font-family: var(--font-mono);
}

a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Technical Grid Pattern */
.tech-grid {
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
}

/* Glassmorphism & Borders */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.glass-panel:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  box-shadow: var(--shadow-md);
}

.glow-border {
  position: relative;
}
.glow-border::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.4), rgba(37, 99, 235, 0.1), rgba(56, 189, 248, 0.25));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Beam gradient */
.beam-gradient {
  background: linear-gradient(90deg, #38bdf8 0%, #2563eb 50%, #0ea5e9 100%);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* Header & Navbar */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  height: 5rem;
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: #0c1b2f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-bright);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}
.brand-logo:hover .brand-icon {
  background: var(--primary-accent);
  color: #ffffff;
  transform: translateY(-1px);
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text-main);
}
.brand-subtitle {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-subtle);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Desktop Navigation Nav-Tabs */
.nav-pills {
  display: none;
  align-items: center;
  gap: 0.25rem;
  background: rgba(148, 163, 184, 0.12);
  padding: 0.375rem;
  border-radius: 1rem;
  border: 1px solid var(--border-subtle);
}
@media (min-width: 900px) {
  .nav-pills { display: flex; }
}

.nav-tab {
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.nav-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.4);
}
.dark .nav-tab:hover {
  background: rgba(255, 255, 255, 0.06);
}

.nav-tab.active {
  background: var(--bg-surface-elevated);
  color: var(--primary-accent);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.dark .nav-tab.active {
  color: var(--cyan-glow);
  background: #1e293b;
}

/* Action Buttons in Header */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.theme-toggle-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.theme-toggle-btn:hover {
  color: var(--primary-accent);
  border-color: var(--primary-accent);
  box-shadow: var(--shadow-sm);
}
.dark .theme-toggle-btn:hover {
  color: var(--cyan-glow);
  border-color: var(--cyan-glow);
}

.cta-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.75rem;
  background: #0c1b2f;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.dark .cta-btn-primary {
  background: var(--primary-accent);
}
.cta-btn-primary:hover {
  background: var(--primary-accent);
  box-shadow: 0 0 25px -4px var(--primary-glow);
  transform: translateY(-1px);
}
.dark .cta-btn-primary:hover {
  background: #1d4ed8;
}

.menu-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}
@media (min-width: 900px) {
  .menu-toggle-btn { display: none; }
}

/* Mobile Slide-Down / Offcanvas Navigation */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 5rem;
  left: 0;
  right: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.25rem;
  z-index: 49;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: var(--shadow-lg);
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-nav-drawer.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  transition: all 0.2s ease;
  width: 100%;
  text-align: left;
}
.mobile-nav-item:hover, .mobile-nav-item.active {
  background: var(--bg-surface-elevated);
  color: var(--primary-accent);
}
.dark .mobile-nav-item.active {
  color: var(--cyan-glow);
}

/* Telemetry Ribbon */
.telemetry-ribbon {
  width: 100%;
  background: rgba(255, 255, 255, 0.65);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.5rem 0;
  font-size: 0.75rem;
  position: relative;
  z-index: 20;
}
.dark .telemetry-ribbon {
  background: rgba(9, 18, 34, 0.75);
}

.telemetry-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.telemetry-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.telemetry-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: var(--primary-accent);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.dark .telemetry-badge {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.25);
  color: var(--cyan-glow);
}

.status-dot-pulse {
  position: relative;
  display: flex;
  width: 0.5rem;
  height: 0.5rem;
}
.status-dot-pulse span:first-child {
  position: absolute;
  display: inline-flex;
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  background-color: #38bdf8;
  opacity: 0.75;
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.status-dot-pulse span:last-child {
  position: relative;
  display: inline-flex;
  border-radius: 9999px;
  width: 0.5rem;
  height: 0.5rem;
  background-color: #0284c7;
}
.dark .status-dot-pulse span:last-child {
  background-color: #38bdf8;
}

@keyframes ping {
  75%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.telemetry-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-left: auto;
}

/* Page View Transition System (Single-Page View Engine) */
.page-view {
  display: none;
  opacity: 0;
  transform: scale(0.99) translateY(8px);
  filter: blur(4px);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-view.active-view {
  display: block;
  opacity: 1;
  transform: scale(1) translateY(0);
  filter: blur(0px);
}

/* ========================================= */
/* VIEW 1: HERO & COCKPIT                    */
/* ========================================= */
.hero-section {
  position: relative;
  min-height: calc(100vh - 8rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 0 5rem 0;
  overflow: hidden;
}

.hero-canvas-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.65;
  pointer-events: none;
  z-index: 1;
}
.dark .hero-canvas-container {
  opacity: 0.85;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: rgba(248, 250, 252, 0.75);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  pointer-events: none;
  z-index: 2;
}
.dark .hero-scrim {
  background: rgba(6, 11, 19, 0.82);
}

.hero-content-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-content-grid {
    grid-template-columns: 7fr 5fr;
    gap: 3rem;
  }
}

.hero-headline {
  font-size: clamp(2.25rem, 5vw, 3.85rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-top: 1rem;
}

.headline-highlight {
  position: relative;
  display: inline-block;
  color: var(--primary-accent);
}
.dark .headline-highlight {
  color: var(--cyan-glow);
}
.headline-curve {
  position: absolute;
  bottom: -0.45rem;
  left: 0;
  width: 100%;
  height: 0.75rem;
  color: rgba(37, 99, 235, 0.4);
}
.dark .headline-curve {
  color: rgba(56, 189, 248, 0.45);
}

.hero-lead {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 1rem;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 42rem;
  margin-top: 0.75rem;
}

/* Callout Box */
.callout-box {
  padding: 1.15rem 1.35rem;
  border-radius: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  max-width: 42rem;
  margin-top: 1.5rem;
}
.callout-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dark .callout-icon {
  background: rgba(56, 189, 248, 0.12);
  color: var(--cyan-glow);
}
.callout-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text-main);
}
.callout-text {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  line-height: 1.5;
}

/* CTAs Button Group */
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-secondary-card {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.35rem;
  border-radius: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.btn-secondary-card:hover {
  border-color: var(--border-active);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

.btn-text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary-accent);
  padding: 0.5rem;
  transition: all 0.2s ease;
}
.dark .btn-text-link {
  color: var(--cyan-glow);
}
.btn-text-link:hover {
  text-decoration: underline;
  transform: translateX(2px);
}

/* Stats Triple Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  max-width: 36rem;
  margin-top: 1.75rem;
}
.stat-card {
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}
.stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stat-number {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-main);
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-subtle);
  font-weight: 600;
  margin-top: 0.25rem;
  display: block;
}

/* Cockpit / Situation Picker Box */
.cockpit-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cockpit-heading {
  font-size: 1.25rem;
  font-weight: 700;
}
.cockpit-subhead {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.chips-container {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.situation-chip {
  padding: 0.875rem 1.15rem;
  border-radius: 0.75rem;
  border: 1px solid var(--chip-border);
  background: var(--chip-bg);
  color: var(--text-main);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
  transition: all 0.2s ease;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.situation-chip:hover {
  border-color: var(--primary-accent);
  transform: translateX(2px);
}
.situation-chip[aria-pressed="true"] {
  background: var(--chip-active-bg);
  color: var(--chip-active-text);
  border-color: var(--chip-active-bg);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

.situation-answer-card {
  border-radius: 1rem;
  background: #0f172a;
  border: 1px solid #1e293b;
  padding: 1.35rem;
  color: #ffffff;
}
.dark .situation-answer-card {
  background: #03070d;
  border-color: rgba(255, 255, 255, 0.08);
}
.answer-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: #ffffff;
}
.answer-text {
  font-size: 0.875rem;
  color: #cbd5e1;
  margin-top: 0.5rem;
  line-height: 1.5;
}

/* ========================================= */
/* VIEW 2: SERVICIOS (BENTO GRID 6 CARDS)    */
/* ========================================= */
.view-container {
  padding: 3.5rem 0 5.5rem 0;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: var(--primary-accent);
  margin-bottom: 0.75rem;
}
.dark .section-tag {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.25);
  color: var(--cyan-glow);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.section-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  max-width: 44rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}
@media (min-width: 640px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .bento-grid { grid-template-columns: repeat(3, 1fr); }
}

.bento-card {
  border-radius: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}
.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-md);
  background: var(--bg-card-hover);
}

.card-icon-wrap {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.15);
  color: var(--primary-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: all 0.2s ease;
}
.dark .card-icon-wrap {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.2);
  color: var(--cyan-glow);
}
.bento-card:hover .card-icon-wrap {
  background: var(--primary-accent);
  color: #ffffff;
  transform: scale(1.05);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}
.bento-card:hover .card-title {
  color: var(--primary-accent);
}
.dark .bento-card:hover .card-title {
  color: var(--cyan-glow);
}

.card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.card-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-accent);
  font-family: var(--font-display);
}
.dark .card-footer {
  color: var(--cyan-glow);
}

/* ========================================= */
/* VIEW 3: METODOLOGÍA (7 PASOS)             */
/* ========================================= */
.timeline-wrapper {
  position: relative;
  margin-top: 3rem;
}
.timeline-beam {
  display: none;
  position: absolute;
  top: 1.75rem;
  left: 2rem;
  right: 2rem;
  height: 3px;
  background: linear-gradient(90deg, #38bdf8 0%, #2563eb 50%, #0ea5e9 100%);
  border-radius: 9999px;
  z-index: 1;
  opacity: 0.8;
}
@media (min-width: 1024px) {
  .timeline-beam { display: block; }
}

.timeline-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .timeline-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .timeline-grid { grid-template-columns: repeat(7, 1fr); }
}

.timeline-step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}
.timeline-step-card:hover {
  border-color: var(--border-active);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.step-badge {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: #0c1b2f;
  color: var(--cyan-bright);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  margin-bottom: 0.75rem;
  transition: all 0.2s ease;
}
.timeline-step-card:hover .step-badge {
  background: var(--primary-accent);
  color: #ffffff;
}

.step-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  transition: color 0.2s ease;
}
.timeline-step-card:hover .step-card-title {
  color: var(--primary-accent);
}
.dark .timeline-step-card:hover .step-card-title {
  color: var(--cyan-glow);
}

.step-card-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.formula-ribbon {
  margin-top: 3.5rem;
  border-radius: 1.25rem;
  background: #0c1b2f;
  color: #ffffff;
  padding: 1.5rem 2rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
@media (min-width: 1024px) {
  .formula-ribbon {
    flex-direction: row;
  }
}
.formula-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.formula-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: rgba(37, 99, 235, 0.3);
  color: var(--cyan-bright);
  display: flex;
  align-items: center;
  justify-content: center;
}
.formula-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
.formula-tag {
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}
.formula-plus {
  color: var(--cyan-bright);
  font-weight: 700;
}
.formula-result {
  padding: 0.375rem 0.875rem;
  border-radius: 0.5rem;
  background: var(--primary-accent);
  color: #ffffff;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

/* ========================================= */
/* VIEW 4: PROYECTOS & ESTIMADOR             */
/* ========================================= */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}
@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: 7fr 5fr;
  }
}

.featured-project-card {
  border-radius: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.project-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--amber-accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
}

.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.tech-pill {
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-main);
}

.project-terminal-card {
  margin-top: 1.5rem;
  border-radius: 0.75rem;
  background: #090e17;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem;
  color: #cbd5e1;
  font-size: 0.875rem;
}

/* Secondary projects column */
.secondary-projects-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mini-project-card {
  border-radius: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: all 0.2s ease;
}
.mini-project-card:hover {
  border-color: var(--border-active);
  transform: translateY(-2px);
}

/* Interactive Project Estimator Widget */
.estimator-card {
  margin-top: 3.5rem;
  border-radius: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
}

.estimator-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}
@media (min-width: 900px) {
  .estimator-grid { grid-template-columns: 3fr 2fr; }
}

.estimator-options {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.estimator-select-group label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.estimator-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.5rem;
}

.estimator-chip-btn {
  padding: 0.65rem 0.85rem;
  border-radius: 0.65rem;
  border: 1px solid var(--chip-border);
  background: var(--chip-bg);
  color: var(--text-main);
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: center;
  transition: all 0.2s ease;
}
.estimator-chip-btn.active {
  background: var(--primary-accent);
  color: #ffffff;
  border-color: var(--primary-accent);
  font-weight: 700;
}

.estimator-summary-box {
  background: #090e17;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.25rem;
  padding: 1.5rem;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.summary-metric {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
}

/* ========================================= */
/* VIEW 5: FILOSOFÍA (4 PILARES & DUALIDAD)  */
/* ========================================= */
.manifesto-banner {
  border-radius: 1.75rem;
  background: #091120;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 2.5rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  margin-bottom: 3.5rem;
}
@media (min-width: 768px) {
  .manifesto-banner { padding: 3.5rem 2.5rem; }
}

.manifesto-quote {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  max-width: 50rem;
  margin: 1rem auto 0 auto;
}

.manifesto-body {
  font-size: 1.1rem;
  color: #94a3b8;
  max-width: 44rem;
  margin: 1.25rem auto 0 auto;
  line-height: 1.6;
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
  text-align: left;
}
@media (min-width: 640px) {
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .pillars-grid { grid-template-columns: repeat(4, 1fr); }
}

.pillar-card {
  border-radius: 1.25rem;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pillar-icon-box {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--cyan-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.duality-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}
@media (min-width: 768px) {
  .duality-grid { grid-template-columns: 1fr 1fr; }
}

.duality-card {
  border-radius: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.duality-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  margin-top: 0.75rem;
}

/* ========================================= */
/* VIEW 6: CONTACTO DIRECTO                  */
/* ========================================= */
.contact-banner {
  border-radius: 1.75rem;
  background: #081224;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 2.5rem 1.5rem;
  box-shadow: var(--shadow-lg);
}
@media (min-width: 768px) {
  .contact-banner { padding: 3.5rem; }
}

.contact-channels-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-whatsapp-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.75rem;
  border-radius: 0.875rem;
  background: #10b981;
  color: #022c22;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.btn-whatsapp-large:hover {
  background: #34d399;
  transform: translateY(-1px);
  box-shadow: 0 0 25px -4px rgba(16, 185, 129, 0.4);
}

.contact-pill-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.25rem;
  border-radius: 0.875rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

/* Copy Action Button */
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  transition: all 0.2s ease;
}
.copy-btn:hover {
  background: var(--cyan-bright);
  color: #000000;
}

/* Global Footer */
.site-footer {
  width: 100%;
  background: var(--bg-surface-elevated);
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 3.5rem 0 2rem 0;
  margin-top: auto;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

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

.footer-bottom-bar {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-subtle);
}
@media (min-width: 640px) {
  .footer-bottom-bar { flex-direction: row; }
}

/* Floating Toast Notification */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast-msg {
  pointer-events: auto;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  background: #0f172a;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  animation: toastIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Accessibility Focus Outline */
:focus-visible {
  outline: 2px solid var(--cyan-bright);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
