/* ============================================
   ThinkFlow — Dark Night Design System
   ============================================ */

/* --- Tokens --- */
:root {
  /* Colors */
  --color-black: #0a0a0a;
  --color-night: #0d1f3c;
  --color-night-dark: #0a0a2e;
  --color-accent: #2563EB;
  --color-white: #f0f4f8;
  --color-muted: rgba(240, 244, 248, 0.8); /* Increased from 0.6 */
  --color-glass: rgba(255, 255, 255, 0.03);
  --color-glass-border: rgba(255, 255, 255, 0.1);
  --color-glass-hover: rgba(255, 255, 255, 0.07);

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --size-xs:   0.75rem;
  --size-sm:   0.875rem;
  --size-base: 1rem;
  --size-lg:   1.125rem;
  --size-xl:   1.25rem;
  --size-2xl:  1.5rem;
  --size-3xl:  1.875rem;
  --size-4xl:  2.25rem;
  --size-5xl:  3rem;
  --size-6xl:  3.75rem;

  /* Spacing */
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-10:  2.5rem;
  --space-12:  3rem;
  --space-16:  4rem;
  --space-20:  5rem;
  --space-24:  6rem;

  /* Layout */
  --container: 1120px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  --header-height: 72px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 300ms var(--ease);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font);
  font-size: var(--size-base);
  line-height: 1.6;
  color: var(--color-white);
  background: var(--color-black);
  position: relative;
  overflow-x: hidden;
}

/* Noise Texture Overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.02;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  z-index: 50;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ============================================
   Glassmorphism Utilities
   ============================================ */
.glass {
  background: var(--color-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-glass-border);
  transition: var(--transition);
}

.problem-item,
.step-card {
  transition: all 0.25s ease;
}

.problem-item:hover,
.step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.glass-hover:hover {
  background: var(--color-glass-hover);
  border-color: rgba(37, 99, 235, 0.4);
}

/* ============================================
   Layout
   ============================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-6);
  position: relative;
}

/* Línea estructural sutil vertical en el medio */
.container::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.02);
  pointer-events: none;
}

.section {
  padding: 6rem 0;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* Alternancia de secciones para dar ritmo */
.section:nth-child(even) {
  background: rgba(255, 255, 255, 0.015);
}

.section--dark {
  padding: 7rem 0;
  background: var(--color-black);
}

.section--cta {
  padding: 8rem 0;
  background: var(--color-accent);
}

/* ============================================
   Typography
   ============================================ */
.section-header {
  max-width: 720px;
  margin-bottom: var(--space-16);
}

.section-title {
  font-size: var(--size-4xl);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-white);
  margin-bottom: var(--space-6);
}

.section-lead {
  font-size: var(--size-lg);
  color: var(--color-muted);
  line-height: 1.7;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: linear-gradient(
    to bottom,
    rgba(2, 6, 23, 0.8),
    rgba(2, 6, 23, 0.4)
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(2, 6, 23, 0.95);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-6);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 700;
  font-size: var(--size-xl);
  color: var(--color-white);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav-link {
  font-size: var(--size-sm);
  font-weight: 500;
  color: var(--color-muted);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link--cta {
  background: var(--color-accent) !important;
  color: var(--color-white) !important;
  font-weight: 600;
  margin-left: var(--space-4);
}

.nav-toggle span {
  background: var(--color-white) !important;
}

/* Dropdown Styles */
.nav-item-dropdown {
  position: relative;
}

.dropdown-icon {
  font-size: 0.8em;
  margin-left: 2px;
  vertical-align: middle;
  opacity: 0.6;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 240px;
  padding: var(--space-2);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.3s var(--ease);
  z-index: 1000;
  /* Fondo más sólido y desenfoque más fuerte para contraste */
  background: rgba(8, 12, 24, 0.95) !important;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* El "puente" invisible para evitar que se cierre al mover el mouse */
.nav-item-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 20px;
  background: transparent;
  display: block;
}

.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown.active .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-link {
  font-size: var(--size-sm);
  padding: var(--space-3) var(--space-4);
  color: var(--color-muted);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: block;
}

.dropdown-link:hover, .dropdown-link.active {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-white);
}

@media (max-width: 768px) {
  .dropdown-menu {
    position: static;
    width: 100%;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    padding-left: var(--space-4);
    display: none;
  }
  
  .nav-item-dropdown.active .dropdown-menu {
    display: flex;
  }
}

/* ============================================
   Hero
   ============================================ */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 7rem;
  padding-bottom: 10rem;
  background: #020617;
  position: relative;
  overflow: hidden;
}

.hero-title {
  max-width: 720px;
  margin: 0 auto var(--space-8);
}

.hero-subtitle {
  max-width: 580px;
  margin: 0 auto var(--space-10);
  opacity: 0.85;
}

#hero-canvas {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.4;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

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

.hero-content {
  max-width: 840px;
  position: relative;
  z-index: 10;
}

.hero-badge {
  display: inline-block;
  font-size: var(--size-sm);
  font-weight: 600;
  color: var(--color-accent);
  background: rgba(37, 99, 235, 0.1);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-8);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--color-white);
  margin-bottom: var(--space-8);
}

.text-accent {
  color: var(--color-accent);
}

.hero-subtitle {
  font-size: var(--size-xl);
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: var(--space-10);
  max-width: 680px;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}

.btn {
  padding: 16px 32px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--size-base);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 10px 30px -5px rgba(37, 99, 235, 0.4);
  transition: all 0.3s var(--ease);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.6);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.hero-tagline {
  font-size: var(--size-sm);
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* ============================================
   Section: Problem Cards (Glassmorphism)
   ============================================ */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-6);
}

.problem-item {
  padding: var(--space-10);
  border-radius: var(--radius-xl);
  height: 100%;
}

.problem-icon {
  font-size: 2rem;
  color: var(--color-accent);
  margin-bottom: var(--space-6);
  display: block;
}

.problem-item h3 {
  font-size: var(--size-xl);
  margin-bottom: var(--space-4);
  color: var(--color-white);
}

.problem-item p {
  color: var(--color-muted);
  font-size: var(--size-sm);
}

.problem-conclusion {
  margin-top: var(--space-16);
  padding: var(--space-10);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(37,99,235,0.1), transparent);
  border-left: 2px solid var(--color-accent);
}

/* ============================================
   Section: Steps (Cómo funciona)
   ============================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

@media (max-width: 900px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

.step-card {
  padding: var(--space-10);
  border-radius: var(--radius-xl);
  background: #0d121f;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.step-number {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 3rem;
  font-weight: 900;
  color: rgba(37, 99, 235, 0.12); /* Estilo editorial fondo */
  line-height: 1;
  pointer-events: none;
}

.step-title {
  font-size: var(--size-2xl);
  margin-bottom: var(--space-4);
  color: var(--color-accent);
}

/* ============================================
   Section: Pricing Services
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-8);
}

.service-card {
  padding: var(--space-10);
  border-radius: var(--radius-xl);
  background: #0d121f;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  min-height: 460px; /* Adjusted from 500 */
}

.pricing-description {
  color: var(--color-muted);
  font-size: var(--size-sm);
  margin-bottom: var(--space-6);
}

.pricing-btn {
  width: 100%;
  justify-content: center;
}

.service-card--featured {
  border-color: var(--color-accent);
  box-shadow: 0 0 40px rgba(37, 99, 235, 0.1);
  transform: scale(1.02);
}

.service-footer {
  margin-top: auto; /* Push the whole footer block down together */
  display: flex;
  flex-direction: column;
}

.service-card .btn {
  width: 100%;
  justify-content: center;
}

/* Ensure secondary buttons are visible on dark cards */
.service-card .btn-outline, 
.service-card .btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.05);
}

.service-card .btn-outline:hover, 
.service-card .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-accent);
}

.service-badge {
  background: var(--color-accent);
  color: var(--color-black);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: var(--size-xs);
  font-weight: 700;
  text-transform: uppercase;
  align-self: flex-start;
  margin-bottom: var(--space-6);
}

.service-level {
  color: var(--color-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-2);
}

.service-name {
  font-size: var(--size-3xl);
  margin-bottom: var(--space-8);
}

.service-price {
  margin-bottom: var(--space-8);
}

.price-amount {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--color-white) !important;
}

.price-tax {
  color: var(--color-muted);
}

.service-features {
  margin-bottom: var(--space-8);
}

.service-features li {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--color-muted);
}

.service-features li::before {
  content: "→";
  color: var(--color-accent);
}

/* ============================================
   Section: Principles (Minimal SVG icons placeholder)
   ============================================ */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-12);
}

.principle-card {
  text-align: center;
}

.principles-conclusion {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.principle-keyword {
  font-size: var(--size-3xl);
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

/* ============================================
   Section: About Me (Glass Card)
   ============================================ */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--space-16);
  align-items: center;
}

.founder-card {
  padding: var(--space-8);
  border-radius: var(--radius-xl);
}

.founder-avatar {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-6);
  border: 1px solid var(--color-glass-border);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--color-black);
  padding: var(--space-12) 0; /* Reduced from 24 */
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-8);
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

.footer-copy {
  color: var(--color-muted);
  margin-top: var(--space-6); /* Reduced from 12 */
  text-align: center;
  font-size: var(--size-sm);
}



/* ============================================
   Responsive
   ============================================ */
@media (max-width: 992px) {
  .about-layout { grid-template-columns: 1fr; }
  .principles-grid { grid-template-columns: 1fr; gap: var(--space-8); }
}

.nav-toggle {
  display: none;
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.8rem; }
  .services-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 2.2rem; text-align: center; }
  .section-subtitle { text-align: center; }

  /* Hamburger Toggle */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
  }

  .nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-white);
    transition: all 0.3s ease;
    border-radius: 2px;
  }

  /* Hamburger Animation */
  .nav-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .nav-links {
    position: fixed; /* Fixed to cover screen correctly if needed */
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(5, 5, 10, 0.99); /* Even more opaque */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--space-12) var(--space-8);
    gap: var(--space-6);
    border-bottom: 2px solid var(--color-accent);
    transform: translateY(-110%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: var(--space-4) 0;
    font-size: var(--size-xl);
  }

  .nav-link--cta {
    margin-left: 0 !important;
    margin-top: var(--space-4);
    padding: var(--space-4) var(--space-8) !important;
  }
}
/* ============================================
   Pricing Section
   ============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: var(--space-12);
}

.pricing-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s var(--ease);
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.1);
}

.pricing-card.featured {
  border: 1px solid rgba(37, 99, 235, 0.5);
  background: linear-gradient(
    to bottom,
    rgba(37, 99, 235, 0.08),
    rgba(255, 255, 255, 0.03)
  );
  box-shadow: 0 20px 60px rgba(37, 99, 235, 0.2);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: white;
  font-size: var(--size-xs);
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pricing-level {
  font-size: var(--size-xs);
  text-transform: uppercase;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.pricing-title {
  font-size: var(--size-2xl);
  margin-bottom: var(--space-6);
  font-weight: 700;
}

.pricing-price {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: var(--space-8);
  line-height: 1;
  color: var(--color-white);
}

.pricing-price span {
  font-size: var(--size-xl);
  opacity: 0.8;
}

.pricing-price small {
  display: block;
  font-size: var(--size-sm);
  opacity: 0.5;
  font-weight: 400;
}

.pricing-description {
  margin-bottom: var(--space-6);
  line-height: 1.5;
  opacity: 0.85;
  font-size: var(--size-sm);
  color: var(--color-muted);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-10);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: var(--space-6);
}

.pricing-features li {
  margin-bottom: var(--space-4);
  font-size: var(--size-base);
  color: var(--color-muted);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.pricing-features li::before {
  content: "→";
  color: var(--color-accent);
  font-weight: 700;
}

.pricing-btn {
  margin-top: auto;
  width: 100%;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  font-weight: 600;
  text-align: center;
  transition: all 0.3s var(--ease);
}

@media (max-width: 992px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
}
/* ============================================
   Identidad Digital Components
   ============================================ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.step-card {
  padding: var(--space-8);
  border-left: 1px solid var(--color-accent);
  background: rgba(255, 255, 255, 0.02);
  transition: var(--transition);
}

.step-card:hover {
  background: rgba(255, 255, 255, 0.04);
}

.step-num {
  font-size: var(--size-sm);
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.feature-item {
  display: flex;
  gap: var(--space-6);
  padding: var(--space-8);
}

.feature-icon {
  flex-shrink: 0;
  color: var(--color-accent);
  background: rgba(37, 99, 235, 0.1);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-item h3 {
  margin-bottom: var(--space-2);
}

.feature-item p {
  color: var(--color-muted);
  font-size: var(--size-sm);
}

.container--narrow {
  max-width: 720px;
  text-align: center;
}

.problem-card {
  padding: var(--space-10);
  border-radius: var(--radius-lg);
  border-right: 2px solid var(--color-accent);
}

/* ============================================
   Hero Split Layout & Phone Mockup
   ============================================ */
.hero--split {
  padding-top: 8rem;
  padding-bottom: 6rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: var(--space-12);
  position: relative;
  z-index: 10;
}

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

/* Phone Frame */
.phone-mockup {
  width: 280px;
  height: 560px;
  background: #050505;
  border-radius: 40px;
  padding: 12px;
  border: 4px solid #1a1a1a;
  box-shadow: 0 50px 100px -20px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
  position: relative;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0d1f3c 0%, #0a0a0a 100%);
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px 20px;
}

/* Digital Card UI */
.card-preview {
  text-align: center;
}

.card-avatar {
  width: 70px;
  height: 70px;
  background: var(--color-accent);
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 24px;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.card-name {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.card-tag {
  font-size: 0.8rem;
  opacity: 0.6;
  margin-bottom: 30px;
}

.card-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-link-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.card-link-item.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.card-btn-save {
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font-size: 0.9rem;
  margin-top: 40px;
  color: var(--color-accent);
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-20px) rotate(1deg); }
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-8);
  }
  .hero-visual {
    margin-top: 2rem;
  }
  .phone-mockup {
    width: 240px;
    height: 480px;
  }
}

/* ============================================
   Physical Contact Animation
   ============================================ */
.physical-card {
  position: absolute;
  width: 140px;
  height: 200px;
  background: #111;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 20px 40px 80px rgba(0,0,0,0.8);
  top: 10%;
  right: -60px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(25deg);
  animation: cardContact 5s ease-in-out infinite;
  pointer-events: none;
}

.physical-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 100%);
}

.card-tf-logo {
  opacity: 0.8;
  filter: drop-shadow(0 0 10px rgba(37,99,235,0.3));
}

/* Onda de señal en el teléfono */
.contact-ripple {
  position: absolute;
  top: 40px;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(37,99,235,0.4) 0%, transparent 70%);
  border-radius: 50%;
  transform: scale(0);
  z-index: 1;
  pointer-events: none;
  animation: signalRipple 5s ease-in-out infinite;
}

@keyframes cardContact {
  0%   { transform: translate(0, 0) rotate(25deg); }
  25%  { transform: translate(-80px, 40px) rotate(15deg); } /* Acercamiento */
  35%  { transform: translate(-95px, 50px) rotate(12deg); } /* Contacto */
  45%  { transform: translate(-80px, 40px) rotate(15deg); } /* Retirada suave */
  100% { transform: translate(0, 0) rotate(25deg); }
}

@keyframes signalRipple {
  0%, 30% { transform: scale(0); opacity: 0; }
  35% { transform: scale(1.5); opacity: 1; } /* Momento exacto del contacto */
  50% { transform: scale(3); opacity: 0; }
  100% { opacity: 0; }
}

/* ============================================
   IA Engine Visual (ia-aplicada)
   ============================================ */
.ia-engine-wrap {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.engine-core {
  width: 120px;
  height: 120px;
  position: relative;
  z-index: 5;
}

.engine-node {
  width: 40px;
  height: 40px;
  background: var(--color-accent);
  border-radius: 8px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 0 40px rgba(37, 99, 235, 0.6);
  animation: pulseNode 3s ease-in-out infinite;
}

.engine-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: rotateRing 8s linear infinite;
}

.engine-ring:nth-child(1) { width: 100%; height: 100%; border-style: dashed; }
.engine-ring:nth-child(2) { width: 140%; height: 140%; border-style: dotted; animation-direction: reverse; }

/* Flujos de datos */
.data-flow {
  position: absolute;
  top: 50%;
  height: 2px;
  width: 100px;
  pointer-events: none;
}

.chaos-flow {
  left: -80px;
  background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.3));
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}

.order-flow {
  right: -80px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
}

@keyframes pulseNode {
  0%, 100% { transform: translate(-50%, -50%) rotate(45deg) scale(1); opacity: 0.8; }
  50% { transform: translate(-50%, -50%) rotate(45deg) scale(1.1); opacity: 1; }
}

@keyframes rotateRing {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ============================================
   Vision Visual (sobre-mi)
   ============================================ */
.vision-wrap {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vision-core {
  width: 60px;
  height: 60px;
  background: var(--color-white);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
  z-index: 5;
}

.vision-orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.vision-orbit:nth-child(2) { width: 140px; height: 140px; animation: orbitRotate 10s linear infinite; }
.vision-orbit:nth-child(3) { width: 220px; height: 220px; animation: orbitRotate 15s linear reverse infinite; }
.vision-orbit:nth-child(4) { width: 300px; height: 300px; animation: orbitRotate 20s linear infinite; }

.orbit-icon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  background: var(--color-night);
  border: 1px solid var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-accent);
}

@keyframes orbitRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ============================================
   Blueprint Visual (servicios-pro)
   ============================================ */
.blueprint-wrap {
  position: relative;
  width: 400px;
  height: 300px;
  background: rgba(37, 99, 235, 0.03);
  border: 1px solid rgba(37, 99, 235, 0.1);
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.blueprint-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(37, 99, 235, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

.blueprint-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 140px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.blueprint-line {
  position: absolute;
  background: var(--color-accent);
  opacity: 0.6;
}

.blueprint-line:nth-child(1) { top: 30%; left: -20px; width: 0; height: 1px; animation: drawLineX 4s infinite; }
.blueprint-line:nth-child(2) { top: 70%; left: -20px; width: 0; height: 1px; animation: drawLineX 4s 1s infinite; }
.blueprint-line:nth-child(3) { left: 40%; top: -20px; width: 1px; height: 0; animation: drawLineY 4s 0.5s infinite; }
.blueprint-line:nth-child(4) { left: 80%; top: -20px; width: 1px; height: 0; animation: drawLineY 4s 1.5s infinite; }

.blueprint-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border: 1px solid var(--color-accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: drawCircle 4s infinite;
}

@keyframes drawLineX {
  0% { width: 0; left: -20px; }
  40% { width: 240px; left: -20px; }
  60% { width: 240px; left: -20px; }
  100% { width: 0; left: 220px; }
}

@keyframes drawLineY {
  0% { height: 0; top: -20px; }
  40% { height: 180px; top: -20px; }
  60% { height: 180px; top: -20px; }
  100% { height: 0; top: 160px; }
}

@keyframes drawCircle {
  0%, 10% { width: 0; height: 0; }
  40%, 60% { width: 80px; height: 80px; }
  90%, 100% { width: 0; height: 0; }
}

/* ============================================
   Home Core Visual (index)
   ============================================ */
.home-core-wrap {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.core-main {
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, var(--color-accent) 0%, rgba(37,99,235,0.4) 100%);
  border-radius: 20px;
  transform: rotate(45deg);
  box-shadow: 0 0 50px rgba(37,99,235,0.5);
  z-index: 5;
  animation: corePulse 4s ease-in-out infinite;
}

.core-wave {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  border: 1px solid var(--color-accent);
  border-radius: 20px;
  transform: translate(-50%, -50%) rotate(45deg);
  opacity: 0;
  animation: coreWave 4s cubic-bezier(0, 0.5, 0.5, 1) infinite;
}

.core-wave:nth-child(2) { animation-delay: 1s; }
.core-wave:nth-child(3) { animation-delay: 2s; }
.core-wave:nth-child(4) { animation-delay: 3s; }

.core-scanner {
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  box-shadow: 0 0 15px var(--color-accent);
  z-index: 6;
  animation: coreScan 4s linear infinite;
}

@keyframes corePulse {
  0%, 100% { transform: rotate(45deg) scale(1); }
  50% { transform: rotate(45deg) scale(1.05); }
}

@keyframes coreWave {
  0% { width: 100px; height: 100px; opacity: 0.8; }
  100% { width: 350px; height: 350px; opacity: 0; }
}

@keyframes coreScan {
  0% { top: 0%; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ============================================
   Bio Grid (sobre-mi)
   ============================================ */
.bio-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-12);
  align-items: start;
}

@media (max-width: 992px) {
  .bio-grid {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }
  .founder-aside {
    order: -1; /* Mover tarjeta arriba en móvil para no perder el foco */
  }
}

/* ============================================
   Foundation Visual (domicilio-tributario)
   ============================================ */
.foundation-wrap {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.base-platform {
  width: 200px;
  height: 40px;
  background: var(--color-accent);
  transform: rotateX(60deg) rotateZ(45deg);
  box-shadow: 20px 20px 60px rgba(0,0,0,0.5);
  position: relative;
  animation: platformFloat 4s ease-in-out infinite;
}

.base-structure {
  position: absolute;
  width: 100px;
  height: 100px;
  border: 2px solid rgba(255,255,255,0.2);
  transform: translateY(-40px) rotateX(60deg) rotateZ(45deg);
  animation: structureBuild 4s ease-in-out infinite;
}

.base-seal {
  position: absolute;
  width: 60px;
  height: 60px;
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  top: 20%;
  right: 10%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  animation: sealPulse 4s ease-in-out infinite;
}

.base-seal::after {
  content: "OK";
  font-weight: 900;
  color: var(--color-accent);
}

@keyframes platformFloat {
  0%, 100% { transform: rotateX(60deg) rotateZ(45deg) translateZ(0); }
  50% { transform: rotateX(60deg) rotateZ(45deg) translateZ(20px); }
}

@keyframes structureBuild {
  0%, 100% { height: 0; opacity: 0; }
  50% { height: 100px; opacity: 1; }
}

@keyframes sealPulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.2); opacity: 0.8; }
}
