/* =====================================================
   PÁGINA CNC PLASMA
   ESTILOS EXCLUSIVOS
===================================================== */

/* =====================================================
   PORTADA
===================================================== */

.plasma-hero {
    position: relative;
    display: flex;
    align-items: center;

    min-height: 680px;
    overflow: hidden;

    background-color: #0b1732;
}

.plasma-hero__image {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}

.plasma-hero__overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(90deg,
            rgba(7, 20, 48, 0.96) 0%,
            rgba(18, 43, 90, 0.78) 50%,
            rgba(18, 43, 90, 0.18) 100%);
}

.plasma-hero__content {
    position: relative;
    z-index: 2;

    padding-top: 6rem;
    padding-bottom: 10rem;
}

.plasma-hero__eyebrow {
    margin-bottom: 1rem;

    color: var(--color-accent);

    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.plasma-hero h1 {
    max-width: 750px;
    margin-bottom: 1.2rem;

    color: #ffffff;

    font-size: clamp(3.2rem, 7vw, 5.8rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.plasma-hero__description {
    max-width: 680px;
    margin-bottom: 2rem;

    color: rgba(255, 255, 255, 0.84);

    font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.plasma-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

/* Accesos rápidos inferiores */

.plasma-hero__quick-links {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 4;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    border-radius: 18px 18px 0 0;

    background-color: #ffffff;
    box-shadow: 0 -12px 35px rgba(4, 17, 42, 0.2);
}

.plasma-hero__quick-links a {
    display: flex;
    align-items: center;
    gap: 0.9rem;

    min-height: 92px;
    padding: 1.2rem 1.5rem;

    border-right: 1px solid var(--color-border);

    color: var(--color-primary-dark);
    font-weight: 750;

    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

.plasma-hero__quick-links a:last-child {
    border-right: none;
}

.plasma-hero__quick-links a:hover {
    background-color: var(--color-primary);
    color: #ffffff;
}

.plasma-hero__quick-links span {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 42px;
    height: 42px;

    border-radius: 12px;

    background-color: var(--color-accent);
    color: var(--color-primary-dark);

    font-size: 0.85rem;
    font-weight: 900;
}

/* =====================================================
   RESUMEN DEL SERVICIO
===================================================== */

.plasma-overview {
    position: relative;
    overflow: hidden;

    background:
        radial-gradient(circle at 10% 20%,
            rgba(253, 180, 39, 0.15),
            transparent 25%),
        linear-gradient(135deg,
            #edf2fa,
            #ffffff 55%,
            #f4f7fc);
}

.plasma-overview::after {
    content: "";

    position: absolute;
    right: -180px;
    bottom: -210px;

    width: 470px;
    height: 470px;

    border: 70px solid rgba(29, 49, 99, 0.04);
    border-radius: 50%;
}

.plasma-overview__grid {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns:
        minmax(0, 1.05fr) minmax(330px, 0.95fr);
    align-items: center;
    gap: 3rem;
}

.plasma-overview__intro {
    padding: 2.8rem;

    border-radius: 26px;

    background:
        linear-gradient(145deg,
            #0b1732,
            #1d3163);

    color: #ffffff;

    box-shadow: 0 24px 55px rgba(18, 34, 71, 0.24);

    animation: plasmaRise 0.7s ease both;
}

.plasma-overview__intro h2 {
    margin-bottom: 1.2rem;

    color: #ffffff;

    font-size: clamp(2.1rem, 4vw, 3.3rem);
}

.plasma-overview__intro>p {
    margin-bottom: 1rem;

    color: rgba(255, 255, 255, 0.76);
}

.plasma-overview__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;

    margin-block: 1.7rem;
}

.plasma-overview__tags span {
    padding: 0.48rem 0.78rem;

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;

    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;

    font-size: 0.82rem;
    font-weight: 650;
}

.plasma-overview__cards {
    display: grid;
    gap: 1.1rem;
}

.plasma-info-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 1rem;

    padding: 1.4rem;

    border: 1px solid var(--color-border);
    border-radius: 18px;

    background-color: #ffffff;
    box-shadow: var(--shadow-small);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;

    animation: plasmaRise 0.7s ease both;
}

.plasma-info-card:nth-child(2) {
    animation-delay: 0.12s;
}

.plasma-info-card:nth-child(3) {
    animation-delay: 0.24s;
}

.plasma-info-card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-medium);
    transform: translateX(9px);
}

.plasma-info-card__number {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 54px;
    height: 54px;

    border-radius: 15px;

    background-color: var(--color-accent);
    color: var(--color-primary-dark);

    font-weight: 900;
}

.plasma-info-card h3 {
    margin-bottom: 0.35rem;
    font-size: 1.1rem;
}

.plasma-info-card p {
    color: var(--color-muted);
    font-size: 0.93rem;
}

/* =====================================================
   TRABAJO DESTACADO
===================================================== */

.plasma-showcase {
    position: relative;
    overflow: hidden;

    padding-block: 6rem;

    background:
        linear-gradient(135deg,
            #08152f,
            #122247 55%,
            #1d3163);

    color: #ffffff;
}

.plasma-showcase::before {
    content: "";

    position: absolute;
    top: -180px;
    right: -120px;

    width: 460px;
    height: 460px;

    border: 70px solid rgba(253, 180, 39, 0.08);
    border-radius: 50%;
}

.plasma-showcase__grid {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns:
        minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: center;
    gap: 4rem;
}

.plasma-showcase__visual {
    position: relative;

    min-height: 520px;
    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 26px;

    background-color: #ffffff;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.3);
}

.plasma-showcase__visual::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(to top,
            rgba(7, 20, 48, 0.92),
            transparent 55%);
}

.plasma-showcase__visual img {
    width: 100%;
    height: 520px;

    object-fit: cover;

    transition: transform 0.7s ease;
}

.plasma-showcase__visual:hover img {
    transform: scale(1.06);
}

.plasma-showcase__label {
    position: absolute;
    right: 1.4rem;
    bottom: 1.4rem;
    left: 1.4rem;
    z-index: 3;

    display: flex;
    flex-direction: column;
    gap: 0.3rem;

    color: #ffffff;

    font-size: 1.18rem;
    font-weight: 750;
}

.plasma-showcase__label span {
    width: fit-content;
    padding: 0.35rem 0.7rem;

    border-radius: 999px;

    background-color: var(--color-accent);
    color: var(--color-primary-dark);

    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.plasma-showcase__content h2 {
    margin-bottom: 1.2rem;

    color: #ffffff;

    font-size: clamp(2.1rem, 4vw, 3.4rem);
}

.plasma-showcase__content>p {
    margin-bottom: 2rem;

    color: rgba(255, 255, 255, 0.74);
    font-size: 1.05rem;
}

.plasma-showcase__benefits {
    display: grid;
    gap: 1rem;

    margin-bottom: 2rem;
}

.plasma-showcase__benefits article {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 1rem;

    padding: 1rem;

    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 15px;

    background-color: rgba(255, 255, 255, 0.06);

    transition:
        border-color 0.3s ease,
        background-color 0.3s ease,
        transform 0.3s ease;
}

.plasma-showcase__benefits article:hover {
    border-color: var(--color-accent);
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(7px);
}

.plasma-showcase__benefits article>span {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    border-radius: 12px;

    background-color: var(--color-accent);
    color: var(--color-primary-dark);

    font-weight: 900;
}

.plasma-showcase__benefits h3 {
    margin-bottom: 0.25rem;

    color: #ffffff;
    font-size: 1.05rem;
}

.plasma-showcase__benefits p {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.92rem;
}

/* =====================================================
   CAPACIDADES
===================================================== */

.plasma-capabilities {
    position: relative;
    overflow: hidden;

    background:
        linear-gradient(145deg,
            #0b1732,
            #122247 55%,
            #1d3163);

    color: #ffffff;
}

.plasma-capabilities__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.2rem;
}

.plasma-capability-card {
    position: relative;

    min-height: 280px;
    padding: 1.6rem;
    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 19px;

    background-color: rgba(255, 255, 255, 0.06);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        background-color 0.3s ease;

    animation: plasmaRise 0.65s ease both;
}

.plasma-capability-card:nth-child(2) {
    animation-delay: 0.08s;
}

.plasma-capability-card:nth-child(3) {
    animation-delay: 0.16s;
}

.plasma-capability-card:nth-child(4) {
    animation-delay: 0.24s;
}

.plasma-capability-card:hover {
    border-color: var(--color-accent);
    background-color: rgba(255, 255, 255, 0.11);
    transform: translateY(-9px);
}

.plasma-capability-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;
    margin-bottom: 2rem;

    border-radius: 14px;

    background-color: var(--color-accent);
    color: var(--color-primary-dark);

    font-weight: 900;

    transition: transform 0.3s ease;
}

.plasma-capability-card:hover .plasma-capability-card__icon {
    transform: rotate(-8deg) scale(1.08);
}

.plasma-capability-card h3 {
    margin-bottom: 0.7rem;
    color: #ffffff;
}

.plasma-capability-card p {
    color: rgba(255, 255, 255, 0.7);
}

.plasma-capability-card__line {
    position: absolute;
    right: 1.5rem;
    bottom: 1.4rem;
    left: 1.5rem;

    height: 3px;
    border-radius: 10px;

    background-color: rgba(255, 255, 255, 0.12);
}

.plasma-capability-card__line::after {
    content: "";

    display: block;

    width: 35%;
    height: 100%;

    border-radius: inherit;

    background-color: var(--color-accent);

    transition: width 0.4s ease;
}

.plasma-capability-card:hover .plasma-capability-card__line::after {
    width: 100%;
}

/* =====================================================
   APLICACIONES
===================================================== */

.plasma-applications {
    background:
        linear-gradient(180deg,
            #f8faff,
            #eef3fa);
}

.plasma-applications__heading {
    display: grid;
    grid-template-columns:
        minmax(0, 1.1fr) minmax(280px, 0.9fr);
    align-items: end;
    gap: 3rem;

    margin-bottom: 3rem;
}

.plasma-applications__heading h2 {
    font-size: clamp(2.1rem, 4vw, 3.3rem);
}

.plasma-applications__heading>p {
    color: var(--color-muted);
    font-size: 1.05rem;
}

.plasma-applications__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.plasma-application-card {
    position: relative;

    min-height: 285px;
    padding: 1.65rem;
    overflow: hidden;

    border: 1px solid var(--color-border);
    border-radius: 19px;

    background-color: #ffffff;
    box-shadow: var(--shadow-small);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;

    animation: plasmaRise 0.65s ease both;
}

.plasma-application-card::before {
    content: "";

    position: absolute;
    top: -85px;
    right: -85px;

    width: 180px;
    height: 180px;

    border-radius: 50%;

    background-color: rgba(253, 180, 39, 0.09);

    transition: transform 0.45s ease;
}

.plasma-application-card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-medium);
    transform: translateY(-8px);
}

.plasma-application-card:hover::before {
    transform: scale(1.4);
}

.plasma-application-card__icon {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 50px;
    height: 50px;
    margin-bottom: 1.5rem;

    border-radius: 14px;

    background-color: var(--color-primary);
    color: var(--color-accent);

    font-size: 1.35rem;
}

.plasma-application-card h3 {
    position: relative;
    z-index: 2;

    margin-bottom: 0.7rem;
}

.plasma-application-card p {
    position: relative;
    z-index: 2;

    margin-bottom: 1.5rem;

    color: var(--color-muted);
}

.plasma-application-card a {
    position: absolute;
    right: 1.6rem;
    bottom: 1.4rem;
    left: 1.6rem;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-top: 0.8rem;

    border-top: 1px solid var(--color-border);

    color: var(--color-primary);
    font-weight: 750;
}

.plasma-application-card a span {
    color: var(--color-accent-dark);
    transition: transform 0.3s ease;
}

.plasma-application-card a:hover span {
    transform: translateX(6px);
}

/* =====================================================
   GALERÍA
===================================================== */

#trabajos-plasma {
    position: relative;
    overflow: hidden;

    background:
        radial-gradient(circle at 90% 10%,
            rgba(253, 180, 39, 0.12),
            transparent 22%),
        #ffffff;
}

#trabajos-plasma .work-gallery__item {
    border-radius: 18px;
}

#trabajos-plasma .work-gallery__image {
    transition:
        transform 0.55s ease,
        filter 0.4s ease;
}

#trabajos-plasma .work-gallery__item:hover .work-gallery__image {
    transform: scale(1.07);
    filter: contrast(1.05);
}

/* =====================================================
   PROCESO
===================================================== */

.plasma-capabilities+.plasma-applications,
#trabajos-plasma+.section--dark {
    position: relative;
}

.process-item {
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        background-color 0.3s ease;
}

.process-item:hover {
    border-color: var(--color-accent);
    background-color: rgba(255, 255, 255, 0.11);
    transform: translateY(-7px);
}

/* =====================================================
   ANIMACIÓN
===================================================== */

@keyframes plasmaRise {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================================
   RESPONSIVIDAD
===================================================== */

@media (max-width: 1000px) {

    .plasma-overview__grid,
    .plasma-showcase__grid {
        grid-template-columns: 1fr;
    }

    .plasma-capabilities__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .plasma-applications__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .plasma-hero {
        min-height: 740px;
        align-items: flex-start;
    }

    .plasma-hero__image {
        object-position: 65% center;
    }

    .plasma-hero__overlay {
        background:
            linear-gradient(90deg,
                rgba(7, 20, 48, 0.93),
                rgba(18, 43, 90, 0.63));
    }

    .plasma-hero__content {
        padding-top: 4rem;
        padding-bottom: 15rem;
    }

    .plasma-hero h1 {
        font-size: 3.4rem;
    }

    .plasma-hero__actions {
        flex-direction: column;
    }

    .plasma-hero__actions .button {
        width: 100%;
    }

    .plasma-hero__quick-links {
        grid-template-columns: 1fr;
        width: 92%;
    }

    .plasma-hero__quick-links a {
        min-height: 64px;

        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }

    .plasma-hero__quick-links a:last-child {
        border-bottom: none;
    }

    .plasma-overview__intro {
        padding: 1.8rem;
    }

    .plasma-showcase {
        padding-block: 4rem;
    }

    .plasma-showcase__visual,
    .plasma-showcase__visual img {
        min-height: 370px;
        height: 370px;
    }

    .plasma-applications__heading {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 600px) {

    .plasma-capabilities__grid,
    .plasma-applications__grid {
        grid-template-columns: 1fr;
    }

    .plasma-capability-card,
    .plasma-application-card {
        min-height: 250px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .plasma-overview__intro,
    .plasma-info-card,
    .plasma-capability-card,
    .plasma-application-card {
        animation: none;
    }
        /* =========================================================
       PROYECTO DESTACADO CON VIDEO CNC PLASMA
       Archivo: css/plasma.css
    ========================================================= */
    
        .plasma-video-project {
            position: relative;
            overflow: hidden;
    
            background:
                radial-gradient(circle at 92% 10%,
                    rgba(253, 180, 39, 0.13),
                    transparent 24%),
                linear-gradient(145deg,
                    #07152f,
                    #102d5b 58%,
                    #173e75);
    
            color: #ffffff;
        }
    
        .plasma-video-project::before {
            content: "";
    
            position: absolute;
            top: -180px;
            right: -170px;
    
            width: 470px;
            height: 470px;
    
            border: 70px solid rgba(253, 180, 39, 0.06);
            border-radius: 50%;
        }
    
        .plasma-video-project__grid {
            position: relative;
            z-index: 2;
    
            display: grid;
            grid-template-columns:
                minmax(0, 1.08fr) minmax(0, 0.92fr);
            align-items: center;
            gap: clamp(2rem, 5vw, 4.5rem);
        }
    
        /* Video */
    
        .plasma-video-project__media {
            position: relative;
    
            width: 100%;
            overflow: hidden;
    
            aspect-ratio: 4 / 3;
    
            border: 1px solid rgba(255, 255, 255, 0.17);
            border-radius: 28px;
    
            background-color: #030b1b;
    
            box-shadow:
                0 30px 75px rgba(0, 0, 0, 0.34);
        }
    
        .plasma-video-project__video {
            display: block;
    
            width: 100%;
            height: 100%;
    
            object-fit: cover;
            object-position: center;
    
            background-color: #030b1b;
    
            transform: scale(1.02);
    
            transition:
                transform 0.7s ease,
                filter 0.35s ease;
        }
    
        .plasma-video-project__media:hover .plasma-video-project__video {
            transform: scale(1.065);
    
            filter:
                contrast(1.04) saturate(1.04);
        }
    
        .plasma-video-project__overlay {
            position: absolute;
            inset: 0;
    
            background:
                linear-gradient(180deg,
                    rgba(4, 14, 34, 0.04),
                    transparent 48%,
                    rgba(4, 14, 34, 0.78));
    
            pointer-events: none;
        }
    
        /* Indicadores */
    
        .plasma-video-project__status {
            position: absolute;
            top: 1.25rem;
            left: 1.25rem;
    
            display: inline-flex;
            align-items: center;
            gap: 0.55rem;
    
            padding: 0.58rem 0.82rem;
    
            border: 1px solid rgba(255, 255, 255, 0.25);
            border-radius: 999px;
    
            background-color: rgba(7, 21, 47, 0.83);
            color: #ffffff;
    
            font-size: 0.7rem;
            font-weight: 850;
            letter-spacing: 0.07em;
            text-transform: uppercase;
    
            backdrop-filter: blur(9px);
        }
    
        .plasma-video-project__status>span {
            width: 8px;
            height: 8px;
    
            border-radius: 50%;
    
            background-color: #fdb427;
    
            box-shadow:
                0 0 0 5px rgba(253, 180, 39, 0.15);
        }
    
        .plasma-video-project__label {
            position: absolute;
            right: 1.25rem;
            bottom: 1.25rem;
    
            padding: 0.6rem 0.85rem;
    
            border-radius: 999px;
    
            background-color: #fdb427;
            color: #07152f;
    
            font-size: 0.72rem;
            font-weight: 850;
            text-transform: uppercase;
        }
    
        /* Texto derecho */
    
        .plasma-video-project__content h2 {
            margin: 0 0 1.1rem;
    
            color: #ffffff;
    
            font-size: clamp(2.1rem, 4.3vw, 3.7rem);
            line-height: 1.06;
        }
    
        .plasma-video-project__content>p {
            margin: 0 0 1.7rem;
    
            color: rgba(255, 255, 255, 0.73);
            line-height: 1.7;
        }
    
        .plasma-video-project__features {
            display: grid;
            gap: 0.85rem;
    
            margin-bottom: 1.7rem;
        }
    
        .plasma-video-project__features article {
            display: grid;
            grid-template-columns: 46px minmax(0, 1fr);
            gap: 0.9rem;
    
            padding: 0.9rem;
    
            border: 1px solid rgba(255, 255, 255, 0.13);
            border-radius: 15px;
    
            background-color: rgba(255, 255, 255, 0.06);
    
            transition:
                transform 0.3s ease,
                border-color 0.3s ease,
                background-color 0.3s ease;
        }
    
        .plasma-video-project__features article:hover {
            border-color: #fdb427;
    
            background-color: rgba(255, 255, 255, 0.1);
    
            transform: translateX(7px);
        }
    
        .plasma-video-project__features article>span {
            display: inline-flex;
            align-items: center;
            justify-content: center;
    
            width: 43px;
            height: 43px;
    
            border-radius: 12px;
    
            background-color: #fdb427;
            color: #07152f;
    
            font-weight: 900;
        }
    
        .plasma-video-project__features h3 {
            margin: 0 0 0.2rem;
    
            color: #ffffff;
            font-size: 1rem;
        }
    
        .plasma-video-project__features p {
            margin: 0;
    
            color: rgba(255, 255, 255, 0.67);
    
            font-size: 0.9rem;
            line-height: 1.5;
        }
    
        /* Tablet */
    
        @media (max-width: 1000px) {
            .plasma-video-project__grid {
                grid-template-columns: 1fr;
            }
    
            .plasma-video-project__media {
                max-width: 760px;
                margin-inline: auto;
            }
        }
    
        /* Celular */
    
        @media (max-width: 620px) {
            .plasma-video-project__grid {
                gap: 2rem;
            }
    
            .plasma-video-project__media {
                aspect-ratio: 4 / 3;
    
                border-radius: 21px;
            }
    
            .plasma-video-project__status {
                top: 0.8rem;
                left: 0.8rem;
    
                padding: 0.46rem 0.62rem;
    
                font-size: 0.58rem;
            }
    
            .plasma-video-project__label {
                right: 0.8rem;
                bottom: 0.8rem;
    
                font-size: 0.6rem;
            }
    
            .plasma-video-project__features article {
                grid-template-columns: 42px minmax(0, 1fr);
            }
        }
}