/* Self-hosted Inter — RGPD compliant (no Google Fonts) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/inter-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/inter-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/inter-800.woff2') format('woff2');
}

/* CSS Reset & Variables */
:root {
  --bg-color: #020617; /* Slate 950 */
  --bg-secondary: #0f172a; /* Slate 900 */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent-primary: #3b82f6;
  --accent-secondary: #8b5cf6;
  --accent-gradient: linear-gradient(90deg, #3b82f6 0%, #e11d48 100%);
  --glass-bg: rgba(15, 23, 42, 0.6);
  --glass-border: rgba(255, 255, 255, 0.1);
  --navbar-bg: rgba(2, 6, 23, 0.8);
  --shadow-color: rgba(0, 0, 0, 0.3);
  --shadow-hover-color: rgba(0, 0, 0, 0.4);
  --blob-opacity: 0.2;
  --blob-opacity-2: 0.15;
}

/* ============================================================
   LIGHT MODE
   ============================================================ */
[data-theme="light"] {
  --bg-color: #f8fafc;
  --bg-secondary: #e2e8f0;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --accent-primary: #2563eb;
  --accent-secondary: #7c3aed;
  --accent-gradient: linear-gradient(90deg, #2563eb 0%, #be123c 100%);
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(15, 23, 42, 0.10);
  --navbar-bg: rgba(248, 250, 252, 0.92);
  --shadow-color: rgba(15, 23, 42, 0.10);
  --shadow-hover-color: rgba(15, 23, 42, 0.15);
  --blob-opacity: 0.06;
  --blob-opacity-2: 0.05;
}

[data-theme="light"] body::before { opacity: var(--blob-opacity) !important; }
[data-theme="light"] body::after  { opacity: var(--blob-opacity-2) !important; }

[data-theme="light"] .navbar {
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .hover-lift:hover {
  border-color: rgba(15, 23, 42, 0.20);
  box-shadow: 0 20px 40px var(--shadow-hover-color);
}

[data-theme="light"] .social-name { color: var(--text-primary); }

[data-theme="light"] html {
  scrollbar-color: rgba(190, 18, 60, 0.5) var(--bg-color);
}
[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: rgba(190, 18, 60, 0.4);
}
[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background: rgba(190, 18, 60, 0.7);
}

/* Theme Toggle Button */
.theme-toggle {
  background: none;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  padding: 0;
  flex-shrink: 0;
}
.theme-toggle:hover {
  color: var(--text-primary);
  background: var(--glass-bg);
}
.theme-toggle .icon-sun  { display: block; }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun  { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(225, 29, 72, 0.7) var(--bg-color);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: rgba(225, 29, 72, 0.5);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(225, 29, 72, 0.9);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background blob effects */
body::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: var(--accent-secondary);
  filter: blur(150px);
  opacity: 0.2;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: '';
  position: absolute;
  top: 400px;
  left: -200px;
  width: 500px;
  height: 500px;
  background: var(--accent-primary);
  filter: blur(150px);
  opacity: 0.15;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

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

/* Utilities */
.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 10px 30px var(--shadow-color);
}

.hover-lift {
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Typography */
h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

p {
  color: var(--text-secondary);
  font-size: 1.125rem;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: var(--navbar-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

/* Animated logo */
.logo-animated {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  cursor: default;
}

.logo-letters {
  display: inline-flex;
  overflow: hidden;
}

.logo-letters .letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: letterIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.logo-letters .letter.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes letterIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo-underline {
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #a855f7, #ec4899);
  border-radius: 2px;
  animation: underlineExpand 0.8s ease-out forwards;
  animation-delay: calc(var(--total-letters, 16) * 0.05s);
}

@keyframes underlineExpand {
  to {
    width: 100%;
    left: 0%;
  }
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
  color: var(--text-secondary);
}

.nav-links a:hover {
  color: var(--text-primary);
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline {
  display: inline-flex;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-color);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255,255,255,0.1);
}

.btn-secondary {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid var(--glass-border);
  padding: 0.5rem 1.25rem;
}

.btn-outline:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0 5%;
  gap: 4rem;
  padding-top: 80px;
  position: relative;
}

.hero-bg-images {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.hero-img-main {
  height: 95vh;
  width: auto;
  max-width: 60vw;
  opacity: 1;
  position: relative;
  z-index: 2;
  object-fit: contain;
  filter: drop-shadow(-20px 0 50px rgba(0,0,0,0.5));
}

.hero-img-secondary {
  height: 85vh;
  width: auto;
  max-width: 50vw;
  opacity: 0.5;
  position: absolute;
  right: 12%; /* Acercado aún más */
  bottom: 0px;
  filter: blur(2px) contrast(0.85) grayscale(0.3);
  z-index: 1;
  transform: translateX(0);
}

.hero:hover .hero-img-secondary {
  opacity: 0.7;
  filter: blur(0);
  transform: translateX(-20px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero:hover .hero-img-main {
  transform: scale(1.02);
  transition: all 0.8s ease;
}

/* Gradient Dots Effect (Vanilla CSS translation of Framer Motion component) */
.gradient-dots {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
  background-image: 
    radial-gradient(circle at 50% 50%, transparent 1.5px, var(--bg-color) 0 8px, transparent 8px),
    radial-gradient(circle at 50% 50%, transparent 1.5px, var(--bg-color) 0 8px, transparent 8px),
    radial-gradient(circle at 50% 50%, #f00, transparent 60%),
    radial-gradient(circle at 50% 50%, #ff0, transparent 60%),
    radial-gradient(circle at 50% 50%, #0f0, transparent 60%),
    radial-gradient(ellipse at 50% 50%, #00f, transparent 60%);
  background-size: 
    10px 17.32px, 
    10px 17.32px, 
    200% 200%, 
    200% 200%, 
    200% 200%, 
    200% 17.32px;
  animation: gradientDotsMove 30s linear infinite, gradientDotsColor 6s linear infinite;
  z-index: -2;
  pointer-events: none;
  opacity: 0.2;
  transform: translateZ(0);
  will-change: background-position, filter;
}

@keyframes gradientDotsMove {
  0% {
    background-position: 0px 0px, 5px 8.66px, 800% 400%, 1000% -400%, -1200% -600%, 400% 17.32px;
  }
  100% {
    background-position: 0px 0px, 5px 8.66px, 0% 0%, 0% 0%, 0% 0%, 0% 0px;
  }
}

@keyframes gradientDotsColor {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

.hero-content p {
  max-width: 540px;
}

.hero-greeting {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-blue, #3b82f6);
  margin-bottom: 1.25rem;
}

.hero-headline {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-bridge {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.hero-filter {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

/* Code Editor Visual */
.code-editor {
  padding: 1.5rem;
  font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
  font-size: 0.9rem;
}

.editor-header {
  display: flex;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.keyword { color: #ff7b72; }
.variable { color: #79c0ff; }
.property { color: #d2a8ff; }
.string { color: #a5d6ff; }
.method { color: #d2a8ff; }

/* Typewriter Cursor */
.typewriter-cursor {
  display: inline-block;
  margin-left: 2px;
  color: var(--accent-primary);
  font-weight: bold;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  from, to { opacity: 1; }
  50% { opacity: 0; }
}

/* About Section */
.about-section {
  padding: 6rem 5% 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 2.5rem;
}

.feature-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

/* Footer & Social Links */
footer {
  text-align: center;
  padding: 4rem 5% 2rem;
  border-top: 1px solid var(--glass-border);
  margin-top: 4rem;
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.social-item {
  position: relative;
  cursor: pointer;
  padding: 0.5rem 1rem;
  transition: opacity 0.2s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-direction: row-reverse;
}

.social-links:hover .social-item {
  opacity: 0.5;
}
.social-links .social-item:hover {
  opacity: 1;
}

.social-name {
  display: block;
  color: #ffffff;
  font-size: 1.125rem;
  font-weight: 500;
}

.social-item .social-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-item:nth-child(even) .social-img {
  transform: rotate(15deg);
}

.social-item:nth-child(odd) .social-img {
  transform: rotate(-15deg);
}

.social-item:hover .social-img {
  transform: rotate(0deg) scale(1.3);
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.2));
}

.social-item .social-img.clicked {
  animation: popClick 0.3s ease-in-out;
}

@keyframes popClick {
  0%   { transform: rotate(0deg) scale(1.3); }
  50%  { transform: rotate(0deg) scale(1.6); }
  100% { transform: rotate(0deg) scale(1.3); }
}

footer .copyright {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 1rem;
}

footer .copyright a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

footer .copyright a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

/* Animations */
.reveal-text {
  opacity: 0;
  transform: translateY(20px);
  animation: revealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-in {
  opacity: 0;
  animation: fadeIn 1s ease forwards 0.3s;
}

.fade-in-delayed {
  opacity: 0;
  animation: fadeIn 1s ease forwards 0.6s;
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Integrations Section */
.integrations-section {
  max-width: 1200px;
  width: 90%;
  margin: 2rem auto 6rem;
  padding: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  border-radius: 20px;
}

@media (min-width: 769px) {
  .integrations-section.reverse .integrations-content {
    order: 2;
  }
  .integrations-section.reverse .integrations-grid {
    order: 1;
  }
}

.integrations-content .subtitle {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.integrations-content h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
  margin: 0.5rem 0 1.5rem 0;
}

.integrations-content p {
  margin-bottom: 2rem;
}

.integrations-actions {
  display: flex;
  gap: 1rem;
}

.integrations-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
}

.dev-stack-image {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 480px;
}

.dev-stack-image img {
  width: 275px;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.3));
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.dev-stack-image:hover img {
  transform: scale(1.05) translateY(-5px);
  filter: drop-shadow(0 15px 30px rgba(225, 29, 72, 0.4));
}

.hex-icon {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  clip-path: polygon(25% 0%, 75% 0%, 100% 25%, 100% 75%, 75% 100%, 25% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  transition: transform 0.3s ease, background 0.3s ease;
}

.hex-icon:hover {
  transform: scale(1.1);
  background: rgba(255,255,255,0.1);
}

.hex-icon img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  display: block;
  object-fit: contain;
  padding: 4px;
}

/* Responsive – laptops 13" (~1280-1440px) */
@media (max-width: 1440px) {
  .hero {
    padding: 0 6%;
    padding-top: 80px;
    gap: 2rem;
  }

  h1 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
  }
}

/* Responsive */
@media (max-width: 968px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-headline {
    font-size: 2rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .nav-links {
    display: none; /* simple mobile nav hide for now */
  }

  .integrations-section {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
    padding: 2rem;
    margin: 3rem auto;
  }
  
  .integrations-actions {
    justify-content: center;
  }

  .integrations-grid {
    grid-template-columns: repeat(4, 1fr);
    margin: 0 auto;
    max-width: 500px;
  }
}

@media (max-width: 480px) {
  .integrations-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Subpages: Hero, Sections, Cards, CTA */
.page-hero {
  padding: 10rem 5% 4rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.page-hero p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.2rem;
}

.page-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 5%;
}

.services-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.detail-card {
  padding: 2.5rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.detail-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.2);
}

.detail-icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
}

.detail-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.detail-card p {
  font-size: 1rem;
  line-height: 1.7;
}

.logos-showcase {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
  max-width: 700px;
  margin: 2rem auto 0;
}

.cta-section {
  padding-bottom: 2rem;
}

.cta-card {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 700px;
  margin: 0 auto;
}

.cta-card h2 {
  margin-bottom: 1rem;
}

.cta-card p {
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .logos-showcase {
    grid-template-columns: repeat(4, 1fr);
  }

  .services-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .logos-showcase {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Legal Pages Styling */
.legal-container {
  max-width: 800px;
  margin: 10rem auto 6rem;
  padding: 3rem;
  text-align: left;
}
.legal-container h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
}
.legal-container h2 {
  font-size: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}
.legal-container p, .legal-container ul {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: var(--text-secondary);
}
.legal-container ul {
  padding-left: 1.5rem;
}

/* Blog Section */
.blog-section {
  padding: 6rem 5%;
  max-width: 1200px;
  margin: 4rem auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}

.blog-card {
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 50%, rgba(59, 130, 246, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.blog-card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(59, 130, 246, 0.2);
}

.blog-card:hover::after {
  opacity: 1;
}

.blog-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover .blog-image img {
  transform: scale(1.15) rotate(0.5deg);
}

.blog-info {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #3b82f6;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.blog-card:hover .blog-tag {
  color: #f8fafc;
  background: #3b82f6;
  padding: 0px 8px;
  border-radius: 4px;
}

.blog-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
  color: var(--text-primary);
}

.blog-info p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.btn-text {
  font-weight: 600;
  color: var(--text-primary);
  margin-top: auto;
  transition: color 0.2s;
  display: inline-block;
}

.btn-text:hover {
  color: #e11d48;
}

.blog-actions {
  text-align: center;
  margin-top: 4rem;
}
.legal-container li {
  margin-bottom: 0.5rem;
}

/* Cookies Banner 2026 */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 500px;
  margin: 0 auto;
  padding: 24px;
  background: rgba(15, 15, 20, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  animation: cookieSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cookieSlideUp {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-content h4 { margin: 0 0 8px 0; color: #fff; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.cookie-content p { margin: 0; font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); line-height: 1.5; }
.cookie-content a { color: #fff; text-decoration: underline; opacity: 0.8; transition: opacity 0.3s; }
.cookie-content a:hover { opacity: 1; }

.cookie-actions { display: flex; gap: 12px; margin-top: 8px; }
.cookie-btn {
  flex: 1;
  padding: 12px 16px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-accept { background: #fff; color: #000; }
.btn-reject { background: #334155; color: #fff; border: 1px solid rgba(255, 255, 255, 0.1); }
.btn-accept:hover { background: #f0f0f0; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2); }
.btn-reject:hover { background: #475569; transform: translateY(-2px); }

@media (max-width: 600px) {
  .cookie-banner { left: 16px; right: 16px; bottom: 16px; padding: 20px; }
  .cookie-actions { flex-direction: column; gap: 10px; }
}

/* Formación Video */
.formacion-video-container {
  position: relative;
  width: 100%;
  max-width: 335px; /* Otro 15% más de tamaño */
  aspect-ratio: 1 / 1;
  border-radius: 15% 85% 65% 35% / 15% 15% 85% 85%; /* Forma más plana arriba */
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem auto;
}

.formacion-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scaleX(-1); /* Efecto espejo */
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.45); /* Refuerzo de la capa blanca traslúcida */
  z-index: 2;
  pointer-events: none;
}

/* ===== PAIN SECTION ===== */
.pain-section {
  padding: 6rem 5%;
  background: linear-gradient(180deg, var(--bg-color) 0%, rgba(59, 130, 246, 0.04) 100%);
}

.pain-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.pain-eyebrow,
.promise-eyebrow,
.authority-eyebrow,
.for-who-eyebrow,
.process-eyebrow,
.testimonials-eyebrow,
.final-cta-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 1rem;
  display: block;
}

.pain-section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 3rem;
  color: var(--text-primary);
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  text-align: left;
  margin-bottom: 2.5rem;
}

.pain-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 1.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
}

.pain-arrow {
  color: var(--accent-primary);
  font-size: 1.3rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.pain-item p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0;
}

.pain-bridge {
  font-size: 1.2rem;
  color: var(--text-primary) !important;
  margin-top: 2rem;
}

/* ===== PROMISE SECTION ===== */
.promise-section {
  padding: 6rem 5%;
}

.promise-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.promise-section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 3rem;
}

.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.promise-card {
  position: relative;
  padding: 2rem;
  text-align: left;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
}

.promise-card .card-dot {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.9) 0%, rgba(59,130,246,0.6) 60%, transparent 100%);
  filter: blur(4px);
  top: 10%;
  right: 10%;
  animation: moveDot 90s linear infinite;
  z-index: 1;
}

.promise-card .card-ray {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(99,102,241,0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.promise-card .card-line {
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.5), transparent);
  z-index: 1;
}
.promise-card .card-line.topl    { top: 0;    left: 0; right: 0; height: 1px; }
.promise-card .card-line.bottoml { bottom: 0; left: 0; right: 0; height: 1px; }
.promise-card .card-line.leftl   { left: 0;   top: 0; bottom: 0; width: 1px; background: linear-gradient(180deg, transparent, rgba(99,102,241,0.5), transparent); }
.promise-card .card-line.rightl  { right: 0;  top: 0; bottom: 0; width: 1px; background: linear-gradient(180deg, transparent, rgba(99,102,241,0.5), transparent); }

.promise-card .card-content {
  position: relative;
  z-index: 2;
}

.promise-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.promise-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

@keyframes moveDot {
  0%,  100% { top: 10%;                    right: 10%; }
  25%        { top: 10%;                    right: calc(100% - 35px); }
  50%        { top: calc(100% - 35px);      right: calc(100% - 35px); }
  75%        { top: calc(100% - 35px);      right: 10%; }
}

/* ===== AUTHORITY SECTION ===== */
.authority-section {
  padding: 6rem 5%;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.04) 0%, var(--bg-color) 100%);
  position: relative;
  overflow: hidden;
}

.authority-container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.authority-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 2rem;
  min-height: 70vh;
}

.authority-text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 1.5rem;
}

.authority-text p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.authority-text p strong {
  color: var(--text-primary);
}

.authority-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  max-width: 130px;
  line-height: 1.4;
}

.authority-image {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: sticky;
  top: 6rem;
}

.authority-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.authority-image-glow {
  position: absolute;
  inset: -1.5rem;
  background: rgba(139, 92, 246, 0.15);
  filter: blur(48px);
  border-radius: 50%;
  opacity: 0.6;
  pointer-events: none;
}

.authority-image-mask {
  border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
  animation: morphAuthority 8s ease-in-out infinite;
  width: 100%;
  aspect-ratio: 3/4;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 0 80px rgba(255,255,255,0.05);
  overflow: hidden;
  position: relative;
}

.authority-image-mask::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(2, 6, 23, 0.8) 100%),
              radial-gradient(circle at center, transparent 30%, rgba(2, 6, 23, 0.7) 100%);
  pointer-events: none;
  z-index: 1;
}

.authority-image-mask img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: all 0.7s ease;
}

@keyframes morphAuthority {
  0%   { border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%; }
  50%  { border-radius: 40% 60% 30% 70% / 60% 40% 70% 30%; }
  100% { border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%; }
}

/* ===== FOR WHO SECTION ===== */
.for-who-section {
  padding: 6rem 5%;
}

.for-who-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.for-who-section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 3rem;
}

.for-who-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  text-align: left;
  margin-bottom: 2rem;
}

.for-who-card {
  padding: 2rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.for-who-card:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 92, 246, 0.3);
}

.for-who-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  text-align: center;
}

.for-who-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.for-who-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.for-who-note {
  font-size: 1rem;
  color: var(--text-secondary) !important;
  margin-top: 1rem;
}

/* ===== PROCESS SECTION ===== */
.process-section {
  padding: 6rem 5%;
  background: linear-gradient(180deg, var(--bg-color) 0%, rgba(59, 130, 246, 0.04) 100%);
}

.process-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.process-section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 3.5rem;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: left;
  margin-bottom: 3rem;
}

.process-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 2rem 0;
  border-bottom: 1px solid var(--glass-border);
  position: relative;
}

.process-step:last-child {
  border-bottom: none;
}

.step-number {
  font-size: 3rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  opacity: 0.6;
}

.step-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.step-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.process-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.process-cta-note {
  font-size: 0.85rem;
  color: var(--text-secondary) !important;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
  padding: 6rem 5%;
}

.testimonials-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.testimonials-section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 3rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  text-align: left;
}

.testimonial-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 1rem;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 1rem;
  color: var(--text-secondary) !important;
  line-height: 1.7;
  flex: 1;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  border-top: 1px solid var(--glass-border);
  padding-top: 1rem;
}

.testimonial-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.testimonial-company {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ===== FINAL CTA SECTION ===== */
.final-cta-section {
  padding: 6rem 5%;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.05) 0%, var(--bg-color) 100%);
}

.final-cta-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 4rem 3rem;
}

.final-cta-container h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 1.5rem;
}

.final-cta-sub {
  font-size: 1.05rem;
  color: var(--text-secondary) !important;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.final-cta-btn {
  font-size: 1.05rem;
  padding: 1rem 2.5rem;
  margin-bottom: 2rem;
}

.trust-badges {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.trust-badge {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ===== RESPONSIVE MARKETING SECTIONS ===== */
@media (max-width: 768px) {
  .pain-grid,
  .for-who-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .promise-grid {
    grid-template-columns: 1fr;
  }

  .authority-content {
    grid-template-columns: 1fr;
  }

  .authority-image {
    order: -1;
  }

  .authority-image {
    position: static;
  }
  .authority-image-wrapper {
    max-width: 280px;
    margin: 0 auto;
  }

  .authority-stats {
    gap: 1.5rem;
  }

  .process-step {
    grid-template-columns: 60px 1fr;
  }

  .step-number {
    font-size: 2rem;
  }

  .final-cta-container {
    padding: 2.5rem 1.5rem;
  }

  .trust-badges {
    gap: 1rem;
  }

  /* Mobil Blog Fix */
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Mobil Hero Refinements */
  .hero {
    padding-top: 100px;
    padding-bottom: 40px;
  }

  .hero-img-main {
    max-width: 90vw;
    height: auto;
    max-height: 50vh;
  }

  .hero-img-secondary {
    display: none;
  }

  .hero-headline {
    font-size: 1.55rem;
    line-height: 1.25;
    max-width: 85%;
    margin: 0 auto;
  }

  .hero-sub {
    font-size: 0.85rem;
    max-width: 90%;
    margin: 0 auto 1.5rem auto;
  }

  .hero {
    padding-top: 80px;
    padding-bottom: 30px;
  }

  .hero-filter {
    margin-bottom: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  /* Integrations Mobil Fix */
  .integrations-section {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem;
    gap: 3rem;
    text-align: center;
    width: 95%;
  }

  .dev-stack-image {
    min-height: auto;
    order: -1;
  }

  .integrations-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .integrations-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .integrations-actions .btn-primary,
  .integrations-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  /* Features Grid Fix */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Navbar Mobil Refinement */
  .logo {
    font-size: 1.1rem;
  }

  /* Text flow fixes */
  h2 br {
    display: none;
  }

  .final-cta-container h2 {
    font-size: 1.6rem;
  }

  .final-cta-sub {
    font-size: 0.95rem;
  }
}

/* BURGER MENU STYLES */
.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
  padding: 5px;
}

.burger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 2px;
}

.burger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.burger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 768px) {
  .burger { display: flex; }

  .navbar {
    padding: 1rem 5% !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    position: fixed !important;
    width: 100% !important;
    top: 0 !important;
    left: 0 !important;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(2, 6, 23, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
    margin: 0;
    padding: 0;
    pointer-events: none;
    opacity: 0;
  }

  .nav-links.active {
    transform: translateX(0);
    pointer-events: all;
    opacity: 1;
  }

  .nav-links li {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
  }

  .nav-links.active li {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
  .nav-links.active li:nth-child(2) { transition-delay: 0.2s; }
  .nav-links.active li:nth-child(3) { transition-delay: 0.3s; }
  .nav-links.active li:nth-child(4) { transition-delay: 0.4s; }
  .nav-links.active li:nth-child(5) { transition-delay: 0.5s; }

  .nav-links li a {
    font-size: 1.5rem !important;
    font-weight: 700;
    letter-spacing: 0.05em;
  }
}


