/* ===== CONTENEDOR ENCAPSULADO CON MÁSCARA TOTAL ===== */
.atlas-feature-section {
    width: calc(100% - 30px);
    /* Ajustamos el ancho para dejar espacio */
    max-width: 1360px;
    /* Reducimos un poco el max-width para compensar los márgenes */
    margin: 0 auto;
    /* Esto centra automáticamente la sección horizontalmente */
    height: 600px;
    min-height: 550px;
    background-color: #07253F;
    position: relative;
    overflow: hidden;
    display: flex;
    box-sizing: border-box;

    /* APLICAMOS LA MÁSCARA AQUÍ PARA UNIFICAR TODO */
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1400 600' preserveAspectRatio='none'%3E%3Cpath d='M0,40 Q0,0,40,0 L1360,0 Q1400,0,1400,40 L1400,560 Q1400,600,1360,600 L40,600 Q0,600,0,560 Z' fill='%23000'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1400 600' preserveAspectRatio='none'%3E%3Cpath d='M0,40 Q0,0,40,0 L1360,0 Q1400,0,1400,40 L1400,560 Q1400,600,1360,600 L40,600 Q0,600,0,560 Z' fill='%23000'/%3E%3C/svg%3E");

    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

/* ===== LIMPIEZA DEL MEDIA CONTAINER ===== */
.atlas-feature-media-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    z-index: 3;
    /* ELIMINAMOS LA MÁSCARA ANTIGUA QUE ESTABA ROMPIENDO EL DISEÑO */
    -webkit-mask-image: none;
    mask-image: none;
}

/* ===== FONDO DE INGENIERÍA / TECH OVERLAY (Lado Izquierdo) ===== */
.atlas-feature-tech-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 55%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, #0d3b66 0%, transparent 50%),
        linear-gradient(135deg, #051a2e 0%, #0a2c4b 100%);
    z-index: 1;
    overflow: hidden;
}

/* Rejilla tecnológica sutil (Grid industrial) */
.atlas-feature-tech-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 1;
}

/* Líneas cinéticas de luz verde neón */
.atlas-tech-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, #69DB2A, transparent);
    height: 1px;
    opacity: 0.3;
    z-index: 2;
}

.line-1 {
    top: 25%;
    left: -10%;
    width: 50%;
    transform: rotate(15deg);
    animation: techPulse 7s infinite linear;
}

.line-2 {
    top: 70%;
    left: 20%;
    width: 60%;
    transform: rotate(-10deg);
    animation: techPulse 10s infinite linear reverse;
}

@keyframes techPulse {
    0% {
        transform: translate(-20%, -10%) rotate(15deg);
        opacity: 0.1;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        transform: translate(40%, 30%) rotate(15deg);
        opacity: 0.1;
    }
}

/* ===== MÁSCARA SEMÁNTICA VECTORIAL (Imagen Derecha) ===== */
.atlas-feature-media-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    /* Cruce estratégico para el calce de la curva */
    height: 100%;
    z-index: 3;
    background-color: #0d3b66;

    /* MÁSCARA RECALCULADA: Pendiente diagonal suavizada con quiebre curvo arriba y escalón abajo */
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 600' preserveAspectRatio='none'%3E%3Cpath d='M250,0 Q210,0,195,30 L15,390 Q0,420,0,460 L0,560 Q0,600,40,600 L800,600 L800,0 Z' fill='%23000'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 600' preserveAspectRatio='none'%3E%3Cpath d='M250,0 Q210,0,195,30 L15,390 Q0,420,0,460 L0,560 Q0,600,40,600 L800,600 L800,0 Z' fill='%23000'/%3E%3C/svg%3E");

    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.atlas-feature-media-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.05);
    transition: transform 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.atlas-feature-media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(225deg, rgba(105, 219, 42, 0.03) 0%, rgba(0, 0, 0, 0.25) 100%);
    z-index: 4;
}

/* ===== BLOQUE DE TEXTOS ===== */
.atlas-feature-content {
    position: relative;
    z-index: 10;
    width: 50%;
    height: 100%;
    padding: 50px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    color: #FFFFFF;
}

.atlas-feature-header {
    margin-bottom: 22px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.atlas-feature-title {
    font-size: clamp(26px, 2.8vw, 38px);
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.atlas-feature-title span {
    font-weight: 600;
    display: block;
    color: #FFFFFF;
}

.atlas-feature-description {
    font-size: 14px;
    line-height: 1.6;
    color: #B4B9C4;
    max-width: 480px;
    margin-bottom: 28px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.1s;
}

/* Grid de Viñetas */
.atlas-feature-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 30px;
    max-width: 520px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.18s;
}

.atlas-spec-item {
    position: relative;
    padding-left: 18px;
    font-size: 12.5px;
    line-height: 1.4;
    color: #E2E4E9;
}

/* Micro-punto Neón */
.atlas-spec-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 6px;
    height: 6px;
    background-color: #69DB2A;
    border-radius: 50%;
    box-shadow: 0 0 8px #69DB2A;
}

.atlas-feature-footnote {
    font-size: 12px;
    color: #717682;
    line-height: 1.5;
    max-width: 480px;
    margin-bottom: 32px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.24s;
}

/* ===== BOTÓN CYBER REFINED ===== */
.atlas-btn-container {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.3s;
}

.atlas-modern-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #0d3b66;
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Efecto barrido de luz interna */
.atlas-modern-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(105, 219, 42, 0.2), transparent);
    transition: left 0.6s ease;
}

.atlas-modern-btn:hover {
    background: rgba(105, 219, 42, 0.08);
    border-color: #69DB2A;
    box-shadow: 0 0 20px rgba(105, 219, 42, 0.2);
    transform: translateY(-2px);
}

.atlas-modern-btn:hover::before {
    left: 100%;
}

/* ===== CLASE ACTIVA (ANIMACIÓN ENTRADA) ===== */
.atlas-feature-section.animated .atlas-feature-header,
.atlas-feature-section.animated .atlas-feature-description,
.atlas-feature-section.animated .atlas-feature-specs-grid,
.atlas-feature-section.animated .atlas-feature-footnote,
.atlas-feature-section.animated .atlas-btn-container {
    opacity: 1;
    transform: translateY(0);
}

.atlas-feature-section.animated .atlas-feature-media-container img {
    transform: scale(1);
}

/* Responsive */
@media (max-width: 1024px) {
    .atlas-feature-section {
        height: auto;
        flex-direction: column;
        border-radius: 24px;
    }

    .atlas-feature-tech-bg {
        width: 100%;
        height: 100%;
    }

    .atlas-feature-content {
        width: 100%;
        padding: 45px 24px;
    }

    .atlas-feature-media-container {
        position: relative;
        width: 100%;
        height: 380px;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .atlas-feature-specs-grid {
        grid-template-columns: 1fr;
    }
}