.hero-section {
    position: relative;
    min-height: calc(100dvh - var(--header-height));
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-bg-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-fg-wrapper {
    display: none;
}

@media (min-width: 1024px) {
    .hero-section {
        min-height: auto;
        height: calc(100dvh - var(--header-height));
/*         max-height: calc(100vw / 1.6); */
        max-height: calc(100vw / 1.33);
    }
    .hero-fg-wrapper {
        display: block;
        position: absolute;
        inset: 0;
        z-index: 20;
        pointer-events: none;
    }
    .hero-img-fg {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    .hero-sync-svg {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        z-index: 30;
        pointer-events: none;
    }

    .laptop-screen-container {
        position: absolute;
        top: 50px;
        left: 50px;
        overflow: hidden;
        border-radius: 8px 8px 0 0;
        transform-origin: top left;
/*         border: 1px solid red; */
    }

    /* 1024x768px */
    .laptop-screen-container {
        width: 277px;
        height: 191px;
        transform: perspective(1000px) rotateX(0deg) rotateY(-28.6deg) rotateZ(1.3deg) skewX(-0.1deg) skewY(-3.8deg);
    }

    .screen-layer {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        transition:
            opacity 0.5s ease-in-out,
            transform 0.5s ease-in-out;
        will-change: opacity, transform;
    }
    .screen-layer.active {
        opacity: 1;
        transform: translateY(0);
    }
    .screen-layer.slide-up {
        opacity: 0;
        transform: translateY(-20px);
    }

    #terminal-layer {
        color: #00ff41;
        padding: 12px; /* Reducido de 20px */
        font-family: "Courier New", monospace;
        font-size: 10px; /* Reducido de 14px */
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }
    .success-text {
        color: #ffffff;
        font-weight: bold;
    }
    .cursor-blink {
        animation: blink 1s step-end infinite;
    }
    @keyframes blink {
        50% { opacity: 0; }
    }

    #dashboard-layer {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        color: #fff;
        padding: 12px; /* Reducido de 20px */
    }
    .dash-title {
        font-size: 11px; /* Reducido de 16px */
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 15px; /* Reducido de 30px */
        color: #888;
    }
    .metrics-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px; /* Reducido de 20px */
        width: 100%;
        text-align: center;
    }
    .metric-box .value {
        font-size: 20px; /* Reducido de 32px */
        font-weight: 700;
        color: #10b981;
        display: inline-block;
        min-width: 60px; /* Reducido de 100px */
        text-align: center;
        font-variant-numeric: tabular-nums;
    }
    .metric-box .label {
        font-size: 9px; /* Reducido de 12px */
        color: #ccc;
        margin-top: 5px;
        display: block;
    }
}

@media (min-width: 1280px) {
    .laptop-screen-container {
        width: 376px;
        height: 280px;
        transform: perspective(1000px) rotateX(-0.1deg) rotateY(-21.9deg)
            rotateZ(0.4deg) skewX(-1deg) skewY(-3.3deg);
    }

    /* Restauración de valores originales para escritorio */
    #terminal-layer {
        padding: 20px;
        font-size: 14px;
    }
    #dashboard-layer {
        padding: 20px;
    }
    .dash-title {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .metrics-grid {
        gap: 20px;
    }
    .metric-box .value {
        font-size: 32px;
        min-width: 100px;
    }
    .metric-box .label {
        font-size: 12px;
    }
}
