/* Proyectos públicos */

.proj-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; }
.proj-featured {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 0;
    background: var(--bg-secondary, #f8fafc);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid var(--border, #e2e8f0);
}
.proj-featured img, .proj-featured-img, .proj-card-img, .proj-hero-img {
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: cover;
    display: block;
}
.proj-featured > div { padding: 1.5rem; }
.proj-kicker { text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; color: var(--primary, #3b82f6); font-weight: 700; }
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.proj-card { border: 1px solid var(--border, #e2e8f0); border-radius: 12px; overflow: hidden; background: #fff; }
.proj-card a { display: block; padding: 0 0 1rem; color: inherit; text-decoration: none; }
.proj-card h3, .proj-card p, .proj-card span { padding: 0 1rem; }
.proj-card h3 { margin: .75rem 0 .35rem; font-size: 1.05rem; }
.proj-section-title { margin: 2rem 0 1rem; }
.proj-detail { padding: 1.5rem 0 4rem; }
.proj-detail-hero { max-width: 780px; }
.proj-lead { font-size: 1.15rem; color: #334155; }
.proj-meta-line { color: #64748b; }
.proj-body { max-width: 780px; }
.proj-heading { margin: 2rem 0 .75rem; }
.proj-richtext { line-height: 1.7; overflow-x: auto; }
.proj-richtext table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.proj-richtext th, .proj-richtext td { border: 1px solid #e2e8f0; padding: .5rem .6rem; text-align: left; }
.proj-figure { margin: 1.25rem 0; }
.proj-img { width: 100%; height: auto; border-radius: 12px; }
.proj-video { position: relative; padding-bottom: 56.25%; height: 0; margin: 1.25rem 0; }
.proj-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 12px; }
.proj-code-wrap { margin: 1.25rem 0; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; }
.proj-code-bar { display: flex; justify-content: space-between; align-items: center; padding: .5rem .75rem; background: #0f172a; color: #e2e8f0; font-size: .85rem; }
.proj-copy-btn { background: #1e293b; color: #fff; border: 0; border-radius: 6px; padding: .35rem .7rem; cursor: pointer; }
.proj-pre { margin: 0; overflow-x: auto; max-width: 100%; }
.proj-pre code { font-size: .9rem; }
.proj-materials ul { margin: 0; padding-left: 1.2rem; }
.proj-cta-block { background: #eff6ff; border-radius: 16px; padding: 1.5rem; margin: 2rem 0; }
.proj-products { margin-top: 3rem; }
.proj-kit-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: 1rem; }
.proj-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.proj-product-card { border: 1px solid #e2e8f0; border-radius: 12px; padding: 1rem; background: #fff; }
.proj-product-card img { width: 100%; height: 120px; object-fit: contain; }
.proj-share { display: flex; flex-wrap: wrap; gap: 8px; margin: 1rem 0 2rem; }
.proj-share a, .proj-share button { border: 1px solid #cbd5e1; background: #fff; border-radius: 999px; padding: .4rem .8rem; text-decoration: none; color: #0f172a; cursor: pointer; font: inherit; }
.proj-preview-banner { background: #fef3c7; color: #92400e; text-align: center; padding: .6rem; font-weight: 600; }
.proj-related { margin: 2.5rem 0; }
.landing-faq { margin: 2rem 0; }
.landing-faq details { border-bottom: 1px solid #e2e8f0; padding: .75rem 0; }
.proj-faq-item { border-bottom: 1px solid #e2e8f0; padding: .6rem 0; }
.proj-faq-item summary { cursor: pointer; font-weight: 600; }
.proj-ai-disclaimer { background: #fef3c7; color: #92400e; padding: .6rem .8rem; border-radius: 8px; }
.proj-comments-intro, .proj-comments-empty, .proj-comment-hint { color: #475569; }
.proj-comment-list { display: grid; gap: 1rem; margin: 1.25rem 0 2rem; }
.proj-comment { border: 1px solid #e2e8f0; border-radius: 12px; padding: 1rem 1.25rem; background: #fff; }
.proj-comment-meta { color: #64748b; font-size: .85rem; margin: 0 0 .5rem; }
.proj-comment-reply { margin-top: .75rem; padding: .75rem 1rem; background: #eff6ff; border-radius: 8px; }
.proj-comment-form { position: relative; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 16px; padding: 1.25rem; }
.proj-comment-form label { display: block; margin: .7rem 0 .3rem; font-weight: 600; color: #0f172a; }
.proj-comment-form input, .proj-comment-form textarea, .proj-comment-form select {
    width: 100%; margin-top: .3rem; padding: .65rem .75rem; border: 1px solid #cbd5e1; border-radius: 10px;
    font: inherit; background: #fff; box-sizing: border-box;
}
.proj-comment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .75rem; }
.proj-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.proj-comment-status { margin-top: .85rem; font-weight: 600; }
.proj-comment-status.ok { color: #15803d; }
.proj-comments-status.err { color: #b91c1c; }

/* Listado público /proyectos */
.proyectos-index .proj-hero-note {
    max-width: 640px;
    margin: 0.85rem auto 0;
    opacity: 0.92;
    font-size: 1.02rem;
    line-height: 1.5;
}
.proyectos-index .proj-hero-store {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.45);
}
.proyectos-index .proj-hero-store:hover { background: rgba(255, 255, 255, 0.24); }
.proyectos-index .shop-section { padding-top: 2.25rem; }
.proyectos-index .proj-layout { align-items: start; }
.proj-list-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin: 0 0 1rem;
}
.proj-list-head .proj-section-title { margin: 0; }
.proj-list-count { margin: 0; color: #64748b; font-size: 0.92rem; }
.proj-empty { color: #475569; background: #fff; border: 1px dashed #cbd5e1; border-radius: 12px; padding: 1.25rem; }

.proj-filters-kicker {
    margin: 0 0 0.75rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #2563eb;
}
.proj-filter-hint {
    margin: -0.35rem 0 0.85rem;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #64748b;
}

.proyectos-index .proj-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.15rem;
}
.proj-tile {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 148px 1fr;
    min-height: 0;
}
.proj-tile-media {
    display: block;
    position: relative;
    background: #eef2ff;
    height: 148px;
    overflow: hidden;
    align-self: stretch;
}
.proj-tile-media picture,
.proj-tile-media img,
.proj-tile-img {
    width: 100%;
    height: 148px;
    object-fit: cover;
    object-position: center top;
    max-height: 148px;
    display: block;
}
.proj-cover-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 118px;
    color: #64748b;
    background: linear-gradient(180deg, #eef2ff 0%, #e2e8f0 100%);
}
.proj-tile-badges {
    position: absolute;
    left: 10px;
    top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.proj-tile-badges span {
    background: rgba(15, 23, 42, 0.82);
    color: #fff;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: .02em;
}
.proj-tile-body {
    padding: 1rem 1.1rem 1.15rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.proj-tile-title {
    margin: 0;
    font-size: 1.12rem;
    line-height: 1.3;
}
.proj-tile-title a { color: #0f172a; text-decoration: none; }
.proj-tile-title a:hover { color: #2563eb; }
.proj-tile-desc {
    margin: 0.45rem 0 0;
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.45;
}
.proj-tile-meta {
    margin: 0.45rem 0 0;
    color: #64748b;
    font-size: 0.85rem;
}
.proj-tile-kit {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    margin: 0.85rem 0 0;
}
.proj-tile-kit-label {
    margin: 0 0 0.4rem;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #2563eb;
}
.proj-tile-kit ul { list-style: none; margin: 0; padding: 0; }
.proj-tile-kit li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.84rem;
    padding: 0.28rem 0;
    border-bottom: 1px solid #eef2f7;
}
.proj-tile-kit li:last-child { border-bottom: 0; }
.proj-tile-kit a { color: #0f172a; text-decoration: none; }
.proj-tile-kit a:hover { color: #2563eb; }
.proj-tile-kit li span { color: #334155; font-weight: 700; white-space: nowrap; }
.proj-tile-more, .proj-tile-total { margin: 0.45rem 0 0; font-size: 0.82rem; color: #475569; }
.proj-tile-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.proj-tile-chips span {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    font-size: 0.78rem;
    color: #334155;
}
.proj-tile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 1rem;
    align-items: center;
}
.proj-tile-actions .btn-hero-primary {
    padding: 0.55rem 1rem;
    font-size: 0.88rem;
    text-decoration: none;
}
.proj-tile-ghost {
    color: #1d4ed8;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
}
.proj-tile-ghost:hover { text-decoration: underline; }

.proyectos-index .proj-featured {
    background: #fff;
    box-shadow: none;
    margin-bottom: 1.5rem;
    align-items: stretch;
    grid-template-columns: 168px 1fr;
}
.proj-featured-media {
    display: block;
    background: #eef2ff;
    height: 160px;
    overflow: hidden;
}
.proj-featured-media img,
.proj-featured-media picture,
.proj-featured-media .proj-cover-ph,
.proyectos-index .proj-featured img,
.proyectos-index .proj-featured-img {
    width: 100%;
    height: 160px;
    max-height: 160px;
    object-fit: cover;
    object-position: center top;
    display: block;
}
.proj-featured-kit { margin-top: 0.85rem; }
.proyectos-index .proj-featured > div { padding: 1rem 1.15rem 1.15rem; }
.proyectos-index .proj-featured h2 { margin: 0.2rem 0 0.4rem; font-size: 1.25rem; }

@media (max-width: 900px) {
    .proj-tile-actions { width: 100%; }
    .proj-layout, .proj-featured { grid-template-columns: 1fr; }
    .proyectos-index .proj-featured { grid-template-columns: 1fr; }
    .proj-tile { grid-template-columns: 1fr; }
    .proj-tile-media,
    .proj-tile-media img,
    .proj-tile-img,
    .proj-featured-media,
    .proj-featured-media img,
    .proj-featured-media .proj-cover-ph,
    .proyectos-index .proj-featured img {
        height: 112px;
        max-height: 112px;
        min-height: 0;
    }
    .shop-sidebar { position: static; }
    .proj-comment-grid { grid-template-columns: 1fr; }
}
