/* =========================================================
   INGPRO — VIDEO DESTACADO DE IMPRESIÓN 3D
   Archivo exclusivo: css/home-3d-video.css
========================================================= */

.feature3d-card {
    position: relative;

    display: flex;
    flex-direction: column;

    width: min(100%, 590px);
    margin-inline: auto;
    padding: 14px;
    overflow: hidden;

    border: 1px solid #fdb427;
    border-radius: 30px;

    background:
        radial-gradient(circle at 92% 8%,
            rgba(253, 180, 39, 0.16),
            transparent 27%),
        linear-gradient(145deg,
            #06132d,
            #102f61 62%,
            #194983);

    box-shadow:
        0 28px 65px rgba(7, 21, 47, 0.26);

    isolation: isolate;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.feature3d-card::before {
    content: "";

    position: absolute;
    top: -90px;
    right: -80px;
    z-index: -1;

    width: 220px;
    height: 220px;

    border: 36px solid rgba(253, 180, 39, 0.075);
    border-radius: 50%;
}

.feature3d-card::after {
    content: "";

    position: absolute;
    right: 28px;
    bottom: 18px;

    width: 72px;
    height: 4px;

    border-radius: 999px;

    background-color: #fdb427;
}

.feature3d-card:hover {
    box-shadow:
        0 36px 82px rgba(7, 21, 47, 0.34);

    transform: translateY(-6px);
}

/* =========================================================
   CONTENEDOR DEL VIDEO
========================================================= */

.feature3d-card__media {
    position: relative;

    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 22px;

    background-color: #030a18;

    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.035),
        0 18px 38px rgba(0, 0, 0, 0.29);
}

/*
   El video original es vertical.
   Cover llena el espacio y la ampliación reduce sus barras laterales.
*/

.feature3d-card__video {
    position: absolute;
    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center 48%;

    background-color: #030a18;

    transform: scale(1.08);

    transition:
        transform 0.7s ease,
        filter 0.35s ease;
}

.feature3d-card:hover .feature3d-card__video {
    filter:
        contrast(1.04) saturate(1.04);

    transform: scale(1.12);
}

/* Degradado para entregar profundidad */

.feature3d-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;

    background:
        linear-gradient(180deg,
            rgba(4, 13, 31, 0.08),
            transparent 40%,
            rgba(4, 13, 31, 0.72) 100%);

    pointer-events: none;
}

/* =========================================================
   ESTADO DEL VIDEO
========================================================= */

.feature3d-card__status {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 4;

    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 10px 15px;

    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;

    background-color: rgba(7, 21, 47, 0.82);
    color: #ffffff;

    font-size: 0.76rem;
    font-weight: 850;
    line-height: 1;
    letter-spacing: 0.07em;
    text-transform: uppercase;

    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.2);

    backdrop-filter: blur(10px);
}

.feature3d-card__status span {
    width: 9px;
    height: 9px;

    border-radius: 50%;

    background-color: #fdb427;

    box-shadow:
        0 0 0 5px rgba(253, 180, 39, 0.16);

    animation:
        feature3dPulse 1.8s ease-in-out infinite;
}

/* Número decorativo inferior */

.feature3d-card__index {
    position: absolute;
    right: 18px;
    bottom: 14px;
    z-index: 4;

    color: rgba(255, 255, 255, 0.8);

    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.1em;
}

/* =========================================================
   INFORMACIÓN INFERIOR
========================================================= */

.feature3d-card__footer {
    position: relative;
    z-index: 3;

    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 16px;

    width: 100%;
    padding:
        20px 8px 10px;
}

.feature3d-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 56px;
    height: 56px;

    border-radius: 16px;

    background:
        linear-gradient(145deg,
            #fdb427,
            #ffd66d);

    color: #07152f;

    font-size: 1rem;
    font-weight: 900;

    box-shadow:
        0 10px 22px rgba(253, 180, 39, 0.22);

    transform: rotate(-6deg);

    transition: transform 0.3s ease;
}

.feature3d-card:hover .feature3d-card__icon {
    transform:
        rotate(-2deg) scale(1.05);
}

.feature3d-card__information {
    display: flex;
    flex-direction: column;
    gap: 4px;

    min-width: 0;
    padding-right: 70px;
}

.feature3d-card__information strong {
    color: #ffffff;

    font-size: clamp(1rem, 1.45vw, 1.28rem);
    font-weight: 820;
    line-height: 1.28;
}

.feature3d-card__information span {
    color: rgba(255, 255, 255, 0.68);

    font-size: 0.84rem;
    line-height: 1.45;
}

/* =========================================================
   ANIMACIÓN
========================================================= */

@keyframes feature3dPulse {

    0%,
    100% {
        box-shadow:
            0 0 0 4px rgba(253, 180, 39, 0.13);
    }

    50% {
        box-shadow:
            0 0 0 9px rgba(253, 180, 39, 0.025);
    }
}

/* =========================================================
   LAPTOP L Y 4K
========================================================= */

@media (min-width: 1500px) {
    .feature3d-card {
        width: min(100%, 640px);
        padding: 16px;

        border-radius: 32px;
    }

    .feature3d-card__media {
        aspect-ratio: 4 / 3;
    }

    .feature3d-card__footer {
        padding-top: 22px;
    }
}

/* =========================================================
   TABLET Y LAPTOP PEQUEÑA
========================================================= */

@media (max-width: 1100px) {
    .feature3d-card {
        width: min(100%, 570px);
    }

    .feature3d-card__media {
        aspect-ratio: 4 / 3;
    }
}

/* =========================================================
   CELULAR
========================================================= */

@media (max-width: 620px) {
    .feature3d-card {
        width: min(100%, 440px);
        padding: 8px;

        border-radius: 23px;
    }

    .feature3d-card::after {
        right: 26px;
        bottom: 18px;

        width: 55px;
        height: 3px;
    }

    .feature3d-card__media {
        aspect-ratio: 4 / 5;

        border-radius: 18px;
    }

    .feature3d-card__video {
        transform: scale(1.06);
    }

    .feature3d-card:hover .feature3d-card__video {
        transform: scale(1.06);
    }

    .feature3d-card__status {
        top: 12px;
        left: 12px;

        padding: 8px 11px;

        font-size: 0.64rem;
    }

    .feature3d-card__status span {
        width: 7px;
        height: 7px;
    }

    .feature3d-card__index {
        right: 13px;
        bottom: 11px;

        font-size: 0.65rem;
    }

    .feature3d-card__footer {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 12px;

        padding:
            15px 5px 8px;
    }

    .feature3d-card__icon {
        width: 44px;
        height: 44px;

        border-radius: 13px;

        font-size: 0.78rem;
    }

    .feature3d-card__information {
        padding-right: 52px;
    }

    .feature3d-card__information strong {
        font-size: 0.94rem;
    }

    .feature3d-card__information span {
        font-size: 0.73rem;
    }
}

/* =========================================================
   ACCESIBILIDAD
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .feature3d-card,
    .feature3d-card__video,
    .feature3d-card__icon,
    .feature3d-card__status span {
        animation: none;
        transition: none;
    }
}