/* Claude Skills LP — Chat Jurídico */

:root {
  --cs-bg: #0a0a0f;
  --cs-surface: rgba(255, 255, 255, 0.04);
  --cs-border: rgba(255, 255, 255, 0.08);
  --cs-text: #e4e4e7;
  --cs-muted: #a1a1aa;
  --cs-claude: #d97757;
  --cs-claude-dim: rgba(217, 119, 87, 0.2);
  --cs-blue: #2563eb;
  --cs-radius: 16px;
}

.cs-page {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cs-bg);
  color: var(--cs-text);
  min-height: 100vh;
  overflow-x: hidden;
}

.cs-hero {
  position: relative;
  padding: 72px 20px 48px;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(217, 119, 87, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 80% 100%, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
    var(--cs-bg);
}

.cs-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.cs-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.cs-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cs-claude);
  background: var(--cs-claude-dim);
  border: 1px solid rgba(217, 119, 87, 0.35);
  margin-bottom: 20px;
}

.cs-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cs-claude);
  box-shadow: 0 0 10px var(--cs-claude);
}

.cs-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}

.cs-hero h1 span {
  color: var(--cs-claude);
}

.cs-hero .cs-lead {
  font-size: 1.05rem;
  color: var(--cs-muted);
  line-height: 1.55;
  margin: 0 auto 32px;
  max-width: 480px;
}

.cs-install-card {
  text-align: left;
  max-width: 560px;
  margin: 0 auto 24px;
  padding: 20px 22px;
  border-radius: var(--cs-radius);
  background: var(--cs-surface);
  border: 1px solid var(--cs-border);
}

.cs-install-card h2 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cs-muted);
  margin: 0 0 10px;
}

.cs-install-line {
  font-size: 0.95rem;
  color: var(--cs-muted);
  line-height: 1.55;
  margin: 0 0 0.75rem;
}

.cs-prompt-wrap {
  margin-top: 0.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--cs-border);
}

.cs-prompt-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cs-muted);
  margin: 0 0 0.4rem;
}

.cs-prompt {
  font-family: ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, monospace;
  font-size: 0.8rem;
  line-height: 1.5;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--cs-border);
  color: #e4e4e7;
  margin: 0;
}

.cs-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.cs-cta-row-hero {
  margin-bottom: 28px;
}

#etapas-skills,
#prompt-instalar-claude {
  scroll-margin-top: 88px;
}

.cs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}

.cs-btn:hover {
  transform: translateY(-1px);
}

.cs-btn-primary {
  background: linear-gradient(135deg, var(--cs-claude), #c2410c);
  color: #fff;
}

.cs-btn-ghost {
  background: transparent;
  color: var(--cs-muted);
  border-color: var(--cs-border);
}

.cs-btn-ghost:hover {
  color: var(--cs-text);
  border-color: rgba(255, 255, 255, 0.2);
}

.cs-section {
  padding: 32px 20px 80px;
  max-width: 960px;
  margin: 0 auto;
}

/* Available / featured skill section */
.cs-available-section {
  padding-top: 0;
  padding-bottom: 48px;
}

.cs-featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 560px;
  margin: 0 auto;
}

.cs-featured-card {
  padding: 24px;
  border-radius: var(--cs-radius);
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.25);
  position: relative;
  overflow: hidden;
}

.cs-featured-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #22c55e, var(--cs-claude));
}

.cs-featured-stage {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
  margin-bottom: 12px;
}

.cs-featured-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.cs-featured-card > p {
  color: var(--cs-muted);
  font-size: 0.93rem;
  line-height: 1.5;
  margin: 0 0 12px;
}

.cs-featured-date {
  font-size: 0.85rem !important;
}

.cs-featured-date time {
  font-weight: 700;
  color: #86efac;
}

.cs-featured-actions {
  margin-top: 4px;
}

.cs-btn-dl-featured {
  gap: 8px;
}

.cs-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 8px;
  text-align: center;
}

.cs-section-sub {
  text-align: center;
  color: var(--cs-muted);
  font-size: 0.95rem;
  margin: 0 0 32px;
}

.cs-stage {
  margin-bottom: 40px;
}

.cs-stage-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--cs-border);
}

.cs-stage-order {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--cs-border);
  color: var(--cs-muted);
}

.cs-stage-meta {
  flex: 1;
  min-width: 200px;
}

.cs-stage-meta h3 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 700;
}

.cs-stage-meta p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--cs-muted);
  line-height: 1.45;
}

.cs-pill {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(234, 179, 8, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(234, 179, 8, 0.35);
}

.cs-pill-partial {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.4);
}

.cs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.cs-card {
  position: relative;
  padding: 30px 18px 16px;
  border-radius: 14px;
  background: var(--cs-surface);
  border: 1px solid var(--cs-border);
  overflow: hidden;
}

.cs-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cs-claude), var(--cs-blue));
  opacity: 0.35;
}

.cs-card:not(.cs-card-available) .cs-card-desc {
  opacity: 0.65;
}

.cs-card-available {
  border-color: rgba(34, 197, 94, 0.25);
  background: rgba(34, 197, 94, 0.04);
}

.cs-card-available::after {
  opacity: 0.85;
  background: linear-gradient(90deg, #22c55e, var(--cs-claude));
}

.cs-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.cs-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.35;
}

.cs-lock-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(234, 179, 8, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.cs-unlock {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4ade80;
}

.cs-card-desc {
  font-size: 0.88rem;
  color: var(--cs-muted);
  line-height: 1.5;
  margin: 0 0 10px;
}

.cs-release-date {
  font-size: 0.8rem;
  margin: 0 0 12px;
  line-height: 1.4;
}

.cs-release-label {
  color: var(--cs-muted);
  margin-right: 0.35rem;
}

.cs-release-date time {
  font-weight: 700;
  color: var(--cs-text);
}

.cs-card-available .cs-release-date time {
  color: #86efac;
}

.cs-card-logo {
  position: absolute;
  top: 10px;
  left: 12px;
  color: var(--cs-claude);
  opacity: 0.45;
  line-height: 0;
}

.cs-card-available .cs-card-logo {
  opacity: 0.65;
}

.cs-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.cs-btn-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--cs-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--cs-muted);
  cursor: not-allowed;
  opacity: 0.85;
}

a.cs-btn-dl-live {
  cursor: pointer;
  opacity: 1;
  color: #ecfdf5;
  background: linear-gradient(135deg, #15803d, #22c55e);
  border-color: rgba(34, 197, 94, 0.5);
  text-decoration: none;
  transition: filter 0.15s ease, transform 0.15s ease;
}

a.cs-btn-dl-live:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.cs-btn-dl-locked {
  gap: 5px;
  font-size: 0.78rem;
  opacity: 0.5;
  border-style: dashed;
}

.cs-note {
  font-size: 0.75rem;
  color: var(--cs-muted);
}

.cs-note-ok {
  color: #86efac;
}

.cs-cta-next {
  padding: 8px 20px 88px;
  max-width: 720px;
  margin: 0 auto;
}

.cs-cta-next-inner {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--cs-radius);
  background:
    radial-gradient(ellipse 80% 80% at 50% 0%, rgba(217, 119, 87, 0.12) 0%, transparent 55%),
    rgba(255, 255, 255, 0.03);
  border: 1px solid var(--cs-border);
}

.cs-cta-next h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.cs-cta-next p {
  color: var(--cs-muted);
  font-size: 0.98rem;
  line-height: 1.55;
  margin: 0 0 1.35rem;
}

/* Info button + install popover */
.cs-info-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cs-muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--cs-border);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.cs-info-btn:hover {
  color: var(--cs-text);
  border-color: rgba(255, 255, 255, 0.2);
}

.cs-info-btn-sm {
  padding: 6px;
  border-radius: 8px;
}

.cs-featured-actions,
.cs-card-actions {
  position: relative;
}

.cs-install-popover {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 0;
  right: 0;
  z-index: 50;
  padding: 16px;
  border-radius: 12px;
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  animation: cs-popover-in 0.15s ease;
}

@keyframes cs-popover-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.cs-popover-arrow {
  position: absolute;
  bottom: -6px;
  left: 24px;
  width: 12px;
  height: 12px;
  background: #18181b;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transform: rotate(45deg);
}

.cs-popover-steps {
  margin: 0 0 12px;
  padding: 0 0 0 20px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--cs-muted);
}

.cs-popover-steps li {
  margin-bottom: 4px;
}

.cs-popover-steps li:last-child {
  margin-bottom: 0;
}

.cs-popover-steps strong {
  color: var(--cs-text);
}

.cs-popover-prompt-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--cs-border);
}

.cs-popover-prompt {
  flex: 1;
  font-family: ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, monospace;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #e4e4e7;
  word-break: break-word;
}

.cs-popover-copy {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--cs-border);
  color: var(--cs-muted);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.cs-popover-copy:hover {
  color: var(--cs-text);
  background: rgba(255, 255, 255, 0.1);
}

.cs-popover-copy.cs-copied {
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.1);
}

@media (max-width: 520px) {
  .cs-stage-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .cs-pill {
    align-self: flex-start;
  }
}
