:root {
    --ink: #07111f;
    --navy: #0b1b2e;
    --steel: #263446;
    --line: rgba(255, 255, 255, .12);
    --soft: #f4f7fb;
    --accent: #f47b20;
    --blue: #2ea6ff;
    --ink-rgb: 7, 17, 31;
    --navy-rgb: 11, 27, 46;
    --accent-rgb: 244, 123, 32;
    --blue-rgb: 46, 166, 255;
}

body {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #132033;
    background: #f8fafc;
    letter-spacing: 0;
}

a { text-decoration: none; }

.site-header {
    background: rgba(var(--ink-rgb), .84);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.navbar { min-height: 76px; }
.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 58%, #ffffff));
    color: var(--ink);
    font-weight: 900;
}
.navbar-brand span:last-child, .footer-brand span:last-child { display: grid; line-height: 1.05; }
.navbar-brand small, .footer-brand small { color: #9fb2c9; font-size: .72rem; text-transform: uppercase; letter-spacing: 0; }
.nav-link { color: rgba(255,255,255,.82); font-weight: 600; font-size: .94rem; }
.nav-link:hover { color: #fff; }
.btn-accent {
    --bs-btn-bg: var(--accent);
    --bs-btn-border-color: var(--accent);
    --bs-btn-hover-bg: color-mix(in srgb, var(--accent) 86%, #ffffff);
    --bs-btn-hover-border-color: color-mix(in srgb, var(--accent) 86%, #ffffff);
    --bs-btn-color: var(--ink);
    --bs-btn-hover-color: var(--ink);
    font-weight: 800;
}

.hero {
    min-height: 58vh;
    padding-top: 96px;
    position: relative;
    display: grid;
    align-items: center;
    color: #fff;
    overflow: hidden;
    background: radial-gradient(circle at 25% 20%, rgba(var(--blue-rgb), .25), transparent 28%), linear-gradient(135deg, var(--ink), var(--navy) 58%, color-mix(in srgb, var(--navy) 80%, #ffffff));
}
.hero video, .page-hero::before {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .94;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(var(--ink-rgb), .92), rgba(var(--ink-rgb), .62), rgba(var(--ink-rgb), .86));
}
.hero .container, .page-hero .container { position: relative; z-index: 2; }
.eyebrow {
    color: color-mix(in srgb, var(--accent) 72%, #ffffff);
    text-transform: uppercase;
    font-weight: 900;
    font-size: .78rem;
    letter-spacing: 0;
}
.hero h1, .page-hero h1 {
    font-size: clamp(2.25rem, 6vw, 1.3rem);
    line-height: .96;
    font-weight: 950;
    max-width: 980px;
}
.hero p { color: #c7d4e5; max-width: 720px; font-size: 1.1rem; }
.hero-actions .btn { border-radius: 8px; padding: .9rem 1.25rem; }

.info-strip { margin-top: -54px; position: relative; z-index: 3; }
.info-card, .industrial-card, .filter-panel, .admin-card {
    border: 1px solid rgba(var(--navy-rgb), .08);
    background: rgba(255,255,255,.86);
    box-shadow: 0 18px 48px rgba(var(--navy-rgb), .08);
    border-radius: 8px;
}
.info-card {
    padding: 1.25rem;
    height: 100%;
    backdrop-filter: blur(12px);
}
.info-card .value { color: var(--accent); font-size: 1.8rem; font-weight: 950; line-height: 1; }
.info-card i { color: var(--blue); font-size: 1.55rem; }

.section { padding: 92px 0; }
.section-dark {
    background: linear-gradient(135deg, var(--ink), var(--navy));
    color: #fff;
}
.section-title { max-width: 760px; margin-bottom: 2.2rem; }
.section-title h2 { font-weight: 950; font-size: clamp(2rem, 4vw, 3.4rem); color: inherit; }
.section-title p { color: #66758a; }
.section-dark .section-title p, .section-dark p { color: #b8c6d8; }

.industrial-card {
    padding: 1.4rem;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    height: 100%;
}
.industrial-card:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--accent-rgb), .45);
    box-shadow: 0 24px 64px rgba(var(--navy-rgb), .14);
}
.icon-tile {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: rgba(var(--blue-rgb), .12);
    color: var(--blue);
    font-size: 1.35rem;
}
.product-card img, .project-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    filter: saturate(.9) contrast(1.04);
}
.reference-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 168px;
}
.references-showcase {
    background:
        linear-gradient(180deg, rgba(var(--blue-rgb), .06), transparent 360px),
        #f8fafc;
}
.references-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}
.references-toolbar h2 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 3.25rem);
    font-weight: 950;
    line-height: 1.03;
}
.reference-filter {
    display: grid;
    grid-template-columns: minmax(190px, 260px) auto;
    gap: .75rem;
    min-width: min(100%, 390px);
}
.reference-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(var(--navy-rgb), .08);
    border-radius: 8px;
    background: rgba(255,255,255,.76);
    box-shadow: 0 18px 48px rgba(var(--navy-rgb), .06);
}
.reference-summary strong {
    display: block;
    color: var(--accent);
    font-size: 2rem;
    font-weight: 950;
    line-height: 1;
}
.reference-summary span {
    color: #66758a;
    font-weight: 700;
}
.reference-summary p {
    color: #66758a;
    max-width: 620px;
}
.reference-logo {
    display: grid;
    place-items: center;
    min-height: 82px;
    margin-bottom: 1rem;
    padding: .85rem;
    border: 1px solid rgba(var(--navy-rgb), .08);
    border-radius: 8px;
    background: #fff;
}
.reference-logo img {
    display: block;
    width: 100%;
    max-width: 190px;
    max-height: 64px;
    object-fit: contain;
}
.reference-feature-card {
    position: relative;
    min-height: 100%;
    padding: 0;
    border: 1px solid rgba(var(--navy-rgb), .08);
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(255,255,255,.94), rgba(255,255,255,.78)),
        radial-gradient(circle at 16% 14%, rgba(var(--blue-rgb), .14), transparent 34%);
    box-shadow: 0 22px 58px rgba(var(--navy-rgb), .09);
    overflow: hidden;
    transform: translate3d(0, 0, 0) perspective(1100px) rotateX(var(--reference-tilt-y, 0deg)) rotateY(var(--reference-tilt-x, 0deg));
    transform-origin: center center;
    transition: transform .55s cubic-bezier(.2, .75, .25, 1), opacity .65s ease, box-shadow .55s ease, border-color .3s ease;
    will-change: transform, opacity;
}
.reference-feature-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    z-index: 3;
    background: linear-gradient(90deg, var(--accent), var(--blue), var(--accent));
    background-size: 180% 100%;
    animation: reference-line 5s linear infinite;
}
.reference-feature-card:hover {
    transform: translate3d(0, -8px, 0) perspective(1100px) rotateX(var(--reference-tilt-y, 0deg)) rotateY(var(--reference-tilt-x, 0deg)) scale(1.012);
    border-color: rgba(var(--accent-rgb), .42);
    box-shadow: 0 32px 78px rgba(var(--navy-rgb), .17);
}
.reference-logo-large {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 238px;
    aspect-ratio: 16 / 11;
    margin-bottom: 0;
    padding: clamp(1.3rem, 4vw, 2.75rem);
    border: 0;
    border-radius: 0;
    background:
        radial-gradient(circle at 16% 18%, rgba(var(--blue-rgb), .16), transparent 35%),
        linear-gradient(145deg, #ffffff, #eef5fb 72%, #e5eef7);
    overflow: hidden;
    isolation: isolate;
}
.reference-logo-large::before {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(var(--navy-rgb), .08);
    border-radius: 12px;
    background:
        linear-gradient(90deg, transparent 49.5%, rgba(var(--navy-rgb), .055) 50%, transparent 50.5%),
        linear-gradient(0deg, transparent 49.5%, rgba(var(--navy-rgb), .055) 50%, transparent 50.5%);
    background-size: 34px 34px;
    pointer-events: none;
    z-index: 0;
}
.reference-logo-large::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.7) 45%, transparent 70%);
    transform: translateX(-115%);
    transition: transform .8s ease;
    pointer-events: none;
    z-index: 1;
}
.reference-logo-large img {
    position: relative;
    z-index: 2;
    width: min(88%, 340px);
    height: min(168px, 42vw);
    object-fit: contain;
    transition: transform .65s cubic-bezier(.2, .75, .25, 1), filter .4s ease;
    will-change: transform;
}
.reference-feature-card:hover .reference-logo-large::after {
    transform: translateX(115%);
}
.reference-feature-card:hover .reference-logo-large img {
    transform: scale(1.075);
    filter: saturate(1.06) contrast(1.03);
}
.reference-monogram {
    min-height: 238px;
    color: color-mix(in srgb, var(--blue) 52%, var(--ink));
    font-size: clamp(4rem, 10vw, 6.5rem);
    font-weight: 950;
}
.reference-monogram i {
    line-height: 1;
    transition: transform .65s cubic-bezier(.2, .75, .25, 1), color .3s ease;
}
.reference-feature-card:hover .reference-monogram i {
    color: var(--accent);
    transform: scale(1.08) rotate(-4deg);
}
.reference-meta {
    display: grid;
    gap: .6rem;
    min-height: 132px;
    padding: 1.2rem 1.35rem 1.45rem;
    background: rgba(255,255,255,.94);
}
.reference-meta h3 {
    margin: 0;
    color: #132033;
    font-size: 1.04rem;
    font-weight: 900;
    line-height: 1.24;
}
.reference-arrow {
    flex: 0 0 auto;
    color: var(--accent);
    font-size: 1.25rem;
    transition: transform .35s ease, color .3s ease;
}
.reference-feature-card:hover .reference-arrow {
    color: var(--blue);
    transform: translate(3px, -3px);
}
.reference-motion .reference-feature-card {
    opacity: 0;
    transform: translate3d(0, 28px, 0) perspective(1100px) rotateX(0deg) rotateY(0deg) scale(.985);
}
.reference-motion .reference-feature-card.reference-is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) perspective(1100px) rotateX(var(--reference-tilt-y, 0deg)) rotateY(var(--reference-tilt-x, 0deg)) scale(1);
    transition-delay: var(--reference-delay, 0ms);
}
.reference-motion .reference-feature-card.reference-is-visible:hover {
    transform: translate3d(0, -8px, 0) perspective(1100px) rotateX(var(--reference-tilt-y, 0deg)) rotateY(var(--reference-tilt-x, 0deg)) scale(1.012);
    transition-delay: 0s;
}
@keyframes reference-line {
    from { background-position: 0 0; }
    to { background-position: 180% 0; }
}
.badge-soft {
    background: rgba(var(--blue-rgb), .12);
    color: color-mix(in srgb, var(--blue) 62%, var(--ink));
    border: 1px solid rgba(var(--blue-rgb), .24);
}
.process-line {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}
.process-step {
    border: 1px solid var(--line);
    background: rgba(255,255,255,.06);
    padding: 1.25rem;
    border-radius: 8px;
}
.process-step span {
    color: var(--accent);
    font-weight: 950;
    font-size: 1.7rem;
}
.page-hero {
    padding: 150px 0 72px;
    color: #fff;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--ink), var(--navy));
}
.page-hero::before {
    content: "";
    background: url("https://images.unsplash.com/photo-1581092160607-ee22621dd758?auto=format&fit=crop&w=1800&q=80") center/cover;
}
.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(var(--ink-rgb), .78);
}
.filter-panel { padding: 1rem; }
.form-control, .form-select { border-radius: 8px; border-color: #d9e2ec; min-height: 46px; }
.form-control:focus, .form-select:focus { box-shadow: 0 0 0 .2rem rgba(var(--accent-rgb), .16); border-color: var(--accent); }

.footer-section {
    background: var(--ink);
    color: #c5d3e4;
    padding: 64px 0 24px;
}
.footer-section h6 { color: #fff; font-weight: 900; }
.footer-section a { display: block; color: #c5d3e4; margin-bottom: .5rem; }
.footer-section a:hover { color: #fff; }
.social-link {
    width: 38px;
    height: 38px;
    display: grid !important;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
}
.footer-bottom {
    border-top: 1px solid var(--line);
    margin-top: 48px;
    padding-top: 22px;
    color: #8fa3bb;
    font-size: .92rem;
}
.whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.7rem;
    z-index: 99;
    box-shadow: 0 12px 30px rgba(0,0,0,.22);
}
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 991px) {
    .navbar-collapse { padding: 1rem 0; }
    .process-line { grid-template-columns: 1fr; }
    .info-strip { margin-top: 0; padding-top: 1rem; background: #f8fafc; }
    .hero { min-height: 68vh; }
    .references-toolbar, .reference-summary { align-items: stretch; flex-direction: column; }
    .reference-filter { grid-template-columns: 1fr; width: 100%; }
}

@media (max-width: 575px) {
    .reference-logo-large,
    .reference-monogram { min-height: 214px; }
    .reference-meta { min-height: 120px; padding: 1rem 1.1rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
    .reference-feature-card,
    .reference-logo-large img,
    .reference-monogram i,
    .reference-arrow { transition: none; }
    .reference-feature-card::before { animation: none; }
    .reference-logo-large::after { display: none; }
}
