:root {
    --primary-red: #ff0000;
    --dark-red: #cc0000;
    --bg-black: #0f0f0f;
    --pure-black: #000000;
    --card-bg: #111111;
    --text-light: #ffffff;
    --text-gray: #cccccc;
}

/* ================= ESTRUTURA GERAL (LOGICA HERO) ================= */
.models {
    position: relative;
    width: 100%;
    min-height: auto;
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* OVERLAY IGUAL AO HERO */
.models-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* WRAPPER PARA GARANTIR QUE O CONTEÚDO FIQUE ACIMA */
.models-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 25px;
}

/* ================= HEADER & TÍTULOS ================= */
.models-header {
    margin-bottom: 60px;
    text-align: center;
}

.models-header h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    color: var(--text-light);
}

.models-header h2::before,
.models-header h2::after {
    content: "";
    height: 1px;
    flex-grow: 1;
    max-width: 200px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.models-header p {
    color: var(--text-gray);
    max-width: 750px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ================= GRID DE CARDS ================= */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.model-card {
    background: var(--pure-black);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    border: 1px solid #222;
    transition: all 0.3s ease;
    height: 100%;
}

.model-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 0, 0, 0.3);
}

.card-image-wrapper {
    height: 240px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid #333;
}

.card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    text-align: left;
}

.card-title {
    font-size: 1.45rem;
    margin-bottom: 12px;
    font-weight: 700;
    text-transform: uppercase;
    background: linear-gradient(to right, #ffffff, #888888);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-desc-1 {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.5;
}

.demo-btn {
    background: linear-gradient(180deg, #ff0000 0%, #a00000 100%);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* ================= BOTÃO VER MAIS ================= */
.view-more-container {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.view-more-btn {
    background: #000;
    color: var(--text-light);
    border: 2px solid #ff0000;
    padding: 12px 40px;
    border-radius: 30px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ================= HOW IT WORKS ================= */
.how-it-works {
    width: 100%;
    background: var(--pure-black);
    padding: 80px 20px;
    text-align: center;
    color: var(--text-light);
    position: relative;
    z-index: 10;
}

.how-it-works h3 {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 1.8rem;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.how-it-works h3::before,
.how-it-works h3::after {
    content: "";
    height: 1px;
    flex-grow: 1;
    max-width: 150px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.steps-container {
    display: flex;
    justify-content: center;
    gap: 60px;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.steps-container::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #333, transparent);
    z-index: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 200px;
    position: relative;
    z-index: 1;
}

.step-num {
    background: var(--primary-red);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    margin-bottom: 15px;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

.step p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.4;
}

/* ================= MOBILE ADJUSTMENTS ================= */
@media (max-width: 900px) {
    /* REMOVE A PARTE MARCADA (BARRA DE CONTROLES E BOTÕES) */
    .preview-controls, 
    .preview-switcher, 
    .device-controls,
    .preview-header-bar,
    [class*="controls"], 
    [class*="switcher"] {
        display: none !important;
    }

    /* REMOVE TAMBÉM O IFRAME/PRÉ-VISUALIZAÇÃO DO SITE */
    iframe, 
    .preview-container, 
    .modal-preview-body {
        display: none !important;
    }

    .models-header h2 {
        font-size: 1.7rem !important;
        gap: 15px;
    }

    .models-header h2::before,
    .models-header h2::after {
        max-width: 30px;
    }

    .steps-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .steps-container::before {
        display: none;
    }

    .step {
        flex-direction: row;
        gap: 20px;
        max-width: 320px;
        width: 100%;
        text-align: left;
    }
}