/* ===== SERVICIOS PAGE ===== */

/* ── Hero overrides ─────────────────────────────────────────── */
.svc-hero { min-height: 92vh; }

.svc-hero-bg {
  background:
    radial-gradient(ellipse 70% 60% at 80% 30%, #3d5248 0%, transparent 55%),
    radial-gradient(ellipse 60% 70% at 10% 80%, #6b4f3a 0%, transparent 60%),
    radial-gradient(ellipse 90% 50% at 50% 100%, #5a4a35 0%, transparent 50%),
    linear-gradient(140deg, #1c2622 0%, #2a3530 50%, #3d4a40 100%);
}

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

.svc-hero-title {
  line-height: 0.95;
  margin-bottom: 3rem;
}

.svc-hero-bottom {
  position: absolute;
  bottom: var(--pad);
  left: var(--pad);
  right: var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 3rem;
}

.svc-nav-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.svc-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(243,240,230,0.18);
  border-radius: 999px;
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  transition: background 0.18s, border-color 0.18s;
  opacity: 0;
}
.svc-nav-pill:hover {
  background: rgba(243,240,230,0.08);
  border-color: rgba(243,240,230,0.35);
}

.svc-nav-n {
  color: var(--lime);
  font-size: 9px;
}

/* ── Service sections ───────────────────────────────────────── */
.svc-section {
  padding: 7rem var(--pad);
}

.svc-section--light { background: var(--cream); }

.svc-section--dark {
  width: calc(100% - var(--gap) * 2);
  margin: 0 var(--gap) var(--gap);
  border-radius: var(--r);
  padding: 7rem var(--pad);
}

.svc-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.svc-inner--reversed .svc-demo { order: -1; }

/* ── Text side ──────────────────────────────────────────────── */
.svc-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 1.5rem;
}

.svc-label--light { color: var(--muted-dark); }

.svc-num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--line-light);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--muted-light);
}

.svc-num-badge--light {
  background: rgba(243,240,230,0.12);
  color: var(--muted-dark);
}

.svc-heading {
  font-size: clamp(28px, 3.2vw, 50px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.svc-heading--light { color: var(--text-light); }

.svc-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted-light);
  margin-bottom: 2rem;
  max-width: 480px;
}

.svc-desc--light { color: var(--muted-dark); }

.svc-features {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  margin-bottom: 2.5rem;
  border-top: 1px solid var(--line-light);
  padding-top: 1.5rem;
}

.svc-features--light { border-top-color: var(--line-dark); }

.svc-features li {
  display: flex;
  align-items: baseline;
  gap: .8rem;
  font-size: .9rem;
  color: var(--text-dark);
}

.svc-features--light li { color: var(--text-light); }

.svc-check {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--dark);
  flex-shrink: 0;
}

.svc-check--light { color: var(--lime); }

.svc-price-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.svc-price-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--text-dark);
  border: 1px solid var(--line-light);
  padding: .5rem 1rem;
  border-radius: 999px;
}

.svc-price-tag span {
  font-size: 10px;
  opacity: 0.5;
}

.svc-price-tag--light {
  color: var(--text-light);
  border-color: var(--line-dark);
}

/* ── Background gradients for dark sections ─────────────────── */
.svc-bg--apps {
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, #3d5248 0%, transparent 55%),
    radial-gradient(ellipse 70% 60% at 80% 80%, #5a3a2a 0%, transparent 55%),
    linear-gradient(155deg, #1f2a25 0%, #2d3a33 60%, #3d3528 100%);
}

.svc-bg--auto {
  background:
    radial-gradient(ellipse 70% 50% at 80% 20%, #3d5248 0%, transparent 55%),
    radial-gradient(ellipse 60% 60% at 20% 80%, #4a3a28 0%, transparent 55%),
    linear-gradient(140deg, #1c2622 0%, #2a3530 100%);
}

/* ── Demo chrome ────────────────────────────────────────────── */
.svc-demo {
  position: relative;
}

.demo-chrome {
  background: var(--cream-soft);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-light);
  box-shadow: 0 24px 64px rgba(28,38,34,0.12), 0 4px 16px rgba(28,38,34,0.06);
}

.demo-chrome--dark {
  background: rgba(28,38,34,0.85);
  border-color: rgba(243,240,230,0.1);
  box-shadow: 0 24px 64px rgba(0,0,0,0.4), 0 4px 16px rgba(0,0,0,0.2);
}

.demo-chrome-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-light);
  background: rgba(28,38,34,0.04);
}

.demo-chrome--dark .demo-chrome-bar {
  border-bottom-color: rgba(243,240,230,0.08);
  background: rgba(243,240,230,0.03);
}

.chrome-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.chrome-dot--r { background: #ff5f57; }
.chrome-dot--y { background: #ffbd2e; }
.chrome-dot--g { background: #28c840; }

.chrome-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted-light);
  flex: 1;
  text-align: center;
}

.demo-chrome--dark .chrome-title { color: var(--muted-dark); }

.chrome-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--lime);
}

.chrome-pulse {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--lime);
  animation: pulse 2.2s ease-in-out infinite;
}

/* ── Agent chat ─────────────────────────────────────────────── */
.agent-chat {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  min-height: 320px;
  max-height: 380px;
  overflow-y: auto;
}

.chat-msg {
  opacity: 0;
  transform: translateY(8px);
}

.chat-role {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: .3rem;
}

.chat-msg--user p {
  background: var(--dark);
  color: var(--text-light);
  padding: .75rem 1rem;
  border-radius: 10px 10px 4px 10px;
  font-size: .875rem;
  line-height: 1.5;
  display: inline-block;
  max-width: 90%;
}

.chat-msg--agent p {
  background: white;
  color: var(--text-dark);
  padding: .75rem 1rem;
  border-radius: 10px 10px 10px 4px;
  font-size: .875rem;
  line-height: 1.5;
  border: 1px solid var(--line-light);
  display: inline-block;
  max-width: 90%;
}

.chat-msg--agent p strong { color: var(--dark); font-weight: 600; }

.chat-msg--system {
  display: flex;
  justify-content: center;
}

.chat-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-light);
  background: var(--line-light);
  padding: .3rem .8rem;
  border-radius: 999px;
}

.action-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lime);
  animation: pulse 1.2s ease-in-out infinite;
}

.chat-metrics {
  display: flex;
  gap: 1rem;
  padding: .75rem 1rem;
  background: rgba(200,240,106,0.08);
  border-radius: 10px;
  border: 1px solid rgba(200,240,106,0.2);
  opacity: 0;
  transform: translateY(8px);
}

.chat-metric { text-align: center; }

.chat-metric span {
  display: block;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  line-height: 1;
}

.chat-metric p {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-top: .25rem;
}

.chat-typing {
  display: flex;
  gap: 4px;
  padding: .75rem 1rem;
  opacity: 0;
}

.chat-typing span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--muted-light);
  animation: typingBounce 1.2s ease-in-out infinite;
}

.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }

@keyframes typingBounce {
  0%, 100% { transform: translateY(0); opacity: .4; }
  50% { transform: translateY(-5px); opacity: 1; }
}

/* ── Dashboard demo ─────────────────────────────────────────── */
.app-dashboard { padding: 1.25rem; }

.dash-row--stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 1rem;
}

.dash-stat {
  padding: .75rem 1rem;
  background: rgba(243,240,230,0.04);
  border: 1px solid rgba(243,240,230,0.08);
  border-radius: 8px;
}

.dash-stat-label {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin-bottom: .3rem;
}

.dash-stat-val {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-light);
  letter-spacing: -0.02em;
  line-height: 1;
}

.dash-chart {
  padding: .75rem 1rem;
  background: rgba(243,240,230,0.03);
  border: 1px solid rgba(243,240,230,0.08);
  border-radius: 8px;
  margin-bottom: 1rem;
}

.dash-chart-label {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin-bottom: .75rem;
}

.dash-bars {
  display: flex;
  gap: 4px;
  align-items: flex-end;
  height: 60px;
}

.dash-bar {
  flex: 1;
  height: var(--h);
  background: rgba(243,240,230,0.15);
  border-radius: 3px 3px 0 0;
  transition: background 0.2s;
  transform-origin: bottom;
  transform: scaleY(0);
}

.dash-bar--active { background: rgba(200,240,106,0.6); }
.dash-bar--now { background: var(--lime); }

.dash-row--activity { }

.dash-activity-label {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin-bottom: .5rem;
}

.dash-activity-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash-activity-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: .5rem .75rem;
  background: rgba(243,240,230,0.03);
  border-radius: 6px;
  font-size: .78rem;
  color: var(--text-light);
  opacity: 0;
  transform: translateX(-8px);
}

.dash-activity-item:last-child span:last-child { margin-left: auto; }

.activity-time {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--muted-dark);
}

.activity-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.activity-dot--green { background: #28c840; }
.activity-dot--lime { background: var(--lime); }
.activity-dot--blue { background: #7dd3fc; }

/* ── Web mockup ─────────────────────────────────────────────── */
.web-mockup {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-light);
  box-shadow: 0 24px 64px rgba(28,38,34,0.12);
  background: #fff;
}

.web-browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #f4f4f5;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.web-traffic-lights {
  display: flex;
  gap: 5px;
}
.web-traffic-lights span {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.web-traffic-lights span:nth-child(1) { background: #ff5f57; }
.web-traffic-lights span:nth-child(2) { background: #ffbd2e; }
.web-traffic-lights span:nth-child(3) { background: #28c840; }

.web-url-bar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  background: white;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 6px;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #555;
}

.web-preview {
  background: var(--dark);
  padding: 1.5rem;
  min-height: 280px;
  position: relative;
  overflow: hidden;
}

/* Miniaturized site elements */
.wp-hero {
  margin-bottom: 1rem;
}

.wp-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.wp-logo-block {
  width: 80px; height: 10px;
  background: rgba(243,240,230,0.5);
  border-radius: 3px;
}

.wp-nav-links {
  display: flex;
  gap: 12px;
}

.wp-nav-links span {
  display: block;
  width: 28px; height: 6px;
  background: rgba(243,240,230,0.2);
  border-radius: 2px;
}

.wp-cta-block {
  width: 60px; height: 22px;
  background: var(--lime);
  border-radius: 5px;
  transition: transform 0.2s, background 0.2s;
}

.wp-headline { margin-bottom: .75rem; }

.wp-h-line {
  height: 14px;
  border-radius: 3px;
  margin-bottom: 6px;
  background: rgba(243,240,230,0.7);
}
.wp-h-line--1 { width: 80%; }
.wp-h-line--2 { width: 65%; }
.wp-h-line--3 { width: 50%; }
.wp-h-line--accent { background: var(--lime); }

.wp-sub { margin-bottom: 1rem; }
.wp-sub-line {
  height: 7px;
  background: rgba(243,240,230,0.25);
  border-radius: 2px;
  margin-bottom: 4px;
  width: 100%;
}
.wp-sub-line--short { width: 60%; }

.wp-btn-row { display: flex; gap: 8px; margin-bottom: 1rem; }
.wp-btn-primary {
  width: 90px; height: 26px;
  background: var(--dark-3);
  border: 1px solid rgba(243,240,230,0.2);
  border-radius: 5px;
}
.wp-btn-secondary {
  width: 60px; height: 26px;
  background: var(--lime);
  border-radius: 5px;
}

.wp-stats-bar {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 6px;
  margin-bottom: 1rem;
  border-top: 1px solid rgba(243,240,230,0.1);
  padding-top: 1rem;
}

.wp-stat { }
.wp-stat-num {
  height: 12px;
  background: rgba(243,240,230,0.5);
  border-radius: 2px;
  margin-bottom: 4px;
  width: 60%;
}
.wp-stat-label {
  height: 6px;
  background: rgba(243,240,230,0.15);
  border-radius: 2px;
  width: 80%;
}

.wp-cards-row {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 6px;
}

.wp-card {
  height: 50px;
  border-radius: 6px;
  border: 1px solid rgba(243,240,230,0.08);
}
.wp-card--1 { background: rgba(243,240,230,0.05); }
.wp-card--2 { background: rgba(200,240,106,0.06); border-color: rgba(200,240,106,0.15); }
.wp-card--3 { background: rgba(243,240,230,0.03); }

/* Animated cursor in web preview */
.wp-cursor {
  position: absolute;
  width: 14px; height: 14px;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
}

.wp-cursor::before {
  content: '';
  position: absolute;
  inset: 0;
  background: white;
  clip-path: polygon(0 0, 0 100%, 25% 75%, 38% 100%, 52% 93%, 38% 68%, 70% 68%, 0 0);
}

.wp-highlight {
  position: absolute;
  background: rgba(200,240,106,0.15);
  border: 1px solid rgba(200,240,106,0.4);
  border-radius: 5px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 5;
}

/* ── Flow diagram ────────────────────────────────────────────── */
.flow-diagram {
  background: rgba(28,38,34,0.4);
  border: 1px solid rgba(243,240,230,0.1);
  border-radius: 14px;
  padding: 1.5rem;
  overflow: hidden;
}

.flow-svg {
  width: 100%;
  height: auto;
}

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

/* Flow packet visibility — shown after page loads */
.flow-packet { opacity: 1; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .svc-inner {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .svc-inner--reversed .svc-demo { order: 0; }
  .svc-hero-bottom { flex-direction: column; align-items: flex-start; }
  .svc-nav-pills { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .svc-section { padding: 4rem var(--pad); }
  .svc-heading { font-size: clamp(24px, 6vw, 36px); }
  .dash-row--stats { grid-template-columns: 1fr 1fr; }
  .flow-svg { min-height: 200px; }
  .svc-hero-title { font-size: clamp(40px, 11vw, 64px); }
}

/* ── Active nav link ────────────────────────────────────────── */
.nav-link--active {
  background: rgba(28,38,34,0.08);
  color: var(--nav-fg);
}
