/* ============================================================
   1. CONFIGURAÇÕES GERAIS E RESET
============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;700;900&display=swap');

body { 
    background-color: #020617; 
    color: white;             
    font-family: 'Inter', sans-serif; 
    overflow-x: hidden;        
}


/* Forçar centralização total dentro do modal mobile */
@media (max-width: 640px) {
    /* Garante que o container pai não tenha padding que empurre o login */
    .modal-content, #modalContent {
        padding: 10px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    /* Ajusta o card de vidro para não ficar colado na borda mas centralizado */
    .glass {
        width: 100% !important;
        margin: 0 auto !important;
        border-radius: 1.5rem !important; /* Arredondamento menor para mobile */
    }

    /* Ajusta os textos que podem estar causando scroll lateral */
    h2 { font-size: 1.5rem !important; }
    p { font-size: 11px !important; }
}

/* ============================================================
   2. HERO SLIDER (ESTRUTURA E IMAGENS)
============================================================ */
.hero-slider-wrapper { 
    position: absolute; 
    inset: 0; 
    z-index: 0; 
    overflow: hidden; 
}

.hero-item { 
    position: absolute; 
    inset: 0; 
    opacity: 0; 
    transition: opacity 1.2s ease-in-out; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.hero-item.active { 
    opacity: 1; 
    z-index: 10; 
}

.hero-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transform: scale(1.1); 
    transition: transform 6s linear; 
}

.hero-item.active img { 
    transform: scale(1); 
}

/* 2. HERO SLIDER - ESTRUTURA DE CAMADAS */
.hero-item { 
    position: absolute; 
    inset: 0; 
    opacity: 0; 
    transition: opacity 1.2s ease-in-out; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    overflow: hidden;
}

/* Criamos um container só para a imagem e o overlay */
.hero-image-container {
    position: absolute;
    inset: 0;
    z-index: 1; /* Camada de fundo */
}

.hero-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transform: scale(1.1); 
    transition: transform 6s linear; 
}

/* Container das Imagens e Overlay */
.hero-image-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* O Overlay agora só escurece a imagem */
.hero-overlay-curtain {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(2,6,23,0.3) 0%, rgba(2,6,23,0.7) 100%);
    z-index: 2;
}

/* Texto em Camada Superior (Z-INDEX ALTO) */
.hero-caption {
    position: relative;
    z-index: 20; /* Fica acima do overlay sempre */
    max-width: 900px;
    padding: 0 20px;
    pointer-events: none;
}

.caption-mini {
    display: block;
    color: #FFD700 !important; /* Amarelo Ouro Vivo */
    font-weight: 900;
    font-size: 13px;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.caption-title {
    color: #FFFFFF !important; /* Branco Puro */
    font-size: clamp(2.2rem, 8vw, 4.5rem);
    font-weight: 900;
    font-style: italic;
    line-height: 1.1;
    text-transform: uppercase;
    /* Contorno reduzido e elegante */
    text-shadow: 
        1px 1px 0px rgba(0,0,0,0.9), 
        -0.5px -0.5px 0px rgba(0,0,0,0.9),
        0 10px 20px rgba(0,0,0,0.4);
}

.caption-desc {
    color: #FFFFFF !important;
    font-size: 17px;
    font-weight: 600;
    max-width: 600px;
    margin: 15px auto 0;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.9);
}

/* TORNAR MOBILE */
@media (max-width: 768px) {
    .caption-title { font-size: 2rem; }
    .caption-desc { font-size: 14px; }
    .hero-caption { margin-bottom: 40px; }
}

/* Camada de texto que permite clique no fundo */
.relative.z-20.px-6 { pointer-events: none; }

header .relative.z-20.px-6 a, 
header .relative.z-20.px-6 button { pointer-events: auto; }


/* TORNAR MOBILE */
@media (max-width: 768px) {
    .hero-caption { width: 95%; bottom: 18%; }
    .caption-title { 
        font-size: 2.1rem; 
        text-shadow: 1px 1px 0px rgba(0,0,0,0.9); /* Ainda menor no mobile */
    }
    .caption-desc { font-size: 14px; padding: 0 10px; }
}
/* Ativação */
.hero-item.active .caption-mini,
.hero-item.active .caption-title,
.hero-item.active .caption-desc {
    opacity: 1;
    transform: translateY(0);
}

/* TORNAR MOBILE */
@media (max-width: 768px) {
    .hero-caption {
        bottom: 15%; /* Sobe um pouco o texto no mobile */
    }
    .caption-mini {
        font-size: 10px;
        letter-spacing: 2px;
    }
    .caption-title {
        font-size: 2rem;
    }
    .caption-desc {
        font-size: 13px;
        line-height: 1.4;
    }
}

/* ============================================================
   3. NAVEGAÇÃO DO HERO (SETAS DESIGN PREMIUM)
============================================================ */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 45;
    width: 65px; 
    height: 65px;
    background: #1a2e4c; 
    border: 2px solid #ffffff; 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
    outline: 2px solid rgba(255,255,255,0.3); 
    outline-offset: 3px;
    pointer-events: auto !important; 
}

.hero-nav:hover {
    background: #2563eb; 
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.hero-prev { left: 40px; }
.hero-next { right: 40px; }

.seta-container { 
    border: 2px solid rgba(59, 130, 246, 0.3); 
    padding: 10px; 
    border-radius: 50%; 
    position: relative; 
    display: inline-block; 
}

/* ============================================================
   4. COMPONENTES VISUAIS (GLASS & CARDS)
============================================================ */
.glass { 
    background: rgba(15, 23, 42, 0.7); 
    backdrop-filter: blur(12px); 
    border: 1px solid rgba(255,255,255,0.08); 
}

.glass-header { 
    background: rgba(2, 6, 23, 0.5); 
    backdrop-filter: blur(20px); 
    transition: all 0.4s ease; 
}

.glass-header.scrolled { 
    background: rgba(2, 6, 23, 0.95); 
    border-bottom: 1px solid rgba(59, 130, 246, 0.2); 
    padding: 1rem 0; 
}

/* Background Animado Dinâmico */
.slide-bg { 
    background: linear-gradient(45deg, #020617, #0f172a, #1e293b); 
    background-size: 200% 1500%; 
    animation: gradientBG 15s ease infinite; 
}

@keyframes gradientBG { 
    0% {background-position: 0% 50%;} 
    50% {background-position: 100% 50%;} 
    100% {background-position: 0% 50%;} 
}

/* ============================================================
   5. CARDS DE PRODUTO (REFINADO)
============================================================ */
.cards-overlap-container {
    position: relative;
    margin-top: -100px;
    padding-bottom: 80px;
    z-index: 40;
}

.product-card {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.95)) !important;
    border-radius: 2rem !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.product-image-container {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: rgba(59, 130, 246, 0.5) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.product-card:hover .product-image-container img {
    transform: scale(1.1);
}

/* Shine Effect */
.shine-effect {
    position: absolute;
    top: 0; left: -150%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: skewX(-25deg);
    z-index: 20;
    transition: 0.7s;
}

.product-card:hover .shine-effect {
    left: 150%;
}

.product-title-vrotec {
    font-weight: 900;
    font-style: italic;
    color: #f8fafc;
    font-size: 13px;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    height: 32px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.link-pill-container {
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ============================================================
   6. INTERFACE (SCROLL & MENU MOBILE)
============================================================ */
#scroll-circle { 
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    width: 60px; height: 60px; 
    z-index: 99; 
    cursor: pointer; 
    opacity: 0; 
    transition: 0.5s; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: #0f172a; 
    border-radius: 50%; 
}

#scroll-circle.show { opacity: 1; }
#progress-svg {
    transform: rotate(-90deg); /* Faz o progresso começar do topo */
}

#progress-circle { 
stroke: #3b82f6;
    stroke-width: 4;
    stroke-linecap: round; /* Deixa a ponta da barra arredondada (mais elegante) */
    stroke-dasharray: 157; 
    stroke-dashoffset: 157; /* Começa vazia */
    transition: stroke-dashoffset 0.1s linear;
}
/* TORNAR MOBILE: Ajuste de tamanho para o dedo não cobrir a barra toda */
@media (max-width: 768px) {
    #scroll-circle {
        width: 50px !important;
        height: 50px !important;
        bottom: 20px !important;
        right: 20px !important;
    }
    #progress-svg {
        width: 50px;
        height: 50px;
    }
}
/* Menu Mobile Overlay */
#mobile-menu { 
    position: fixed; 
    inset: 0; 
    background: rgba(2, 6, 23, 0.98); 
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px);
    z-index: 200; 
    display: none; 
    flex-direction: column; 
    padding: 40px;
    border-left: 1px solid rgba(59, 130, 246, 0.2);
}

#mobile-menu::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    z-index: -1;
}

.mobile-link {
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    font-style: italic;
    letter-spacing: -0.05em;
    color: #f8fafc;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(20px);
}

.mobile-link:hover {
    color: #3b82f6;
    padding-left: 10px;
}

.menu-opened .mobile-link {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================================
   7. MEDIA QUERIES (TORNAR MOBILE)
============================================================ */
@media (max-width: 1024px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    /* Header/Hero */
    .hero-nav { width: 50px; height: 50px; }
    .hero-prev { left: 15px; }
    .hero-next { right: 15px; }

    /* Navbar */
    #main-nav.scrolled {
        width: 95%;
        margin: 10px auto;
        border-radius: 2rem;
        padding: 0.75rem 1.5rem !important;
    }

    /* Cards Overlap */
    .cards-overlap-container { 
        margin-top: -60px !important; 
        padding: 0 15px 40px 15px; 
    }

    /* Product Card Mobile */
    .product-card { 
        margin-bottom: 20px; 
        border-radius: 1.5rem !important; 
    }

    .product-image-container { height: 220px; }

    .product-title-vrotec { 
        font-size: 11px; 
        margin-bottom: 1rem; 
    }

    .link-text { font-size: 9px !important; }
    
    .shine-effect { display: none; } /* Desativa shine no mobile para performance */
}

.custom-scroll::-webkit-scrollbar {
    width: 6px;
}
.custom-scroll::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.02);
}
.custom-scroll::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 10px;
}
/* Ajuste para o Modal Genérico */
#modal-body {
    max-height: 70vh; /* Ocupa 70% da altura da tela */
    overflow-y: auto;  /* Permite scroll se o texto for grande */
    padding-right: 15px;
}

/* TORNAR MOBILE */
@media (max-width: 768px) {
    #modal-legal > div {
        width: 95% !important; /* Quase largura total no celular */
        margin: 10px;
    }
    #modal-title {
        font-size: 1rem; /* Diminui o título no mobile */
    }
}

#modal-legal {
    z-index: 9999 !important; /* Garante que o modal esteja na frente de tudo */
}

.fechar-btn {
    pointer-events: auto !important; /* Força o botão a aceitar cliques */
    padding: 10px;
    font-size: 20px;
    color: #fff;
    transition: 0.3s;
}

.fechar-btn:hover {
    color: #ef4444; /* Fica vermelho ao passar o mouse */
    transform: scale(1.1);
}/* ============================================================
   1. CONFIGURAÇÕES GERAIS E RESET
============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;700;900&display=swap');

body { 
    background-color: #020617; 
    color: white;             
    font-family: 'Inter', sans-serif; 
    overflow-x: hidden;        
}

/* ============================================================
   2. HERO SLIDER (ESTRUTURA E IMAGENS)
============================================================ */
.hero-slider-wrapper { 
    position: absolute; 
    inset: 0; 
    z-index: 0; 
    overflow: hidden; 
}

.hero-item { 
    position: absolute; 
    inset: 0; 
    opacity: 0; 
    transition: opacity 1.2s ease-in-out; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.hero-item.active { 
    opacity: 1; 
    z-index: 10; 
}

.hero-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transform: scale(1.1); 
    transition: transform 6s linear; 
}

.hero-item.active img { 
    transform: scale(1); 
}

/* 2. HERO SLIDER - ESTRUTURA DE CAMADAS */
.hero-item { 
    position: absolute; 
    inset: 0; 
    opacity: 0; 
    transition: opacity 1.2s ease-in-out; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    overflow: hidden;
}

/* Criamos um container só para a imagem e o overlay */
.hero-image-container {
    position: absolute;
    inset: 0;
    z-index: 1; /* Camada de fundo */
}

.hero-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transform: scale(1.1); 
    transition: transform 6s linear; 
}

/* Container das Imagens e Overlay */
.hero-image-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* O Overlay agora só escurece a imagem */
.hero-overlay-curtain {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(2,6,23,0.3) 0%, rgba(2,6,23,0.7) 100%);
    z-index: 2;
}

/* Texto em Camada Superior (Z-INDEX ALTO) */
.hero-caption {
    position: relative;
    z-index: 20; /* Fica acima do overlay sempre */
    max-width: 900px;
    padding: 0 20px;
    pointer-events: none;
}

.caption-mini {
    display: block;
    color: #FFD700 !important; /* Amarelo Ouro Vivo */
    font-weight: 900;
    font-size: 13px;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.caption-title {
    color: #FFFFFF !important; /* Branco Puro */
    font-size: clamp(2.2rem, 8vw, 4.5rem);
    font-weight: 900;
    font-style: italic;
    line-height: 1.1;
    text-transform: uppercase;
    /* Contorno reduzido e elegante */
    text-shadow: 
        1px 1px 0px rgba(0,0,0,0.9), 
        -0.5px -0.5px 0px rgba(0,0,0,0.9),
        0 10px 20px rgba(0,0,0,0.4);
}

.caption-desc {
    color: #FFFFFF !important;
    font-size: 17px;
    font-weight: 600;
    max-width: 600px;
    margin: 15px auto 0;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.9);
}

/* TORNAR MOBILE */
@media (max-width: 768px) {
    .caption-title { font-size: 2rem; }
    .caption-desc { font-size: 14px; }
    .hero-caption { margin-bottom: 40px; }
}

/* Camada de texto que permite clique no fundo */
.relative.z-20.px-6 { pointer-events: none; }

header .relative.z-20.px-6 a, 
header .relative.z-20.px-6 button { pointer-events: auto; }


/* TORNAR MOBILE */
@media (max-width: 768px) {
    .hero-caption { width: 95%; bottom: 18%; }
    .caption-title { 
        font-size: 2.1rem; 
        text-shadow: 1px 1px 0px rgba(0,0,0,0.9); /* Ainda menor no mobile */
    }
    .caption-desc { font-size: 14px; padding: 0 10px; }
}
/* Ativação */
.hero-item.active .caption-mini,
.hero-item.active .caption-title,
.hero-item.active .caption-desc {
    opacity: 1;
    transform: translateY(0);
}

/* TORNAR MOBILE */
@media (max-width: 768px) {
    .hero-caption {
        bottom: 15%; /* Sobe um pouco o texto no mobile */
    }
    .caption-mini {
        font-size: 10px;
        letter-spacing: 2px;
    }
    .caption-title {
        font-size: 2rem;
    }
    .caption-desc {
        font-size: 13px;
        line-height: 1.4;
    }
}

/* ============================================================
   3. NAVEGAÇÃO DO HERO (SETAS DESIGN PREMIUM)
============================================================ */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 45;
    width: 65px; 
    height: 65px;
    background: #1a2e4c; 
    border: 2px solid #ffffff; 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
    outline: 2px solid rgba(255,255,255,0.3); 
    outline-offset: 3px;
    pointer-events: auto !important; 
}

.hero-nav:hover {
    background: #2563eb; 
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.hero-prev { left: 40px; }
.hero-next { right: 40px; }

.seta-container { 
    border: 2px solid rgba(59, 130, 246, 0.3); 
    padding: 10px; 
    border-radius: 50%; 
    position: relative; 
    display: inline-block; 
}

/* ============================================================
   4. COMPONENTES VISUAIS (GLASS & CARDS)
============================================================ */
.glass { 
    background: rgba(15, 23, 42, 0.7); 
    backdrop-filter: blur(12px); 
    border: 1px solid rgba(255,255,255,0.08); 
}

.glass-header { 
    background: rgba(2, 6, 23, 0.5); 
    backdrop-filter: blur(20px); 
    transition: all 0.4s ease; 
}

.glass-header.scrolled { 
    background: rgba(2, 6, 23, 0.95); 
    border-bottom: 1px solid rgba(59, 130, 246, 0.2); 
    padding: 1rem 0; 
}

/* Background Animado Dinâmico */
.slide-bg { 
    background: linear-gradient(45deg, #020617, #0f172a, #1e293b); 
    background-size: 200% 1500%; 
    animation: gradientBG 15s ease infinite; 
}

@keyframes gradientBG { 
    0% {background-position: 0% 50%;} 
    50% {background-position: 100% 50%;} 
    100% {background-position: 0% 50%;} 
}

/* ============================================================
   5. CARDS DE PRODUTO (REFINADO)
============================================================ */
.cards-overlap-container {
    position: relative;
    margin-top: -100px;
    padding-bottom: 80px;
    z-index: 40;
}

.product-card {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.95)) !important;
    border-radius: 2rem !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.product-image-container {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: rgba(59, 130, 246, 0.5) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.product-card:hover .product-image-container img {
    transform: scale(1.1);
}

/* Shine Effect */
.shine-effect {
    position: absolute;
    top: 0; left: -150%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: skewX(-25deg);
    z-index: 20;
    transition: 0.7s;
}

.product-card:hover .shine-effect {
    left: 150%;
}

.product-title-vrotec {
    font-weight: 900;
    font-style: italic;
    color: #f8fafc;
    font-size: 13px;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    height: 32px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.link-pill-container {
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ============================================================
   6. INTERFACE (SCROLL & MENU MOBILE)
============================================================ */
#scroll-circle { 
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    width: 60px; height: 60px; 
    z-index: 99; 
    cursor: pointer; 
    opacity: 0; 
    transition: 0.5s; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: #0f172a; 
    border-radius: 50%; 
}

#scroll-circle.show { opacity: 1; }
#progress-svg {
    transform: rotate(-90deg); /* Faz o progresso começar do topo */
}

#progress-circle { 
stroke: #3b82f6;
    stroke-width: 4;
    stroke-linecap: round; /* Deixa a ponta da barra arredondada (mais elegante) */
    stroke-dasharray: 157; 
    stroke-dashoffset: 157; /* Começa vazia */
    transition: stroke-dashoffset 0.1s linear;
}
/* TORNAR MOBILE: Ajuste de tamanho para o dedo não cobrir a barra toda */
@media (max-width: 768px) {
    #scroll-circle {
        width: 50px !important;
        height: 50px !important;
        bottom: 20px !important;
        right: 20px !important;
    }
    #progress-svg {
        width: 50px;
        height: 50px;
    }
}
/* Menu Mobile Overlay */
#mobile-menu { 
    position: fixed; 
    inset: 0; 
    background: rgba(2, 6, 23, 0.98); 
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px);
    z-index: 200; 
    display: none; 
    flex-direction: column; 
    padding: 40px;
    border-left: 1px solid rgba(59, 130, 246, 0.2);
}

#mobile-menu::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    z-index: -1;
}

.mobile-link {
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    font-style: italic;
    letter-spacing: -0.05em;
    color: #f8fafc;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(20px);
}

.mobile-link:hover {
    color: #3b82f6;
    padding-left: 10px;
}

.menu-opened .mobile-link {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================================
   7. MEDIA QUERIES (TORNAR MOBILE)
============================================================ */
@media (max-width: 1024px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    /* Header/Hero */
    .hero-nav { width: 50px; height: 50px; }
    .hero-prev { left: 15px; }
    .hero-next { right: 15px; }

    /* Navbar */
    #main-nav.scrolled {
        width: 95%;
        margin: 10px auto;
        border-radius: 2rem;
        padding: 0.75rem 1.5rem !important;
    }

    /* Cards Overlap */
    .cards-overlap-container { 
        margin-top: -60px !important; 
        padding: 0 15px 40px 15px; 
    }

    /* Product Card Mobile */
    .product-card { 
        margin-bottom: 20px; 
        border-radius: 1.5rem !important; 
    }

    .product-image-container { height: 220px; }

    .product-title-vrotec { 
        font-size: 11px; 
        margin-bottom: 1rem; 
    }

    .link-text { font-size: 9px !important; }
    
    .shine-effect { display: none; } /* Desativa shine no mobile para performance */
}

.custom-scroll::-webkit-scrollbar {
    width: 6px;
}
.custom-scroll::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.02);
}
.custom-scroll::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 10px;
}
/* Ajuste para o Modal Genérico */
#modal-body {
    max-height: 70vh; /* Ocupa 70% da altura da tela */
    overflow-y: auto;  /* Permite scroll se o texto for grande */
    padding-right: 15px;
}

/* TORNAR MOBILE */
@media (max-width: 768px) {
    #modal-legal > div {
        width: 95% !important; /* Quase largura total no celular */
        margin: 10px;
    }
    #modal-title {
        font-size: 1rem; /* Diminui o título no mobile */
    }
}

#modal-legal {
    z-index: 9999 !important; /* Garante que o modal esteja na frente de tudo */
}

.fechar-btn {
    pointer-events: auto !important; /* Força o botão a aceitar cliques */
    padding: 10px;
    font-size: 20px;
    color: #fff;
    transition: 0.3s;
}

.fechar-btn:hover {
    color: #ef4444; /* Fica vermelho ao passar o mouse */
    transform: scale(1.1);
}