/* ── components.css ── Reusable UI pieces ── */

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px;
  background: rgba(7,9,15,.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 0.5px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
}
.navbar.scrolled {
  background: rgba(7,9,15,.97);
  border-color: rgba(99,102,241,.25);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo-img {
  height: 32px;
  width: auto;
  display: block;
}
.nav-logo-img--sm {
  height: 24px;
}

/* Wordmark tipográfico (fallback / uso interno — no navbar) */
.wordmark {
  font-family: var(--font-display);   /* Nunito Black 900 — uso exclusivo del wordmark */
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -1.2px;
  line-height: 1;
}
.wordmark--sm { font-size: 16px; letter-spacing: -1px; }
.wm-light  { color: var(--text); font-weight: 900; }
.wm-bold   {
  /* Gradiente tricolor oficial: indigo-light → cyan → emerald */
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
}
.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--dim);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1.5px;
  background: var(--grad-main);
  border-radius: 2px;
  transition: width .25s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-links a.active::after,
.nav-links a:hover::after { width: 100%; }

.btn-nav-cta {
  background: var(--grad-main);
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 8px;
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 0 0 rgba(99,102,241,0);
}
.btn-nav-cta:hover {
  opacity: .92;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(99,102,241,.35);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--muted);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Buttons ── */
.btn-primary {
  background: var(--grad-main);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: 15px 30px;
  border-radius: var(--radius-md);
  letter-spacing: -.1px;
  transition: transform var(--transition), opacity var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 24px rgba(99,102,241,.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  opacity: .93;
  box-shadow: 0 8px 32px rgba(99,102,241,.45);
}

.btn-ghost {
  background: rgba(99,102,241,.08);
  border: 1px solid rgba(129,140,248,.3);
  color: #C7D2FE;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: 15px 30px;
  border-radius: var(--radius-md);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.btn-ghost:hover {
  background: rgba(99,102,241,.16);
  border-color: rgba(129,140,248,.6);
  color: #E0E7FF;
}

/* ── Service cards ── */
.svc-card {
  background: var(--surface-2);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.3);
}
.svc-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  border-radius: 50%;
  opacity: .07;
  transition: opacity .3s;
}
.svc-card:hover::before { opacity: .18; }
.svc-card--indigo::before { background: var(--indigo); }
.svc-card--indigo:hover   { border-color: var(--indigo-border); }
.svc-card--emerald::before { background: var(--emerald); }
.svc-card--emerald:hover  { border-color: var(--emerald-border); }
.svc-card--violet::before { background: var(--violet); }
.svc-card--violet:hover   { border-color: var(--violet-border); }
.svc-card--sky::before    { background: var(--sky); }
.svc-card--sky:hover      { border-color: var(--sky-border); }

.svc-icon {
  width: 46px; height: 46px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.svc-icon--indigo  { background: var(--indigo-dim);  border: 0.5px solid var(--indigo-border); }
.svc-icon--emerald { background: var(--emerald-dim); border: 0.5px solid var(--emerald-border); }
.svc-icon--violet  { background: var(--violet-dim);  border: 0.5px solid var(--violet-border); }
.svc-icon--sky     { background: var(--sky-dim);     border: 0.5px solid var(--sky-border); }

.svc-card h3 {
  font-family: var(--font-ui);
  font-size: 17px; font-weight: 700;
  color: var(--text); margin-bottom: 8px;
}
.svc-card p {
  font-family: var(--font-body);
  font-size: 13px; color: var(--dim); line-height: 1.75; margin-bottom: 20px;
}

.svc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.svc-tag {
  display: inline-block;
  background: rgba(99,102,241,.1);
  border: 0.5px solid rgba(99,102,241,.22);
  border-radius: 5px;
  padding: 3px 10px;
  font-family: var(--font-body);
  font-size: 11px; color: var(--indigo-light);
}
.svc-price {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  color: var(--emerald);
}

/* ── Pricing cards ── */
.price-card {
  background: var(--surface-2);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,.3);
}
.price-card--featured {
  border-color: rgba(99,102,241,.5);
  background: linear-gradient(145deg, rgba(99,102,241,.1), rgba(14,165,233,.06));
  box-shadow: 0 0 40px rgba(99,102,241,.12);
}
.price-card--featured:hover {
  box-shadow: 0 20px 60px rgba(99,102,241,.25);
}
.price-popular {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--grad-main);
  color: #fff;
  font-family: var(--font-body);
  font-size: 11px; font-weight: 600;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.price-header { margin-bottom: 24px; }
.price-name {
  font-family: var(--font-ui);
  font-size: 15px; font-weight: 700;
  color: var(--text); margin-bottom: 10px;
}
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 10px;
}
.price-currency { font-family: var(--font-ui); font-size: 18px; font-weight: 600; color: var(--muted); }
.price-currency--custom {
  font-family: var(--font-ui);
  font-size: 26px; font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.price-num {
  font-family: var(--font-ui);
  font-size: 32px; font-weight: 800;
  color: var(--text);
  letter-spacing: -1.5px;
}
.price-period {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--dim);
  margin-top: 4px;
  margin-bottom: 10px;
}
.price-amount--custom { margin-bottom: 4px; }
.price-desc { font-family: var(--font-body); font-size: 13px; color: var(--dim); line-height: 1.6; }

.price-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  flex: 1;
}
.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}
.pf-check { color: var(--emerald); font-size: 13px; flex-shrink: 0; margin-top: 1px; }
.pf-off   { opacity: .4; }
.pf-x     { color: var(--dim); font-size: 13px; flex-shrink: 0; }

.btn-price {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px; font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: transform var(--transition), opacity var(--transition), box-shadow var(--transition);
}
.btn-price--primary {
  background: var(--grad-main);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99,102,241,.3);
}
.btn-price--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(99,102,241,.45);
}
.btn-price--ghost {
  background: rgba(99,102,241,.08);
  border: 1px solid rgba(99,102,241,.3);
  color: #C7D2FE;
}
.btn-price--ghost:hover {
  background: rgba(99,102,241,.15);
  border-color: rgba(99,102,241,.5);
}

/* ── FAQ ── */
.faq-item {
  border-bottom: 0.5px solid var(--border-soft);
}
.faq-item:first-child { border-top: 0.5px solid var(--border-soft); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-family: var(--font-ui);
  font-size: 15px; font-weight: 700;
  color: var(--text);
  text-align: left;
  background: none;
  cursor: pointer;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--indigo-light); }
.faq-icon {
  color: var(--dim);
  flex-shrink: 0;
  transition: transform .3s ease, color .2s;
}
.faq-item.open .faq-icon {
  transform: rotate(180deg);
  color: var(--indigo-light);
}
.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height .4s cubic-bezier(.16,1,.3,1);
}
.faq-answer p {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--dim);
  line-height: 1.8;
  padding-bottom: 20px;
}
.faq-answer p strong { color: var(--muted); }
.faq-item.open .faq-answer { max-height: 300px; }

/* ── CTA form ── */
.cta-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 560px;
  margin: 0 auto 14px;
  text-align: left;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-family: var(--font-body); font-size: 12px; font-weight: 500; color: var(--muted); }
.cta-input {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 0.5px solid rgba(129,140,248,.25);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 14px; color: var(--text);
  outline: none;
  transition: border-color var(--transition), background var(--transition);
}
.cta-input::placeholder { color: var(--dimmer); }
.cta-input:focus {
  border-color: rgba(129,140,248,.6);
  background: rgba(255,255,255,.06);
}
.cta-input.error { border-color: #EF4444; }
.cta-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  /* chevron personalizado (paleta de marca) */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='none'><path d='M4 6l4 4 4-4' stroke='%23818CF8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px 14px;
  padding-right: 44px;
}
/* Fix: <option> hereda colores del SO, forzar paleta oscura */
.cta-select option {
  background-color: #0B1120;
  color: var(--text);
  font-family: var(--font-body);
  padding: 8px 12px;
}
.cta-select option:checked,
.cta-select option:hover {
  background-color: var(--indigo);
  color: #fff;
}
.cta-textarea { resize: vertical; min-height: 100px; }
.btn-cta-submit {
  background: var(--grad-main);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px; font-weight: 500;
  padding: 15px 28px; border-radius: var(--radius-md);
  white-space: nowrap;
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 24px rgba(99,102,241,.3);
  cursor: pointer;
  width: 100%;
}
.btn-cta-submit:hover {
  opacity: .92;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(99,102,241,.45);
}
.btn-cta-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.cta-note { font-family: var(--font-body); font-size: 13px; color: var(--emerald); text-align: center; min-height: 20px; }
.cta-note.error { color: #F87171; }

.cta-alt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--dim);
  flex-wrap: wrap;
}
.cta-whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #4ADE80;
  font-weight: 500;
  font-size: 13px;
  transition: color var(--transition);
  text-decoration: none;
}
.cta-whatsapp-link:hover { color: #86EFAC; }

/* ── WhatsApp floating button ── */
.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 200;
  width: 56px; height: 56px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: waPop .6s 2s cubic-bezier(.16,1,.3,1) both;
}
.whatsapp-float:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 32px rgba(37,211,102,.55);
}
.wa-tooltip {
  position: absolute;
  right: calc(100% + 10px);
  background: rgba(7,9,15,.95);
  border: 0.5px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 12px; font-weight: 500;
  padding: 5px 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity var(--transition), transform var(--transition);
  pointer-events: none;
}
.whatsapp-float:hover .wa-tooltip {
  opacity: 1;
  transform: translateX(0);
}
