/* ================= HERO ESPECÍFICO ================= */
.category-hero {
    position: relative;
    padding: 160px 0 100px 0;
    background: radial-gradient(circle at 70% 50%, #0a192f 0%, #020c1b 100%);
    overflow: hidden;
}

/* Efeito de Partículas no Fundo */
.cat-bg-effect {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(rgba(242, 100, 34, 0.524) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
    z-index: 0;
}

.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative; z-index: 1;
}

.tech-tag {
    color: var(--color-accent);
    background: rgba(242, 100, 34, 0.227);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.specs-row {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.spec-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-primary);
    font-size: 0.9rem;
    border: 1px solid rgba(242, 101, 34, 0.35);
    padding: 8px 15px;
    border-radius: 20px;
}
.spec-badge svg { width: 20px; height: 20px; color: var(--color-accent); }

/* Schematic Radio (Desenho CSS Puro) */
.hero-schematic {
    display: flex;
    justify-content: center;
}

.schematic-radio {
    width: 200px; height: 320px;
    border: 2px solid var(--color-accent);
    border-radius: 20px;
    position: relative;
    box-shadow: 0 0 20px rgba(242, 101, 34, 0.35);
    background: rgba(10, 25, 47, 0.8);
}
/* Antena */
.schematic-radio::before {
    content: ''; position: absolute;
    top: -40px; right: 20px;
    width: 10px; height: 40px;
    background: var(--color-accent);
}
.screen-glow {
    width: 80%; height: 80px;
    background: rgba(242, 101, 34, 0.35);
    margin: 30px auto;
    border: 1px dashed var(--color-accent);
    animation: blink-screen 3s infinite;
}
.btn-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 10px; width: 80%; margin: 20px auto;
}
.btn-grid span {
    height: 10px; background: rgba(255,255,255,0.1);
    border-radius: 2px;
}

@keyframes blink-screen { 0% { opacity: 0.5; } 50% { opacity: 1; } 100% { opacity: 0.5; } }

/* ================= COMPARISON SECTION ================= */
.comparison-section {
    padding: 80px 0;
    background: var(--color-bg-secondary);
}

.compare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.compare-col {
    background: var(--color-bg-main);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s;
    position: relative;
}

.compare-col.featured {
    border-color: var(--color-accent);
    box-shadow: 0 0 30px rgba(242, 101, 34, 0.35);
    transform: scale(1.05);
    z-index: 2;
}

.featured-tag {
    position: absolute; top: -12px; left: 50%;
    transform: translateX(-50%);
    background: var(--color-accent);
    color: var(--color-bg-main);
    font-size: 0.75rem; font-weight: 700;
    padding: 4px 12px; border-radius: 12px;
}

.col-header h3 { color: #fff; font-size: 1.4rem; margin-bottom: 5px; }
.col-sub { color: var(--color-text-secondary); font-size: 0.9rem; }

.col-features { margin: 25px 0; text-align: left; }
.col-features li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: var(--color-text-primary);
    display: flex; align-items: center; gap: 10px;
    font-size: 0.9rem;
}

.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: #555; }
.dot.green { background: #00ff00; box-shadow: 0 0 5px #00ff00; }
.dot.blue { background: #00aaff; box-shadow: 0 0 5px #00aaff; }
.dot.yellow { background: #ffaa00; }

.btn-link { color: var(--color-accent); text-decoration: underline; font-size: 0.9rem; }
.btn-sm { padding: 8px 20px; font-size: 0.85rem; width: 100%; text-align: center; }

/* ================= GRID DE PRODUTOS ================= */
.products-showcase { padding: 80px 0; }
.grid-title { font-size: 2rem; margin-bottom: 40px; color: #fff; border-left: 4px solid var(--color-accent); padding-left: 15px; }

.grid-3-col {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.tech-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: 0.3s;
}
.tech-item:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--color-accent);
    transform: translateY(-5px);
}

.tech-thumb {
    height: 180px; display: flex; justify-content: center; align-items: center;
    margin-bottom: 15px;
}
.tech-thumb img { max-height: 100%; transition: 0.3s; }
.tech-item:hover .tech-thumb img { transform: scale(1.1); }

.tech-details h4 { color: #fff; font-size: 1.1rem; }
.tech-details p { color: #8892b0; font-size: 0.85rem; margin-bottom: 15px; }
.btn-view { color: var(--color-accent); font-size: 0.8rem; font-weight: 700; }

/* ================= MODAL STYLE ================= */
.modal-backdrop {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: 0.3s; z-index: 9999;
}
.modal-backdrop.active { opacity: 1; visibility: visible; }

.modal-window {
    background: #0a192f;
    width: 90%; max-width: 900px;
    border-radius: 10px;
    border: 1px solid var(--color-accent);
    position: relative;
    padding: 40px;
}
.modal-close {
    position: absolute; top: 15px; right: 20px;
    background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer;
}
.modal-body-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;}
.modal-left img { max-height: 300px; width: auto; margin: 0 auto; display: block; }
.modal-cat { color: var(--color-accent); font-size: 0.8rem; text-transform: uppercase; }
.modal-features-list { list-style: none; margin: 20px 0; color: #ccd6f6; }
.full-width { display: block; width: 100%; text-align: center; }


/* ============================================================
   RESPONSIVIDADE AVANÇADA: RÁDIOS PORTÁTEIS
   (Menu, Hero, Comparativo e Modal)
   ============================================================ */

/* 1. CONFIGURAÇÃO MENU HAMBURGUER (Igual às outras páginas) */
.mobile-menu-trigger { display: none; }

@media (max-width: 1024px) {

    /* --- CABEÇALHO MOBILE --- */
    .header-cta { display: none !important; }
    
    .mobile-menu-trigger {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 28px; height: 20px;
        cursor: pointer; z-index: 2000;
        margin-left: auto;
    }

    .mobile-menu-trigger .bar {
        width: 100%; height: 2px; background: var(--color-accent); transition: 0.3s;
    }

    /* Animação do ícone */
    .mobile-menu-trigger.active .bar:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .mobile-menu-trigger.active .bar:nth-child(2) { opacity: 0; }
    .mobile-menu-trigger.active .bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

    /* MENU GAVETA */
    .main-nav {
        position: fixed; top: 0; right: -100%;
        width: 80%; height: 100vh;
        background: #020610;
        border-left: 1px solid var(--color-accent);
        padding: 90px 20px;
        transition: right 0.3s ease;
        display: flex !important; flex-direction: column;
        z-index: 1500;
        box-shadow: -10px 0 50px rgba(0,0,0,0.9);
    }
    .main-nav.menu-open { right: 0; }
    
    .nav-list { flex-direction: column; width: 100%; gap: 0; }
    .nav-link { 
        font-size: 1.1rem; padding: 15px 0; 
        border-bottom: 1px solid rgba(255,255,255,0.05); width: 100%; display: block;
    }
    .dropdown-menu { display: none; padding-left: 20px; border: none; background: transparent; }
    .dropdown-item.active-mobile .dropdown-menu { display: block; animation: fadeIn 0.3s; }

    
    /* --- HERO SECTION (.category-hero) --- */
    .category-hero {
        padding: 120px 0 60px 0 !important;
        height: auto !important;
        text-align: center !important;
    }

    .hero-split {
        grid-template-columns: 1fr !important; /* Coluna única */
        gap: 40px !important;
    }

    .hero-text h1 {
        font-size: 2.2rem !important; /* Título menor */
        line-height: 1.2 !important;
    }

    .specs-row {
        justify-content: center !important; /* Centraliza badges */
        flex-wrap: wrap !important;
    }

    /* Esconde o rádio esquemático no mobile para limpar a tela (opcional) */
    /* Se quiser manter, use scale(0.8) */
    .hero-schematic {
        transform: scale(0.8);
        margin-top: -20px;
    }


    /* --- SEÇÃO DE COMPARAÇÃO (.comparison-section) --- */
    .compare-grid {
        grid-template-columns: 1fr !important; /* Cards um embaixo do outro */
        gap: 40px !important;
    }

    .compare-col {
        /* Remove o efeito de escala do card do meio no mobile */
        transform: none !important; 
        margin: 0 !important;
    }
    
    /* Ajuste visual do card destacado */
    .compare-col.featured {
        border: 2px solid var(--color-accent) !important;
        box-shadow: 0 0 15px rgba(242, 101, 34, 0.2) !important;
    }


    /* --- GRID DE PRODUTOS --- */
    .grid-3-col {
        grid-template-columns: 1fr !important; /* 1 Coluna vertical */
        gap: 20px !important;
    }
    
    .tech-item {
        display: flex !important;
        align-items: center !important;
        padding: 15px !important;
    }
    
    .tech-thumb {
        height: 120px !important; /* Imagem menor ao lado */
        width: 100px !important;
        margin-bottom: 0 !important;
        margin-right: 15px !important;
    }
    
    .tech-details { text-align: left !important; }
    .tech-details h4 { font-size: 1rem !important; }


    /* --- MODAL (POP-UP) AJUSTADO --- */
    .modal-window {
        width: 90% !important;
        max-width: 400px !important;
        height: auto !important;
        max-height: 85vh !important;
        overflow-y: auto !important;
        padding: 25px !important;
        border-radius: 12px !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .modal-body-grid {
        grid-template-columns: 1fr !important; /* Empilha imagem e texto */
        gap: 20px !important;
    }

    .modal-left img {
        max-height: 180px !important; /* Imagem menor */
    }

    .modal-right { text-align: left !important; }

    /* TÍTULO DO MODAL - REDUZIDO PARA 320px */
    #modal-title {
        font-size: 1.5rem !important;
        margin: 10px 0 !important;
    }

    #modal-desc {
        font-size: 0.6rem !important;
        line-height: 1.5 !important;
        margin-bottom: 20px !important;
    }

    .modal-close {
        top: 10px !important;
        right: 10px !important;
        background: rgba(255,255,255,0.1) !important;
        width: 35px; height: 35px;
        border-radius: 50%;
        font-size: 1.5rem !important;
        display: flex; justify-content: center; align-items: center;
    }
}

.footer-content{font-size: 0.8rem;}

/* --- AJUSTE FINO PARA TELAS 320px --- */
@media (max-width: 360px) {
    .hero-text h1 { font-size: 1.8rem !important; }
    .tech-thumb { width: 80px !important; height: 100px !important; }
    
    /* Modal ainda mais compacto */
    #modal-title { font-size: 1.3rem !important; }
    .modal-features-list li { font-size: 0.8rem !important; }
}

.footer-content{font-size: 0.8rem;}

/* Animação necessária */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}