/* =========================================================
   SSP ENTERPRISE MAIN STYLE
   Security Sales Perú
   Premium Dark Tech UI
========================================================= */

@import url('variables.css');

/* =========================================================
   RESET
========================================================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:var(--font-primary);
    background:var(--bg-main);
    color:var(--ssp-white);
    overflow-x:hidden;
    line-height:var(--lh-md);
    position:relative;
}

/* =========================================================
   CUSTOM SCROLLBAR
========================================================= */

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:var(--scrollbar-bg);
}

::-webkit-scrollbar-thumb{
    background:linear-gradient(
        180deg,
        #ff6b00,
        #ff8533
    );
    border-radius:20px;
}

::-webkit-scrollbar-thumb:hover{
    background:#ff6b00;
}

/* =========================================================
   GLOBAL BACKGROUND
========================================================= */

body::before{
    content:'';
    position:fixed;
    inset:0;
    background:
        radial-gradient(
            circle at top left,
            rgba(255,107,0,0.10),
            transparent 35%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(0,153,255,0.08),
            transparent 35%
        );
    pointer-events:none;
    z-index:-2;
}

body::after{
    content:'';
    position:fixed;
    inset:0;
    background-image:
        linear-gradient(
            rgba(255,255,255,0.03) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,0.03) 1px,
            transparent 1px
        );
    background-size:80px 80px;
    opacity:0.04;
    z-index:-1;
    pointer-events:none;
}

/* =========================================================
   GLOBAL ELEMENTS
========================================================= */

img{
    max-width:100%;
    display:block;
}

a{
    text-decoration:none;
    color:inherit;
}

ul{
    list-style:none;
}

button,
input,
textarea{
    font-family:inherit;
    outline:none;
    border:none;
}

section{
    position:relative;
    padding:var(--space-4xl) 0;
}

/* =========================================================
   CONTAINER
========================================================= */

.container{
    width:100%;
    max-width:var(--container-width);
    margin:auto;
    padding:var(--container-padding);
    position:relative;
}

/* =========================================================
   SECTION HEADERS
========================================================= */

.section-header{
    margin-bottom:4rem;
    position:relative;
}

.section-subtitle{
    display:inline-flex;
    align-items:center;
    gap:10px;
    color:var(--ssp-primary);
    font-size:var(--fs-sm);
    text-transform:uppercase;
    font-weight:var(--fw-semibold);
    letter-spacing:2px;
    margin-bottom:1rem;
}

.section-subtitle::before{
    content:'';
    width:45px;
    height:2px;
    background:var(--ssp-primary);
    box-shadow:var(--ssp-glow-orange);
}

.section-title{
    font-size:clamp(2rem, 5vw, 4rem);
    line-height:1.1;
    font-weight:var(--fw-black);
    margin-bottom:1.5rem;
}

.section-title span{
    color:var(--ssp-primary);
    text-shadow:var(--ssp-glow-orange);
}

.section-description{
    max-width:760px;
    color:var(--ssp-gray-soft);
    font-size:var(--fs-lg);
    line-height:1.8;
}

/* =========================================================
   GLASS EFFECT
========================================================= */

.glass{
    background:var(--ssp-dark-glass);
    border:1px solid rgba(255,255,255,0.06);
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);
}

/* =========================================================
   BUTTONS
========================================================= */

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    padding:16px 32px;
    border-radius:var(--radius-md);
    font-weight:var(--fw-semibold);
    font-size:var(--fs-md);
    transition:var(--transition-medium);
    position:relative;
    overflow:hidden;
    cursor:pointer;
}

.btn-primary{
    background:var(--btn-primary-bg);
    color:var(--ssp-white);
    box-shadow:
        0 10px 30px rgba(255,107,0,0.25);
}

.btn-primary:hover{
    transform:translateY(-4px);
    box-shadow:
        0 18px 40px rgba(255,107,0,0.35);
}

.btn-secondary{
    background:rgba(255,255,255,0.04);
    border:1px solid rgba(255,255,255,0.08);
    color:var(--ssp-white);
    backdrop-filter:blur(10px);
}

.btn-secondary:hover{
    background:rgba(255,255,255,0.08);
    border-color:rgba(255,107,0,0.35);
    transform:translateY(-4px);
}

.btn::before{
    content:'';
    position:absolute;
    top:0;
    left:-120%;
    width:100%;
    height:100%;
    background:linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.20),
        transparent
    );
    transition:0.8s;
}

.btn:hover::before{
    left:120%;
}

/* =========================================================
   CARDS
========================================================= */

.card{
    position:relative;
    background:var(--bg-card);
    border:1px solid rgba(255,255,255,0.06);
    border-radius:24px;
    padding:2rem;
    overflow:hidden;
    transition:var(--transition-medium);
    backdrop-filter:blur(14px);
}

.card:hover{
    transform:translateY(-10px);
    border-color:rgba(255,107,0,0.30);
    box-shadow:
        0 20px 50px rgba(0,0,0,0.35),
        0 0 30px rgba(255,107,0,0.10);
}

.card::before{
    content:'';
    position:absolute;
    inset:0;
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.03),
            transparent
        );
    pointer-events:none;
}

.card::after{
    content:'';
    position:absolute;
    left:0;
    bottom:0;
    width:100%;
    height:2px;
    background:
        linear-gradient(
            90deg,
            transparent,
            #ff6b00,
            transparent
        );
    opacity:0;
    transition:0.4s;
}

.card:hover::after{
    opacity:1;
}

/* =========================================================
   ICON BOX
========================================================= */

.icon-box{
    width:75px;
    height:75px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:22px;
    background:
        linear-gradient(
            145deg,
            rgba(255,107,0,0.15),
            rgba(255,107,0,0.05)
        );
    border:1px solid rgba(255,107,0,0.20);
    margin-bottom:1.5rem;
    position:relative;
}

.icon-box::before{
    content:'';
    position:absolute;
    inset:-1px;
    border-radius:inherit;
    background:
        linear-gradient(
            145deg,
            rgba(255,107,0,0.45),
            transparent
        );
    opacity:0;
    transition:0.4s;
}

.card:hover .icon-box::before{
    opacity:1;
}

.icon-box i{
    font-size:2rem;
    color:var(--ssp-primary);
}

/* =========================================================
   TITLES
========================================================= */

.title-lg{
    font-size:clamp(2.5rem, 6vw, 5rem);
    font-weight:var(--fw-black);
    line-height:1.05;
}

.title-md{
    font-size:clamp(1.5rem, 4vw, 2.8rem);
    font-weight:var(--fw-bold);
}

.title-sm{
    font-size:1.2rem;
    font-weight:var(--fw-semibold);
}

/* =========================================================
   TEXTS
========================================================= */

.text-light{
    color:var(--ssp-light);
}

.text-gray{
    color:var(--ssp-gray-soft);
}

.text-orange{
    color:var(--ssp-primary);
}

/* =========================================================
   BADGES
========================================================= */

.badge{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:10px 18px;
    border-radius:50px;
    background:rgba(255,107,0,0.10);
    border:1px solid rgba(255,107,0,0.18);
    color:var(--ssp-primary);
    font-size:var(--fs-sm);
    font-weight:var(--fw-semibold);
}

/* =========================================================
   DIVIDERS
========================================================= */

.divider{
    width:100%;
    height:1px;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,0.12),
            transparent
        );
}

/* =========================================================
   GRID SYSTEM
========================================================= */

.grid{
    display:grid;
    gap:2rem;
}

.grid-2{
    grid-template-columns:repeat(2,1fr);
}

.grid-3{
    grid-template-columns:repeat(3,1fr);
}

.grid-4{
    grid-template-columns:repeat(4,1fr);
}

/* =========================================================
   HOVER GLOW
========================================================= */

.hover-glow{
    position:relative;
}

.hover-glow::before{
    content:'';
    position:absolute;
    inset:0;
    border-radius:inherit;
    background:
        radial-gradient(
            circle at center,
            rgba(255,107,0,0.18),
            transparent 70%
        );
    opacity:0;
    transition:0.4s;
    z-index:-1;
}

.hover-glow:hover::before{
    opacity:1;
}

/* =========================================================
   IMAGE EFFECTS
========================================================= */

.image-cover{
    overflow:hidden;
    border-radius:24px;
    position:relative;
}

.image-cover img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:1s ease;
}

.image-cover:hover img{
    transform:scale(1.08);
}

/* =========================================================
   OVERLAY
========================================================= */

.overlay-dark{
    position:absolute;
    inset:0;
    background:
        linear-gradient(
            180deg,
            rgba(5,8,22,0.15),
            rgba(5,8,22,0.88)
        );
}

/* =========================================================
   TAGS
========================================================= */

.tags{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.tag{
    padding:8px 14px;
    border-radius:30px;
    background:rgba(255,255,255,0.04);
    border:1px solid rgba(255,255,255,0.06);
    font-size:0.85rem;
    color:var(--ssp-gray-soft);
}

/* =========================================================
   TECH LINE
========================================================= */

.tech-line{
    position:relative;
}

.tech-line::after{
    content:'';
    position:absolute;
    left:0;
    bottom:-10px;
    width:120px;
    height:2px;
    background:
        linear-gradient(
            90deg,
            #ff6b00,
            transparent
        );
}

/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes glowPulse{

    0%{
        box-shadow:
            0 0 0 rgba(255,107,0,0.0);
    }

    50%{
        box-shadow:
            0 0 30px rgba(255,107,0,0.18);
    }

    100%{
        box-shadow:
            0 0 0 rgba(255,107,0,0.0);
    }

}

@keyframes floatY{

    0%{
        transform:translateY(0);
    }

    50%{
        transform:translateY(-10px);
    }

    100%{
        transform:translateY(0);
    }

}

@keyframes rotateSlow{

    from{
        transform:rotate(0deg);
    }

    to{
        transform:rotate(360deg);
    }

}

@keyframes fadeUp{

    from{
        opacity:0;
        transform:translateY(40px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}

/* =========================================================
   UTILITY CLASSES
========================================================= */

.text-center{
    text-align:center;
}

.mt-1{
    margin-top:1rem;
}

.mt-2{
    margin-top:2rem;
}

.mt-3{
    margin-top:3rem;
}

.mb-1{
    margin-bottom:1rem;
}

.mb-2{
    margin-bottom:2rem;
}

.mb-3{
    margin-bottom:3rem;
}

.py-section{
    padding:var(--space-4xl) 0;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media(max-width:1200px){

    .grid-4{
        grid-template-columns:repeat(3,1fr);
    }

}

@media(max-width:992px){

    .grid-4,
    .grid-3{
        grid-template-columns:repeat(2,1fr);
    }

    .grid-2{
        grid-template-columns:1fr;
    }

    section{
        padding:5rem 0;
    }

}

@media(max-width:768px){

    .grid-4,
    .grid-3,
    .grid-2{
        grid-template-columns:1fr;
    }

    .section-title{
        font-size:2.3rem;
    }

    .btn{
        width:100%;
    }

    .card{
        padding:1.5rem;
    }

}

@media(max-width:576px){

    body::after{
        background-size:50px 50px;
    }

    .section-title{
        font-size:2rem;
    }

    .section-description{
        font-size:1rem;
    }

}