/* ============================================================
   Webcol Group — HarnessOS Product Pages
   Home "#productos" section + shared components for the
   dedicated Community / Enterprise landing pages.
   ============================================================ */

/* ── Home: Productos section ────────────────────────────── */
.wc-products {
    padding: var(--space-section) 0;
    background: var(--color-bg-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.wc-products__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .wc-products__grid { grid-template-columns: repeat(2, 1fr); }
}

.wc-product-card {
    display: flex;
    flex-direction: column;
    background: var(--color-bg-base);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: clamp(1.75rem, 3vw, 2.5rem);
    transition:
        border-color var(--duration-base) var(--ease-out),
        transform var(--duration-base) var(--ease-out),
        box-shadow var(--duration-base) var(--ease-out);
}

.wc-product-card:hover {
    border-color: var(--color-border-accent);
    transform: translateY(-4px);
    box-shadow: var(--glow-accent), var(--shadow-card);
}

.wc-product-card--enterprise:hover {
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.20), var(--shadow-card);
}

.wc-product-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.wc-product-card__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--color-accent-subtle);
    border: 1px solid var(--color-border-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.wc-product-card--enterprise .wc-product-card__icon {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.35);
}

.wc-product-card__icon img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.wc-product-card__icon svg {
    width: 26px;
    height: 26px;
    color: var(--color-accent);
}

.wc-product-card--enterprise .wc-product-card__icon svg { color: #818cf8; }

.wc-product-card__title {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--color-text-primary);
    margin-bottom: 0.6rem;
}

.wc-product-card__desc {
    font-size: var(--text-small);
    color: var(--color-text-secondary);
    line-height: 1.65;
}

.wc-product-card__list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin: 1.5rem 0;
}

.wc-product-card__list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: var(--text-small);
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.wc-product-card__list li svg {
    width: 16px;
    height: 16px;
    color: var(--color-accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.wc-product-card--enterprise .wc-product-card__list li svg { color: #818cf8; }

.wc-product-card__actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 0.5rem;
}

.wc-product-card__link {
    font-size: var(--text-small);
    font-weight: 600;
    color: var(--color-text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color var(--duration-fast), gap var(--duration-fast);
}

.wc-product-card__link:hover {
    color: var(--color-text-primary);
    gap: 8px;
}

/* ── Hero product teaser (link under home hero CTAs) ────── */
.wc-hero__product-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 1.5rem;
    font-size: var(--text-small);
    color: var(--color-text-secondary);
    border-bottom: 1px dashed var(--color-border-accent);
    padding-bottom: 2px;
    transition: color var(--duration-fast);
}

.wc-hero__product-link:hover { color: var(--color-accent); }

/* ── Status badges (reused on module cards, hero, etc.) ──── */
.wc-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    white-space: nowrap;
}

.wc-badge__dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }

.wc-badge--oss,
.wc-badge--live {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: var(--color-success);
}
.wc-badge--oss .wc-badge__dot,
.wc-badge--live .wc-badge__dot { background: var(--color-success); }

.wc-badge--progress {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}
.wc-badge--progress .wc-badge__dot {
    background: #f59e0b;
    animation: wc-pulse-dot 2s ease-in-out infinite;
}

.wc-badge--planned {
    background: var(--color-bg-elevated);
    border-color: var(--color-border);
    color: var(--color-text-muted);
}
.wc-badge--planned .wc-badge__dot { background: var(--color-text-muted); }

/* ── Product hero (dedicated landing pages) ─────────────── */
.wc-product-hero {
    position: relative;
    padding: calc(72px + clamp(3rem, 8vw, 5rem)) 0 clamp(3rem, 7vw, 4.5rem);
    overflow: hidden;
}

.wc-product-hero--community {
    background:
        linear-gradient(180deg, rgba(9, 9, 11, 0.55) 0%, var(--color-bg-base) 92%),
        url('/frontend/img/harnessos/wallpaper.jpg') center 30% / cover no-repeat;
}

.wc-product-hero--enterprise {
    background:
        linear-gradient(180deg, rgba(9, 9, 11, 0.6) 0%, var(--color-bg-base) 92%),
        url('/frontend/img/harnessos/enterprise-wallpaper.jpg') center 20% / cover no-repeat;
}

.wc-product-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.wc-product-hero__title {
    font-size: var(--text-display);
    font-weight: 800;
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    color: var(--color-text-primary);
    margin: 1.25rem 0 1rem;
}

.wc-product-hero__lede {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--color-text-secondary);
    line-height: var(--leading-snug);
    margin-bottom: 1rem;
    max-width: 640px;
}

.wc-product-hero__subtitle {
    font-size: var(--text-body);
    color: var(--color-text-secondary);
    line-height: var(--leading-snug);
    margin-bottom: 2rem;
    max-width: 640px;
}

.wc-product-hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}

.wc-product-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ── Feature stat pill row (requirements, quick facts) ──── */
.wc-fact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ── Comparison table ───────────────────────────────────── */
.wc-compare-wrap {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    background: var(--color-bg-surface);
}

.wc-compare {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: var(--text-small);
}

.wc-compare th,
.wc-compare td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.wc-compare thead th {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--color-text-muted);
    font-weight: 700;
    white-space: nowrap;
}

.wc-compare th[data-highlight],
.wc-compare td[data-highlight] {
    color: var(--color-accent);
    font-weight: 600;
    background: var(--color-accent-subtle);
}

.wc-compare tbody th {
    color: var(--color-text-primary);
    font-weight: 500;
    white-space: nowrap;
}

.wc-compare td { color: var(--color-text-secondary); }

.wc-compare tr:last-child th,
.wc-compare tr:last-child td { border-bottom: none; }

.wc-compare .wc-icon-yes { color: var(--color-success); }
.wc-compare .wc-icon-no  { color: var(--color-text-muted); }

.wc-compare .wc-icon-yes svg,
.wc-compare .wc-icon-no svg { width: 16px; height: 16px; }

/* ── Quickstart steps ────────────────────────────────────── */
.wc-steps {
    display: flex;
    flex-direction: column;
}

.wc-step {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.wc-step:last-child { border-bottom: none; padding-bottom: 0; }
.wc-step:first-child { padding-top: 0; }

.wc-step__num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-accent-subtle);
    border: 1px solid var(--color-border-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--text-small);
    color: var(--color-accent);
}

.wc-step__body { flex: 1; min-width: 0; }

.wc-step__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.4rem;
}

.wc-step__desc {
    font-size: var(--text-small);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.wc-step__code {
    display: block;
    margin-top: 0.6rem;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.7rem 0.9rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--color-text-primary);
    overflow-x: auto;
    white-space: pre;
}

/* ── Roadmap timeline ────────────────────────────────────── */
.wc-timeline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .wc-timeline { grid-template-columns: repeat(4, 1fr); }
}

.wc-timeline__node {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    background: var(--color-bg-surface);
}

.wc-timeline__node--current {
    border-color: var(--color-border-accent);
    box-shadow: var(--glow-accent);
}

.wc-timeline__quarter {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--color-accent);
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.wc-timeline__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); flex-shrink: 0; }
.wc-timeline__node--current .wc-timeline__dot { animation: wc-pulse-dot 2s ease-in-out infinite; }

.wc-timeline__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.4rem;
}

.wc-timeline__desc {
    font-size: var(--text-small);
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* ── Module card badge row (sits atop .wc-service-card) ─── */
.wc-module-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

/* ── Cross-link CTA band ─────────────────────────────────── */
.wc-cta-band {
    margin-top: clamp(3rem, 6vw, 5rem);
    padding: clamp(1.75rem, 4vw, 2.5rem);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    background: var(--color-bg-surface);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: flex-start;
}

@media (min-width: 768px) {
    .wc-cta-band {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.wc-cta-band__text { flex: 1; }

.wc-cta-band__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.35rem;
}

.wc-cta-band__desc {
    font-size: var(--text-small);
    color: var(--color-text-secondary);
    max-width: 480px;
}

.wc-cta-band__actions { flex-shrink: 0; }

/* ── Legal / disclaimer note ─────────────────────────────── */
.wc-legal-note {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-top: 1.5rem;
    max-width: 640px;
}

/* ── Generic product page section spacing ───────────────── */
.wc-product-section { padding: var(--space-section) 0; }
.wc-product-section--surface {
    background: var(--color-bg-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
.wc-product-section .wc-section-header:not(:only-child) { margin-bottom: clamp(2rem, 5vw, 3rem); }

/* ── Enterprise page theme override ──────────────────────── */
/* Re-tints every existing component (buttons, cards, focus rings, hero
   badges…) from cyan to indigo by overriding the shared design tokens —
   no component classes need an enterprise-specific variant. */
body.wc-theme-enterprise {
    --color-accent:         #6366f1;
    --color-accent-hover:   #818cf8;
    --color-accent-glow:    rgba(99, 102, 241, 0.20);
    --color-accent-subtle:  rgba(99, 102, 241, 0.08);
    --color-border-accent:  rgba(99, 102, 241, 0.35);
}
