/* ==========================================================================
   DGREAT.AI — Landing Page Styles
   Developer Pro Dark Theme + Vibrant Personal Portfolio
   ========================================================================== */

/* ---------- 1. Design Tokens ---------- */
:root {
  --bg: #050607;
  --bg-alt: #090a0c;
  --surface: #0f1114;
  --surface-2: #14171a;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.13);

  --text: #eef0f5;
  --text-muted: #9aa0b0;
  --text-dim: #5a6070;

  --green: #00ff9d;
  --green-soft: rgba(0, 255, 157, 0.14);
  --purple: #7a3cff;
  --purple-soft: rgba(122, 60, 255, 0.16);

  /* technical lime green — used in blueprint, console and support */
  --lime: #c8f573;
  --lime-soft: rgba(200, 245, 115, 0.12);

  --gradient-primary: linear-gradient(120deg, var(--green), var(--purple));
  --gradient-radial: radial-gradient(circle at 30% 20%, var(--purple-soft), transparent 60%);

  --font-heading: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-glow-green: 0 0 24px rgba(0, 255, 157, 0.35);
  --shadow-glow-purple: 0 0 24px rgba(122, 60, 255, 0.35);
  --shadow-glow-lime: 0 0 24px rgba(200, 245, 115, 0.32);
  --shadow-card: 0 20px 40px -20px rgba(0, 0, 0, 0.6);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

::selection { background: var(--green); color: #05070a; }

/* ---------- 3. Typography helpers ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--green);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: 14px;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 560px;
  font-size: 1.05rem;
}

.section-head { margin-bottom: 48px; }

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-gradient--alt {
  background: linear-gradient(120deg, var(--purple), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-lime { color: var(--lime); }

/* ---------- 4. Background FX ---------- */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

/* Fine grid + dotted nodes (technical paper) */
.bg-grid {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(rgba(200, 245, 115, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 245, 115, 0.04) 1px, transparent 1px),
    radial-gradient(circle, rgba(200, 245, 115, 0.14) 1px, transparent 1.4px);
  background-size: 60px 60px, 60px 60px, 60px 60px;
  background-position: 0 0, 0 0, 30px 30px;
  mask-image: radial-gradient(ellipse at 50% 18%, black 32%, transparent 78%);
}

/* Schematic line-art: circuit traces, rings and crosshairs */
.bg-blueprint {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--lime);
  opacity: 0.3;
}
.bg-blueprint .trace {
  stroke: currentColor;
  stroke-width: 1;
  stroke-dasharray: 7 7;
  animation: traceFlow 22s linear infinite;
}
.bg-blueprint .ring { stroke: currentColor; stroke-width: 1; opacity: 0.32; }
.bg-blueprint .node { fill: currentColor; opacity: 0.65; }
.bg-blueprint .cross { stroke: currentColor; stroke-width: 1.2; opacity: 0.5; }

@keyframes traceFlow { to { stroke-dashoffset: -280; } }

.bg-glow {
  position: absolute;
  width: 55vw;
  height: 55vw;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.16;
}
.bg-glow--green { top: -25%; left: -12%; background: var(--lime); }
.bg-glow--purple { top: 16%; right: -22%; background: var(--purple); opacity: 0.14; }

/* Subtle CRT-style scanlines */
.bg-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.016) 0px,
    rgba(255, 255, 255, 0.016) 1px,
    transparent 1px,
    transparent 3px
  );
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn--primary {
  background: var(--gradient-primary);
  color: #05070a;
}
.btn--primary:hover { transform: translateY(-2px); }

.btn--glow { box-shadow: var(--shadow-glow-green); }
.btn--glow:hover { box-shadow: 0 0 36px rgba(0, 255, 157, 0.55); }

.btn--outline {
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: rgba(255,255,255,0.02);
}
.btn--outline:hover {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-2px);
}

.btn--lime {
  background: var(--lime);
  color: #0a0d04;
  box-shadow: var(--shadow-glow-lime);
}
.btn--lime:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(200, 245, 115, 0.5);
}

.btn--sm { padding: 9px 18px; font-size: 0.85rem; }
.pay-link { display: block; margin-top: 10px; text-align: center; font-size: 0.82rem; color: var(--text-dim); text-decoration: underline; text-underline-offset: 3px; }
.pay-link:hover { color: var(--green); }
.btn--lg { padding: 18px 38px; font-size: 1.05rem; }
.btn--block { width: 100%; }

.btn__spinner {
  display: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(5,7,10,0.3);
  border-top-color: #05070a;
  animation: spin 0.7s linear infinite;
}
.btn.is-loading .btn__spinner { display: inline-block; }
.btn.is-loading .btn__text { opacity: 0.7; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 6. Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(10, 11, 15, 0.7);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.navbar.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(10, 11, 15, 0.92);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.navbar__logo {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.logo-bracket { color: var(--purple); }
.logo-dot { color: var(--green); }

.navbar__links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-inline: auto;
}

.nav-link {
  position: relative;
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--green);
  transition: width 0.25s var(--ease);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.navbar__toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  padding: 70px 0 100px;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
}

/* content always sits above the background code-art */
.hero__content, .hero__visual { position: relative; z-index: 1; }

.hero__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

/* Terminal-style monospaced headline; balance evens out the line lengths */
.hero__title--mono {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.9vw, 2.9rem);
  line-height: 1.28;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero__subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 480px;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero__stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px; max-width: 140px; }
.stat__num, .stat__suffix {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green);
}
.stat__label {
  flex-basis: 100%;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.hero__visual { position: relative; display: flex; justify-content: center; }

.hero__blob {
  position: absolute;
  width: 420px; height: 420px;
  background: conic-gradient(from 90deg, var(--green), var(--purple), var(--green));
  border-radius: 42% 58% 65% 35% / 45% 40% 60% 55%;
  filter: blur(60px);
  opacity: 0.45;
  animation: blobMove 10s ease-in-out infinite;
}
@keyframes blobMove {
  0%, 100% { border-radius: 42% 58% 65% 35% / 45% 40% 60% 55%; transform: rotate(0deg); }
  50% { border-radius: 60% 40% 30% 70% / 55% 65% 35% 45%; transform: rotate(20deg); }
}

/* No frame: the photo is a studio shot on pure black, so it dissolves into the page.
   Without overflow:hidden the badges are no longer clipped. */
.hero__photo-frame {
  position: relative;
  width: min(480px, 100%);
}
.hero__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1383 / 1137;
  object-fit: cover;
  mask-image: radial-gradient(ellipse 78% 84% at 50% 46%, #000 42%, transparent 100%);
}

.badge-floating {
  position: absolute;
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(18, 20, 28, 0.85);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(8px);
  animation: floatY 4s ease-in-out infinite;
}
.badge-floating--1 { top: 10%; left: -10%; color: var(--green); }
.badge-floating--2 { bottom: 12%; right: -8%; color: var(--purple); animation-delay: 1.5s; }

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

/* Floating code chips */
.floating-code { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.code-chip {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--lime);
  background: rgba(10, 12, 13, 0.6);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  opacity: 0.5;
  animation: floatY 6s ease-in-out infinite;
}
.code-chip--1 { top: 3%; left: 40%; animation-delay: 0s; }
.code-chip--2 { top: 20%; right: 3%; color: var(--purple); animation-delay: 1s; }
.code-chip--3 { bottom: 5%; left: 38%; animation-delay: 2s; }
.code-chip--4 { bottom: 22%; right: 4%; color: var(--purple); animation-delay: 0.5s; }
.code-chip--5 { top: 52%; right: 22%; opacity: 0.22; animation-delay: 1.8s; }

/* Floating mini code editor (blueprint dev style) */
.code-window {
  position: absolute;
  left: -70px;
  bottom: -30px;
  width: 300px;
  background: rgba(8, 10, 11, 0.94);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  backdrop-filter: blur(8px);
  box-shadow: 0 24px 50px -22px rgba(0, 0, 0, 0.9), 0 0 40px -20px rgba(200, 245, 115, 0.45);
  animation: floatY 7s ease-in-out infinite;
}

.code-window__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}
.code-window__bar span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}
.code-window__bar em {
  margin-left: 8px;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
}

.code-window__body {
  padding: 14px 12px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.85;
  counter-reset: line;
  overflow: hidden;
}
.cw-line { display: block; white-space: nowrap; }
.cw-line::before {
  counter-increment: line;
  content: counter(line);
  display: inline-block;
  width: 1.5em;
  margin-right: 12px;
  text-align: right;
  color: rgba(255, 255, 255, 0.2);
}
.cw-tag { color: var(--lime); }
.cw-attr { color: #6fb7ff; }
.cw-str { color: #ffc861; }
.cw-txt { color: var(--text-muted); }

.scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid var(--border-strong);
  border-radius: 999px;
}
.scroll-indicator span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  background: var(--green);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { top: 8px; opacity: 1; }
  70% { opacity: 1; }
  100% { top: 22px; opacity: 0; }
}

/* ---------- 8. Services ---------- */
.services { padding: 100px 0; position: relative; }

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--green);
  box-shadow: var(--shadow-glow-green);
}

.service-card__icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--green-soft);
  color: var(--green);
  margin-bottom: 20px;
}
.service-card__icon svg { width: 26px; height: 26px; }

.service-card h3 { font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 16px; }

.service-card__list { display: flex; flex-direction: column; gap: 6px; }
.service-card__list li {
  font-size: 0.82rem;
  color: var(--text-dim);
  padding-left: 18px;
  position: relative;
}
.service-card__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
}

/* ---------- 9. Order Form ---------- */
.order {
  padding: 100px 0;
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.order__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}

.terminal-block {
  margin-top: 32px;
  background: #0c0e13;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.terminal-block__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot--red { background: #ff5f57; }
.dot--yellow { background: #febc2e; }
.dot--green { background: #28c840; }
.terminal-block__title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}
.terminal-block__body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.9;
  overflow-x: auto;
}
.tk-comment { color: var(--text-dim); }
.tk-key { color: var(--purple); }
.tk-out { color: var(--text-muted); display: block; padding-left: 18px; }
.tk-accent { color: var(--green); }

.order-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  box-shadow: var(--shadow-card);
}

.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row--full { grid-column: 1 / -1; }

.form-row label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-row input,
.form-row select,
.form-row textarea {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.92rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}
.form-row textarea { resize: vertical; min-height: 100px; }

.form-status {
  margin-top: 14px;
  font-size: 0.88rem;
  min-height: 1.2em;
}
.form-status.success { color: var(--green); }
.form-status.error { color: #ff6b6b; }

/* ---------- 10. Portfolio ---------- */
.portfolio { padding: 100px 0; }

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid var(--border);
  cursor: pointer;
}

.project-card__media {
  position: absolute; inset: 0;
  display: flex;
  align-items: flex-start;
  padding: 16px;
}
.project-card__media--1 { background: linear-gradient(135deg, #133328, #0a0b0f 70%); }
.project-card__media--2 { background: linear-gradient(135deg, #2a1440, #0a0b0f 70%); }
.project-card__media--3 { background: linear-gradient(135deg, #0f2a3a, #0a0b0f 70%); }
.project-card__media--4 { background: linear-gradient(135deg, #24321a, #0a0b0f 70%); }
.project-card__media--5 { background: linear-gradient(135deg, #3a1a2c, #0a0b0f 70%); }
.project-card__media--6 { background: linear-gradient(135deg, #1a2a3a, #0a0b0f 70%); }

.mock-browser {
  display: flex;
  gap: 6px;
  background: rgba(255,255,255,0.05);
  padding: 8px 10px;
  border-radius: 8px;
  width: 100%;
}
.mock-browser span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
}

.project-card__overlay {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 24px;
  background: linear-gradient(180deg, transparent 40%, rgba(6,7,10,0.92) 100%);
  backdrop-filter: blur(0px);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}
.project-card:hover .project-card__overlay {
  opacity: 1;
  transform: translateY(0);
  backdrop-filter: blur(3px);
}
.project-card__overlay h3 { font-family: var(--font-heading); font-size: 1.15rem; }
.project-card__overlay p { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 8px; }
.project-card__overlay .btn { align-self: flex-start; }

/* ---------- 10b. Technical Support (futuristic scroll) ---------- */
.support { padding: 0 0 110px; position: relative; }

/* Infinite horizontal ticker */
.ticker {
  overflow: hidden;
  padding: 13px 0;
  margin-bottom: 84px;
  border-block: 1px solid var(--border);
  background: rgba(200, 245, 115, 0.025);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: tickerScroll 34s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }

/* each group is duplicated in the HTML for a seamless loop */
.ticker__group {
  display: flex;
  align-items: center;
  gap: 44px;
  padding-right: 44px;
}
.ticker__group span {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  white-space: nowrap;
}
.ticker__group i { font-style: normal; color: var(--lime); font-size: 0.6rem; }

@keyframes tickerScroll { to { transform: translateX(-50%); } }

.support__grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: center;
}

.support__metrics {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  margin: 30px 0 34px;
}
.metric { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px; max-width: 132px; }
.metric__val, .metric__unit {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--lime);
}
.metric small { flex-basis: 100%; font-size: 0.78rem; color: var(--text-dim); }

/* Live support console */
.console {
  position: relative;
  background: linear-gradient(180deg, #070909, #0b0d0e);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.95), 0 0 70px -34px rgba(200, 245, 115, 0.55);
}

.console__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font-mono);
  font-size: 0.74rem;
}
.console__path { color: var(--text-dim); }
.console__live { margin-left: auto; color: var(--lime); letter-spacing: 0.12em; }

.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--lime);
  flex-shrink: 0;
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(200, 245, 115, 0.6); }
  70%  { box-shadow: 0 0 0 9px rgba(200, 245, 115, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 245, 115, 0); }
}

/* the feed scrolls itself; the mask crop gives it the futuristic look */
.console__viewport {
  position: relative;
  height: 340px;
  overflow: hidden;
  padding: 18px;
  mask-image: linear-gradient(to bottom, transparent 0, black 12%, black 88%, transparent 100%);
}
.console__feed {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.5;
}

.log-line {
  display: flex;
  gap: 10px;
  opacity: 0;
  transform: translateY(6px);
  animation: logIn 0.45s var(--ease) forwards;
}
@keyframes logIn { to { opacity: 1; transform: none; } }

.log-line__time { color: rgba(255, 255, 255, 0.24); flex-shrink: 0; }
.log-line__tag { flex-shrink: 0; font-weight: 500; }
.log-line__msg { color: var(--text-muted); }
.log-line--ok   .log-line__tag { color: var(--lime); }
.log-line--info .log-line__tag { color: #6fb7ff; }
.log-line--warn .log-line__tag { color: #ffc861; }
.log-line--fix  .log-line__tag { color: #b98cff; }

/* scanner sweep across the console */
.console__scan {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 130px;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(200, 245, 115, 0.07), transparent);
  animation: scanSweep 5.5s linear infinite;
}
@keyframes scanSweep {
  0%   { transform: translateY(-130px); }
  100% { transform: translateY(460px); }
}

.console__foot {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  padding: 11px 16px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

/* ---------- 11. Testimonials ---------- */
.testimonials { padding: 100px 0; background: var(--bg-alt); border-block: 1px solid var(--border); }

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
}
.testimonial-card p {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 20px;
}
.testimonial-card footer {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #05070a;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.testimonial-card cite {
  font-style: normal;
  font-weight: 600;
  display: block;
  font-size: 0.92rem;
}
.testimonial-card .role { color: var(--text-dim); font-size: 0.8rem; }

/* ---------- 12. Final CTA ---------- */
.final-cta {
  padding: 110px 0;
  position: relative;
  background: var(--gradient-radial);
  text-align: center;
}
.final-cta__inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.final-cta h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  max-width: 640px;
}
.final-cta p { color: var(--text-muted); }

/* ---------- 13. Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
  background: var(--bg-alt);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 48px;
}

.footer__brand p { color: var(--text-dim); font-size: 0.88rem; margin-top: 14px; max-width: 240px; }

.footer__col h4 { font-size: 0.85rem; color: var(--text); margin-bottom: 16px; }
.footer__col a {
  display: block;
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}
.footer__col a:hover { color: var(--green); }

.footer__socials { display: flex; gap: 10px; }
.footer__socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem;
  margin-bottom: 0;
}
.footer__socials a:hover { border-color: var(--green); color: var(--green); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 24px 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1200px;
  margin-inline: auto;
  font-size: 0.82rem;
  color: var(--text-dim);
}
.footer__powered { font-weight: 600; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 18px; }
.footer__legal a { color: var(--text-dim); }
.footer__legal a:hover { color: var(--green); }

/* ---------- 13b. Navbar extras: language switch ---------- */
.navbar__right { display: flex; align-items: center; gap: 14px; }
.lang-switch {
  display: flex;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 3px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}
.lang-switch button {
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--text-dim);
  transition: background 0.2s ease, color 0.2s ease;
}
.lang-switch button[aria-pressed="true"] { background: var(--green); color: #05070a; font-weight: 700; }

/* ---------- 13c. Services (6-card grid) ---------- */
.services__grid--six { grid-template-columns: repeat(3, 1fr); }
.service-card__line {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.service-card--ai { border-color: rgba(122, 60, 255, 0.35); }
.service-card--ai .service-card__line { color: #b98cff; }

/* ---------- 13d. Cinematic scroll demo (video scrubbed by scroll) ---------- */
.cine { position: relative; }
.cine__track { height: 320vh; position: relative; }
.cine__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.cine__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0b0d0f url('assets/build-poster.webp') center / cover no-repeat;
}
.cine__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 6, 7, 0.92) 0%, rgba(5, 6, 7, 0.6) 45%, rgba(5, 6, 7, 0.1) 100%),
    linear-gradient(0deg, rgba(5, 6, 7, 0.85) 0%, transparent 30%);
}
.cine__content { position: relative; z-index: 1; width: 100%; }
.cine__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.05;
  max-width: 620px;
  margin: 14px 0 28px;
}
.cine__steps { position: relative; min-height: 5.2em; max-width: 460px; margin-bottom: 26px; }
.cine__step {
  position: absolute;
  inset: 0 auto auto 0;
  font-size: 1.05rem;
  color: var(--text);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.cine__step.is-active { opacity: 1; transform: none; }
.cine__progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
}
.cine__progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gradient-primary);
}
.cine__caption {
  position: absolute;
  right: 24px; bottom: 18px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ---------- 13e. Templates ---------- */
.templates { padding: 100px 0; }
.tpl-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.tpl-filter {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  font-size: 0.86rem;
  transition: all 0.2s ease;
}
.tpl-filter:hover { color: var(--text); }
.tpl-filter.is-active { background: var(--text); color: #05070a; border-color: var(--text); }
.tpl-filter--premium { border-color: rgba(200, 245, 115, 0.45); color: var(--lime); }
.tpl-filter--premium.is-active { background: var(--lime); border-color: var(--lime); }

.tpl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tpl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.tpl-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.tpl-card[hidden] { display: none; }
.tpl-card--cinematic {
  border-color: rgba(200, 245, 115, 0.3);
  box-shadow: 0 0 50px -30px rgba(200, 245, 115, 0.7);
}
.tpl-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.tpl-card__media--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 6, 7, 0.55), transparent 55%);
}
.tpl-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tpl-card__body h3 { font-family: var(--font-heading); font-size: 1.1rem; }
.tpl-card__body p { color: var(--text-muted); font-size: 0.88rem; flex: 1; }
.tpl-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.tpl-price { font-family: var(--font-heading); font-weight: 700; font-size: 1.25rem; }
.tpl-price small { font-size: 0.72rem; font-weight: 400; color: var(--text-dim); margin-right: 4px; }
.tpl-card--cinematic .tpl-price { color: var(--lime); }

.tpl-badge {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--purple);
  color: #fff;
}
.tpl-badge--premium { background: var(--lime); color: #05070a; }
.tpl-badge--muted { background: rgba(255, 255, 255, 0.12); }
.tpl-badge--real { left: auto; right: 12px; background: rgba(5, 6, 7, 0.72); color: var(--lime); border: 1px solid rgba(200, 245, 115, 0.4); }
.tpl-card--more {
  align-items: flex-start;
  justify-content: flex-end;
  gap: 10px;
  padding: 28px;
  text-decoration: none;
  color: inherit;
  border-style: dashed;
  background: linear-gradient(160deg, rgba(122, 60, 255, 0.16), transparent 60%), var(--surface);
}
.tpl-card--more h3 { font-family: var(--font-heading); font-size: 1.3rem; }
.tpl-card--more p { color: var(--text-muted); font-size: 0.9rem; margin: 0 0 8px; }
.tpl-more__count { font-family: var(--font-heading); font-size: 3.4rem; font-weight: 700; line-height: 1; color: var(--lime); margin-bottom: auto; }
.tpl-live {
  position: absolute;
  right: 12px; bottom: 12px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--lime);
}

/* CSS-only template previews */
.tpl-mock { display: flex; align-items: center; justify-content: center; }
.tpl-mock--product { background: radial-gradient(circle at 50% 55%, #3b1d7a, #0a0b0f 65%); }
.tpl-mock--story   { background: radial-gradient(circle at 50% 50%, #5a2a14, #0a0b0f 70%); }
.tpl-mock--biz1 { background: linear-gradient(135deg, #0f2a3a, #0a0b0f 75%); }
.tpl-mock--biz2 { background: linear-gradient(135deg, #3a2a12, #0a0b0f 75%); }
.tpl-mock--biz3 { background: linear-gradient(135deg, #3a1a1a, #0a0b0f 75%); }
.tpl-mock--ess1 { background: linear-gradient(135deg, #133328, #0a0b0f 75%); }
.tpl-mock--ess2 { background: linear-gradient(135deg, #24321a, #0a0b0f 75%); }
.tpl-mock--ess3 { background: linear-gradient(135deg, #2a1440, #0a0b0f 75%); }

.mock-orb {
  width: 34%;
  aspect-ratio: 1;
  border-radius: 28%;
  background: linear-gradient(135deg, #b98cff, #3a1a7a);
  box-shadow: 0 20px 60px rgba(122, 60, 255, 0.6);
  animation: orbSpin 6s ease-in-out infinite;
}
@keyframes orbSpin {
  0%, 100% { transform: rotate(-12deg) translateY(0); }
  50% { transform: rotate(18deg) translateY(-8px); }
}
.mock-plate {
  width: 36%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #ffb36b 0 30%, #d9713a 31% 48%, #f3efe6 49% 62%, #d8d2c4 63%);
  animation: plateSpin 10s linear infinite;
}
@keyframes plateSpin { to { transform: rotate(360deg); } }
.mock-lines { position: absolute; left: 12px; bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.mock-lines i { display: block; height: 6px; width: 90px; border-radius: 4px; background: rgba(255, 255, 255, 0.25); }
.mock-lines i + i { width: 60px; background: rgba(255, 255, 255, 0.12); }

.mock-site {
  width: 72%;
  height: 72%;
  border-radius: 8px;
  background: rgba(5, 6, 7, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.mock-site b { display: block; height: 42%; border-radius: 5px; background: rgba(255, 255, 255, 0.1); }
.mock-site i { display: block; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.18); width: 80%; }
.mock-site i + i { width: 55%; }
.mock-site u { display: block; margin-top: auto; height: 14px; width: 38%; border-radius: 999px; background: var(--green); opacity: 0.8; }

/* ---------- 13f. Pricing ---------- */
.pricing { padding: 100px 0; background: var(--bg-alt); border-block: 1px solid var(--border); }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.price-card h3 { font-family: var(--font-heading); font-size: 1.3rem; }
.price-card__desc { color: var(--text-muted); font-size: 0.9rem; }
.price-card__amount {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  margin: 6px 0 4px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.price-card__amount small { font-size: 0.8rem; font-weight: 400; color: var(--text-dim); }
.price-card__from { font-size: 0.85rem; font-weight: 400; color: var(--text-dim); }
.price-card__list { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 20px; flex: 1; }
.price-card__list li { position: relative; padding-left: 24px; font-size: 0.9rem; color: var(--text-muted); }
.price-card__list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.price-card--featured {
  border-color: rgba(0, 255, 157, 0.45);
  box-shadow: 0 0 60px -30px rgba(0, 255, 157, 0.7);
}
.price-card--premium {
  border-color: rgba(200, 245, 115, 0.5);
  background: linear-gradient(180deg, rgba(200, 245, 115, 0.06), var(--surface) 45%);
}
.price-card--premium .price-card__amount { color: var(--lime); }
.price-card--premium .price-card__list li::before { color: var(--lime); }
.price-card__tag {
  position: absolute;
  top: -12px; right: 24px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--green);
  color: #05070a;
}
.price-card__tag--premium { background: var(--lime); }

.addons { margin-top: 56px; }
.addons__title { font-family: var(--font-heading); font-size: 1.3rem; margin-bottom: 20px; }
.addons__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.addon {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}
.addon__icon { font-size: 1.5rem; }
.addon h4 { font-size: 0.98rem; }
.addon p { color: var(--text-muted); font-size: 0.84rem; }
.addon__price { text-align: right; }
.addon__price b { font-family: var(--font-heading); font-size: 1.35rem; color: var(--green); }
.addon__price small { color: var(--text-dim); font-size: 0.78rem; }
.addon__price em { display: block; font-style: normal; font-size: 0.74rem; color: var(--text-dim); }
.addons__note { margin-top: 18px; color: var(--text-muted); font-size: 0.9rem; }

/* ---------- 13g. Portfolio photo card ---------- */
.project-card__media--photo { background-size: cover; background-position: center; }

/* ---------- 13h. FAQ ---------- */
.faq { padding: 100px 0; }
.faq__inner { max-width: 820px; }
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
}
.faq__item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--green); font-size: 1.2rem; line-height: 1; }
.faq__item[open] summary::after { content: "−"; }
.faq__item p { margin-top: 12px; color: var(--text-muted); font-size: 0.92rem; }

/* ---------- 14. Scroll animations (JS toggles .is-visible) ---------- */
[data-animate] {
  opacity: 0;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-animate="fade-up"] { transform: translateY(28px); }
[data-animate="fade-in"] { transform: none; }
[data-animate].is-visible { opacity: 1; transform: none; }

/* ---------- 15. Responsive ---------- */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .code-window { display: none; }
  /* hero stacks here: the code-art would collide with the text */
  .floating-code { display: none; }
  .support__grid { grid-template-columns: 1fr; gap: 40px; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .order__grid { grid-template-columns: 1fr; }
  .portfolio__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .services__grid--six { grid-template-columns: repeat(2, 1fr); }
  .tpl-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .addons__grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .navbar__links {
    position: fixed;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(10,11,15,0.98);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 24px;
    transform: translateY(-130%);
    opacity: 0;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  }
  .navbar__links.is-open { transform: translateY(0); opacity: 1; }
  .navbar__links li { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .navbar__toggle { display: flex; }
  .navbar__cta { display: none; }

  .services__grid { grid-template-columns: 1fr; }
  .order-form { grid-template-columns: 1fr; padding: 24px; }
  .portfolio__grid { grid-template-columns: 1fr; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .footer__legal { justify-content: center; }
  .hero__stats { gap: 24px; }

  /* frame is nearly full width here, so overhanging badges fall off screen */
  .badge-floating--1 { left: 0; }
  .badge-floating--2 { right: 0; }

  .ticker { margin-bottom: 56px; }
  .support { padding-bottom: 80px; }
  .support__metrics { gap: 22px; }
  .console__viewport { height: 260px; }

  .services__grid--six { grid-template-columns: 1fr; }
  .tpl-grid { grid-template-columns: 1fr; }
  .navbar__right { margin-left: auto; margin-right: 12px; }
  .navbar__toggle { order: 3; }
  .cine__track { height: 260vh; }
  .cine__shade { background: linear-gradient(0deg, rgba(5, 6, 7, 0.95) 0%, rgba(5, 6, 7, 0.55) 60%, rgba(5, 6, 7, 0.25) 100%); }
  .cine__sticky { align-items: flex-end; padding-bottom: 64px; }
  .cine__caption { left: 16px; right: auto; }
  .addon { grid-template-columns: auto 1fr; }
  .addon__price { grid-column: 1 / -1; text-align: left; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}


/* ==================== Llamar al agente de voz ==================== */
.call-ai {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 26px 0 8px;
  padding: 16px 20px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: linear-gradient(120deg, rgba(0, 255, 157, 0.06), rgba(122, 60, 255, 0.08));
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.call-ai:hover { border-color: var(--green); transform: translateY(-2px); }
.call-ai__pulse {
  flex: none;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(0, 255, 157, 0.55);
  animation: call-ping 2.2s ease-out infinite;
}
@keyframes call-ping {
  70% { box-shadow: 0 0 0 12px rgba(0, 255, 157, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 255, 157, 0); }
}
.call-ai__text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.call-ai__text strong { font-family: var(--font-heading); font-size: 1rem; }
.call-ai__text span { color: var(--text-muted); font-size: 0.86rem; }
.call-ai__num {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--green);
  white-space: nowrap;
}
@media (max-width: 620px) {
  .call-ai { flex-wrap: wrap; }
  .call-ai__num { width: 100%; padding-left: 26px; }
}

/* precios de lanzamiento: el anterior tachado y el aviso de la promocion */
.price-was { color: var(--text-dim); font-weight: 400; font-size: 0.62em; text-decoration-thickness: 2px; text-decoration-color: rgba(255, 90, 90, 0.85); margin-right: 4px; vertical-align: 0.12em; }
.tpl-price .price-was { font-size: 0.78em; }
.tcard__price .price-was { font-size: 0.8em; }
.promo-pill { display: inline-flex; align-items: center; gap: 10px; margin: 18px 0 0; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(0, 255, 157, 0.35); background: rgba(0, 255, 157, 0.08); color: var(--text); font-size: 0.88rem; font-weight: 600; }
.promo-pill__dot { width: 8px; height: 8px; border-radius: 50%; background: #00ff9d; box-shadow: 0 0 0 4px rgba(0, 255, 157, 0.2); }

/* agentes IA y planes mensuales: tarjetas con lo que incluye cada servicio */
.addons__grid { grid-template-columns: repeat(4, 1fr); }
.svc-card { position: relative; display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 26px 22px 22px; transition: transform .3s var(--ease), border-color .3s var(--ease); }
.svc-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.svc-card--hot { border-color: rgba(0, 255, 157, 0.45); box-shadow: 0 0 50px -30px rgba(0, 255, 157, 0.8); }
.svc-card__tag { position: absolute; top: -11px; right: 18px; padding: 4px 11px; border-radius: 999px; font-size: 0.7rem; font-weight: 700; background: var(--green); color: #05070a; }
.svc-card__icon { font-size: 1.6rem; margin-bottom: 6px; }
.svc-card h4 { font-family: var(--font-heading); font-size: 1.05rem; }
.svc-card__text { color: var(--text-muted); font-size: 0.86rem; min-height: 2.6em; }
.svc-card__price { margin-top: 8px; }
.svc-card__price b { font-family: var(--font-heading); font-size: 2rem; color: var(--green); }
.svc-card__price small { color: var(--text-dim); font-size: 0.85rem; margin-left: 2px; }
.svc-card__setup { font-size: 0.8rem; color: var(--text-dim); }
.svc-card__list { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 14px; flex: 1; }
.svc-card__list li { position: relative; padding-left: 22px; font-size: 0.85rem; color: var(--text-muted); }
.svc-card__list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.svc-card__term { font-size: 0.76rem; color: var(--text-dim); border-top: 1px solid var(--border); padding-top: 12px; margin-bottom: 12px; }
@media (max-width: 1100px) { .addons__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .addons__grid { grid-template-columns: 1fr; } }

/* selector de paquete en precios */
.pmode { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 0 0 34px; text-align: center; }
.pmode__switch { display: inline-flex; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.pmode__switch button { border: 0; background: transparent; color: var(--text-muted); font: 600 0.92rem var(--font-body, inherit); padding: 11px 22px; border-radius: 999px; cursor: pointer; transition: background .25s, color .25s; }
.pmode__switch button.is-on { background: var(--green); color: #05070a; }
.pmode__hint { color: var(--text-muted); font-size: 0.9rem; margin: 0; }
.pc-ai { display: none; }
.pricing.is-ai .pc-ai { display: block; }
.pricing.is-ai li.pc-ai { display: list-item; list-style: none; }
.pricing.is-ai .price-card__list li.pc-ai { color: var(--text); }
.pc-ai__box { margin: -2px 0 10px; }
.pc-ai__monthly { display: block; font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; color: var(--green); }
.pc-ai__monthly small { font-size: 0.78rem; font-weight: 400; color: var(--text-dim); }
.pc-ai__save { display: inline-block; margin-top: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(0, 255, 157, 0.1); border: 1px solid rgba(0, 255, 157, 0.35); color: var(--green); font-size: 0.76rem; font-weight: 600; }
.pc-ai__none { color: var(--text-dim); font-size: 0.82rem; margin: -6px 0 16px; padding: 10px 12px; border: 1px dashed var(--border); border-radius: 10px; }


/* ==================== Telefonos pequenos y tablets ==================== */
img, video, svg, canvas, iframe { max-width: 100%; }
h1, h2, h3, h4, p, li, a { overflow-wrap: break-word; }
.btn, .navbar__toggle, .lang-switch button { touch-action: manipulation; }

@media (max-width: 720px) {
  .container { padding-inline: 18px; }
  .navbar__inner { gap: 10px; }
  .navbar__right { gap: 8px; margin-right: 6px; }
  .navbar__toggle { padding: 12px 10px; }
  .navbar__links { padding-inline: 18px; max-height: calc(100vh - 76px); max-height: calc(100dvh - 76px); overflow-y: auto; }
  .lang-switch button { padding: 8px 10px; }
}
@media (max-width: 400px) {
  .container { padding-inline: 14px; }
  .navbar__logo { font-size: 1rem; }
  .lang-switch { font-size: 0.68rem; }
  .lang-switch button { padding: 8px 7px; }
  .pmode__switch button { padding: 10px 14px; font-size: 0.85rem; }
  .order-form { padding: 18px; }
}
@media (hover: none) {
  .svc-card:hover, .call-ai:hover { transform: none; }
}
.order__grid > *, .support__grid > *, .hero__grid > * { min-width: 0; }
.form-row { min-width: 0; }
.form-row input, .form-row select, .form-row textarea { width: 100%; min-width: 0; max-width: 100%; }
input, select, textarea { font-size: max(16px, 1em); } /* evita el zoom automatico de iOS al enfocar */

/* barra de navegacion en tablets / laptops pequenas: ES y FR tienen textos mas largos */
@media (min-width: 721px) and (max-width: 1180px) {
  .navbar__inner { gap: 14px; }
  .navbar__links { gap: 18px; }
  .nav-link { font-size: 0.86rem; }
  .navbar__cta { padding-inline: 14px; font-size: 0.82rem; white-space: nowrap; }
}
@media (min-width: 721px) and (max-width: 900px) {
  .navbar__links { gap: 12px; }
  .navbar__cta { display: none; }
}
