:root {
  --bg: #0B0B0E;
  --bg-2: #0E0E11;
  --surface: #16161A;
  --surface-2: #1D1D22;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);
  --fg: #ECEDEE;
  --fg-muted: rgba(236,237,238,0.62);
  --fg-dim: rgba(236,237,238,0.42);
  --accent: #D99A4E;
  --accent-soft: rgba(217,154,78,0.18);
  --accent-glow: rgba(217,154,78,0.38);
  --accent-fg: #17120A;
}
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, .display {
  font-family: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.02em;
}
.mono { font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace; }

.grid-bg {
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
  background-size: 28px 28px;
}
.grid-bg-fade {
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.halo {
  position: absolute; border-radius: 9999px; filter: blur(80px);
  pointer-events: none; opacity: 0.55;
}

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0)) , var(--surface);
  border: 1px solid var(--border);
  transition: border-color 250ms ease, transform 250ms ease, background 250ms ease;
}
.card:hover {
  border-color: var(--border-strong);
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0)) , var(--surface);
}
.card-accent:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-soft), 0 20px 60px -20px var(--accent-glow);
}

.btn { display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; font-size: 14px; line-height: 1;
  padding: 13px 18px; border-radius: 10px;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
  border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -10px var(--accent-glow); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--border-strong); }
.btn-ghost:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.25); }
.btn-sm { padding: 9px 14px; font-size: 13px; }

.lnk { position: relative; color: var(--fg-muted); transition: color 200ms ease; }
.lnk:hover { color: var(--fg); }
.lnk-accent { color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.lnk-accent .arrow { transition: transform 200ms ease; }
.lnk-accent:hover .arrow { transform: translateX(3px); }

.accent { color: var(--accent); }
.accent-bg { background: var(--accent); }

.nav-shell {
  transition: background 300ms ease, backdrop-filter 300ms ease, border-color 300ms ease;
  border-bottom: 1px solid transparent;
}
.nav-shell.scrolled {
  background: rgba(14, 14, 17, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--border);
}

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }
.reveal-delay-5 { transition-delay: 400ms; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

.faq-item { border-top: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; padding: 22px 0; display: flex;
  align-items: center; justify-content: space-between; gap: 24px;
  font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 500;
  color: var(--fg); cursor: pointer; background: transparent; border: 0;
}
.faq-q:hover { color: var(--accent); }
.faq-icon { width: 28px; height: 28px; border-radius: 999px; border: 1px solid var(--border-strong);
  display:grid; place-items:center; transition: all 250ms ease; flex-shrink: 0; }
.faq-item.open .faq-icon { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 350ms ease, padding 250ms ease, opacity 250ms ease; opacity: 0; }
.faq-item.open .faq-a { max-height: 600px; padding: 0 0 24px 0; opacity: 1; }
.faq-a p { color: var(--fg-muted); line-height: 1.6; max-width: 60ch; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; color: var(--fg-dim); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; }
.field input, .field textarea, .field select {
  background: rgba(255,255,255,0.02); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 14px; color: var(--fg);
  font-family: inherit; font-size: 15px; transition: border-color 180ms ease, background 180ms ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--fg-dim); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); background: rgba(255,255,255,0.04);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field.error input, .field.error textarea { border-color: #ef5a6f; }
.field-msg { font-size: 12px; color: #ef8590; min-height: 14px; }

.step-num {
  font-family: 'Space Grotesk', sans-serif; font-weight: 600;
  font-size: clamp(56px, 6vw, 88px); line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, var(--fg) 0%, rgba(255,255,255,0.18) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.mockup { background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  font-size: 12px; color: var(--fg-muted); letter-spacing: 0.02em;
}
.chip .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.chip .dot.pulse { animation: pulse-dot 2.4s ease-in-out infinite; }

.icn {
  width: 44px; height: 44px; border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0));
  border: 1px solid var(--border-strong);
  color: var(--accent);
}

.eyebrow {
  font-family: 'Geist', sans-serif;
  font-size: 12px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--accent); display: inline-block; }

.hr-soft { height: 1px; background: linear-gradient(90deg, transparent, var(--border-strong), transparent); }

.glow { filter: drop-shadow(0 0 18px var(--accent-glow)); }

::selection { background: var(--accent-soft); color: var(--fg); }

/* Hero Workforce 24/7 */
.hwf-intro {
  max-width: 480px;
  margin: 0 auto 18px;
  text-align: left;
  padding: 0 4px;
}
.hwf-intro-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.hwf-intro-pulse {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 99px;
  box-shadow: 0 0 8px var(--accent-glow);
  animation: hwf-pulse 1.6s ease-in-out infinite;
}
.hwf-intro-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px; font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--fg);
  line-height: 1.15;
  margin-bottom: 4px;
}
.hwf-intro-sub {
  font-size: 13.5px;
  color: var(--fg-muted);
  line-height: 1.5;
  max-width: 38ch;
}
@media (max-width: 640px) {
  .hwf-intro { max-width: 380px; margin-bottom: 14px; }
  .hwf-intro-title { font-size: 19px; }
  .hwf-intro-sub { font-size: 13px; }
}

.hero-workforce {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  aspect-ratio: 1 / 1.1;
  background: linear-gradient(180deg, var(--surface-2), var(--surface) 85%);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 16px 16px 14px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.6),
              0 0 0 1px var(--accent-soft);
}
@media (min-width: 1024px) {
  .hero-workforce { aspect-ratio: 5 / 6; padding: 18px 18px 16px; }
}
.hwf-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  pointer-events: none;
}

.hwf-header {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 6px 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.hwf-tag {
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.05em;
}
.hwf-status {
  font-size: 11px;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px;
}
.hwf-livedot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 99px;
  box-shadow: 0 0 10px var(--accent-glow);
  animation: hwf-pulse 1.6s ease-in-out infinite;
}
@keyframes hwf-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.85); }
}

.hwf-feed {
  position: relative;
  flex: 1;
  display: flex; flex-direction: column;
  gap: 8px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 12%, black 85%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, black 12%, black 85%, transparent 100%);
}

.hwf-task {
  flex-shrink: 0;
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: 11px;
  font-size: 12.5px;
  color: var(--fg);
  line-height: 1.35;
  animation: hwf-task-in 480ms cubic-bezier(0.22, 1, 0.36, 1);
  transition: opacity 600ms ease, transform 600ms ease, background 350ms ease, border-color 350ms ease;
}
.hwf-task.is-leaving {
  opacity: 0;
  transform: translateY(-20px) scale(0.96);
}
.hwf-task.is-done {
  background: rgba(255,255,255,0.018);
  border-color: var(--border);
}
.hwf-task.is-active {
  background: rgba(255,255,255,0.04);
  border-color: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent-soft);
}
@keyframes hwf-task-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.hwf-task-icon {
  width: 18px; height: 18px;
  display: grid; place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
}
/* Spinner for active state */
.hwf-task.is-active .hwf-task-icon::before {
  content: '';
  width: 14px; height: 14px;
  border-radius: 99px;
  border: 1.5px solid var(--accent-soft);
  border-top-color: var(--accent);
  animation: hwf-spin 1s linear infinite;
}
@keyframes hwf-spin { to { transform: rotate(360deg); } }

/* Check for done */
.hwf-task.is-done .hwf-task-icon {
  color: var(--accent);
}
.hwf-task.is-done .hwf-task-icon svg {
  animation: hwf-check-in 350ms cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes hwf-check-in {
  from { transform: scale(0.4); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.hwf-task-body { flex: 1; min-width: 0; }
.hwf-task-text {
  font-family: 'Geist', sans-serif;
  font-size: 12.5px;
  color: var(--fg);
}
.hwf-task.is-done .hwf-task-text {
  color: var(--fg-muted);
}
.hwf-task-result {
  margin-top: 3px;
  font-family: 'Geist Mono', monospace;
  font-size: 10.5px;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.hwf-footer {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 6px 2px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.hwf-foot-block {
  display: flex; flex-direction: column; gap: 1px;
}
.hwf-foot-num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600; font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1;
}
.hwf-foot-label {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  color: var(--fg-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}
.hwf-foot-sep {
  width: 1px;
  align-self: stretch;
  background: var(--border);
}

@media (max-width: 640px) {
  .hero-workforce { aspect-ratio: 4 / 5; padding: 14px 14px 12px; max-width: 380px; }
  .hwf-task { padding: 9px 11px; font-size: 12px; }
  .hwf-foot-num { font-size: 19px; }
}

/* Portfolio / Gallery */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 999px;
  width: max-content;
  max-width: 100%;
}
.portfolio-filter {
  font-family: 'Geist', sans-serif;
  font-size: 13px; font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--fg-muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color 200ms ease, background 200ms ease, transform 200ms ease;
  white-space: nowrap;
}
.portfolio-filter:hover { color: var(--fg); background: rgba(255,255,255,0.04); }
.portfolio-filter.is-active {
  background: var(--accent);
  color: var(--accent-fg);
  box-shadow: 0 6px 24px -8px var(--accent-glow);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .portfolio-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media (min-width: 1100px) {
  .portfolio-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* Adaptive: 1 item → showcase horizontal full-width */
.portfolio-grid.is-single {
  grid-template-columns: 1fr;
  max-width: 100%;
  margin: 0 auto;
}
.portfolio-grid.is-single .portfolio-card {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
}
@media (min-width: 900px) {
  .portfolio-grid.is-single .portfolio-card {
    grid-template-columns: 1.15fr 1fr;
    grid-template-rows: auto;
    min-height: 480px;
  }
  .portfolio-grid.is-single .portfolio-img {
    aspect-ratio: auto;
    height: 100%;
    min-height: 480px;
    border-right: 1px solid var(--border);
  }
  .portfolio-grid.is-single .portfolio-meta {
    padding: 38px 38px 32px;
    justify-content: center;
    gap: 8px;
  }
  .portfolio-grid.is-single .portfolio-name {
    font-size: 32px;
  }
  .portfolio-grid.is-single .portfolio-desc {
    font-size: 15px;
    max-width: 50ch;
  }
  /* Logo placeholder más grande también */
  .portfolio-grid.is-single .placeholder-icon {
    width: 120px; height: 120px;
  }
}

/* Adaptive: 2 items → 2 cols max */
@media (min-width: 1100px) {
  .portfolio-grid.is-double { grid-template-columns: 1fr 1fr; max-width: 880px; margin: 0 auto; }
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0)), var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: var(--fg);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
              border-color 280ms ease,
              box-shadow 280ms ease,
              background 280ms ease,
              opacity 350ms ease;
}
.portfolio-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-soft), 0 30px 70px -20px var(--accent-glow);
}
/* Filter hide state */
.portfolio-card.is-hidden {
  display: none;
}

.portfolio-img {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--surface-2);
}
@media (min-width: 640px) {
  .portfolio-img { aspect-ratio: 4 / 3; }
}
.portfolio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1),
              filter 400ms ease;
}
.portfolio-card:hover .portfolio-img img {
  transform: scale(1.08);
  filter: saturate(1.05);
}

.portfolio-img-placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  overflow: hidden;
}
.placeholder-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.placeholder-halo {
  position: absolute;
  width: 70%; height: 70%; max-width: 320px; max-height: 320px;
  border-radius: 99px;
  background: radial-gradient(circle, var(--accent-glow), transparent 65%);
  filter: blur(40px);
  opacity: 0.4;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: opacity 400ms ease, filter 400ms ease;
}
.portfolio-card:hover .placeholder-halo {
  opacity: 0.7;
  filter: blur(34px);
}
.placeholder-icon {
  position: relative; z-index: 1;
  width: 88px; height: 88px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 22px;
  color: var(--accent);
  box-shadow: 0 16px 40px -10px var(--accent-glow);
  transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
}
.portfolio-card:hover .placeholder-icon {
  transform: scale(1.06);
}
.placeholder-cat {
  position: relative; z-index: 1;
  margin-top: 16px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.portfolio-arrow {
  position: absolute;
  top: 12px; right: 12px;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: rgba(14, 14, 17, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--fg);
  opacity: 0.85;
  transition: opacity 250ms ease, transform 250ms ease, background 250ms ease;
  pointer-events: none;
}
.portfolio-card:hover .portfolio-arrow {
  opacity: 1;
  transform: translate(2px, -2px);
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}

.portfolio-meta {
  padding: 16px 18px 18px;
  display: flex; flex-direction: column; gap: 5px;
  flex: 1;
}
@media (min-width: 640px) {
  .portfolio-meta { padding: 18px 20px 20px; gap: 6px; }
}
.portfolio-category {
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.portfolio-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px; font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
@media (min-width: 640px) { .portfolio-name { font-size: 22px; } }
.portfolio-desc {
  font-size: 13.5px;
  color: var(--fg-muted);
  line-height: 1.55;
  margin-top: 2px;
}
@media (min-width: 640px) { .portfolio-desc { font-size: 14px; } }
.portfolio-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 8px;
}

.portfolio-cta {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 12.5px;
}
.portfolio-cta-domain {
  font-family: 'Geist Mono', monospace;
  font-size: 11.5px;
  color: var(--fg-dim);
  letter-spacing: 0.04em;
}
.portfolio-cta-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent);
  font-weight: 500;
  transition: gap 220ms ease, color 220ms ease;
}
.portfolio-card:hover .portfolio-cta-arrow {
  gap: 10px;
}

/* Contact modal */
.contact-modal {
  position: fixed; inset: 0; z-index: 100;
  display: none;
  align-items: flex-start; justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.contact-modal.is-open { display: flex; animation: cm-fade 200ms ease; }
@keyframes cm-fade { from { opacity: 0 } to { opacity: 1 } }
.contact-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(14, 14, 17, 0.78);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
}
.contact-modal-card {
  position: relative;
  z-index: 1;
  width: 100%; max-width: 520px;
  margin: 40px auto;
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0)), var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 28px 26px 26px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7), 0 0 0 1px var(--accent-soft);
  animation: cm-slide 280ms cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes cm-slide {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
.contact-modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--fg-muted);
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}
.contact-modal-close:hover {
  background: rgba(255,255,255,0.08);
  color: var(--fg);
  transform: rotate(90deg);
}
.contact-modal-head { margin-bottom: 22px; padding-right: 40px; }
.contact-modal-form { display: flex; flex-direction: column; gap: 14px; }
.contact-modal-form .field-msg { min-height: 0; }
.contact-modal-form .field.error .field-msg { min-height: 14px; }

/* Segmented toggle (independiente / empresa) */
.seg-toggle {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: 11px;
}
.seg-toggle-opt {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px; font-weight: 500;
  color: var(--fg-muted);
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}
.seg-toggle-opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg-toggle-opt:hover { color: var(--fg); }
.seg-toggle-opt:has(input:checked) {
  background: var(--accent);
  color: var(--accent-fg);
}
.seg-toggle-opt:has(input:focus-visible) {
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Body lock when modal open */
body.modal-open { overflow: hidden; }

/* Floating Action Button (Telegram, etc.) */
.fab {
  position: fixed;
  bottom: 22px; right: 22px;
  z-index: 80;
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
  color: #fff;
  text-decoration: none;
  border: 0;
  box-shadow: 0 14px 32px -8px rgba(34, 158, 217, 0.55),
              0 0 0 1px rgba(255,255,255,0.08);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 280ms ease;
}
.fab:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 22px 44px -10px rgba(34, 158, 217, 0.7),
              0 0 0 1px rgba(255,255,255,0.12);
}
.fab:active { transform: translateY(-1px) scale(1); }

.fab-pulse {
  position: absolute; inset: -4px;
  border-radius: inherit;
  background: rgba(34, 158, 217, 0.35);
  z-index: -1;
  animation: fab-pulse 2.4s ease-out infinite;
}
@keyframes fab-pulse {
  0%   { transform: scale(0.9); opacity: 0.7; }
  100% { transform: scale(1.4); opacity: 0; }
}

@media (max-width: 640px) {
  .fab { bottom: 18px; right: 18px; width: 54px; height: 54px; }
}

/* Body lock cuando modal abierto debería NO ocultar el FAB */
body.modal-open .fab { z-index: 70; opacity: 0.4; pointer-events: none; }

@media (max-width: 520px) {
  .contact-modal-card { padding: 24px 20px 22px; margin: 20px auto; }
  .contact-modal-head h2 { font-size: 22px !important; }
}

