:root {
  --color-bg: #ffffff;
  --color-surface: #f8fafc;
  --color-primary: #024A92;
  --color-accent: #1e40af;
  --color-text: #1e293b;
  --color-muted: #64748b;
  --color-border: #e2e8f0;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 4px 14px rgba(2, 74, 146, 0.1);
  --shadow-md: 0 10px 30px rgba(2, 74, 146, 0.15);
  --container: 1200px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, 'Helvetica Neue', Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
  background: radial-gradient(1200px 600px at 80% -10%, rgba(2, 74, 146, 0.08), transparent 60%),
              radial-gradient(900px 500px at -10% 10%, rgba(30, 64, 175, 0.06), transparent 60%),
              var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(12px);
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 20px rgba(2, 74, 146, 0.1);
  padding: 0 20px;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 8px;
  border-radius: 12px;
  background: #024A92;
  box-shadow: 0 2px 8px rgba(2, 74, 146, 0.1);
}
.brand__logo:hover {
  transform: scale(1.05);
  background: #024A92;
  box-shadow: 0 4px 12px rgba(2, 74, 146, 0.15);
}
.brand__logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}
.brand__name {
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--color-text);
}

.nav {
  display: none;
  align-items: center;
  gap: 4px;
}
.nav a {
  color: var(--color-muted);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}
.nav a:hover { color: var(--color-text); }

/* Dropdown: item contenedor */
.nav__item {
  position: relative;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav__link::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
}
.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 100;
}
.nav__item:hover .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__dropdown-inner {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  padding: 8px 0;
  overflow: hidden;
}
.nav__dropdown-inner a {
  display: block;
  padding: 10px 16px;
  color: var(--color-text);
  font-size: 14px;
  white-space: nowrap;
}
.nav__dropdown-inner a:hover {
  background: var(--color-surface);
  color: var(--color-primary);
}

/* Grupo y etiqueta en menú móvil */
.mobile-menu__group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  padding: 12px 0 4px;
  margin-top: 8px;
  border-top: 1px solid var(--color-border);
}
.mobile-menu__group:first-child .mobile-menu__label {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}
.mobile-menu__group a {
  padding: 8px 0;
  padding-left: 12px;
}

.cta {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--color-primary);
  color: white;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.cta:hover {
  background: var(--color-accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 74, 146, 0.3);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  border-radius: 12px;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 16px;
}
.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
}
.button--ghost {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-primary);
  box-shadow: none;
}
.button--ghost:hover { 
  border-color: var(--color-accent);
  background: rgba(2, 74, 146, 0.1);
  transform: translateY(-2px);
}

.burger {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: rgba(248, 250, 252, 0.8);
  color: var(--color-text);
}

.mobile-menu {
  display: none;
  padding: 20px;
}
.mobile-menu a {
  display: block;
  padding: 10px 0;
  text-decoration: none;
  padding-left: 1rem;
}
.mobile-menu a:hover { color: var(--color-text); }

.hero {
  padding: 100px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(2, 74, 146, 0.05) 0%, transparent 70%);
  pointer-events: none;
}
.hero__inner {
  display: grid;
  gap: 32px;
  position: relative;
  z-index: 1;
}
.badge {
  display: inline-flex; 
  align-items: center; 
  gap: 8px;
  padding: 10px 16px; 
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(2, 74, 146, 0.1), rgba(30, 64, 175, 0.1));
  color: var(--color-primary);
  border: 1px solid rgba(2, 74, 146, 0.2);
  font-weight: 600; 
  font-size: 14px;
  margin-bottom: 8px;
}
.hero h1 {
  margin: 0;
  font-size: 48px; 
  line-height: 1.1;
  letter-spacing: -0.8px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  margin: 0; 
  color: var(--color-muted); 
  font-size: 20px;
  line-height: 1.6;
  max-width: 600px;
}
.hero__cta { 
  display: flex; 
  gap: 16px; 
  flex-wrap: wrap;
  margin-top: 8px;
}

.hero__card {
  margin-top: 32px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.8), rgba(255, 255, 255, 0.6));
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 18px;
}
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.stat {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
}
.stat:hover {
  border-color: var(--color-primary);
  background: rgba(2, 74, 146, 0.05);
  transform: translateY(-2px);
}
.stat__icon {
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(2, 74, 146, 0.1), rgba(30, 64, 175, 0.1));
  border-radius: 8px;
  border: 1px solid rgba(2, 74, 146, 0.2);
}
.stat__icon svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
  transition: all 0.3s ease;
}
.stat:hover .stat__icon svg {
  color: var(--color-accent);
  transform: scale(1.1);
}
.stat strong { 
  font-size: 24px; 
  font-weight: 800;
  color: var(--color-text);
}
.stat span { 
  color: var(--color-muted); 
  font-size: 13px;
  font-weight: 500;
}

.section {
  padding: 80px 0;
  position: relative;
}
.section:nth-child(even) {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.5), rgba(255, 255, 255, 0.3));
}
.section__head { 
  margin-bottom: 48px; 
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.section__head--spaced {
  margin-top: 4rem;
}
.section__kicker { 
  color: var(--color-primary); 
  font-weight: 700; 
  font-size: 13px; 
  letter-spacing: 1px; 
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-block;
  padding: 6px 12px;
  background: rgba(2, 74, 146, 0.1);
  border-radius: 20px;
  border: 1px solid rgba(2, 74, 146, 0.2);
}
.section__title { 
  margin: 0; 
  font-size: 36px; 
  letter-spacing: -0.5px; 
  font-weight: 800;
  line-height: 1.2;
}
.section__desc { 
  color: var(--color-muted); 
  margin-top: 16px; 
  font-size: 18px;
  line-height: 1.6;
}

/* Aviso cumplimiento normativo SUNAT (Planes y precios) */
.precios__compliance {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto 40px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(2, 74, 146, 0.06), rgba(30, 64, 175, 0.04));
  border: 1px solid rgba(2, 74, 146, 0.15);
  border-radius: var(--radius);
  text-align: left;
}
.precios__compliance-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--color-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 50%;
}
.precios__compliance-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text);
}

.grid { display: grid; gap: 16px; }
.cards-3 { grid-template-columns: 1fr; }
.cards-4 { grid-template-columns: 1fr; }

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.7));
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(2, 74, 146, 0.3);
}
.card:hover::before {
  opacity: 1;
}
.card h3 { 
  margin: 0 0 12px; 
  font-size: 20px; 
  font-weight: 700;
  color: var(--color-text);
}
.card p { 
  margin: 0 0 16px; 
  color: var(--color-muted); 
  line-height: 1.6;
}
.card .chip { 
  display: inline-block; 
  padding: 6px 12px; 
  border: 1px solid var(--color-border); 
  border-radius: 999px; 
  font-size: 12px; 
  color: var(--color-muted);
  background: rgba(248, 250, 252, 0.8);
  font-weight: 500;
}

/* Iconos SVG animados */
.card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(2, 74, 146, 0.1), rgba(30, 64, 175, 0.1));
  border-radius: 12px;
  border: 1px solid rgba(2, 74, 146, 0.2);
  transition: all 0.3s ease;
}

.card__icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
  transition: all 0.3s ease;
}

.card__features {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-muted);
}

.feature-item svg {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
  animation: pulse 2s ease-in-out infinite;
}

.card:hover .card__icon {
  background: linear-gradient(135deg, rgba(2, 74, 146, 0.2), rgba(30, 64, 175, 0.2));
  border-color: rgba(2, 74, 146, 0.4);
  transform: scale(1.1);
}

.card:hover .card__icon svg {
  color: var(--color-accent);
  transform: rotate(5deg);
}

/* Animaciones específicas por icono */
.icon-mobile {
  animation: float 3s ease-in-out infinite;
}

.icon-web {
  animation: pulse 2s ease-in-out infinite;
}

.icon-consulting {
  animation: spin 4s linear infinite;
}

.icon-discovery {
  animation: bounce 2s ease-in-out infinite;
}

.icon-design {
  animation: float 3s ease-in-out infinite 0.5s;
}

.icon-development {
  animation: pulse 2s ease-in-out infinite 1s;
}

.icon-launch {
  animation: bounce 2s ease-in-out infinite 1.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

@keyframes typewriter {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0.3; }
}

@keyframes dataFlow {
  0%, 100% { 
    opacity: 0.3;
    transform: scaleX(0.8);
  }
  50% { 
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Cinta de tecnologías */
.tech-strip {
  overflow: hidden;
  margin: 40px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 16px;
  padding: 20px 0;
  border: 1px solid rgba(2, 74, 146, 0.1);
}

.tech-strip__content {
  display: flex;
  gap: 40px;
  animation: scrollLeft 30s linear infinite;
  width: 200%;
}

.tech-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(2, 74, 146, 0.1);
  border: 1px solid rgba(2, 74, 146, 0.1);
  transition: all 0.3s ease;
  white-space: nowrap;
  min-width: fit-content;
}

.tech-logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(2, 74, 146, 0.15);
  border-color: var(--color-primary);
}

.tech-logo svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.tech-logo span {
  font-weight: 600;
  color: var(--color-text);
  font-size: 14px;
}

/* Métricas de tecnologías */
.tech-metrics {
  margin-top: 60px;
}

.metrics-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.metrics-left {
  width: 100%;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 20px;
}

.metric-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: white;
  border-radius: 12px;
  border: 1px solid rgba(2, 74, 146, 0.1);
  box-shadow: 0 2px 8px rgba(2, 74, 146, 0.05);
  transition: all 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(2, 74, 146, 0.1);
  border-color: var(--color-primary);
}

.metric-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.metric-icon svg {
  width: 20px;
  height: 20px;
  color: white;
}

.metric-content {
  flex: 1;
}

.metric-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.metric-label {
  font-size: 14px;
  color: var(--color-muted);
  font-weight: 500;
}

/* Gráfico de rendimiento */
.performance-chart {
  background: white;
  border-radius: 16px;
  padding: 30px;
  border: 1px solid rgba(2, 74, 146, 0.1);
  box-shadow: 0 4px 20px rgba(2, 74, 146, 0.05);
}

.chart-header {
  text-align: center;
  margin-bottom: 30px;
}

.chart-header h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.chart-header p {
  color: var(--color-muted);
  font-size: 16px;
}

.chart-bars {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.chart-bar {
  display: flex;
  align-items: center;
  gap: 20px;
}

.bar-label {
  min-width: 120px;
  font-weight: 600;
  color: var(--color-text);
  font-size: 14px;
}

.bar-container {
  flex: 1;
  height: 12px;
  background: #f1f5f9;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 6px;
  transition: width 1.5s ease-in-out;
  animation: fillBar 2s ease-out;
}

.bar-value {
  min-width: 40px;
  text-align: right;
  font-weight: 700;
  color: var(--color-primary);
  font-size: 14px;
}

@keyframes fillBar {
  0% {
    width: 0%;
  }
  100% {
    width: var(--target-width, 95%);
  }
}

/* Contenido tecnológico derecho */
.tech-content-right {
  width: 100%;
}

.tech-text h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tech-text p {
  font-size: 16px;
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: 30px;
}

.tech-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.tech-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: white;
  border-radius: 12px;
  border: 1px solid rgba(2, 74, 146, 0.1);
  box-shadow: 0 2px 8px rgba(2, 74, 146, 0.05);
  transition: all 0.3s ease;
  animation: slideInRight 0.6s ease-out;
}

.tech-feature:nth-child(1) { animation-delay: 0.1s; }
.tech-feature:nth-child(2) { animation-delay: 0.2s; }
.tech-feature:nth-child(3) { animation-delay: 0.3s; }
.tech-feature:nth-child(4) { animation-delay: 0.4s; }

.tech-feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(2, 74, 146, 0.1);
  border-color: var(--color-primary);
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  color: white;
}

.feature-text h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.feature-text p {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.5;
  margin: 0;
}

.tech-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tech-stat {
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, rgba(2, 74, 146, 0.05), rgba(2, 74, 146, 0.1));
  border-radius: 12px;
  border: 1px solid rgba(2, 74, 146, 0.1);
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s ease-out;
}

.tech-stat:nth-child(1) { animation-delay: 0.5s; }
.tech-stat:nth-child(2) { animation-delay: 0.6s; }
.tech-stat:nth-child(3) { animation-delay: 0.7s; }

.tech-stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(2, 74, 146, 0.15);
}

.stat-number {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
  animation: countUp 2s ease-out;
}

.stat-label {
  font-size: 12px;
  color: var(--color-muted);
  font-weight: 500;
}

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes countUp {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.kpi { padding: 14px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.8); }
.kpi strong { font-size: 22px; }
.kpi span { color: var(--color-muted); font-size: 13px; }

.techs { display: flex; flex-wrap: wrap; gap: 12px; }
.tech { 
  padding: 10px 16px; 
  border: 1px solid var(--color-border); 
  border-radius: 999px; 
  color: var(--color-muted); 
  background: rgba(248, 250, 252, 0.8);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
}
.tech:hover {
  border-color: var(--color-primary);
  background: rgba(2, 74, 146, 0.1);
  color: var(--color-text);
  transform: translateY(-2px);
}
.tech-icon {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
  transition: all 0.3s ease;
}
.tech:hover .tech-icon {
  color: var(--color-accent);
  transform: scale(1.1);
}

.tech-icon {
  animation: pulse 3s ease-in-out infinite;
}

.tech:nth-child(odd) .tech-icon {
  animation-delay: 0.5s;
}

.tech:nth-child(even) .tech-icon {
  animation-delay: 1s;
}

.footer {
  background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
  color: white;
  padding: 60px 0 0;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-primary));
}

.footer::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(2, 74, 146, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.footer__top { 
  display: grid; 
  gap: 30px; 
  margin-bottom: 40px;
  grid-template-columns: 1fr;
  position: relative;
  z-index: 2;
}

.footer__brand { 
  display: flex; 
  flex-direction: column;
  gap: 16px;
  margin-bottom: 0;
}

.footer__brand .brand__logo {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer__brand .help {
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  margin-left: 0;
  line-height: 1.6;
}

.footer__description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  line-height: 1.6;
  max-width: 400px;
}

.footer__links { 
  display: grid; 
  gap: 20px; 
}

.footer__links strong {
  color: white;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.footer__links strong::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 2px;
}

.footer__links a { 
  color: rgba(255, 255, 255, 0.7); 
  text-decoration: none; 
  transition: all 0.3s ease;
  font-size: 15px;
  padding: 8px 0;
  position: relative;
  display: inline-block;
}

.footer__links a:hover { 
  color: white;
  transform: translateX(8px);
}

.footer__links a::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.footer__links a:hover::before {
  width: 8px;
}

.footer__social {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.footer__social a {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.footer__social a:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(2, 74, 146, 0.3);
}

.footer__bottom { 
  background: rgba(0, 0, 0, 0.2);
  padding: 20px 0;
  color: rgba(255, 255, 255, 0.6); 
  font-size: 14px; 
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0 -20px;
  position: relative;
  z-index: 2;
}

.footer__bottom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

/* Forms */
.form { position: relative; display: grid; gap: 12px; }
.input, .select, .textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.8);
  color: var(--color-text);
}
.textarea { min-height: 120px; resize: vertical; }
.field { display: grid; gap: 6px; }
.label { font-size: 14px; font-weight: 600; color: var(--color-text); }
.label-optional { font-weight: 400; color: var(--color-muted); }
.field-hint { font-size: 12px; color: var(--color-muted); margin-top: 4px; }
/* Honeypots: ocultos para usuarios, visibles en DOM para bots */
.form-honey {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.help { font-size: 12px; color: var(--color-muted); }

/* Contact steps */
.steps { display: grid; gap: 12px; }
.step { display: none; }
.step.active { display: grid; gap: 12px; }
.stepper { display: flex; gap: 8px; }
.stepper .dot { width: 10px; height: 10px; border-radius: 999px; background: var(--color-border); }
.stepper .dot.active { background: var(--color-primary); }

/* Service pages styles */
.service-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.service-list li {
  padding: 6px 0;
  color: var(--color-muted);
  position: relative;
  padding-left: 20px;
}

.service-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

.cards-2 { grid-template-columns: 1fr; }

/* Team page styles */
.team-card {
  text-align: center;
}

.team-avatar {
  margin-bottom: 16px;
}

.avatar-placeholder {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(2, 74, 146, 0.1), rgba(30, 64, 175, 0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(2, 74, 146, 0.2);
}

.avatar-placeholder svg {
  width: 40px;
  height: 40px;
  color: var(--color-primary);
}

.team-role {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 14px;
  margin: 8px 0;
}

.team-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 12px;
}

.skill-tag {
  padding: 4px 8px;
  background: rgba(2, 74, 146, 0.1);
  color: var(--color-primary);
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid rgba(2, 74, 146, 0.2);
}

/* Navigation active state */
.nav a.active,
.mobile-menu a.active {
  color: var(--color-primary);
  font-weight: 600;
}

/* Pricing section styles */
.price-wrapper {
  position: relative;
  text-align: center;
  margin: 16px 0;
}

.price-label {
  display: inline-block;
  background: var(--color-primary);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 12px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.price {
  font-size: 32px;
  font-weight: 800;
  color: var(--color-primary);
  margin: 0;
}

.tech-badge {
  background: linear-gradient(135deg, rgba(2, 74, 146, 0.1), rgba(30, 64, 175, 0.1));
  color: var(--color-primary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  margin: 12px 0;
  border: 1px solid rgba(2, 74, 146, 0.2);
}

.hosting-info {
  margin-top: 16px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(2, 74, 146, 0.05), rgba(30, 64, 175, 0.05));
  border-radius: 12px;
  border: 1px solid rgba(2, 74, 146, 0.1);
}

.hosting-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--color-muted);
}

.hosting-item:last-child {
  margin-bottom: 0;
}

.hosting-item svg {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
  animation: pulse 2s ease-in-out infinite;
}

.hosting-item:nth-child(2) svg {
  animation-delay: 0.5s;
}

.card ul {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.card ul li {
  padding: 6px 0;
  color: var(--color-muted);
  position: relative;
  padding-left: 20px;
}

.card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

/* GestiMype / Producto destacado section */
.section--gestipyme {
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
}

/* Bloque Producto destacado — relacionado al hero, llamativo */
.producto-destacado {
  text-align: center;
  padding: 48px 28px 44px;
  margin-bottom: 40px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
  border-radius: 24px;
  border: 1px solid rgba(2, 74, 146, 0.12);
  box-shadow: 0 8px 40px rgba(2, 74, 146, 0.08), 0 2px 12px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.producto-destacado::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  opacity: 0.9;
}

.producto-destacado__badge {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(2, 74, 146, 0.1), rgba(30, 64, 175, 0.06));
  border: 1px solid rgba(2, 74, 146, 0.2);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.producto-destacado__title {
  font-size: 38px;
  font-weight: 800;
  color: var(--color-primary);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

@media (min-width: 640px) {
  .producto-destacado__title {
    font-size: 44px;
  }
}

.producto-destacado__claim {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 12px;
  line-height: 1.35;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.producto-destacado__tagline {
  font-size: 17px;
  color: var(--color-muted);
  max-width: 600px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.producto-destacado__hooks {
  list-style: none;
  padding: 0;
  margin: 0 auto 28px;
  max-width: 520px;
  text-align: left;
}

.producto-destacado__hooks li {
  position: relative;
  padding: 10px 0 10px 36px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.45;
  border-bottom: 1px solid rgba(2, 74, 146, 0.06);
}

.producto-destacado__hooks li:last-child {
  border-bottom: none;
}

.producto-destacado__hooks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23024A92' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") no-repeat center;
  background-size: 18px 18px;
}

.producto-destacado__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}

.producto-destacado__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  font-size: 13px;
  color: var(--color-muted);
}

.producto-destacado__trust-item {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  border: 1px solid var(--color-border);
  font-weight: 500;
}

/* Legacy: gestipyme-hero (servicios.html y compatibilidad) */
.gestipyme-hero {
  text-align: center;
  padding: 48px 24px 40px;
  margin-bottom: 32px;
  background: linear-gradient(135deg, rgba(2, 74, 146, 0.06), rgba(30, 64, 175, 0.04));
  border-radius: var(--radius);
  border: 1px solid rgba(2, 74, 146, 0.12);
}

.gestipyme-hero__title {
  font-size: 36px;
  font-weight: 800;
  color: var(--color-primary);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.gestipyme-hero__tagline {
  font-size: 18px;
  color: var(--color-muted);
  max-width: 640px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.gestipyme-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}

.gestipyme-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  font-size: 13px;
  color: var(--color-muted);
}

.gestipyme-trust__item {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  border: 1px solid var(--color-border);
}

/* Benefits grid */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 32px 0 48px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: white;
  border-radius: var(--radius);
  border: 1px solid rgba(2, 74, 146, 0.1);
  box-shadow: 0 2px 8px rgba(2, 74, 146, 0.05);
  transition: all 0.3s ease;
}

.benefit-item:hover {
  border-color: rgba(2, 74, 146, 0.25);
  box-shadow: 0 4px 16px rgba(2, 74, 146, 0.1);
}

.benefit-item__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(2, 74, 146, 0.1), rgba(30, 64, 175, 0.08));
  border-radius: 12px;
  border: 1px solid rgba(2, 74, 146, 0.2);
}

.benefit-item__icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
}

.benefit-item h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
}

.benefit-item p {
  margin: 0;
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.5;
}

/* GestiMype plans */
.gestipyme-plans .card--featured {
  border-color: var(--color-primary);
  box-shadow: 0 4px 20px rgba(2, 74, 146, 0.15);
}

.card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  background: var(--color-primary);
  color: white;
  border-radius: 999px;
}

.card--featured {
  position: relative;
}

/* Testimonials */
.testimonials-section {
  margin: 48px 0 32px;
}

.testimonial-card {
  font-style: normal;
  padding: 24px;
}

.testimonial-card__quote {
  font-size: 16px;
  color: var(--color-text);
  line-height: 1.6;
  margin: 0 0 12px;
}

.testimonial-card__author {
  font-size: 14px;
  color: var(--color-muted);
  margin: 0;
}

/* Testimonios diseño profesional */
.testimonials-section--pro {
  margin: 56px 0 48px;
}

.testimonials-pro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 40px;
}

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

.testimonial-pro {
  position: relative;
  padding: 32px 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
  border-radius: 20px;
  border: 1px solid rgba(2, 74, 146, 0.08);
  box-shadow: 0 4px 24px rgba(2, 74, 146, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.testimonial-pro:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(2, 74, 146, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
}

.testimonial-pro__quote-mark {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-primary);
  opacity: 0.35;
}

.testimonial-pro__quote-mark svg {
  width: 36px;
  height: 36px;
}

.testimonial-pro__text {
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text);
  margin: 0 0 24px;
  font-weight: 500;
}

.testimonial-pro__author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-pro__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: white;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.testimonial-pro__author div:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial-pro__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  display: block;
}

.testimonial-pro__role {
  font-size: 13px;
  color: var(--color-muted);
  font-weight: 500;
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 0 auto 48px;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  background: white;
}

.faq-question {
  display: block;
  padding: 16px 20px;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  float: right;
  font-size: 20px;
  color: var(--color-primary);
}

.faq-item[open] .faq-question::after {
  content: '−';
}

.faq-answer {
  padding: 0 20px 16px;
  font-size: 15px;
  color: var(--color-muted);
  line-height: 1.6;
}

/* GestiPyme CTA */
.gestipyme-cta {
  text-align: center;
  padding: 40px 24px;
  background: linear-gradient(135deg, rgba(2, 74, 146, 0.08), rgba(30, 64, 175, 0.06));
  border-radius: var(--radius);
  border: 1px solid rgba(2, 74, 146, 0.15);
}

.gestipyme-cta__text {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--color-text);
}

.gestipyme-cta__hint {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  color: var(--color-muted);
}

.gestipyme-cta__hint a {
  color: var(--color-primary);
  text-decoration: none;
}

.gestipyme-cta__hint a:hover {
  text-decoration: underline;
}

/* Bloques de producto (POS, Planillas, E-commerce en productos.html) */
.product-block {
  padding: 48px 0;
}

.product-block--alt {
  background: var(--color-surface);
}

.product-block__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
  border-radius: 20px;
  border: 1px solid rgba(2, 74, 146, 0.1);
  box-shadow: 0 4px 24px rgba(2, 74, 146, 0.06);
}

.product-block--alt .product-block__inner {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
}

.product-block .section__kicker {
  margin-bottom: 12px;
}

.product-block__title {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-primary);
  margin: 0 0 12px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .product-block__title {
    font-size: 32px;
  }
}

.product-block__lead {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 12px;
  line-height: 1.4;
}

.product-block__desc {
  font-size: 16px;
  color: var(--color-muted);
  line-height: 1.65;
  margin: 0 0 24px;
}

.product-block__features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  text-align: left;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.product-block__features li {
  position: relative;
  padding: 8px 0 8px 28px;
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.45;
}

.product-block__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background: var(--color-primary);
  border-radius: 50%;
  opacity: 0.6;
}

.product-block__features li::after {
  content: '✓';
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  font-weight: 700;
  color: white;
}

/* Sección Productos (index) */
.section--productos {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface) 100%);
}

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

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

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

.product-card {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.product-card__visual {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.product-card__icon {
  margin-bottom: 0;
}

.product-card__tag {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-primary);
  padding: 6px 12px;
  background: rgba(2, 74, 146, 0.08);
  border-radius: 999px;
}

.product-card .button {
  margin-top: auto;
}

.productos-cta {
  text-align: center;
  margin-top: 40px;
}

/* Hero productos (página productos.html) */
/* Hero Productos — diseño profesional */
.hero--productos {
  position: relative;
  min-height: 520px;
  padding: 80px 0 100px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-productos__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-productos__gradient {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 120% 80% at 20% 20%, rgba(2, 74, 146, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 100% 100% at 80% 80%, rgba(30, 64, 175, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 60% at 50% 100%, rgba(2, 74, 146, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface) 100%);
}

.hero-productos__grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(2, 74, 146, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(2, 74, 146, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 70%);
}

.hero-productos__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: heroGlowFloat 12s ease-in-out infinite;
}

.hero-productos__glow--1 {
  width: 400px;
  height: 400px;
  background: rgba(2, 74, 146, 0.15);
  top: -100px;
  right: -80px;
  animation-delay: 0s;
}

.hero-productos__glow--2 {
  width: 300px;
  height: 300px;
  background: rgba(30, 64, 175, 0.12);
  bottom: -50px;
  left: -60px;
  animation-delay: -4s;
}

.hero-productos__glow--3 {
  width: 200px;
  height: 200px;
  background: rgba(2, 74, 146, 0.1);
  top: 40%;
  left: 30%;
  animation-delay: -8s;
}

@keyframes heroGlowFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -15px) scale(1.05); }
  66% { transform: translate(-15px, 10px) scale(0.98); }
}

.hero-productos__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 1024px) {
  .hero--productos {
    min-height: 580px;
    padding: 100px 0 120px;
  }
  .hero-productos__inner {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }
}

.hero-productos__content {
  text-align: center;
}

@media (min-width: 1024px) {
  .hero-productos__content {
    text-align: left;
  }
}

.hero-productos__badge {
  display: inline-block;
  padding: 10px 18px;
  background: linear-gradient(135deg, rgba(2, 74, 146, 0.12), rgba(30, 64, 175, 0.08));
  border: 1px solid rgba(2, 74, 146, 0.2);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 20px;
  animation: heroFadeIn 0.8s ease-out;
}

.hero-productos__title {
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--color-text);
  margin: 0 0 20px;
  animation: heroFadeIn 0.8s ease-out 0.1s both;
}

@media (min-width: 640px) {
  .hero-productos__title {
    font-size: 44px;
  }
}

@media (min-width: 1024px) {
  .hero-productos__title {
    font-size: 48px;
    margin-bottom: 24px;
  }
}

.hero-productos__desc {
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-muted);
  margin: 0 0 28px;
  max-width: 480px;
  animation: heroFadeIn 0.8s ease-out 0.2s both;
}

@media (min-width: 1024px) {
  .hero-productos__desc {
    margin-left: 0;
    margin-right: 0;
    font-size: 18px;
  }
}

.hero-productos__content .hero-productos__desc {
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1024px) {
  .hero-productos__content .hero-productos__desc {
    margin-left: 0;
    margin-right: 0;
  }
}

.hero-productos__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
  animation: heroFadeIn 0.8s ease-out 0.3s both;
}

@media (min-width: 1024px) {
  .hero-productos__cta {
    justify-content: flex-start;
  }
}

.hero-productos__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  animation: heroFadeIn 0.8s ease-out 0.4s both;
}

@media (min-width: 1024px) {
  .hero-productos__tags {
    justify-content: flex-start;
  }
}

.hero-productos__tag {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-muted);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--color-border);
}

.hero-productos__tag--active {
  color: var(--color-primary);
  background: rgba(2, 74, 146, 0.08);
  border-color: rgba(2, 74, 146, 0.25);
}

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

/* Visual: tarjetas flotantes + logo */
.hero-productos__visual {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-productos__cards {
  position: absolute;
  width: 100%;
  max-width: 320px;
  height: 280px;
  left: 50%;
  transform: translateX(-50%);
}

.hero-productos__card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
  border: 1px solid rgba(2, 74, 146, 0.1);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(2, 74, 146, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(12px);
  animation: heroCardFloat 6s ease-in-out infinite;
}

.hero-productos__card img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(2, 74, 146, 0.15));
}

.hero-productos__card span {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
}

.hero-productos__card--1 {
  top: 0;
  left: 0;
  animation-delay: 0s;
}

.hero-productos__card--2 {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  animation-delay: -2s;
}

.hero-productos__card--3 {
  bottom: 0;
  left: 10%;
  animation-delay: -4s;
}

@keyframes heroCardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-productos__card--2 {
  transform: translateY(-50%);
}

@keyframes heroCardFloat2 {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translateY(calc(-50% - 8px)); }
}

.hero-productos__card--2 {
  animation-name: heroCardFloat2;
}

.hero-productos__center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-productos__logo-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.85));
  border: 1px solid rgba(2, 74, 146, 0.12);
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(2, 74, 146, 0.12);
  animation: heroLogoPulse 4s ease-in-out infinite;
}

.hero-productos__logo-wrap img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.hero-productos__logo-wrap .hero-productos__center-icon {
  width: 64px;
  height: 64px;
  color: var(--color-primary);
  filter: drop-shadow(0 2px 6px rgba(2, 74, 146, 0.2));
}

.hero-productos__center-label {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

@keyframes heroLogoPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 12px 40px rgba(2, 74, 146, 0.12); }
  50% { transform: scale(1.03); box-shadow: 0 16px 48px rgba(2, 74, 146, 0.16); }
}

.hero-productos__scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--color-muted);
  font-weight: 500;
  z-index: 1;
  animation: heroFadeIn 0.8s ease-out 0.6s both;
}

.hero-productos__scroll svg {
  animation: heroScrollBounce 2s ease-in-out infinite;
}

@keyframes heroScrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* Legacy: mantener compatibilidad si algo usaba .hero--productos .hero__inner */
.hero--productos .hero__inner {
  display: none;
}

.hero--productos .badge {
  margin-bottom: 12px;
}

.hero--productos h1 {
  margin-bottom: 16px;
}

.hero--productos p {
  color: var(--color-muted);
  font-size: 18px;
  line-height: 1.6;
}

/* Hero precios (página precios.html) — identidad propia vs servicios/productos */
.hero--precios {
  position: relative;
  min-height: 380px;
  padding: 72px 0 80px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-precios__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-precios__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 70% at 70% 30%, rgba(2, 74, 146, 0.1) 0%, transparent 55%),
    radial-gradient(ellipse 80% 80% at 30% 70%, rgba(30, 64, 175, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface) 100%);
}

.hero-precios__pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(2, 74, 146, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(2, 74, 146, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 30%, transparent 70%);
}

.hero-precios__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-precios__badge {
  display: inline-block;
  padding: 10px 18px;
  background: linear-gradient(135deg, rgba(2, 74, 146, 0.12), rgba(30, 64, 175, 0.08));
  border: 1px solid rgba(2, 74, 146, 0.2);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.hero-precios__title {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--color-text);
  margin: 0 0 16px;
}

.hero-precios__desc {
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-muted);
  margin: 0 0 24px;
}

.hero-precios__inner .button {
  margin-top: 0;
}

@media (min-width: 640px) {
  .hero--precios {
    min-height: 420px;
    padding: 88px 0 96px;
  }
  .hero-precios__title {
    font-size: 40px;
  }
}

@media (min-width: 1024px) {
  .hero--precios {
    min-height: 440px;
    padding: 96px 0 104px;
  }
  .hero-precios__title {
    font-size: 44px;
    margin-bottom: 20px;
  }
  .hero-precios__desc {
    font-size: 18px;
  }
}

/* Hero contacto (página contacto.html) */
.hero--contacto {
  position: relative;
  min-height: 380px;
  padding: 72px 0 80px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-contacto__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-contacto__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 70% at 30% 30%, rgba(2, 74, 146, 0.1) 0%, transparent 55%),
    radial-gradient(ellipse 80% 80% at 70% 70%, rgba(30, 64, 175, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface) 100%);
}

.hero-contacto__pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(2, 74, 146, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(2, 74, 146, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 50%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 50%, black 30%, transparent 70%);
}

.hero-contacto__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-contacto__badge {
  display: inline-block;
  padding: 10px 18px;
  background: linear-gradient(135deg, rgba(2, 74, 146, 0.12), rgba(30, 64, 175, 0.08));
  border: 1px solid rgba(2, 74, 146, 0.2);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.hero-contacto__title {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--color-text);
  margin: 0 0 16px;
}

.hero-contacto__desc {
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-muted);
  margin: 0 0 24px;
}

.hero-contacto__inner .button {
  margin-top: 0;
}

@media (min-width: 640px) {
  .hero--contacto {
    min-height: 420px;
    padding: 88px 0 96px;
  }
  .hero-contacto__title {
    font-size: 40px;
  }
}

@media (min-width: 1024px) {
  .hero--contacto {
    min-height: 440px;
    padding: 96px 0 104px;
  }
  .hero-contacto__title {
    font-size: 44px;
    margin-bottom: 20px;
  }
  .hero-contacto__desc {
    font-size: 18px;
  }
}

/* Button small */
.button--small {
  padding: 12px 20px;
  font-size: 14px;
  margin-top: 8px;
}

/* Price period */
.price-period {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-muted);
  margin-left: 4px;
}

/* Card GestiMype in services */
.card--gestipyme .button--small {
  display: inline-block;
}

.icon-gestipyme {
  animation: pulse 2s ease-in-out infinite;
}

/* Scroll to top button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(2, 74, 146, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(2, 74, 146, 0.4);
}

.scroll-to-top svg {
  width: 20px;
  height: 20px;
}

/* Contact Alert Messages */
.contact-alert {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  max-width: 400px;
  padding: 20px 24px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, 'Helvetica Neue', Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
}

/* Variante inline: debajo del formulario */
.contact-alert.contact-alert--inline {
  position: static;
  top: auto;
  right: auto;
  left: auto;
  max-width: none;
  width: 100%;
  transform: none;
  opacity: 1;
  margin-top: 12px;
}
.contact-alert.contact-alert--inline.show {
  transform: none;
  opacity: 1;
}

.contact-alert.show {
  transform: translateX(0);
  opacity: 1;
}

.contact-alert.success {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.95), rgba(16, 185, 129, 0.95));
  color: white;
  border-color: rgba(34, 197, 94, 0.3);
}

.contact-alert.error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.95), rgba(220, 38, 38, 0.95));
  color: white;
  border-color: rgba(239, 68, 68, 0.3);
}

.contact-alert__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

.contact-alert.success .contact-alert__icon {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.contact-alert.error .contact-alert__icon {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.contact-alert__icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.contact-alert__content {
  flex: 1;
}

.contact-alert__title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.contact-alert__message {
  font-size: 14px;
  margin: 0;
  opacity: 0.9;
  line-height: 1.4;
}

.contact-alert__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.contact-alert__close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.contact-alert__close svg {
  width: 16px;
  height: 16px;
}

/* Progress bar for auto-hide */
.contact-alert__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 0 0 16px 16px;
  overflow: hidden;
}

.contact-alert__progress-bar {
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 0 0 16px 16px;
  animation: progressBar 6s linear forwards;
}

@keyframes progressBar {
  0% { width: 100%; }
  100% { width: 0%; }
}

/* Mobile responsive */
@media (max-width: 640px) {
  .contact-alert {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
    padding: 16px 20px;
  }
  
  .contact-alert__icon {
    width: 40px;
    height: 40px;
  }
  
  .contact-alert__icon svg {
    width: 20px;
    height: 20px;
  }
  
  .contact-alert__title {
    font-size: 15px;
  }
  
  .contact-alert__message {
    font-size: 13px;
  }
  
  .contact-alert__close {
    width: 28px;
    height: 28px;
  }
  
  .contact-alert__close svg {
    width: 14px;
    height: 14px;
  }
}

/* Responsive */
@media (max-width: 640px) {
  .hero h1 { font-size: 36px; }
  .section__title { font-size: 28px; }
  .section { padding: 60px 0; }
  .hero__cta { flex-direction: column; align-items: flex-start; }
  .button { width: 100%; justify-content: center; }
  .cards-2 { grid-template-columns: 1fr; }
  .cta { 
    display: none !important; 
    color: white !important;
  }
  header.site-header {
    padding: 0 20px;
  }
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

@media (min-width: 768px) {
  .cards-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 640px) {
  .hero h1 { font-size: 44px; }
  .grid { gap: 20px; }
  .section__title { font-size: 32px; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .gestipyme-hero__title { font-size: 42px; }
}

@media (max-width: 768px) {
  .cta { 
    display: none !important; 
    color: white !important;
  }
  /* Zona clientes solo dentro del menú móvil, no al lado del logo */
  .navbar .button {
    display: none !important;
  }
  header.site-header {
    padding: 0 20px;
  }
}
@media (min-width: 768px) {
  .nav { display: flex; }
  .cta { display: inline-flex; }
  .burger { display: none; }
  .hero { padding: 120px 0 80px; }
  .hero h1 { font-size: 56px; }
  .section__title { font-size: 40px; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .cards-4 { grid-template-columns: repeat(4, 1fr); }
  .footer__top { 
    grid-template-columns: 2fr 1fr 1fr 1fr; 
    gap: 25px;
  }
  .hero__cta { flex-direction: row; }
  .button { width: auto; }
}

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

/* Hero Layout Update */
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero__content {
  text-align: left;
}

.hero__visual {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tech Illustration */
.tech-illustration {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 800px;
  max-height: 600px;
}

/* Laptop */
.laptop {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  animation: float 6s ease-in-out infinite;
}

.laptop-screen {
  width: 200px;
  height: 120px;
  background: #1a1a1a;
  border-radius: 8px;
  position: relative;
  border: 3px solid #333;
}

.laptop-base {
  width: 220px;
  height: 8px;
  background: #333;
  border-radius: 4px;
  margin-top: -2px;
}

.screen-content {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  background: #1a1a1a;
  border-radius: 4px;
  overflow: hidden;
  padding: 12px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.code-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.code-line {
  font-size: 10px;
  line-height: 1.2;
  animation: typewriter 3s ease-in-out infinite;
}

.code-line.html {
  color: #ff6b6b;
  animation-delay: 0s;
}

.code-line.css {
  color: #4ecdc4;
  animation-delay: 1s;
}

.code-line.js {
  color: #ffd93d;
  animation-delay: 2s;
}

.code-line.react {
  color: #61dafb;
  animation-delay: 3s;
}

.terminal-cursor {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 8px;
  height: 12px;
  background: #00ff88;
  animation: blink 1s ease-in-out infinite;
}

/* Escritorio de trabajo */
.desktop-setup {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 140px;
  animation: float 3s ease-in-out infinite;
}

.desk-surface {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20px;
  background: linear-gradient(135deg, #8b7355, #a0855b);
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.monitor {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 80px;
}

.monitor-screen {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 20px;
  background: #1a1a1a;
  border-radius: 8px;
  border: 3px solid #333;
  overflow: hidden;
}

.monitor-base {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 20px;
  background: #333;
  border-radius: 4px;
}

.keyboard {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 8px;
  background: #2d3748;
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.mouse {
  position: absolute;
  bottom: 25px;
  right: 20px;
  width: 12px;
  height: 8px;
  background: #4a5568;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Servidor físico */
.physical-server {
  position: absolute;
  top: 20%;
  left: 5%;
  width: 60px;
  height: 100px;
  animation: float 4s ease-in-out infinite;
}

.server-rack {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2d3748, #4a5568);
  border-radius: 8px;
  border: 2px solid #1a202c;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
}

.server-unit {
  flex: 1;
  background: #1a202c;
  border-radius: 4px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.server-lights {
  display: flex;
  gap: 3px;
}

.server-light {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
}

.server-light.green {
  background: #00ff88;
}

.server-light.blue {
  background: #4ecdc4;
  animation-delay: 0.5s;
}

.server-light.red {
  background: #ff6b6b;
  animation-delay: 1s;
}

.server-fans {
  display: flex;
  gap: 2px;
}

.fan {
  width: 6px;
  height: 6px;
  background: #666;
  border-radius: 50%;
  animation: spin 2s linear infinite;
}

.fan:nth-child(2) {
  animation-delay: 1s;
}

/* Base de datos */
.database {
  position: absolute;
  top: 60%;
  right: 8%;
  width: 50px;
  height: 60px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
  animation: float 5s ease-in-out infinite;
}

.db-icon {
  width: 24px;
  height: 24px;
  color: white;
  margin-bottom: 4px;
}

.db-icon svg {
  width: 100%;
  height: 100%;
}

.db-lights {
  display: flex;
  gap: 3px;
}

.db-light {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #00ff88;
  animation: blink 1.5s ease-in-out infinite;
}

.db-light:nth-child(2) {
  background: #4ecdc4;
  animation-delay: 0.5s;
}

.db-light:nth-child(3) {
  background: #ff6b6b;
  animation-delay: 1s;
}

/* Nube principal */
.main-cloud {
  position: absolute;
  top: 15%;
  right: 20%;
  width: 70px;
  height: 50px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
  animation: float 4s ease-in-out infinite;
}

.cloud-icon {
  width: 30px;
  height: 20px;
  color: white;
  margin-bottom: 2px;
}

.cloud-icon svg {
  width: 100%;
  height: 100%;
}

.cloud-services {
  display: flex;
  gap: 4px;
}

.service-icon {
  width: 12px;
  height: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

/* Servidores de nube */
.cloud-server {
  position: absolute;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.server-1 {
  top: 15%;
  left: 8%;
  animation: float 4s ease-in-out infinite;
}

.server-2 {
  top: 65%;
  right: 12%;
  animation: float 5s ease-in-out infinite;
}

.server-icon {
  width: 24px;
  height: 24px;
  color: white;
  margin-bottom: 4px;
}

.server-icon svg {
  width: 100%;
  height: 100%;
}

.server-lights {
  display: flex;
  gap: 4px;
}

.server-light {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #00ff88;
  animation: blink 1.5s ease-in-out infinite;
}

.server-light:nth-child(2) {
  background: #ff6b6b;
  animation-delay: 0.5s;
}

/* Smartphone */
.smartphone {
  position: absolute;
  top: 20%;
  right: 10%;
  width: 60px;
  height: 100px;
  background: #2d3748;
  border-radius: 12px;
  border: 3px solid #1a202c;
  animation: float 3s ease-in-out infinite;
}

.phone-screen {
  position: absolute;
  top: 8px;
  left: 6px;
  right: 6px;
  bottom: 8px;
  background: #000;
  border-radius: 8px;
  padding: 6px;
}

.app-interface {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.app-header {
  height: 8px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 2px;
  animation: pulse 2s ease-in-out infinite;
}

.app-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.content-line {
  height: 3px;
  background: #4ecdc4;
  border-radius: 1px;
  animation: pulse 2s ease-in-out infinite;
}

.content-line.short {
  width: 60%;
  animation-delay: 0.5s;
}

.app-footer {
  height: 6px;
  background: linear-gradient(90deg, #ff6b6b, #ffd93d);
  border-radius: 2px;
  animation: pulse 2s ease-in-out infinite;
  animation-delay: 1s;
}

/* Desarrollador */
.developer {
  position: absolute;
  top: 50%;
  left: 70%;
  animation: float 4s ease-in-out infinite;
  animation-delay: 2s;
}

.dev-head {
  width: 18px;
  height: 18px;
  background: #ffd93d;
  border-radius: 50%;
  position: relative;
  margin-bottom: 3px;
}

.dev-body {
  width: 14px;
  height: 25px;
  background: #667eea;
  border-radius: 6px;
  position: relative;
  margin: 0 auto 4px;
}

.dev-laptop {
  width: 20px;
  height: 12px;
  background: #2d3748;
  border-radius: 2px;
  position: relative;
  margin: 0 auto;
}

.mini-screen {
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  background: #00ff88;
  border-radius: 1px;
  animation: pulse 2s ease-in-out infinite;
}

/* Iconos flotantes */
.floating-icon {
  position: absolute;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  box-shadow: 0 4px 20px rgba(2, 74, 146, 0.2);
  animation: float 3s ease-in-out infinite;
}

.react-icon {
  top: 10%;
  right: 30%;
  animation-delay: 0.5s;
  background: linear-gradient(135deg, #61dafb, #21d4fd);
}

.node-icon {
  top: 40%;
  left: 5%;
  animation-delay: 1.5s;
  background: linear-gradient(135deg, #68a063, #8cc84b);
}

.deploy-icon {
  bottom: 20%;
  left: 30%;
  animation-delay: 2.5s;
  background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
}

.floating-icon svg {
  width: 20px;
  height: 20px;
}

/* Flujo de datos */
.data-flow {
  position: absolute;
  background: linear-gradient(90deg, transparent, #00ff88, transparent);
  height: 2px;
  animation: dataFlow 3s ease-in-out infinite;
}

.line-1 {
  top: 40%;
  left: 20%;
  right: 30%;
  animation-delay: 0s;
}

.line-2 {
  top: 60%;
  left: 30%;
  right: 20%;
  animation-delay: 0.5s;
}

.line-3 {
  top: 30%;
  left: 50%;
  right: 10%;
  animation-delay: 1s;
}

.line-4 {
  top: 70%;
  left: 10%;
  right: 50%;
  animation-delay: 1.5s;
}

.line-5 {
  top: 45%;
  left: 15%;
  right: 25%;
  animation-delay: 2s;
}

.line-6 {
  top: 25%;
  left: 30%;
  right: 15%;
  animation-delay: 2.5s;
}

/* Responsive para hero */
@media (max-width: 768px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero__content {
    text-align: center;
  }
  
  .hero__visual {
    height: 300px;
  }
  
  .tech-illustration {
    max-width: 400px;
    max-height: 350px;
  }
  
  .main-elements {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
    min-height: 600px;
  }
  
  .server-highlight {
    grid-column: 1;
    grid-row: 1;
  }
  
  .cloud-highlight {
    grid-column: 1;
    grid-row: 2;
  }
  
  .laptop-highlight {
    grid-column: 1;
    grid-row: 3;
  }
  
  .mobile-highlight {
    grid-column: 1;
    grid-row: 4;
  }
  
  .server-highlight img,
  .cloud-highlight img {
    width: 120px;
    height: 120px;
  }
  
  .laptop-highlight img,
  .mobile-highlight img {
    width: 100px;
    height: 100px;
  }
  
  .group-item img {
    width: 35px;
    height: 35px;
  }
  
  .element-group {
    gap: 8px;
  }
  
  .dev-group {
    top: 2%;
    left: 2%;
  }
  
  .backend-group {
    top: 2%;
    right: 2%;
  }
  
  .deploy-group {
    bottom: 2%;
    left: 2%;
  }
  
  .user-group {
    bottom: 2%;
    right: 2%;
  }
  
  .tech-strip {
    margin: 30px 0;
    padding: 15px 0;
  }
  
  .tech-strip__content {
    gap: 20px;
  }
  
  .tech-logo {
    padding: 8px 12px;
    gap: 6px;
  }
  
  .tech-logo svg {
    width: 16px;
    height: 16px;
  }
  
  .tech-logo span {
    font-size: 12px;
  }
  
  .metrics-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .metric-card {
    padding: 15px;
    gap: 12px;
  }
  
  .metric-icon {
    width: 32px;
    height: 32px;
  }
  
  .metric-icon svg {
    width: 16px;
    height: 16px;
  }
  
  .metric-value {
    font-size: 18px;
  }
  
  .metric-label {
    font-size: 12px;
  }
  
  .performance-chart {
    padding: 20px;
  }
  
  .chart-header h3 {
    font-size: 20px;
  }
  
  .chart-header p {
    font-size: 14px;
  }
  
  .chart-bar {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  
  .bar-label {
    min-width: auto;
    font-size: 13px;
  }
  
  .bar-value {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
  }
  
  .tech-text h3 {
    font-size: 24px;
  }
  
  .tech-text p {
    font-size: 14px;
  }
  
  .tech-features {
    gap: 15px;
  }
  
  .tech-feature {
    padding: 15px;
    gap: 12px;
  }
  
  .feature-icon {
    width: 32px;
    height: 32px;
  }
  
  .feature-icon svg {
    width: 16px;
    height: 16px;
  }
  
  .feature-text h4 {
    font-size: 14px;
  }
  
  .feature-text p {
    font-size: 12px;
  }
  
  .tech-stats {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .tech-stat {
    padding: 15px;
  }
  
  .stat-number {
    font-size: 20px;
  }
  
  .stat-label {
    font-size: 11px;
  }
  
  .project-link {
    padding: 8px 12px;
    font-size: 12px;
    gap: 6px;
  }
  
  .project-link svg {
    width: 14px;
    height: 14px;
  }
  
  .laptop-screen {
    width: 150px;
    height: 90px;
  }
  
  .laptop-base {
    width: 170px;
  }
  
  .smartphone {
    width: 45px;
    height: 75px;
  }
  
  .server-rack {
    width: 30px;
    height: 60px;
  }
}

/* Portafolio Slider */
.slider-container {
  position: relative;
  margin-top: 20px;
}

.slider-wrapper {
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
}

.slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 20px;
  padding: 10px 0;
}

.slider-item {
  flex: 0 0 300px;
  margin: 0;
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.slider-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.slider-btn:hover {
  background: var(--color-primary);
  color: white;
  transform: scale(1.1);
}

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

.slider-btn svg {
  width: 20px;
  height: 20px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background: var(--color-primary);
  transform: scale(1.2);
}

.card__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tech-tag {
  padding: 4px 8px;
  background: rgba(2, 74, 146, 0.1);
  color: var(--color-primary);
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid rgba(2, 74, 146, 0.2);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 16px;
  background: var(--color-primary);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.project-link:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 74, 146, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
}

.project-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.project-link:hover svg {
  transform: translateX(2px);
}

/* Elementos principales destacados */
.main-elements {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 400px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 40px;
  padding: 40px;
  align-items: center;
  justify-items: center;
}

.highlight-element {
  position: relative;
  z-index: 2;
  animation: float 4s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

.highlight-element img {
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(2, 74, 146, 0.4));
  transition: transform 0.4s ease;
}

.highlight-element:hover img {
  transform: scale(1.15);
}

/* Servidor (grande, centro-izquierda) */
.server-highlight {
  grid-column: 1;
  grid-row: 1;
}

.server-highlight img {
  width: 180px;
  height: 180px;
}

/* Nube (grande, centro-derecha) */
.cloud-highlight {
  grid-column: 2;
  grid-row: 1;
}

.cloud-highlight img {
  width: 180px;
  height: 180px;
}

/* Laptop (mediano, arriba izquierda) */
.laptop-highlight {
  grid-column: 1;
  grid-row: 2;
}

.laptop-highlight img {
  width: 140px;
  height: 140px;
}

/* Celular (mediano, arriba derecha) */
.mobile-highlight {
  grid-column: 2;
  grid-row: 2;
}

.mobile-highlight img {
  width: 140px;
  height: 140px;
}

/* Elementos secundarios organizados */
.secondary-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 5;
}

.element-group {
  position: absolute;
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: center;
}

.group-item {
  animation: bounce 2s ease-in-out infinite;
  pointer-events: auto;
  z-index: 6;
  position: relative;
}

.group-item img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(2, 74, 146, 0.2));
  transition: transform 0.4s ease;
}

.group-item:hover img {
  transform: scale(1.2) rotate(5deg);
}

.group-item:nth-child(1) { animation-delay: 0s; }
.group-item:nth-child(2) { animation-delay: 0.5s; }
.group-item:nth-child(3) { animation-delay: 1s; }

/* Posicionamiento de grupos */
.dev-group {
  top: 5%;
  left: 5%;
}

.backend-group {
  top: 5%;
  right: 5%;
}

.deploy-group {
  bottom: 5%;
  left: 5%;
}

.user-group {
  bottom: 5%;
  right: 5%;
}

.connection-lines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.connection-line {
  position: absolute;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  opacity: 0.6;
  animation: pulse 2s ease-in-out infinite;
}

.connection-line.line-1 {
  top: 25%;
  left: 20%;
  width: 60%;
  height: 2px;
  animation-delay: 0s;
}

.connection-line.line-2 {
  top: 75%;
  left: 20%;
  width: 60%;
  height: 2px;
  animation-delay: 0.5s;
}

.connection-line.line-3 {
  top: 50%;
  left: 10%;
  width: 2px;
  height: 40%;
  animation-delay: 1s;
}

.connection-line.line-4 {
  top: 50%;
  right: 10%;
  width: 2px;
  height: 40%;
  animation-delay: 1.5s;
}

.connection-line.line-5 {
  top: 20%;
  left: 50%;
  width: 2px;
  height: 60%;
  animation-delay: 2s;
}

.connection-line.line-6 {
  top: 30%;
  left: 30%;
  width: 40%;
  height: 2px;
  animation-delay: 2.5s;
}

.floating-tech-icons {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.tech-icon {
  position: absolute;
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(2, 74, 146, 0.2);
  animation: bounce 2s ease-in-out infinite;
}

.tech-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.tech-icon.rocket-icon {
  top: 10%;
  right: 15%;
  animation-delay: 0s;
}

.tech-icon.cloud-folder-icon {
  bottom: 20%;
  left: 10%;
  animation-delay: 0.5s;
}

.tech-icon.code-icon {
  top: 60%;
  right: 5%;
  animation-delay: 1s;
}

/* Portafolio */
.card--image .card__thumb { 
  border-radius: 12px; 
  overflow: hidden; 
  margin-bottom: 16px; 
  border: 1px solid var(--color-border); 
  background: rgba(248, 250, 252, 0.8);
  position: relative;
  transition: all 0.3s ease;
}
.card--image .card__thumb::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(2, 74, 146, 0.1), rgba(30, 64, 175, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card--image:hover .card__thumb::after {
  opacity: 1;
}
.card--image .card__thumb img { 
  width: 100%; 
  height: 200px; 
  object-fit: cover; 
  display: block;
  transition: transform 0.3s ease;
}
.card--image:hover .card__thumb img {
  transform: scale(1.05);
}

@media (min-width: 768px) {
  .slider-item {
    flex: 0 0 350px;
  }
  .card--image .card__thumb img { height: 180px; }
}

@media (max-width: 640px) {
  .slider-item {
    flex: 0 0 280px;
  }
  .slider-controls {
    margin-top: 20px;
  }
  .slider-btn {
    width: 40px;
    height: 40px;
  }
  .slider-btn svg {
    width: 16px;
    height: 16px;
  }
}

/* Portafolio en Servicios — diseño dinámico con efectos */
.portfolio-servicios {
  position: relative;
  padding: 72px 0 80px;
  overflow: hidden;
}

.portfolio-servicios__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.portfolio-servicios__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(2, 74, 146, 0.06) 0%, transparent 40%, rgba(30, 64, 175, 0.05) 100%);
}

.portfolio-servicios__glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(2, 74, 146, 0.08) 0%, transparent 70%);
  top: -200px;
  right: -150px;
  animation: portfolioGlow 15s ease-in-out infinite;
}

@keyframes portfolioGlow {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.portfolio-servicios .container {
  position: relative;
  z-index: 1;
}

.portfolio-servicios__head {
  text-align: center;
  margin-bottom: 48px;
}

.portfolio-servicios__kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.portfolio-servicios__title {
  font-size: 32px;
  font-weight: 800;
  color: var(--color-text);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .portfolio-servicios__title {
    font-size: 40px;
  }
}

.portfolio-servicios__desc {
  font-size: 17px;
  color: var(--color-muted);
  margin: 0;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

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

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

@media (min-width: 1024px) {
  .portfolio-servicios__grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
    gap: 24px;
  }
  .portfolio-servicios__card--wide {
    grid-column: span 2;
  }
}

.portfolio-servicios__card {
  position: relative;
  display: block;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  animation: portfolioCardIn 0.6s ease-out both;
}

.portfolio-servicios__card:nth-child(1) { animation-delay: 0.05s; }
.portfolio-servicios__card:nth-child(2) { animation-delay: 0.1s; }
.portfolio-servicios__card:nth-child(3) { animation-delay: 0.15s; }
.portfolio-servicios__card:nth-child(4) { animation-delay: 0.2s; }
.portfolio-servicios__card:nth-child(5) { animation-delay: 0.25s; }
.portfolio-servicios__card:nth-child(6) { animation-delay: 0.3s; }

@keyframes portfolioCardIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.portfolio-servicios__card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 48px rgba(2, 74, 146, 0.18);
}

.portfolio-servicios__thumb {
  position: absolute;
  inset: 0;
}

.portfolio-servicios__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-servicios__card:hover .portfolio-servicios__thumb img {
  transform: scale(1.08);
}

.portfolio-servicios__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 74, 146, 0.92) 0%, rgba(2, 74, 146, 0.4) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: white;
  opacity: 0.95;
  transition: opacity 0.3s ease, background 0.3s ease;
}

.portfolio-servicios__card:hover .portfolio-servicios__overlay {
  opacity: 1;
  background: linear-gradient(to top, rgba(2, 74, 146, 0.95) 0%, rgba(2, 74, 146, 0.5) 70%, rgba(2, 74, 146, 0.2) 100%);
}

.portfolio-servicios__overlay h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.portfolio-servicios__overlay p {
  font-size: 14px;
  margin: 0 0 10px;
  opacity: 0.95;
  line-height: 1.4;
}

.portfolio-servicios__tech {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.9;
  margin-bottom: 8px;
}

.portfolio-servicios__overlay .portfolio-servicios__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: white;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.portfolio-servicios__card:hover .portfolio-servicios__overlay .portfolio-servicios__link {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-servicios__thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
  pointer-events: none;
}

@media (max-width: 639px) {
  .portfolio-servicios__grid {
    min-height: auto;
  }
  .portfolio-servicios__card {
    min-height: 240px;
  }
  .portfolio-servicios__card--wide {
    grid-column: span 1;
  }
}
