/* ==========================================================================
   RESET & VARIÁVEIS CYBERPUNK
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-principal: #060608;     /* Preto puro/tecnológico */
    --bg-card: #0d0d12;          /* Cinza escuro para destacar o card */
    --cyan-neon: #00f0ff;        /* Azul Cyan */
    --red-neon: #ff0044;         /* Vermelho Neon */
    --texto-puro: #ffffff;
    --texto-mutado: #71717a;
}

body {
    background-color: var(--bg-principal);
    color: var(--texto-puro);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
}

/* ==========================================================================
   BANNER SLIDER (Mantido e Otimizado)
   ========================================================================== */
.tela-base-aprees {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin-top: 20px;
    border-bottom: 2px solid var(--cyan-neon);
    box-shadow: 0px 4px 20px rgba(0, 240, 255, 0.15);
}

.slide-con {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slid-compac {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--texto-puro);
    text-shadow: 0px 0px 10px var(--cyan-neon);
    border: 1px solid var(--cyan-neon);
    padding: 12px 18px;
    cursor: pointer;
    z-index: 100;
    font-size: 35px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.btn:hover {
    text-shadow: 0px 0px 15px var(--red-neon);
    color: var(--red-neon);
    border-color: var(--red-neon);
}

.btn.left { left: 20px; }
.btn.right { right: 20px; }

.pontinhos {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 100;
}

.pontinho {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
}

.pontinho.ativo {
    background-color: var(--cyan-neon);
    box-shadow: 0 0 10px var(--cyan-neon);
}

/* ==========================================================================
   VITRINE DE SITES (GRID ADAPTADO PARA FORMATO RETRATO)
   ========================================================================== */
.cother_vitrine {
    width: 100%;
    max-width: 1400px;
    margin: 50px auto;
    padding: 0 20px;
    display: grid;
    /* Define largura mínima ideal para layouts verticais (retratos) */
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 35px; /* Espaçamento elegante entre os designs */
}

/* Card Vertical High-Tech */
.card {
    background-color: var(--bg-card);
    border: 1px solid #1f1f24;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--red-neon);
    /* Efeito Glow tecnológico unindo as duas cores da empresa */
    box-shadow: 0px 12px 30px rgba(255, 0, 68, 0.25);
}

/* Container da Foto - Proporção Retrato (Vertical) Protetora */
.card > .foto_card {
    width: 100%;
    /* Altura maior (400px) para exibir o design vertical de forma explícita */
    height: 380px; 
    position: relative;
    overflow: hidden;
    background-color: #020203;
}

.foto_card > img {
    width: 100%;
    height: 100%;
    /* 'contain' garante que NENHUMA parte do seu design vertical seja cortada. 
       Se preferir preenchimento total mantendo proporções, use 'cover'. */
    object-fit: cover; 
    object-position: top center;
    transition: transform 0.6s ease;
}

.card:hover .foto_card > img {
    transform: scale(1.03);
}

/* Botão Ver Detalhes (Estilo Scanner de Interface) */
.ampliar {
    position: absolute;
    bottom: -60px;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(90deg, rgba(255,0,68,0.9), rgba(150,0,40,0.9));
    backdrop-filter: blur(4px);
    color: var(--texto-puro);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 2px;
    text-align: center;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 5;
}

.card:hover .ampliar {
    bottom: 0;
}

.ampliar:hover {
    background: linear-gradient(90deg, var(--cyan-neon), #00a2b0);
    color: #000;
}

/* Título do Card */
.card > h3 {
    color: var(--texto-puro);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 18px 20px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.4);
    border-top: 1px solid #181820;
}

/* ==========================================================================
   OTIMIZAÇÃO PARA DISPOSITIVOS MÓVEIS (MOBILE)
   ========================================================================== */
/* ==========================================================================
   OTIMIZAÇÃO PARA DISPOSITIVOS MÓVEIS (MOBILE)
   ========================================================================== */
@media (max-width: 768px) {
    .tela-base-aprees {
        height: 220px;
    }

    .btn {
        font-size: 24px;
        padding: 6px 12px;
    }

    .cother_vitrine {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
        padding: 0 20px;
    }

    .card > .foto_card {
        height: 350px; 
    }

    /* CORREÇÃO DO BOTÃO NO MOBILE */
    .ampliar {
        position: absolute;
        bottom: 54px; /* Fixa o botão exatamente acima do título (h3) */
        left: 0;
        height: 45px;
        background: rgba(255, 0, 68, 0.85); /* Mais opaco para dar leitura no celular */
        color: var(--texto-puro);
        border-top: 1px solid rgba(255, 0, 68, 0.5);
        backdrop-filter: blur(4px);
    }
    
    /* Mantém o h3 visível e ajusta o espaçamento por causa do botão absoluto */
    .card > h3 {
        padding: 18px 20px;
        position: relative;
        z-index: 6; /* Garante que o título fique por cima se necessário */
    }

    /* Feedback visual rápido ao tocar no card no celular */
    .card:active .ampliar {
        background: var(--cyan-neon);
        color: #000;
    }
}