body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
                    Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
}

.vg-hero {
    position: relative;
    min-height: 100vh;
    color: #fff;
    background-size: cover;
    background-position: center;
}

.vg-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(0, 0, 0, 0.55),
        rgba(0, 0, 0, 0.75)
    );
}

.vg-hero-inner {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vg-hero-subtitle {
    letter-spacing: .15em;
    font-size: .75rem;
    text-transform: uppercase;
    opacity: 0.8;
}

.vg-section-title {
    text-transform: uppercase;
    letter-spacing: .2em;
    font-size: .85rem;
    color: #777;
}

.vg-card-link {
    text-transform: uppercase;
    letter-spacing: .15em;
    font-size: .7rem;
}

.vg-tech-section {
    position: relative;
    color: #fff;
    background-size: cover;
    background-position: center;
}

.vg-tech-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.vg-tech-inner {
    position: relative;
    z-index: 1;
}

.vg-logo-grid img {
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.9;
    transition: all .2s ease-in-out;
}

.vg-logo-grid img:hover {
    filter: grayscale(0);
    opacity: 1;
}

.vg-work-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

footer.vg-footer {
    background-color: #000;
    color: #bbb;
    font-size: .875rem;
}

footer.vg-footer a {
    color: #fff;
    text-decoration: none;
}

footer.vg-footer a:hover {
    text-decoration: underline;
}

.vg-footer-title {
    text-transform: uppercase;
    letter-spacing: .15em;
    font-size: .75rem;
    color: #888;
}

.vg-footer-bottom {
    border-top: 1px solid #222;
    padding-top: 1rem;
    margin-top: 1rem;
    font-size: .75rem;
}

.vg-social a {
    margin-right: .7rem;
}

body {
    scroll-padding-top: 4.5rem; /* para anclas con navbar fixed-top */
}

.vg-navbar {
    background-color: rgba(0, 0, 0, 0.82);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.vg-navbar.vg-navbar-solid {
    background-color: rgba(0, 0, 0, 0.82);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.vg-navbar .navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.vg-logo-mark {
    width: 42px;
    height: 42px;
    display: inline-block;
    background-color: #fff; /* color visible a través de la máscara */
    mask-image: var(--vg-logo);
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-image: var(--vg-logo);
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    border-radius: 0.25rem;
}

.vg-mini-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.vg-mini-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.35));
}

.vg-mini-hero-inner {
    position: relative;
    z-index: 1;
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
}

.vg-mini-hero-rotator {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    min-height: 240px;
}

.vg-mini-hero-rotator img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.7s ease;
}

.vg-mini-hero-rotator img.is-active {
    opacity: 1;
}

.vg-highlight-band {
    background: linear-gradient(90deg, #f5f7fb, #eef2f9);
    border-bottom: 1px solid #e1e6f0;
    border-top: 1px solid #e1e6f0;
}

.vg-section-spacing {
    padding-bottom: 4.5rem;
}

@media (min-width: 992px) {
    .vg-section-spacing {
        padding-bottom: 5.5rem;
    }
}

.vg-grid-gallery .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vg-grid-gallery .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

.vg-grid-gallery img {
    transition: transform 0.35s ease;
}

.vg-grid-gallery .card:hover img {
    transform: scale(1.03);
}

@media (max-width: 991.98px) {
    .vg-navbar {
        background-color: rgba(0, 0, 0, 0.9);
    }

    .vg-navbar .navbar-collapse {
        background-color: rgba(0, 0, 0, 0.95);
    }

    body {
        scroll-padding-top: 4.25rem;
    }
}

.vg-logo-grid .vg-logo-slot {
    max-height: 80px;
    object-fit: contain;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.vg-logo-fade-out {
    opacity: 0;
    transform: scale(0.95);
}

.vg-logo-fade-in {
    opacity: 1;
    transform: scale(1);
}

.vg-work-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.vg-work-caption {
    min-height: 2.5em; /* para que no salte mucho el layout */
}

.vg-work-fade-out {
    opacity: 0;
    transform: scale(0.96);
}

.vg-work-fade-in {
    opacity: 1;
    transform: scale(1);
}
