/**
 * Galería especializada de demos (web / tienda / software)
 * Alineada al hub demos-y-precios.
 */

.demos-gallery-page .demos-gallery-hero .demos-hub-hero__lead {
    max-width: 720px;
}

.demos-gallery-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.85rem 1.5rem;
    margin-top: 1.35rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.62);
}

.demos-gallery-hero__meta strong {
    color: var(--gallery-accent, var(--neon-blue));
    font-weight: 700;
}

.demos-gallery-hero__service {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
}

.demos-gallery-hero__service:hover {
    color: var(--gallery-accent, var(--neon-blue));
}

.demos-gallery-band {
    position: relative;
    z-index: 2;
    padding: 0.5rem 0 3rem;
}

.demos-gallery-band__inner {
    max-width: var(--hub-max-wide, 1540px);
    margin: 0 auto;
    padding: 0 var(--hub-pad, 5%);
}

.demos-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.demos-gallery-card {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(14, 14, 22, 0.88);
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    scroll-margin-top: 6.5rem;
}

.demos-gallery-card:hover {
    border-color: color-mix(in srgb, var(--card-accent, #00f3ff) 45%, transparent);
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.38);
}

.demos-gallery-card__media {
    position: relative;
    background: #0c0c14;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.demos-gallery-card__browser {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.85rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.demos-gallery-card__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.demos-gallery-card__dot--r { background: #ff5f57; }
.demos-gallery-card__dot--y { background: #febc2e; }
.demos-gallery-card__dot--g { background: #28c840; }

.demos-gallery-card__url {
    flex: 1;
    min-width: 0;
    margin-left: 0.35rem;
    font-size: 0.72rem;
    font-family: ui-monospace, Consolas, monospace;
    color: rgba(255, 255, 255, 0.45);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.demos-gallery-card__live {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--card-accent, #00f3ff);
}

.demos-gallery-card__media img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top center;
}

.demos-gallery-card__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 220px;
    aspect-ratio: 16 / 10;
    background:
        radial-gradient(ellipse 60% 50% at 50% 40%, color-mix(in srgb, var(--card-accent, #b967ff) 28%, transparent), transparent 70%),
        linear-gradient(145deg, #0a0a12, #14141e);
    color: var(--card-accent, #b967ff);
}

.demos-gallery-card__placeholder i {
    font-size: 2.4rem;
    opacity: 0.9;
}

.demos-gallery-card__placeholder span {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.demos-gallery-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1.25rem 1.25rem 1.4rem;
    flex: 1;
}

.demos-gallery-card__type {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--card-accent, #00f3ff);
    background: color-mix(in srgb, var(--card-accent, #00f3ff) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--card-accent, #00f3ff) 28%, transparent);
}

.demos-gallery-card__title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 1.3;
}

.demos-gallery-card__what,
.demos-gallery-card__about,
.demos-gallery-card__similar {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.68);
}

.demos-gallery-card__what strong,
.demos-gallery-card__about strong {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
}

.demos-gallery-card__similar {
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    border-left: 3px solid var(--card-accent, #00f3ff);
    background: color-mix(in srgb, var(--card-accent, #00f3ff) 8%, transparent);
    color: rgba(255, 255, 255, 0.82);
}

.demos-gallery-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-top: auto;
    padding-top: 0.85rem;
}

.demos-gallery-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.65rem 1rem;
    border-radius: 12px;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.demos-gallery-card__btn--demo {
    color: #0a0a0f;
    background: var(--card-accent, #00f3ff);
    border: 1px solid transparent;
}

.demos-gallery-card__btn--demo:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.demos-gallery-card__btn--wa {
    color: #fff;
    background: rgba(37, 211, 102, 0.15);
    border: 1px solid rgba(37, 211, 102, 0.45);
}

.demos-gallery-card__btn--wa:hover {
    background: rgba(37, 211, 102, 0.28);
}

.demos-gallery-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.demos-gallery-card__link:hover {
    color: var(--card-accent, #00f3ff);
}

.demos-gallery-cta__box {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(14, 14, 22, 0.75);
}

.demos-gallery-cta__box h2 {
    margin: 0 0 0.65rem;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    color: #fff;
}

.demos-gallery-cta__box > p {
    margin: 0 auto 1.35rem;
    max-width: 560px;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.55;
}

.demos-gallery-cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.demos-gallery-cta__actions .demos-gallery-card__btn--demo {
    background: var(--gallery-accent, #00f3ff);
}

@media (max-width: 900px) {
    .demos-gallery-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .demos-gallery-card__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .demos-gallery-card__btn {
        width: 100%;
    }

    .demos-gallery-hero__meta {
        flex-direction: column;
        gap: 0.65rem;
    }
}
