/* --- VARIABLES: TECH PALETTE (Skyfend Based) --- */
:root {
    --bg-main: #0A0A0A;
    --bg-panel: #1F1F1F;
    --text-main: #FFFFFF;
    --text-muted: #B0B0B0;
    --accent-blue: #00C2FF; /* Cyber Blue */
    --accent-red: #FF3B30;   /* Warning/Action */
    --accent-yellow: #FFCC00;
    --font-main: clamp(1rem, 1.1rem, 2rem);
    --sidebar-width: clamp(200px, 4vw +1rem, 600px);
    --width-img: clamp(100px, 100% , 700px);
    --font-p-ul-li-a:clamp(1rem, 3.5vw, 3rem);
    --font-icon:clamp(1.7rem,  4vw, 2.5rem);
    --accent-color: #00ff41;
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* --- LAYOUT --- */
.main__conten { /* Matches your HTML class typo */
    display: flex;
    min-height: 100vh;
}
.products__wraper{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;    
    container: product-item/ inline-size;
}

/* --- SIDEBAR --- */
.aside__contain {
    width: 250px;
    background-color: var(--bg-panel);
    border-right: 1px solid #333;
    flex-shrink: 0;
    z-index: 20;
    height: 100%;
}
.sidebar {
    padding: 20px;
    position: fixed;
    top: 0;
    z-index: 3;
    height: 100dvh;
    background-image: linear-gradient(to left,#000f,#0009, #0007, #000f),url(../imagenes/imagenes-index/temporales-IA/rv2.jpg);
    background-size: cover;
    
}

/* Checkbox hack hiding */
.open__menu input { display: none; }
.open__menu label { color: var(--text-main); cursor: pointer; display: none;}

.sidebar__img img {
    width: 100%;
    max-width: 150px;
    display: block;
    margin: 0 auto 30px;
    border-radius: 8px;
    border: 1px solid var(--accent-blue); /* Tech border */
}

.ul__aside___nav {
    list-style: none;
}

.aside__item {
    display: flex;
    align-items: center;
    padding: 15px 10px;
    color: var(--text-muted);
    border-radius: 5px;
    z-index: 10;
}

.aside__item span {
    margin-right: 10px;
    color: var(--accent-blue);
}

.aside__item:hover {
    background-color: rgba(0, 194, 255, 0.1);
    color: var(--text-main);
}
.ul__aside___nav a{
    text-decoration: none;
    margin-left: 5px;
    color: var(--text-main);
    font-size: var(--font-main);
    width: var(--sidebar-width);
    padding-left: 20px;
}

/* --- MAIN CONTENT --- */
.products__content {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-template-rows: repeat(auto-fill, minmax(200px, 1fr));
    gap: 40px;
    z-index: 5;
}
.header__products {
    display: inline-block;
    width: 100%;
}

.header__products h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.header__products p {
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
    width: 100%;
    font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-weight: 300;
    padding: 0 40px;
    text-align: justify;
    writing-mode: balance;
    font-size: clamp(1rem, 1.5rem, 3rem);
}

/* Product Cards */
.product__item {
    background-color: var(--bg-panel);
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid var(--accent-blue);
    border-radius: 4px;
    transition: transform 0.2s ease;
    height: 300px;
    
}

.product__item:hover {
    transform: translateX(10px);
    border-left-color: var(--accent-yellow);
    background-color: #0a0a0a;
    border-bottom: 3px solid var(--accent-yellow);
}

.product__item a {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-main);
    display: block;
}


.--blindaje, .--aeronautica, .--servicios, .--asesoria, .--dotaciones, .--alimentos{
    transition: .3s ;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding: 0;
}
.items__products__container{
    height: 88%;
    width: 100%;
}
.items__products__container img{
    height: 100%;
    border-radius: 0 8px 0px 0 ;
    width: 100%;
}
.product__item span{
    color: #fff;
    font-size: clamp(2vw, 2rem, 7vw);
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
    background-color: #000;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}




/* --- FOOTER --- */
.footer {
    background-color: #0A0A0A;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 130px;
    width: 100%;
    padding-left: 250px;
    
    }
    .footer a{
        text-decoration: none;
        color: var(--text-main);
        font-size: clamp(2vw, 18px, 4vw);
        z-index: -1;
    }
    .footer__item__logo{
        width: clamp(10%, 15%, 17% );
        height: 100%;
    }
    .footer img{
        width: 100%;
        height: 100%;
    }
    .footer a:hover{
        color: var(--accent-blue);
    }

/* Responsive (Mobile) */
@media (max-width: 768px) {
    .main__conten { flex-direction: column;
    height: 200dvh;}
    .products__wraper{
        position: relative;
        top: 250px;
    }
    .sidebar{
        padding: 0;
        padding-left: 5px;
        height: auto;
    }
    .aside__contain { width: 100%;
        height: clamp(183px, 25dvh, 40vh);
        display: flex;
        justify-content: center;
        position: fixed;
        top: 0; 
        z-index: 100; }
    .ul__aside___nav { display: flex; flex-wrap: wrap; justify-content: center;align-items: center;margin: 0; }
    .ul__aside___nav a{ font-size: 13px;}
    .footer{
        display: none;
    }
}
