/**
 * Mirasat IPTV - Correções de Centralização
 * Garantir que todos os elementos estejam bem centralizados
 */

/* ========================================
   CENTRALIZAÇÃO GERAL
======================================== */

/* Container centralizado */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

/* Row com flexbox centralizado */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
    justify-content: center;
    align-items: center;
}

/* Colunas com padding correto */
[class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

/* ========================================
   CENTRALIZAÇÃO DE HEADINGS
======================================== */

.heading.align-center {
    text-align: center;
    width: 100%;
}

.heading.align-center .header,
.heading.align-center .subheader {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* Linha decorativa centralizada */
.heading.align-center .header::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ========================================
   CENTRALIZAÇÃO DE SEÇÕES
======================================== */

.vc_section {
    width: 100%;
}

.vc_section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Texto centralizado em seções */
.vc_section .wpb_text_column {
    width: 100%;
}

.vc_section .wpb_text_column.text-center,
.vc_section .align-center .wpb_text_column {
    text-align: center;
}

/* ========================================
   FEATURE BOXES - Centralização
======================================== */

.feature-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 30px;
    height: 100%;
}

.feature-box .feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--main);
    margin-bottom: 20px;
}

.feature-box h4 {
    text-align: center;
    margin-bottom: 15px;
}

.feature-box p {
    text-align: center;
}

/* ========================================
   STEP BOXES - Centralização
======================================== */

.step-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px;
}

.step-box .step-number {
    width: 60px;
    height: 60px;
    background: var(--main);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 20px;
}

.step-box h4 {
    text-align: center;
    color: #fff;
    margin-bottom: 15px;
}

.step-box p {
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
}

/* ========================================
   ADVANTAGE BOXES - Centralização
======================================== */

.advantage-box {
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 30px;
    height: 100%;
}

.advantage-box .advantage-number {
    width: 50px;
    height: 50px;
    background: var(--main);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* ========================================
   DEVICE BOXES - Centralização
======================================== */

.device-box {
    display: flex;
    flex-direction: column;
    background: var(--gray);
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 30px;
    height: 100%;
}

.device-box .device-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: var(--main);
    margin-bottom: 20px;
    text-align: center;
}

.device-box h3 {
    text-align: center;
    margin-bottom: 20px;
}

/* ========================================
   APP BOXES - Centralização
======================================== */

.app-box {
    display: flex;
    flex-direction: column;
    background: var(--gray);
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 30px;
    height: 100%;
}

.app-box .app-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: var(--main);
    margin-bottom: 20px;
    text-align: center;
}

.app-box h3 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--main);
}

/* ========================================
   TIP BOXES - Centralização
======================================== */

.tip-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 30px;
    height: 100%;
}

.tip-box .tip-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--second);
    margin-bottom: 20px;
}

.tip-box h4 {
    text-align: center;
    color: #fff;
    margin-bottom: 15px;
}

.tip-box p {
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
}

/* ========================================
   SERVICE BOXES - Centralização
======================================== */

.service-box {
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 30px;
    height: 100%;
}

.service-box .service-icon {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 48px;
    color: var(--main);
    margin-bottom: 20px;
}

/* ========================================
   MOBILE BOXES - Centralização
======================================== */

.mobile-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--gray);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 30px;
    height: 100%;
}

.mobile-box .mobile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: var(--main);
    margin-bottom: 20px;
}

.mobile-box h3 {
    text-align: center;
    margin-bottom: 20px;
}

.mobile-box p {
    text-align: center;
}

/* ========================================
   CONSIDERATION BOXES - Centralização
======================================== */

.consideration-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px;
}

.consideration-box .consideration-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--second);
    margin-bottom: 20px;
}

.consideration-box h4 {
    text-align: center;
    color: #fff;
    margin-bottom: 15px;
}

.consideration-box p {
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
}

/* ========================================
   ADVANTAGE APP BOXES - Centralização
======================================== */

.advantage-app-box {
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 35px;
    border-radius: 8px;
    margin-bottom: 30px;
    height: 100%;
}

.advantage-app-box h4 {
    color: var(--main);
    margin-bottom: 15px;
    font-size: 20px;
}

/* ========================================
   CTA SECTIONS - Centralização
======================================== */

.bg-color-main {
    text-align: center;
}

.bg-color-main .header {
    text-align: center;
    color: #fff;
}

.bg-color-main p {
    text-align: center;
}

.bg-color-main .btn-wrap {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

/* ========================================
   HERO SECTIONS - Centralização
======================================== */

.hero-section .heading {
    text-align: center;
}

.hero-section .wpb_text_column {
    text-align: center;
}

.hero-section .wpb_text_column p {
    text-align: center;
}

/* ========================================
   CAROUSEL - Centralização do Conteúdo
======================================== */

.carousel-slide-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 700px;
}

.carousel-slide-content .carousel-slide-subtitle {
    text-align: left;
}

.carousel-slide-content .carousel-slide-title {
    text-align: left;
}

.carousel-slide-content .carousel-slide-text {
    text-align: left;
}

.carousel-slide-content .carousel-slide-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ========================================
   COL-MD-OFFSET - Centralização
======================================== */

. {
    margin-left: 8.333%;
}

. {
    margin-left: 16.666%;
}

@media (max-width: 991px) {
    .,
    . {
        margin-left: 0;
    }
}

/* ========================================
   GRID COLUMNS - Larguras Corretas
======================================== */

@media (min-width: 768px) {
    .col-md-4 {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
    
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .col-md-8 {
        flex: 0 0 66.666%;
        max-width: 66.666%;
    }
    
    .col-md-10 {
        flex: 0 0 83.333%;
        max-width: 83.333%;
    }
    
    .col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (min-width: 992px) {
    .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
    
    .col-lg-4 {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
    
    .col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .col-lg-8 {
        flex: 0 0 66.666%;
        max-width: 66.666%;
    }
    
    .col-lg-offset-2 {
        margin-left: 16.666%;
    }
}

/* ========================================
   RESPONSIVIDADE - Mobile
======================================== */

@media (max-width: 767px) {
    .row {
        margin-left: -10px;
        margin-right: -10px;
    }
    
    [class*="col-"] {
        padding-left: 10px;
        padding-right: 10px;
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .feature-box,
    .step-box,
    .advantage-box,
    .device-box,
    .app-box,
    .tip-box,
    .service-box,
    .mobile-box,
    .consideration-box,
    .advantage-app-box {
        margin-bottom: 20px;
    }
    
    .carousel-slide-content {
        align-items: center;
        text-align: center;
    }
    
    .carousel-slide-content .carousel-slide-subtitle,
    .carousel-slide-content .carousel-slide-title,
    .carousel-slide-content .carousel-slide-text {
        text-align: center;
    }
    
    .carousel-slide-content .carousel-slide-buttons {
        justify-content: center;
    }
}

/* ========================================
   BOTÕES - Centralização
======================================== */

.btn-wrap {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.btn-wrap.align-left {
    justify-content: flex-start;
}

.btn-wrap.align-right {
    justify-content: flex-end;
}

/* ========================================
   HIGHLIGHT BOXES
======================================== */

.advantage-highlight {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border-left: 5px solid var(--main);
}

.tip-highlight {
    background: rgba(221, 199, 109, 0.2);
    padding: 30px;
    border-radius: 8px;
    border-left: 5px solid var(--second);
}

/* ========================================
   VISUAL COMPOSER FIXES
======================================== */

.vc_row.wpb_row {
    margin-left: 0;
    margin-right: 0;
}

.wpb_column.vc_column_container {
    padding-left: 15px;
    padding-right: 15px;
}

.vc_column-inner {
    width: 100%;
}

/* ========================================
   LTX CONTENT WIDTH - Centralização
======================================== */

.ltx-content-width {
    margin-left: auto;
    margin-right: auto;
}

.ltx-content-width.col-align-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ltx-content-width .ltx-wrapper {
    width: 100%;
}

/* ========================================
   TEXT ALIGNMENT HELPERS
======================================== */

.text-center {
    text-align: center !important;
}

.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}

.align-center {
    text-align: center;
}

.col-align-center {
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   FLEX UTILITIES
======================================== */

.d-flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.align-items-center {
    align-items: center;
}

.justify-content-center {
    justify-content: center;
}

.justify-content-between {
    justify-content: space-between;
}

/* ========================================
   ES-RESP SPACERS
======================================== */

.es-resp {
    width: 100%;
}

.es-resp > div {
    width: 100%;
}

