/* ===== Reset & Variables ===== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

:root{
  --bg: #0a0a0a;
  --header: #0b0b0b;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --line: #1f2937;
  --brand: #dd1729;
  --brand-dark: #b31222;
  --brand-light: #ff1a2e;
  --accent: #3b82f6;
  --shadow: 0 10px 30px rgba(0,0,0,.4);
  --shadow-heavy: 0 25px 60px rgba(0,0,0,.6);
  --radius: 14px;
  --radius-lg: 20px;

  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-smooth: cubic-bezier(0.4, 0.0, 0.2, 1);
  --ease-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --underline-speed: 0.4s;
  --underline-h: 2px;
}

body{
  font-family: 'Inter', ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans";
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

/* ===== Header ===== */
.site-header{
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(11, 11, 11, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s var(--ease-smooth);
}
.site-header.scrolled {
  background: rgba(11, 11, 11, 0.95);
  backdrop-filter: saturate(180%) blur(30px);
  border-bottom: 1px solid rgba(221, 23, 41, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.nav-wrap{
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex; 
  align-items: center; 
  justify-content: space-between;
}

/* Marca */
.brand{ 
  display: inline-flex; 
  align-items: center; 
  text-decoration: none; 
  transition: transform 0.3s var(--ease-smooth); 
}
.brand:hover { 
  transform: scale(1.05); 
}
.brand-logo{ 
  height: 74px; 
  width: auto; 
  display: block; 
  filter: brightness(1) drop-shadow(0 0 10px rgba(221, 23, 41, 0.3)); 
}

/* ===== Toggle móvil ===== */
.nav-toggle{ display: none; }
.hamburger{
  width: 44px; height: 44px; border-radius: 12px;
  display: none; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer; background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px); transition: all 0.3s var(--ease-smooth);
  position: relative; overflow: hidden;
}
.hamburger::before { 
  content: ''; position: absolute; inset: 0; 
  background: linear-gradient(45deg, transparent, rgba(221, 23, 41, 0.1), transparent); 
  transform: translateX(-100%); transition: transform 0.6s var(--ease-smooth); 
}
.hamburger:hover::before { transform: translateX(100%); }
.hamburger span{ 
  display:block; width:20px; height:2px; 
  background: var(--text); position:relative; 
  transition: all 0.3s var(--ease-smooth); 
}
.hamburger span + span{ margin-top:4px; }

/* ===== Nav ===== */
.main-nav{ display: flex; align-items: center; gap: 20px; }
.menu-root{ list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 12px; }
.menu-item{ position: relative; }

/* Link principal + subrayado animado */
.menu-link{
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; padding: 12px 16px;
  border-radius: 12px; cursor: pointer;
  color: var(--text); user-select: none; position: relative; text-decoration: none;
  transition: all 0.3s var(--ease-smooth); overflow: hidden;
}
.menu-link::before { 
  content: ''; position: absolute; inset: 0; 
  background: linear-gradient(135deg, rgba(221, 23, 41, 0.1), rgba(221, 23, 41, 0.05)); 
  opacity: 0; transition: opacity 0.3s var(--ease-smooth); 
}
.menu-link:hover::before { opacity: 1; }

.menu-link span, .submenu-link span{ position: relative; display: inline-block; }
.menu-link span::after, .submenu-link span::after{
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: var(--underline-h);
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  transform: scaleX(0); transform-origin: left center; 
  transition: transform var(--underline-speed) var(--ease-elastic); border-radius: 1px;
}
@media (hover:hover){
  .menu-item .menu-link:hover span::after,
  .menu-item .menu-link:focus-visible span::after{ transform: scaleX(1); }
}

/* Flecha rota en hover / abierto */
.menu-item .chev{
  width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2;
  transition: all 0.4s var(--ease-elastic); transform: rotate(0deg) translateY(1px);
  filter: drop-shadow(0 0 4px rgba(221, 23, 41, 0.3));
}
@media (hover:hover){
  .menu-item.has-sub:hover > .menu-link .chev,
  .menu-item.has-sub:focus-within > .menu-link .chev{
    transform: rotate(180deg) translateY(-1px) scale(1.1);
    filter: drop-shadow(0 0 8px rgba(221, 23, 41, 0.6));
  }
}

/* ===== Submenús ===== */
.submenu{
  position: absolute; top: calc(100% + 12px); left: 0;
  min-width: 280px; padding: 16px;
  background: rgba(12, 12, 12, 0.95); backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius-lg); 
  box-shadow: var(--shadow-heavy);
  list-style: none; margin: 0; opacity: 0; visibility: hidden; 
  transform: translateY(-10px) scale(0.95);
  transition: all 0.3s var(--ease-smooth);
}
.submenu::before{
  content: ""; position: absolute; top: -6px; left: 24px; width: 12px; height: 12px;
  background: rgba(12, 12, 12, 0.95); 
  border-left: 1px solid rgba(255, 255, 255, 0.1); 
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transform: rotate(45deg);
}
@media (hover:hover){
  .menu-item.has-sub:hover > .submenu,
  .menu-item.has-sub:focus-within > .submenu{ 
    opacity: 1; visibility: visible; transform: translateY(0) scale(1); 
  }
}

/* ===== Estilo "Core Features" (icono + título + subtítulo) ===== */
.submenu-features{ min-width: 360px; padding: 12px 8px; }
.feature-item{ border-radius: 12px; }
.feature-link{
  display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start;
  padding: 12px 12px; border-radius: 12px; text-decoration: none; color: var(--text);
  transition: background .25s var(--ease-smooth), transform .25s var(--ease-smooth);
}
.feature-link:hover{ 
  background: rgba(255,255,255,0.05); 
  transform: translateX(4px); 
}

.feature-icon{
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(221, 23, 41, 0.12);
  border: 1px solid rgba(221, 23, 41, 0.35);
  box-shadow: inset 0 0 12px rgba(221, 23, 41, 0.12);
}
.feature-icon svg{ width: 22px; height: 22px; stroke: var(--brand); fill: none; }
.feature-icon svg rect, .feature-icon svg line, .feature-icon svg path, .feature-icon svg circle, .feature-icon svg polyline { stroke: var(--brand); }

.feature-content{ display: block; }
.feature-title{ margin: 0 0 2px 0; font-size: 16px; line-height: 1.3; font-weight: 800; color: #fff; }
.feature-title span{ position: relative; }
.feature-title span::after{
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: var(--underline-h);
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  transform: scaleX(0); transform-origin: left center; 
  transition: transform var(--underline-speed) var(--ease-elastic); border-radius: 1px;
}
.feature-link:hover .feature-title span::after{ transform: scaleX(1); }

.feature-desc{ margin: 0; font-size: 14px; color: var(--text-muted); }

/* CTA dentro del submenú */
.submenu-cta{ padding: 10px 12px 2px; margin-top: 6px; border-top: 1px solid rgba(255,255,255,0.08); }
.btn-cta{
  display: inline-flex; align-items: center; justify-content: center; width: 100%;
  gap: 8px; padding: 12px 14px; border-radius: 12px; text-decoration: none; font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; 
  border: 1px solid var(--brand);
  position: relative; overflow: hidden; transition: all 0.3s var(--ease-smooth);
}
.btn-cta::before{ 
  content: ''; position: absolute; inset: 0; 
  background: linear-gradient(135deg, rgba(255,255,255,.2), transparent); 
  transform: translateX(-100%); transition: transform .5s var(--ease-smooth); 
}
.btn-cta:hover::before{ transform: translateX(100%); }
.btn-cta:hover{ transform: translateY(-2px); box-shadow: 0 8px 25px rgba(221, 23, 41, 0.4); }

/* ===== CTA nav ===== */
.nav-cta .btn-primary{
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-radius: 14px; text-decoration: none;
  font-weight: 800; letter-spacing: 0.3px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  color: #fff; border: 2px solid transparent; position: relative; overflow: hidden;
  transition: all 0.4s var(--ease-smooth);
  box-shadow: 0 4px 15px rgba(221, 23, 41, 0.3);
}
.nav-cta .btn-primary::before{ 
  content: ''; position: absolute; inset: 0; 
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent); 
  transform: translateX(-100%) skewX(-15deg); transition: transform 0.6s var(--ease-smooth); 
}
.nav-cta .btn-primary:hover{ 
  transform: translateY(-3px) scale(1.05); 
  box-shadow: 0 12px 40px rgba(221, 23, 41, 0.5); 
  border-color: rgba(255, 255, 255, 0.2); 
}
.nav-cta .btn-primary:hover::before{ transform: translateX(100%) skewX(-15deg); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 20% 80%, rgba(221, 23, 41, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
    linear-gradient(135deg, var(--bg) 0%, #0f0f0f 100%);
  position: relative; overflow: hidden; padding: 120px 24px 80px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="rgba(221, 23, 41, 0.03)" fill-opacity="0.4"><circle cx="30" cy="30" r="1"/></g></g></svg>') repeat;
  animation: float 20s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-20px); } }

.hero-container { max-width: 1200px; margin: 0 auto; text-align: center; position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 20px;
  background: rgba(221, 23, 41, 0.1); border: 1px solid rgba(221, 23, 41, 0.3);
  border-radius: 50px; color: var(--brand-light); font-size: 14px; font-weight: 600;
  margin-bottom: 24px; backdrop-filter: blur(10px); 
  animation: glow 2s ease-in-out infinite alternate;
}
@keyframes glow { 
  from { box-shadow: 0 0 20px rgba(221, 23, 41, 0.3); } 
  to { box-shadow: 0 0 30px rgba(221, 23, 41, 0.5); } 
}

/* ===== HERO TITLE ===== */
.hero-title {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto 24px;
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  word-spacing: 0.1em; /* Espaciado entre palabras */
}

.hero-subtitle { 
  font-size: clamp(1.1rem, 3vw, 1.4rem); 
  color: var(--text-muted); 
  margin: 0 0 40px; 
  max-width: 800px; 
  margin-left: auto; 
  margin-right: auto; 
  line-height: 1.6; 
}

.hero-ctas { 
  display: flex; 
  gap: 20px; 
  justify-content: center; 
  align-items: center; 
  flex-wrap: wrap; 
  margin-bottom: 60px; 
}

.btn-hero-primary {
  display: inline-flex; align-items: center; gap: 12px; padding: 18px 32px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%); 
  color: white;
  text-decoration: none; font-weight: 800; font-size: 18px; 
  border-radius: 16px; border: 2px solid transparent;
  position: relative; overflow: hidden; 
  transition: all 0.4s var(--ease-smooth); 
  box-shadow: 0 8px 30px rgba(221, 23, 41, 0.4);
}
.btn-hero-primary::before { 
  content: ''; position: absolute; inset: 0; 
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent); 
  transform: translateX(-100%) skewX(-20deg); 
  transition: transform 0.6s var(--ease-smooth); 
}
.btn-hero-primary:hover { 
  transform: translateY(-4px) scale(1.05); 
  box-shadow: 0 15px 50px rgba(221, 23, 41, 0.6); 
}
.btn-hero-primary:hover::before { transform: translateX(100%) skewX(-20deg); }

.btn-hero-secondary {
  display: inline-flex; align-items: center; gap: 12px; padding: 18px 32px;
  background: rgba(255, 255, 255, 0.05); color: var(--text); 
  text-decoration: none; font-weight: 700; font-size: 18px;
  border-radius: 16px; border: 2px solid rgba(255, 255, 255, 0.1); 
  backdrop-filter: blur(10px); transition: all 0.4s var(--ease-smooth);
}
.btn-hero-secondary:hover { 
  background: rgba(255, 255, 255, 0.1); 
  border-color: rgba(221, 23, 41, 0.3); 
  transform: translateY(-2px); 
}

.hero-stats {
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
  gap: 40px; 
  margin-top: 80px; 
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.stat-item { text-align: center; }
.stat-number { 
  font-size: 2.5rem; 
  font-weight: 900; 
  color: var(--brand-light); 
  display: block; 
  margin-bottom: 8px; 
}
.stat-label { 
  color: var(--text-muted); 
  font-size: 16px; 
  font-weight: 500; 
}

/* ===== Móvil ===== */
.dd-toggle{ display: none; }
@media (max-width: 960px){
  .hamburger{ display: inline-flex; }
  .main-nav{
    position: fixed; inset: 80px 0 0 0; background: rgba(10, 10, 10, 0.98);
    backdrop-filter: saturate(180%) blur(20px); 
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: grid; grid-template-rows: auto 1fr auto;
    transform: translateY(-120%); 
    transition: transform 0.4s var(--ease-smooth); 
    padding: 20px;
  }
  .nav-toggle:checked ~ .main-nav{ transform: translateY(0); }

  .menu-root{ 
    flex-direction: column; align-items: stretch; gap: 12px; 
    overflow-y: auto; padding: 20px 0; 
  }
  .menu-link{
    width: 100%; justify-content: space-between; padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1); 
    background: rgba(255, 255, 255, 0.03); 
    backdrop-filter: blur(10px);
  }

  .submenu{
    position: static; opacity: 0; visibility: hidden; height: 0; overflow: hidden;
    margin-top: 12px; transform: none; transition: all 0.3s var(--ease-smooth);
  }
  .submenu::before{ display: none; }
  .dd-toggle:checked ~ .submenu{ opacity: 1; visibility: visible; height: auto; }

  .dd-toggle:checked + .menu-link .chev{ transform: rotate(180deg) translateY(-1px); }
  .dd-toggle:checked + .menu-link span::after{ transform: scaleX(1); }

  .nav-cta{ display: none; }

  .submenu-features{ padding: 8px; }
  .feature-link{ 
    grid-template-columns: 36px 1fr; gap: 10px; padding: 10px 10px; 
  }
  .feature-icon{ width: 36px; height: 36px; border-radius: 10px; }
  .feature-icon svg{ width: 20px; height: 20px; }
  
  /* Hero móvil */
  .hero {
    padding: 100px 20px 60px;
    min-height: 90vh;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

/* Accesibilidad */
a, label, button, input{ outline-offset: 3px; }
:focus-visible{ outline: 2px solid var(--brand); }

/* Animaciones */
.hero-title, .hero-subtitle, .hero-badge { 
  animation: fadeInUp 1s var(--ease-smooth) forwards; 
}
.hero-ctas { 
  animation: fadeInUp 1s var(--ease-smooth) 0.3s forwards; 
  opacity: 0; 
}
.hero-stats { 
  animation: fadeInUp 1s var(--ease-smooth) 0.6s forwards; 
  opacity: 0; 
}
@keyframes fadeInUp { 
  from { opacity: 0; transform: translateY(40px); } 
  to { opacity: 1; transform: translateY(0); } 
}

/* Scroll suave */
html { scroll-behavior: smooth; }

/* ===== EFECTO S - Rebote y hover rojo ===== */
.hover-bounce { white-space: normal; }
.hover-bounce .char {
  display: inline-block;
  will-change: transform;
  transform-origin: center bottom;
  pointer-events: auto;
  cursor: default;
  transition: all 0.3s var(--ease-smooth);

  /* Gradiente blanco por defecto */
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 50%, #e2e8f0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Estado hover: rojo */
.hover-bounce .char:hover {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: translateY(-2px) scale(1.05);
  filter: drop-shadow(0 4px 12px rgba(221, 23, 41, 0.4));
}

/* Animación rebote solo si no se prefiere movimiento reducido */
@media (prefers-reduced-motion: no-preference) {
  .hover-bounce .char.bouncing {
    animation: s-bounce 0.6s var(--ease-bounce) both;
  }
}

@keyframes s-bounce {
  0%   { transform: translateY(0) scale(1); }
  35%  { transform: translateY(-14%) scale(1.02) rotate(-1deg); }
  60%  { transform: translateY(6%) scale(0.98) rotate(1deg); }
  100% { transform: translateY(0) scale(1); }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(1.8rem, 9vw, 2.8rem);
    line-height: 1.2;
    hyphens: auto; /* Permite guiones automáticos */
    word-break: keep-all; /* Evita cortes raros */
  }
}

/* ===== SECCIÓN SERVICIOS ===== */
.services-section {
  padding: 120px 24px;
  background: #0f0f0f;
  position: relative;
}

.services-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.services-header {
  margin-bottom: 80px;
}

.services-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(221, 23, 41, 0.1);
  border: 1px solid rgba(221, 23, 41, 0.3);
  border-radius: 20px;
  color: var(--brand-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.services-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 24px;
  line-height: 1.2;
}

.services-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== TARJETAS DE SERVICIOS ===== */
.services-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
  height: 400px;
}

.service-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transition: all 0.4s var(--ease-smooth);
  cursor: pointer;
}

.service-card:hover {
  flex: 2;
  background: rgba(221, 23, 41, 0.05);
  border-color: rgba(221, 23, 41, 0.3);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-card:not(:hover) {
  flex: 1;
}

.service-link {
  display: block;
  padding: 40px 32px;
  height: 100%;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.service-icon {
  width: 60px;
  height: 60px;
  background: rgba(221, 23, 41, 0.1);
  border: 1px solid rgba(221, 23, 41, 0.3);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  transition: all 0.3s var(--ease-smooth);
}

.service-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--brand);
}

.service-card:hover .service-icon {
  background: rgba(221, 23, 41, 0.2);
  border-color: rgba(221, 23, 41, 0.5);
  transform: scale(1.1);
}

.service-name {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 16px;
  line-height: 1.3;
}

.service-description {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  opacity: 0.8;
  transition: opacity 0.3s var(--ease-smooth);
}

.service-card:hover .service-description {
  opacity: 1;
}

/* ===== CTA SERVICIOS ===== */
.services-cta {
  text-align: center;
}

.btn-services-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.4s var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.btn-services-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-smooth);
}

.btn-services-cta span {
  position: relative;
  z-index: 2;
}

.btn-services-cta svg {
  position: relative;
  z-index: 2;
}

.btn-services-cta:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(221, 23, 41, 0.3);
}

.btn-services-cta:hover::before {
  opacity: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .services-cards {
    grid-template-columns: 1fr;
    height: auto;
  }
  
  .service-card {
    height: auto;
  }
  
  .service-card:hover {
    flex: none;
  }
  
  .service-card:not(:hover) {
    flex: none;
  }
}

.service-description {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  opacity: 0.8;
  transition: opacity 0.3s var(--ease-smooth);
  text-align: justify; /* AÑADIR ESTA LÍNEA */
  text-justify: inter-word; /* AÑADIR ESTA LÍNEA */
}
/* ===== SECCIÓN SOLUCIONES DIGITALES ===== */
.digital-section {
  padding: 120px 24px;
  background: #0a0a0a;
  position: relative;
}

.digital-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.digital-header {
  margin-bottom: 80px;
}

.digital-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 20px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.digital-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 24px;
  line-height: 1.2;
}

.digital-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
  text-align: justify;
  text-justify: inter-word;
}

/* ===== TARJETAS DIGITALES ===== */
.digital-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
  height: 400px;
}

.digital-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transition: all 0.4s var(--ease-smooth);
  cursor: pointer;
}

.digital-card:hover {
  flex: 2;
  background: rgba(59, 130, 246, 0.05);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.digital-card:not(:hover) {
  flex: 1;
}

.digital-link {
  display: block;
  padding: 40px 32px;
  height: 100%;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.digital-icon {
  width: 60px;
  height: 60px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  transition: all 0.3s var(--ease-smooth);
}

.digital-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--accent);
}

.digital-card:hover .digital-icon {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.5);
  transform: scale(1.1);
}

.digital-name {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 16px;
  line-height: 1.3;
}

.digital-description {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  opacity: 0.8;
  transition: opacity 0.3s var(--ease-smooth);
  text-align: justify;
  text-justify: inter-word;
}

.digital-card:hover .digital-description {
  opacity: 1;
}

/* ===== CTA DIGITAL ===== */
.digital-cta {
  text-align: center;
}

.btn-digital-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.4s var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.btn-digital-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent) 0%, #2563eb 100%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-smooth);
}

.btn-digital-cta span {
  position: relative;
  z-index: 2;
}

.btn-digital-cta svg {
  position: relative;
  z-index: 2;
}

.btn-digital-cta:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.3);
}

.btn-digital-cta:hover::before {
  opacity: 1;
}

/* ===== RESPONSIVE DIGITAL ===== */
@media (max-width: 768px) {
  .digital-cards {
    grid-template-columns: 1fr;
    height: auto;
  }
  
  .digital-card {
    height: auto;
  }
  
  .digital-card:hover {
    flex: none;
  }
  
  .digital-card:not(:hover) {
    flex: none;
  }
}

/* ===== SECCIÓN EL PROCESO ===== */
.process-section {
  padding: 120px 24px;
  background: #0f0f0f;
  position: relative;
}

.process-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}

.process-left {
  position: sticky;
  top: 150px;
  text-align: left;
}

.process-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 16px;
  line-height: 1.1;
}

.process-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin: 0 0 40px;
  line-height: 1.6;
}

.btn-process-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  border-radius: 14px;
  border: 2px solid transparent;
  transition: all 0.4s var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.btn-process-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%) skewX(-15deg);
  transition: transform 0.6s var(--ease-smooth);
}

.btn-process-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(221, 23, 41, 0.5);
}

.btn-process-cta:hover::before {
  transform: translateX(100%) skewX(-15deg);
}

/* ===== TIMELINE ===== */
.process-right {
  position: relative;
}

.process-timeline {
  position: relative;
  padding-left: 40px;
}

.timeline-line {
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.timeline-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-light) 100%);
  transition: height 0.3s var(--ease-smooth);
  box-shadow: 0 0 20px rgba(221, 23, 41, 0.5);
}

/* ===== SECCIÓN EL PROCESO ===== */
.process-section {
  padding: 120px 24px;
  background: #0f0f0f;
  position: relative;
}

.process-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}

.process-left {
  position: sticky;
  top: 150px;
  text-align: left;
}

.process-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 16px;
  line-height: 1.1;
}

.process-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin: 0 0 40px;
  line-height: 1.6;
}

.btn-process-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  border-radius: 14px;
  border: 2px solid transparent;
  transition: all 0.4s var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.btn-process-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%) skewX(-15deg);
  transition: transform 0.6s var(--ease-smooth);
}

.btn-process-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(221, 23, 41, 0.5);
}

.btn-process-cta:hover::before {
  transform: translateX(100%) skewX(-15deg);
}

/* ===== TIMELINE MEJORADA ===== */
.process-right {
  position: relative;
}

.process-timeline {
  position: relative;
  padding-left: 40px;
}

.timeline-line {
  position: absolute;
  left: 20px;
  top: 20px;
  bottom: 20px;
  width: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: visible;
}

.timeline-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-light) 50%, var(--brand-dark) 100%);
  border-radius: 2px;
  transition: height 0.4s var(--ease-smooth);
  box-shadow: 0 0 15px rgba(221, 23, 41, 0.4);
}

.timeline-dot {
  position: absolute;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  border: 3px solid #0f0f0f;
  border-radius: 50%;
  left: -7.5px;
  top: 0%;
  transition: top 0.4s var(--ease-smooth);
  box-shadow: 
    0 0 0 2px var(--brand),
    0 0 20px rgba(221, 23, 41, 0.6),
    0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

/* ===== PASOS DEL PROCESO ===== */
.process-step {
  position: relative;
  margin-bottom: 100px;
  padding-left: 20px;
  opacity: 0.4;
  transition: opacity 0.6s var(--ease-smooth);
}

.process-step:last-child {
  margin-bottom: 0;
}

.process-step.active {
  opacity: 1;
}

.step-content {
  padding-top: 0;
}

.step-number {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 8px;
  display: inline;
}

.step-title {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 16px;
  line-height: 1.3;
  display: inline;
  margin-left: 8px;
}

.step-description {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 16px 0 0;
  text-align: justify;
  text-justify: inter-word;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .process-container {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  
  .process-left {
    position: static;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .process-timeline {
    padding-left: 30px;
  }
  
  .timeline-line {
    left: 15px;
  }
  
  .timeline-dot {
    left: 6.5px;
    width: 16px;
    height: 16px;
  }
  
  .process-step {
    margin-bottom: 80px;
    padding-left: 15px;
  }
  
  .step-title {
    font-size: 20px;
  }
}

/* ===== SECCIÓN POR QUÉ NOSOTROS ===== */
.why-us-section {
  padding: 120px 24px;
  background: #0a0a0a;
  position: relative;
}

.why-us-container {
  max-width: 1400px;
  margin: 0 auto;
}

.why-us-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why-us-left {
  padding-right: 20px;
}

.why-us-header {
  margin-bottom: 40px;
}

.why-us-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 20px;
  line-height: 1.2;
}

.why-us-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ===== LISTA DE BENEFICIOS ===== */
.why-us-list {
  margin-bottom: 50px;
}

.why-us-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateX(-20px);
  animation: slideInLeft 0.6s var(--ease-smooth) forwards;
}

.why-us-item:nth-child(1) { animation-delay: 0.1s; }
.why-us-item:nth-child(2) { animation-delay: 0.2s; }
.why-us-item:nth-child(3) { animation-delay: 0.3s; }
.why-us-item:nth-child(4) { animation-delay: 0.4s; }
.why-us-item:nth-child(5) { animation-delay: 0.5s; }
.why-us-item:nth-child(6) { animation-delay: 0.6s; }
.why-us-item:nth-child(7) { animation-delay: 0.7s; }

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.check-icon {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  box-shadow: 0 4px 15px rgba(221, 23, 41, 0.3);
}

.check-icon svg {
  width: 14px;
  height: 14px;
  stroke: white;
}

.why-us-text {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.why-us-text strong {
  color: #ffffff;
  font-weight: 700;
}

/* ===== CTA ===== */
.btn-why-us-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.4s var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.btn-why-us-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-smooth);
}

.btn-why-us-cta span,
.btn-why-us-cta svg {
  position: relative;
  z-index: 2;
}

.btn-why-us-cta:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(221, 23, 41, 0.3);
}

.btn-why-us-cta:hover::before {
  opacity: 1;
}

/* ===== IMAGEN ===== */
.why-us-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-us-image {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 400px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.graph-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  opacity: 0.9;
  transition: all 0.4s var(--ease-smooth);
}

.why-us-image:hover .graph-image {
  opacity: 1;
  transform: scale(1.05);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .why-us-content {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  
  .why-us-left {
    padding-right: 0;
  }
  
  .why-us-right {
    order: -1;
  }
}

@media (max-width: 768px) {
  .why-us-item {
    gap: 12px;
  }
  
  .check-icon {
    width: 20px;
    height: 20px;
  }
  
  .check-icon svg {
    width: 12px;
    height: 12px;
  }
  
  .why-us-text {
    font-size: 15px;
  }
  
  .why-us-image {
    height: 300px;
  }
}

@media (max-width: 960px){
  .nav-cta{ display: inline-flex !important; }
}

.site-header{ z-index: 9999; }
body{ padding-top: 96px; }  /* ajusta si tu header es más alto/bajo */
