/* Imagens das landing pages de segmento (erp-*.html).
   Largura e altura vao no <img> para o navegador reservar o espaco antes de
   baixar a imagem: sem isso o texto pula quando ela chega (CLS). */
.seg-hero {
    display: block;
    margin: 0 0 30px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(15, 23, 32, .16);
    aspect-ratio: 4 / 3;
    background: #e9eef3;
}
.seg-hero img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.seg-hero--tela { aspect-ratio: auto; background: #16233a; }
.seg-hero--tela img { height: auto; object-fit: contain; }

/* Telas reais do sistema, lado a lado, com legenda. */
.seg-telas figure { margin: 0 0 24px; }
.seg-telas .seg-tela {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e3e8ee;
    box-shadow: 0 6px 18px rgba(15, 23, 32, .08);
    background: #fff;
}
.seg-telas img { display: block; width: 100%; height: auto; }
.seg-telas figcaption { font-size: 14px; color: #5b6570; margin-top: 10px; line-height: 1.5; }
.seg-telas figcaption strong { color: #1c1c1c; display: block; font-size: 15px; }

@media (max-width: 991px) {
    .seg-hero { margin-top: 10px; }
}

/* Video do YouTube carregado so no clique: a capa e uma imagem leve; o player
   (~500 KB de script) entra quando a pessoa aperta o play. */
.seg-video {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #0f1720 center / cover no-repeat;
    box-shadow: 0 12px 30px rgba(15, 23, 32, .18);
}
.seg-video::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.35));
}
.seg-video .seg-video-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 76px;
    height: 54px;
    margin: -27px 0 0 -38px;
    border-radius: 14px;
    background: #e62117;
    box-shadow: 0 6px 18px rgba(0,0,0,.35);
    transition: transform .15s;
}
.seg-video .seg-video-play::after {
    content: "";
    position: absolute;
    left: 31px;
    top: 16px;
    border-style: solid;
    border-width: 11px 0 11px 19px;
    border-color: transparent transparent transparent #fff;
}
.seg-video:hover .seg-video-play { transform: scale(1.08); }
.seg-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.seg-video-legenda { font-size: 14px; color: #5b6570; margin-top: 10px; }
