*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #050508;
  --surface: rgba(255,255,255,0.05);
  --surface-hover: rgba(255,255,255,0.09);
  --border: rgba(255,255,255,0.09);
  --border-hover: rgba(255,255,255,0.18);
  --text-primary: #ffffff;
  --text-secondary: rgba(255,255,255,0.5);
  --text-muted: rgba(255,255,255,0.22);
  --green: #4ade80;
  --purple: #7c3aed;
  --blue: #3b82f6;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 45% at 15% -5%, rgba(109,40,217,0.22) 0%, transparent 55%),
    radial-gradient(ellipse 55% 35% at 85% 105%, rgba(29,78,216,0.16) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0 auto;
  padding: 60px 20px 72px;
}

.page.wide {
  max-width: 720px;
}

/* ── HERO ── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 44px;
}

.avatar-ring {
  position: relative;
  width: 108px;
  height: 108px;
  margin-bottom: 20px;
}

.avatar-ring.small {
  width: 72px;
  height: 72px;
  margin-bottom: 14px;
}

.avatar-ring::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #7c3aed, #3b82f6, #06b6d4, #a78bfa, #7c3aed);
  animation: spin 5s linear infinite;
  z-index: 0;
}

.avatar-ring::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #7c3aed, #3b82f6, #06b6d4, #a78bfa, #7c3aed);
  filter: blur(10px);
  opacity: 0.55;
  animation: spin 5s linear infinite;
  z-index: 0;
}

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

.avatar-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #0a0a12;
  padding: 3px;
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.status-wrap {
  position: absolute;
  bottom: 2px;
  right: -2px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(8,8,16,0.92);
  border: 1px solid rgba(74,222,128,0.3);
  border-radius: 20px;
  padding: 3px 9px 3px 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  backdrop-filter: blur(8px);
}

.status-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  font-size: clamp(26px, 5.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.8px;
  background: linear-gradient(140deg, #fff 35%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.hero .bio {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ── LINKTREE CARDS ── */
.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.link-card {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 18px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  transition: all 0.18s ease;
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.link-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.04) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.18s;
}

.link-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px) scale(1.01);
}

.link-card:hover::before { opacity: 1; }

.link-card.purple:hover { box-shadow: 0 10px 36px rgba(109,40,217,0.25); border-color: rgba(109,40,217,0.35); }
.link-card.blue:hover   { box-shadow: 0 10px 36px rgba(37,99,235,0.22);  border-color: rgba(37,99,235,0.32); }
.link-card.red:hover    { box-shadow: 0 10px 36px rgba(220,38,38,0.2);   border-color: rgba(220,38,38,0.3); }
.link-card.cyan:hover   { box-shadow: 0 10px 36px rgba(6,182,212,0.2);   border-color: rgba(6,182,212,0.3); }
.link-card.green:hover  { box-shadow: 0 10px 36px rgba(34,197,94,0.18);  border-color: rgba(34,197,94,0.28); }
.link-card.orange:hover { box-shadow: 0 10px 36px rgba(251,146,60,0.2);  border-color: rgba(251,146,60,0.3); }

.link-icon {
  position: absolute;
  left: 18px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.link-arrow {
  position: absolute;
  right: 20px;
  color: var(--text-muted);
  font-size: 14px;
  transition: transform 0.18s, color 0.18s;
}

.link-card:hover .link-arrow {
  transform: translateX(3px);
  color: var(--text-secondary);
}

.link-badge {
  position: absolute;
  right: 44px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
}

.badge-purple { background: rgba(124,58,237,0.2); color: #c4b5fd; border: 1px solid rgba(124,58,237,0.3); }
.badge-green  { background: rgba(74,222,128,0.1); color: #4ade80; border: 1px solid rgba(74,222,128,0.25); }

/* icon bg */
.bg-purple { background: rgba(109,40,217,0.18); }
.bg-blue   { background: rgba(37,99,235,0.18); }
.bg-red    { background: rgba(220,38,38,0.15); }
.bg-cyan   { background: rgba(6,182,212,0.15); }
.bg-green  { background: rgba(34,197,94,0.13); }
.bg-orange { background: rgba(251,146,60,0.15); }

/* ── REDES SOCIALES ── */
.socials {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.18s ease;
  backdrop-filter: blur(12px);
}

.social-btn:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.icon { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }

/* ── FOOTER ── */
footer {
  text-align: center;
  margin-top: 44px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================= */
/* LANDINGS INTERNAS                              */
/* ============================================= */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.18s ease;
  margin-bottom: 32px;
  backdrop-filter: blur(12px);
}

.back-link:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
  border-color: var(--border-hover);
  transform: translateX(-2px);
}

.landing-hero {
  text-align: center;
  margin-bottom: 44px;
}

.landing-hero h1 {
  font-size: clamp(30px, 5.5vw, 44px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  background: linear-gradient(140deg, #fff 30%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
}

.landing-hero .subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto;
}

.landing-hero .subtitle strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Section block */
.section {
  margin-bottom: 48px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin-bottom: 8px;
  text-align: center;
}

.section-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  text-align: center;
  margin-bottom: 28px;
}

/* Feature grid (beneficios / pasos) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.cols-2 { grid-template-columns: repeat(2, 1fr) !important; }
.cols-3 { grid-template-columns: repeat(3, 1fr) !important; }

@media (max-width: 640px) {
  .cols-2, .cols-3 { grid-template-columns: 1fr !important; }
  .case-grid { grid-template-columns: 1fr !important; }
}

.feature {
  padding: 22px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  transition: all 0.18s ease;
}

.feature:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  background: rgba(124,58,237,0.15);
}

.feature-icon svg { width: 20px; height: 20px; fill: #a78bfa; }

.feature h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.feature p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Case cards (empresas) */
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 640px) {
  .case-grid { grid-template-columns: 1fr !important; }
}

.case-tag {
  display: inline-block;
  padding: 2px 9px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-right: 6px;
  margin-top: 8px;
}

.case-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.case-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--blue));
}

.case-card .case-metric {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(140deg, #fff, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.case-card h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.case-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Steps (cómo trabajo) */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  counter-reset: step;
}

.step {
  padding: 22px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  position: relative;
  counter-increment: step;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.step h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  padding-right: 36px;
}

.step p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* FAQ */
.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  transition: border-color 0.18s;
  backdrop-filter: blur(12px);
}

.faq details[open] {
  border-color: rgba(124,58,237,0.3);
}

.faq summary {
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '+';
  font-size: 20px;
  color: var(--text-muted);
  transition: transform 0.18s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
  color: var(--text-primary);
}

.faq .faq-body {
  padding: 0 20px 18px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── FORMULARIOS ── */
.form-card {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  margin-top: 8px;
}

.form-card h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 6px;
  text-align: center;
}

.form-card .form-intro {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  text-align: center;
  margin-bottom: 24px;
}

.form-field {
  margin-bottom: 16px;
}

.form-field.row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px;
}

.form-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 7px;
}

.form-label .req { color: #f87171; }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 13px 16px;
  background: rgba(8,8,16,0.5);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.18s ease;
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: rgba(124,58,237,0.5);
  background: rgba(8,8,16,0.7);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
  font-family: inherit;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-select option { background: #0a0a12; color: var(--text-primary); }

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  cursor: pointer;
  margin-bottom: 20px;
}

.form-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--purple);
  flex-shrink: 0;
  margin-top: 1px;
  cursor: pointer;
}

.form-checkbox a {
  color: #a78bfa;
  text-decoration: underline;
}

.form-submit {
  width: 100%;
  padding: 15px 20px;
  background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  letter-spacing: 0.02em;
  font-family: inherit;
  box-shadow: 0 4px 20px rgba(124,58,237,0.3);
}

.form-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124,58,237,0.4);
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-success {
  text-align: center;
  padding: 32px 20px;
  background: rgba(74,222,128,0.08);
  border: 1px solid rgba(74,222,128,0.3);
  border-radius: 14px;
}

.form-success .check {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  background: rgba(74,222,128,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--green);
}

.form-success h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.form-success p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* CTA block */
.cta-block {
  text-align: center;
  padding: 40px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  backdrop-filter: blur(16px);
}

.cta-block h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.cta-block p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.18s ease;
  box-shadow: 0 4px 20px rgba(124,58,237,0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124,58,237,0.4);
}

.cta-note {
  display: block;
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Bio card (consultoría) */
.bio-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  align-items: center;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  backdrop-filter: blur(12px);
}

.bio-card .bio-photo {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  object-fit: cover;
  object-position: top;
}

.bio-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.bio-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.bio-card .tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: #c4b5fd;
  margin-bottom: 10px;
}

@media (max-width: 520px) {
  .bio-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .bio-card .bio-photo {
    margin: 0 auto;
  }
  .form-card { padding: 24px 20px; }
  .form-field.row { grid-template-columns: 1fr; }
}
