/* ============================================
   SEÇÃO PILARES - NOVO LAYOUT
   ============================================ */

.pilares-section {
    background: #f8f9fa;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.pilares-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   HEADER DA SEÇÃO
   ============================================ */

.pilares-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.pilares-header h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.pilares-header p {
    font-size: 1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================
   GRID DE CARDS
   ============================================ */

.pilares-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

/* ============================================
   CARDS INDIVIDUAIS
   ============================================ */

.pilar-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: center;
}

.pilar-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ============================================
   CABEÇALHO DO CARD COM ÍCONE
   ============================================ */

.pilar-card-header {
    padding: 2.5rem 1.5rem;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pilar-video-container {
    width: 100%;
    padding-bottom: 56.25%; /* Proporção 16:9 */
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 1rem;
    background: #000;
}

.pilar-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
    object-fit: cover;
    object-position: center;
}

.pilar-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

/* Cores diferentes para cada ícone */
.pilar-card:nth-child(1) .pilar-icon {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

.pilar-card:nth-child(2) .pilar-icon {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.pilar-card:nth-child(3) .pilar-icon {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
}

.pilar-card:hover .pilar-icon {
    transform: scale(1.1);
}

.pilar-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

/* ============================================
   CORPO DO CARD
   ============================================ */

.pilar-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.pilar-card-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* ============================================
   LISTA DE BENEFÍCIOS
   ============================================ */

.pilar-benefits {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
}

.pilar-benefits li {
    padding: 0.6rem 0;
    color: #555;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-left: 1.8rem;
}

.pilar-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: 700;
    font-size: 1.1rem;
}

/* ============================================
   RODAPÉ DO CARD / CTA
   ============================================ */

.pilar-card-footer {
    padding: 1.5rem;
    background: white;
    border-top: 1px solid #f0f0f0;
}

.pilar-cta {
    display: inline-block;
    padding: 0.9rem 2rem;
    background: #E31E24;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
}

/* Cores diferentes para cada botão */
.pilar-card:nth-child(1) .pilar-cta {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

.pilar-card:nth-child(2) .pilar-cta {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.pilar-card:nth-child(3) .pilar-cta {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
}

.pilar-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    opacity: 0.9;
}

.pilar-cta:active {
    transform: translateY(0);
}

/* ============================================
   TEXTO ADICIONAL NO CARD
   ============================================ */

.pilar-card-extra {
    font-size: 0.8rem;
    color: #999;
    margin-top: 1rem;
    font-style: italic;
}

.pilar-badge-free {
    display: inline-block;
    background: #f0f0f0;
    color: #666;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

@media (max-width: 1024px) {
    .pilares-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }

    .pilares-header h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .pilares-section {
        padding: 2rem 0;
    }

    .pilares-header h2 {
        font-size: 1.5rem;
    }

    .pilares-header p {
        font-size: 0.95rem;
    }

    .pilares-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .pilar-card-header {
        padding: 2rem 1rem;
    }

    .pilar-icon {
        width: 60px;
        height: 60px;
        font-size: 2.5rem;
    }

    .pilar-card-title {
        font-size: 1.1rem;
    }

    .pilar-card-body {
        padding: 1.2rem;
    }

    .pilar-card-footer {
        padding: 1.2rem;
    }

    .pilar-cta {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .pilares-section {
        padding: 1.5rem 0;
    }

    .pilares-container {
        padding: 0 1rem;
    }

    .pilares-header h2 {
        font-size: 1.3rem;
    }

    .pilares-header {
        margin-bottom: 2rem;
    }

    .pilar-icon {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }

    .pilar-card-title {
        font-size: 1rem;
    }

    .pilar-card-description {
        font-size: 0.9rem;
    }

    .pilar-benefits li {
        font-size: 0.85rem;
    }
}

/* ============================================
   ANIMAÇÕES
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pilar-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.pilar-card:nth-child(1) {
    animation-delay: 0.1s;
}

.pilar-card:nth-child(2) {
    animation-delay: 0.2s;
}

.pilar-card:nth-child(3) {
    animation-delay: 0.3s;
}

/* ============================================
   MODO ESCURO (OPCIONAL)
   ============================================ */

@media (prefers-color-scheme: dark) {
    .pilares-section {
        background: #1a1a1a;
    }

    .pilar-card {
        background: #2d2d2d;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .pilar-card-title {
        color: #fff;
    }

    .pilar-card-description,
    .pilar-benefits li {
        color: #ccc;
    }

    .pilares-header h2 {
        color: #fff;
    }

    .pilares-header p {
        color: #aaa;
    }

    .pilar-card-footer {
        background: #2d2d2d;
        border-top-color: #444;
    }

    .pilar-badge-free {
        background: #444;
        color: #aaa;
    }
}
