/* HOME-SPECIFIC */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative; overflow: hidden;
  padding: 0 24px 0;
  overflow-x: clip;
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.orb {
  position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(110px);
}
.orb-1 { width: 500px; height: 500px; top: 10%; left: 5%; background: oklch(68% 0.24 195); opacity: 0.09; }
.orb-2 { width: 400px; height: 400px; bottom: 10%; right: 5%; background: oklch(68% 0.24 245); opacity: 0.08; }
[data-theme="light"] .orb-1 { opacity: 0.12; }
[data-theme="light"] .orb-2 { opacity: 0.1; }

.hero-content { position: relative; z-index: 2; max-width: 1100px; width: 100%; padding: 0 24px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 18px 6px 8px;
  background: rgba(60,150,255,0.08); border: 1px solid rgba(60,150,255,0.2);
  border-radius: 100px; font-size: 13px; color: var(--accent);
  margin-bottom: 36px;
  animation: fadeUp 0.7s ease both;
}
[data-theme="light"] .hero-badge {
  background: rgba(60,100,255,0.07); border-color: rgba(60,100,255,0.18);
}
[data-theme="light"] .svc-card {
  background: rgba(255,255,255,0.85);
  border-color: rgba(60,100,200,0.12);
  box-shadow: 0 4px 20px rgba(60,100,200,0.06);
}
[data-theme="light"] .svc-card:hover {
  border-color: rgba(60,100,255,0.25);
  box-shadow: 0 8px 32px rgba(60,100,255,0.1);
}
[data-theme="light"] .svc-icon {
  background: rgba(60,100,255,0.08);
  border-color: rgba(60,100,255,0.15);
}
[data-theme="light"] .svc-arrow { color: var(--accent); }
[data-theme="light"] .work-card {
  background: rgba(255,255,255,0.9);
  border-color: rgba(60,100,200,0.12);
  box-shadow: 0 4px 20px rgba(60,100,200,0.06);
}
[data-theme="light"] .work-card:hover {
  border-color: rgba(60,100,255,0.25);
  box-shadow: 0 8px 32px rgba(60,100,255,0.1);
}
[data-theme="light"] .work-thumb-icon { opacity: 0.4; }
[data-theme="light"] .about-mini-right {
  background: rgba(255,255,255,0.85);
  border-color: rgba(60,100,200,0.12);
  box-shadow: 0 4px 24px rgba(60,100,200,0.07);
}
[data-theme="light"] .about-icon {
  background: rgba(60,100,255,0.08);
  border-color: rgba(60,100,255,0.15);
}
[data-theme="light"] .cta-inner {
  background: linear-gradient(135deg, rgba(60,100,255,0.07), rgba(80,60,255,0.05));
  border-color: rgba(60,100,255,0.15);
}
[data-theme="light"] .stat-num {
  background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:0.35} }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(46px, 7vw, 92px);
  font-weight: 700; line-height: 1.02; letter-spacing: -3px;
  animation: fadeUp 0.7s 0.08s ease both;
}
.hero p {
  color: var(--muted); font-size: clamp(16px, 2vw, 19px);
  line-height: 1.75; margin: 24px auto 0; max-width: 540px;
  font-weight: 300; animation: fadeUp 0.7s 0.16s ease both;
}
.hero-actions {
  margin-top: 44px; display: flex; gap: 14px;
  justify-content: center; flex-wrap: wrap;
  animation: fadeUp 0.7s 0.24s ease both;
}
.hero-stats {
  margin-top: 72px; display: flex; justify-content: center; gap: 60px;
  animation: fadeUp 0.7s 0.32s ease both;
}
.stat-num {
  font-family: var(--font-display); font-size: 38px; font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; }

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

/* OVERVIEW SECTIONS */
.overview { max-width: 1160px; margin: 0 auto; padding: 100px 48px; }
.overview-header { margin-bottom: 52px; }

/* SERVICES MINI */
.svc-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.svc-card {
  padding: 28px 26px 32px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color .35s, transform .35s, box-shadow .35s;
  text-decoration: none; color: inherit; cursor: none;
  display: block; position: relative; overflow: hidden;
}
.svc-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% 0%, rgba(60,200,220,0.10), transparent 60%);
  opacity: 0; transition: opacity .4s ease; pointer-events: none;
}
.svc-card:hover { border-color: rgba(60,200,220,0.3); transform: translateY(-6px); box-shadow: 0 18px 42px rgba(60,200,220,0.10); }
.svc-card:hover::before { opacity: 1; }

/* Illustration container */
.svc-illust {
  position: relative; width: 100%; height: 220px;
  margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  overflow: visible;
}
.svc-svg { width: 100%; height: 100%; overflow: visible; transition: transform .6s cubic-bezier(.34,1.4,.64,1); filter: drop-shadow(0 14px 28px rgba(60,150,255,0.10)); }
.svc-card:hover .svc-svg { transform: scale(1.05); }

/* SVG animation primitives */
.svc-svg .float-a, .svc-svg .float-b, .svc-svg .float-c, .svc-svg .float-d, .svc-svg .float-slow {
  transform-box: fill-box; transform-origin: center;
}
.svc-svg .float-a    { animation: svcFloatY 3.2s ease-in-out infinite; }
.svc-svg .float-b    { animation: svcFloatY 3.8s ease-in-out infinite -.7s; }
.svc-svg .float-c    { animation: svcFloatY 4.2s ease-in-out infinite -1.4s; }
.svc-svg .float-d    { animation: svcFloatY 3.5s ease-in-out infinite -2.1s; }
.svc-svg .float-slow { animation: svcFloatY 5s   ease-in-out infinite; }
.svc-svg .spin       { animation: svcSpin 12s linear infinite; transform-box: fill-box; transform-origin: center; }
.svc-svg .spin-rev   { animation: svcSpin 16s linear infinite reverse; transform-box: fill-box; transform-origin: center; }
.svc-svg .pulse-op   { animation: svcPulseOp 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.svc-svg .pulse-sc   { animation: svcPulseSc 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.svc-svg .blink      { animation: svcBlink 1.6s steps(2,end) infinite; }
.svc-svg .blink-2    { animation: svcBlink 1.6s steps(2,end) infinite -.4s; }
.svc-svg .blink-3    { animation: svcBlink 1.6s steps(2,end) infinite -.8s; }
.svc-svg .typing-bar { animation: svcType 2.4s ease-in-out infinite; transform-origin: left center; }
.svc-svg .swing      { animation: svcSwing 4s ease-in-out infinite; transform-box: fill-box; transform-origin: top center; }
.svc-svg .draw-line  { stroke-dasharray: 200; stroke-dashoffset: 200; animation: svcDraw 3s ease-in-out infinite; }
.svc-svg .grow-bar   { transform-box: fill-box; transform-origin: bottom center; animation: svcGrow 3s ease-out infinite; }
.svc-svg .grow-bar-2 { transform-box: fill-box; transform-origin: bottom center; animation: svcGrow 3s ease-out infinite -.4s; }
.svc-svg .grow-bar-3 { transform-box: fill-box; transform-origin: bottom center; animation: svcGrow 3s ease-out infinite -.8s; }
.svc-svg .grow-bar-4 { transform-box: fill-box; transform-origin: bottom center; animation: svcGrow 3s ease-out infinite -1.2s; }
.svc-svg .grow-bar-5 { transform-box: fill-box; transform-origin: bottom center; animation: svcGrow 3s ease-out infinite -1.6s; }
.svc-svg .ring-pulse { transform-box: fill-box; transform-origin: center; animation: svcRing 2.6s ease-out infinite; }
.svc-svg .scroll-up  { animation: svcScrollUp 4s ease-in-out infinite; }

@keyframes svcFloatY  { 0%,100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes svcSpin    { from { rotate: 0deg; } to { rotate: 360deg; } }
@keyframes svcPulseOp { 0%,100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes svcPulseSc { 0%,100% { scale: 1; opacity: .55; } 50% { scale: 1.08; opacity: .9; } }
@keyframes svcBlink   { 0%,49% { opacity: .9; } 50%,100% { opacity: .25; } }
@keyframes svcType    { 0% { scale: .2 1; } 50% { scale: 1 1; } 100% { scale: .2 1; } }
@keyframes svcSwing   { 0%,100% { rotate: -3deg; } 50% { rotate: 3deg; } }
@keyframes svcDraw    { 0% { stroke-dashoffset: 200; } 50% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -200; } }
@keyframes svcGrow    { 0% { scale: 1 .4; opacity: .7; } 50% { scale: 1 1; opacity: 1; } 100% { scale: 1 .4; opacity: .7; } }
@keyframes svcRing    { 0% { scale: .6; opacity: .9; } 100% { scale: 1.6; opacity: 0; } }
@keyframes svcScrollUp { 0% { translate: 0 20px; opacity: 0; } 15%,85% { opacity: 1; } 50% { translate: 0 0; } 100% { translate: 0 -20px; opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .svc-svg * { animation: none !important; }
}

/* SVG illustration theme overrides — light mode */
[data-theme="light"] .svc-svg [fill="#0d1426"]    { fill: #ffffff; }
[data-theme="light"] .svc-svg [fill="#080d1c"]    { fill: #f1f5fc; }
[data-theme="light"] .svc-svg [fill="#0a0f1f"]    { fill: #f1f5fc; }
[data-theme="light"] .svc-svg [fill="#1f3a5e"]    { fill: #c8d3ea; }
[data-theme="light"] .svc-svg [fill="#162038"]    { fill: #eaf0fa; }
[data-theme="light"] .svc-svg [fill="#324a6e"]    { fill: #8a98b8; }
[data-theme="light"] .svc-svg [stroke="#0d1426"]  { stroke: #1a2540; }
[data-theme="light"] .svc-svg [stroke="#1f3a5e"]  { stroke: #c8d3ea; }
[data-theme="light"] .svc-svg [stroke="#162038"]  { stroke: #eaf0fa; }
[data-theme="light"] .svc-svg [stroke="#080d1c"]  { stroke: #c8d3ea; }
.svg-text-bright { fill: white; }
[data-theme="light"] .svg-text-bright { fill: #1a2540; }
.svg-stroke-bright { stroke: white; }
[data-theme="light"] .svg-stroke-bright { stroke: #1a2540; }

.svc-card h3 { font-family: var(--font-display); font-size: 21px; font-weight: 600; margin-bottom: 10px; position: relative; }
.svc-card p { color: var(--muted); font-size: 14px; line-height: 1.65; position: relative; }
.svc-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--accent); margin-top: 22px;
  font-weight: 500; position: relative;
  transition: gap .25s ease;
}
.svc-card:hover .svc-arrow { gap: 10px; }

/* WORKS MINI */
.works-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.work-card {
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border); background: var(--surface);
  transition: transform 0.3s, border-color 0.3s; cursor: none;
  text-decoration: none; color: inherit;
}
.work-card:hover { transform: translateY(-4px); border-color: rgba(60,200,220,0.2); }
.work-card.span2 { grid-column: span 2; }
.work-thumb {
  height: 180px; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.work-card.span2 .work-thumb { height: 220px; }
.work-stripe {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.012) 10px, rgba(255,255,255,0.012) 11px);
}
.work-thumb-icon { font-size: 32px; opacity: 0.35; position: relative; }
.work-info { padding: 20px; }
.work-info h4 { font-family: var(--font-display); font-size: 16px; font-weight: 600; margin-bottom: 5px; }
.work-info p { color: var(--muted); font-size: 13px; }

/* NOSOTROS MINI */
.about-mini {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.about-mini-right {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 40px; display: flex; flex-direction: column; gap: 24px;
}
.about-item { display: flex; gap: 18px; align-items: flex-start; }
.about-icon {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px;
  background: rgba(60,200,220,0.08); border: 1px solid rgba(60,200,220,0.15);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.about-item h4 { font-family: var(--font-display); font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.about-item p { color: var(--muted); font-size: 13px; line-height: 1.6; }

/* CTA BANNER */
.cta-banner {
  margin: 0 auto; max-width: 1160px; padding: 0 48px 100px;
}
.cta-inner {
  border-radius: 24px; padding: 72px 64px;
  background: linear-gradient(135deg, rgba(60,200,220,0.1), rgba(80,120,255,0.08));
  border: 1px solid rgba(60,200,220,0.18);
  text-align: center; position: relative; overflow: hidden;
}
.cta-inner::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 300px; height: 300px; border-radius: 50%;
  background: oklch(68% 0.24 195); filter: blur(90px); opacity: 0.1;
}
.cta-inner h2 {
  font-family: var(--font-display); font-size: clamp(28px,4vw,48px);
  font-weight: 700; letter-spacing: -1.5px; margin-bottom: 16px;
}
.cta-inner p { color: var(--muted); font-size: 17px; margin-bottom: 36px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* BG stripes divider */
.section-bg { background: var(--bg2); width: 100%; }

/* SOPORTE SECTION */
.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.support-card {
  padding: 24px 26px 28px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color .3s, transform .3s, box-shadow .3s;
  position: relative;
  overflow: hidden;
  cursor: default;
}
.support-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--sp-accent, var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.support-card:hover::after { transform: scaleX(1); }
.support-card:hover {
  border-color: color-mix(in oklch, var(--sp-accent, var(--accent)) 35%, transparent);
  transform: translateY(-5px);
  box-shadow: 0 16px 40px color-mix(in oklch, var(--sp-accent, var(--accent)) 12%, transparent);
}
.support-illust {
  position: relative; width: 100%; height: 175px;
  margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  overflow: visible;
}
.support-card .svc-svg {
  filter: drop-shadow(0 12px 24px color-mix(in oklch, var(--sp-accent, var(--accent)) 14%, transparent));
}
.support-card:hover .svc-svg { transform: scale(1.04); }
.support-card h4 {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 600;
  margin-bottom: 8px;
}
.support-card p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.68;
}
.support-badge {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px;
  padding: 5px 12px 5px 9px;
  border-radius: 100px;
  font-size: 11px; font-weight: 700;
  letter-spacing: .9px; text-transform: uppercase;
  font-family: var(--font-display);
}
[data-theme="light"] .support-card {
  background: rgba(255,255,255,0.85);
  border-color: rgba(60,100,200,0.12);
  box-shadow: 0 4px 20px rgba(60,100,200,0.06);
}
[data-theme="light"] .support-card:hover {
  border-color: rgba(60,100,255,0.25);
  box-shadow: 0 8px 32px rgba(60,100,255,0.1);
}

@media(max-width: 1024px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .works-grid { grid-template-columns: 1fr 1fr; }
  .support-grid { grid-template-columns: repeat(2, 1fr); }
}

@media(max-width: 900px) {
  .svc-grid, .about-mini { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr; }
  .work-card.span2 { grid-column: auto; }
  .hero-stats { gap: 32px; }
  .overview { padding: 60px 24px; }
  .cta-inner { padding: 48px 28px; }
  .cta-banner { padding: 0 24px 60px; }
  .support-grid { grid-template-columns: 1fr; }
}

@media(max-width: 768px) {
  .orb-1, .orb-2 { width: 320px; height: 320px; opacity: 0.25; filter: blur(80px); }
  .orb-1 { left: -15%; top: 5%; }
  .orb-2 { right: -15%; bottom: 5%; }
  .hero-content { padding: 0 16px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; justify-content: center; }
}

@media(max-width: 480px) {
  .hero { padding: 0 16px; }
  .orb-1, .orb-2 { width: 240px; height: 240px; opacity: 0.2; filter: blur(60px); }
  .hero-content { padding: 0 8px; }
  .hero-stats { gap: 18px; }
  .overview { padding: 48px 16px; }
  .svc-grid, .support-grid { gap: 16px; }
  .cta-inner { padding: 32px 20px; }
  .cta-banner { padding: 0 16px 48px; }
}

@media(max-width: 360px) {
  .orb-1, .orb-2 { width: 200px; height: 200px; }
  .overview { padding: 36px 12px; }
}