:root {
    --bg: #090414;
    --bg-soft: #120924;
    --surface: #1a1030;
    --text: #f2ebff;
    --muted: #b9a8d8;
    --primary: #b06bff;
    --primary-strong: #7c3aed;
    --card-border: rgba(255, 255, 255, 0.08);
    --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    background: radial-gradient(circle at top right, #341062, var(--bg) 45%);
    color: var(--text);
    overflow-x: hidden;
}

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

.section {
    padding: 88px 0;
}

.hero {
    position: relative;
    overflow: hidden;
    background-image:
        linear-gradient(100deg, rgba(12, 6, 30, 0.92) 20%, rgba(18, 8, 42, 0.78) 52%, rgba(32, 10, 62, 0.58) 100%),
        url("../images/hero-impressora-3d.777774e2b9db.png");
    background-size: cover;
    background-position: center right;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 38%, rgba(176, 107, 255, 0.23), transparent 45%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.section-alt {
    background: rgba(255, 255, 255, 0.02);
}

h1, h2, h3, h4 {
    line-height: 1.2;
    margin: 0 0 16px;
}

p {
    color: var(--muted);
    margin: 0 0 14px;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(11, 16, 32, 0.75);
    border-bottom: 1px solid var(--card-border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 18px;
}

.brand {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.brand img {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 20px rgba(176, 107, 255, 0.42);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.brand:hover img {
    transform: scale(1.06) rotate(-2deg);
    box-shadow: 0 0 26px rgba(176, 107, 255, 0.62);
}

nav {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

nav a {
    position: relative;
    text-decoration: none;
    color: var(--muted);
    font-weight: 500;
    transition: color 0.25s ease, transform 0.25s ease;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-strong));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

nav a:hover {
    color: var(--primary);
    transform: translateY(-1px);
}

nav a:hover::after {
    transform: scaleX(1);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 11px 20px;
    text-decoration: none;
    font-weight: 600;
    transition: all .25s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(100deg, var(--primary), var(--primary-strong));
    color: #ffffff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(124, 58, 237, 0.45);
}

.btn-secondary {
    border-color: var(--card-border);
    color: var(--text);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-small {
    padding: 8px 14px;
    background: var(--surface);
    color: var(--text);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 40px;
    min-height: 520px;
    max-width: 720px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .78rem;
    color: var(--primary);
    margin-bottom: 12px;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    margin-bottom: 18px;
}

.hero-text {
    max-width: 60ch;
}

.hero-actions {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.section-text {
    max-width: 80ch;
}

.product-grid,
.category-grid,
.feature-grid,
.steps-grid,
.testimonial-grid {
    margin-top: 28px;
    display: grid;
    gap: 20px;
}

.product-grid {
    grid-template-columns: repeat(auto-fill, minmax(290px, 290px));
    justify-content: center;
}

.card {
    position: relative;
    width: 290px;
    min-height: 430px;
    background: var(--surface);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    overflow: hidden;
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -130%;
    width: 75%;
    height: 100%;
    background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.16), transparent);
    transform: skewX(-18deg);
    transition: left 0.5s ease;
    pointer-events: none;
}

.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-image-btn {
    padding: 0;
    border: 0;
    background: transparent;
    width: 100%;
    display: block;
    cursor: zoom-in;
}

.card:hover {
    transform: translateY(-7px) scale(1.01);
    box-shadow: 0 18px 44px rgba(72, 16, 145, 0.38);
    border-color: rgba(176, 107, 255, 0.5);
}

.card:hover::before {
    left: 140%;
}

.card img {
    width: 100%;
    height: 275px;
    object-fit: cover;
    transition: transform .35s ease, filter .35s ease;
}

.card:hover img {
    transform: scale(1.05);
    filter: saturate(1.1);
}

.card-body {
    padding: 18px;
    overflow-wrap: anywhere;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-body h3 {
    margin-bottom: 0;
}

.card-body p {
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.card-footer-end {
    justify-content: flex-end;
}

.card-cta {
    text-decoration: none;
    background: rgba(176, 107, 255, 0.16);
    border: 1px solid rgba(176, 107, 255, 0.48);
    color: var(--text);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.92rem;
    font-weight: 600;
    transition: transform 0.25s ease, background 0.25s ease;
}

.card:hover .card-cta {
    transform: translateX(-3px);
    background: rgba(176, 107, 255, 0.26);
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 220;
}

.lightbox.show {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: min(92vw, 920px);
    max-height: 85vh;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(20, 12, 34, 0.72);
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
}

.category-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.category-card,
.feature-card,
.step-card,
.testimonial-card {
    background: var(--surface);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 20px;
}

.category-card {
    text-align: center;
}

.category-card i {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.feature-card i {
    color: var(--primary);
    margin-bottom: 10px;
}

.gallery-grid {
    margin-top: 28px;
    column-count: 3;
    column-gap: 16px;
}

.gallery-item {
    margin: 0 0 16px;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid var(--card-border);
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: transform .35s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.step-number {
    color: var(--primary);
    font-weight: 800;
}

.testimonial-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.testimonial-card cite {
    color: #c7d2fe;
    font-style: normal;
}

.testimonial-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.testimonial-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    padding: 2px;
    background: linear-gradient(135deg, #f9ce34, #ee2a7b, #6228d7);
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.testimonial-head strong {
    color: var(--text);
    line-height: 1;
    font-size: 0.95rem;
}

.testimonial-head span {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1;
}

.cta-box {
    background: linear-gradient(120deg, rgba(176, 107, 255, 0.14), rgba(124, 58, 237, 0.1));
    border: 1px solid rgba(176, 107, 255, 0.28);
    border-radius: 22px;
    padding: 38px;
    text-align: center;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 18px;
}

.cta-actions .btn {
    max-width: 100%;
}

.footer {
    border-top: 1px solid var(--card-border);
    padding: 56px 0 22px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr .8fr .8fr;
    gap: 20px;
}

.footer a {
    color: var(--muted);
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--card-border);
    display: grid;
    place-items: center;
}

.floating-whatsapp,
.back-to-top {
    position: fixed;
    right: 18px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 90;
}

.floating-whatsapp {
    bottom: 18px;
    background: #25d366;
    color: #fff;
    text-decoration: none;
    font-size: 1.3rem;
}

.back-to-top {
    bottom: 82px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--card-border);
    opacity: 0;
    pointer-events: none;
    transition: all .25s ease;
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all .5s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.copyright {
    text-align: center;
    color: var(--muted);
    margin-top: 28px;
}

@media (max-width: 980px) {
    .hero-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    nav {
        display: none;
    }
}

@media (max-width: 720px) {
    .section {
        padding: 64px 0;
    }

    .nav-cta {
        display: none;
    }

    .container {
        width: min(1120px, 94%);
    }

    .hero-grid {
        min-height: 450px;
        gap: 28px;
    }

    .card img {
        height: 250px;
    }

    .floating-whatsapp,
    .back-to-top {
        width: 46px;
        height: 46px;
        right: 12px;
    }

    .floating-whatsapp {
        bottom: 14px;
    }

    .back-to-top {
        bottom: 66px;
    }

    .footer {
        padding-top: 42px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 56px 0;
    }

    .brand img {
        width: 48px;
        height: 48px;
    }

    .hero-grid {
        min-height: 380px;
    }

    h1 {
        font-size: clamp(1.7rem, 8vw, 2.2rem);
    }

    h2 {
        font-size: 1.35rem;
    }

    .hero-actions,
    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn,
    .cta-actions .btn {
        width: 100%;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 250px));
        justify-content: center;
    }

    .card {
        width: 250px;
        min-height: 390px;
    }

    .card img {
        height: 220px;
    }

    .card-footer-end {
        justify-content: flex-start;
    }

    .testimonial-grid,
    .steps-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }
}
