/* =========================================
   INTRO VIDEO
   ========================================= */
#intro {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#intro video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#intro.hide {
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

/* =========================================
   PAGE CONTENT (FADE IN)
   ========================================= */
#pageContent {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

#pageContent.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* =========================================
   SEÇÃO 1: P2S HERO (FULL SCREEN)
   ========================================= */
.p2s-hero {
    width: 100%;
    height: 100vh;
    background: url('../img/video.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* overlay leve */
.p2s-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.2);
}

/* CONTEÚDO */
.p2s-content {
    max-width: 600px;
    margin-left: 80px;
    position: relative;
    z-index: 2;
}

/* TEXTO */
.p2s-title {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 900;
    color: #000;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.p2s-subtitle {
    font-size: 20px;
    color: #333;
    line-height: 1.4;
    margin-bottom: 40px;
    font-weight: 500;
}

/* BOTÃO HERO */
.btn-p2s-buy {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background-color: #556B7D;
    color: #fff;
    padding: 12px 12px 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.btn-p2s-buy:hover {
    background-color: #3d4f5d;
    transform: scale(1.05);
}

/* SETA DO BOTÃO HERO */
.arrow-circle {
    width: 40px;
    height: 40px;
    background-color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* =========================================
   SEÇÃO 2: ESPECIFICAÇÕES TÉCNICAS
   ========================================= */
.specs-section {
    background-color: var(--bg-dark, #0A0A0A); 
    padding: 100px 0;
    overflow: hidden;
    color: var(--text-white, #ffffff);
}

.specs-header {
    text-align: center;
    margin-bottom: 50px;
}

.specs-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 900;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.specs-title span {
    color: var(--primary-color, #ff6b00); 
}

.specs-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray, #cccccc);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 500;
}

/* --- CARROSSEL ESTRUTURA --- */
.specs-carousel-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
}

.specs-carousel {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 20px 5px 40px 5px; 
    -ms-overflow-style: none; 
    scrollbar-width: none; 
    width: 100%;
}

.specs-carousel::-webkit-scrollbar {
    display: none; 
}

/* --- CARTÃO DE ESPECIFICAÇÃO (GLASSMORPHISM) --- */
.spec-card {
    flex: 0 0 350px;
    scroll-snap-align: center;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 40px 30px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.spec-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.spec-card:hover .orange-glow { box-shadow: 0 0 30px rgba(255, 107, 0, 0.4); }
.spec-card:hover .blue-glow { box-shadow: 0 0 30px rgba(52, 152, 219, 0.4); }

.spec-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s ease;
}

.spec-icon-box span { font-size: 32px; }
.orange-glow span { color: var(--primary-color, #ff6b00); }
.blue-glow span { color: #3498db; }

.spec-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #fff;
}

.spec-card-sub {
    font-size: 0.95rem;
    color: var(--primary-color, #ff6b00);
    font-weight: 600;
    margin-bottom: 25px;
    min-height: 40px; 
}

.spec-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.spec-list li {
    font-size: 0.95rem;
    color: var(--text-gray, #ccc);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.5;
}

.spec-list li span {
    color: #2ecc71; 
    font-size: 20px;
    font-weight: 900;
    flex-shrink: 0;
    margin-top: -2px;
}

/* --- BOTÕES DE NAVEGAÇÃO E DOTS --- */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
}

.nav-btn:hover { background: var(--primary-color, #ff6b00); border-color: var(--primary-color, #ff6b00); }
.nav-btn span { font-size: 28px; }
.prev-btn { left: 0px; }
.next-btn { right: 0px; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: var(--primary-color, #ff6b00);
    width: 25px;
    border-radius: 10px;
}

/* --- ÁREA DE AÇÃO E CTA --- */
.specs-action-area {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.specs-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-outline-white {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    cursor: pointer;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.btn-primary-glow {
    background: var(--primary-color, #ff6b00);
    border: none;
    color: white;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.4);
    cursor: pointer;
}

.btn-primary-glow:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 15px 40px rgba(255, 107, 0, 0.6); 
}

/* --- MINI CTA (ESTILO GLASS) --- */
.mini-cta-box {
    background: rgba(255, 107, 0, 0.05); 
    border: 1px solid rgba(255, 107, 0, 0.2);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    max-width: 800px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.mini-cta-box::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,107,0,0.1) 0%, transparent 60%);
    z-index: 0; pointer-events: none;
}

.cta-icon {
    font-size: 48px;
    color: var(--primary-color, #ff6b00);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.mini-cta-box p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-gray, #ccc);
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.mini-cta-box p strong {
    color: white;
    font-weight: 800;
}

.btn-cta-orange {
    background: var(--primary-color, #ff6b00);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 900;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
    z-index: 1;
}

.btn-cta-orange:hover { transform: scale(1.05); }

/* =========================================
   RESPONSIVIDADE GERAL
   ========================================= */

@media (max-width: 1024px) {
    .p2s-hero { justify-content: flex-start; align-items: center; }
    .p2s-content { margin-left: 60px; max-width: 420px; text-align: left; }
}

@media (max-width: 768px) {
    /* Ajustes Hero */
    .p2s-hero { justify-content: center; text-align: center; background-position: 70% center; }
    .p2s-content { margin: 0; max-width: 90%; padding: 25px; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(8px); border-radius: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.2); }
    .p2s-title { font-size: 32px; color: #000; }
    .p2s-subtitle { font-size: 15px; color: #333; }
    .btn-p2s-buy { justify-content: center; }

    /* Ajustes Specs */
    .spec-card { flex: 0 0 85vw; padding: 30px 20px; }
    .nav-btn { display: none; /* Esconde setas, usa touch */ }
    .specs-buttons { flex-direction: column; width: 100%; }
    .specs-buttons button { width: 100%; justify-content: center; }
    .mini-cta-box { padding: 30px 20px; border-radius: 16px; margin: 0 20px; width: auto;}
    .mini-cta-box p { font-size: 1rem; }
}

@media (max-width: 480px) {
    .p2s-title { font-size: 26px; }
    .p2s-subtitle { font-size: 14px; }
}

/* =========================================
   MODAL DE VÍDEO (POP-UP 16:9)
   ========================================= */
.video-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999; /* Fica acima de tudo no site */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    padding: 20px;
}

.video-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.video-modal-container {
    position: relative;
    width: 100%;
    max-width: 1100px; /* Limita o tamanho em PCs grandes */
    background: #000;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

/* Força a proporção 16:9 exata em qualquer tela */
.video-wrapper-16-9 {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* Mágica do 16:9 (9 dividido por 16) */
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.video-wrapper-16-9 video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Evita cortar pedaços do vídeo */
    outline: none;
}

/* Botão Fechar (X) Redondo, Fundo Branco, Ícone Preto */
.btn-close-video {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 46px;
    height: 46px;
    background-color: var(--text-white, #ffffff);
    color: var(--bg-dark, #000000);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transition: transform 0.2s ease;
}

.btn-close-video span {
    font-size: 26px;
    font-weight: 900;
}

.btn-close-video:hover {
    transform: scale(1.1);
}

/* --- Ajuste Responsivo para o Modal --- */
@media (max-width: 768px) {
    .video-modal-overlay {
        padding: 15px;
    }
    
    .btn-close-video {
        /* No celular, empurra o botão levemente pra dentro pra não sair da tela */
        top: -10px;
        right: -10px;
        width: 38px;
        height: 38px;
    }

    .btn-close-video span {
        font-size: 20px;
    }
}


/* =========================================
   SEÇÃO DE GARANTIA PADRONIZADA
   ========================================= */
.warranty-section {
    padding: 80px 0;
    background: transparent;
    color: var(--text-white, #fff);
}

.warranty-box {
    padding: 60px;
    text-align: center;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.warranty-header {
    margin-bottom: 50px;
}

/* Ícone Principal na Cor da Marca (Laranja) */
.warranty-main-icon {
    font-size: 60px;
    color: var(--primary-color, #ff6b00);
    margin-bottom: 20px;
    display: block;
}

.warranty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.warranty-item {
    padding: 20px;
}

.warranty-item span {
    font-size: 40px;
    color: var(--primary-color, #ff6b00);
    margin-bottom: 15px;
    display: block;
}

.warranty-item h4 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 10px;
    font-weight: 800;
}

/* --- Caixa de Alerta (Atenção e Condições) --- */
.warranty-alert-box {
    background: rgba(255, 107, 0, 0.05);
    border: 1px dashed rgba(255, 107, 0, 0.3);
    padding: 30px 40px;
    border-radius: 15px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.warranty-alert-title {
    color: var(--primary-color, #ff6b00);
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 800;
}

.warranty-alert-box p {
    font-size: 0.95rem;
    color: #ddd;
    line-height: 1.6;
    margin: 0;
}

.warranty-alert-box strong {
    color: var(--primary-color, #ff6b00);
}

/* Lista com as regras pontuadas */
.warranty-list {
    text-align: left;
    display: inline-block;
    color: #ddd;
    font-size: 0.95rem;
    margin: 15px 0 20px 20px;
    line-height: 1.8;
}

.warranty-list li {
    list-style-type: disc;
}

/* --- Responsividade (Mobile) --- */
@media (max-width: 768px) {
    .warranty-box {
        padding: 40px 20px;
    }
    .warranty-grid {
        gap: 20px;
    }
    .warranty-main-icon {
        font-size: 50px;
    }
    .warranty-alert-box {
        padding: 25px 20px;
    }
}