/* ===== BOTÕES APRIMORADOS - CONSTELAR ===== */

/* Botão Principal Aprimorado */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 
        0 8px 25px rgba(13, 167, 217, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #0DA7D9 0%, #0891B8 50%, #067A9F 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    background: linear-gradient(135deg, #E5D70F 0%, #D4C60E 50%, #C3B50D 100%);
    box-shadow: 
        0 12px 35px rgba(229, 215, 15, 0.4),
        0 6px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    color: #1a1a2e;
}

.btn:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 
        0 4px 15px rgba(229, 215, 15, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Botão Primário Específico */
.btn-primary {
    background: linear-gradient(135deg, #0DA7D9 0%, #0891B8 50%, #067A9F 100%);
    color: #ffffff;
    box-shadow: 
        0 8px 25px rgba(13, 167, 217, 0.35),
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(13, 167, 217, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #E5D70F 0%, #D4C60E 50%, #C3B50D 100%);
    color: #1a1a2e;
    border-color: rgba(229, 215, 15, 0.5);
    box-shadow: 
        0 12px 35px rgba(229, 215, 15, 0.45),
        0 6px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Botão Secundário Aprimorado */
.btn-secondary {
    background: transparent;
    color: #0DA7D9;
    border: 2px solid #0DA7D9;
    box-shadow: 
        0 4px 15px rgba(13, 167, 217, 0.2),
        inset 0 1px 0 rgba(13, 167, 217, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-secondary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #0DA7D9, #067A9F);
    transition: width 0.4s ease;
    z-index: -1;
}

.btn-secondary:hover::after {
    width: 100%;
}

.btn-secondary:hover {
    color: #ffffff;
    border-color: #0DA7D9;
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(13, 167, 217, 0.3),
        0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Botão de Compra Aprimorado */
.btn-purchase {
    background: linear-gradient(135deg, #0DA7D9 0%, #0891B8 100%);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 6px 20px rgba(13, 167, 217, 0.35),
        0 3px 10px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-purchase::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.btn-purchase:hover::before {
    width: 300px;
    height: 300px;
}

.btn-purchase:hover {
    background: linear-gradient(135deg, #E5D70F 0%, #D4C60E 100%);
    color: #1a1a2e;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 8px 25px rgba(229, 215, 15, 0.45),
        0 4px 15px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(229, 215, 15, 0.3);
}

.btn-purchase:active {
    transform: translateY(0) scale(1.02);
    box-shadow: 
        0 4px 15px rgba(229, 215, 15, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Botão Full Width */
.btn-full {
    width: 100%;
    display: block;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Links de Serviço Aprimorados */
.service-link {
    color: #0DA7D9;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.service-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0DA7D9, #E5D70F);
    transition: width 0.3s ease;
}

.service-link:hover::after {
    width: 100%;
}

.service-link:hover {
    color: #067A9F;
    transform: translateX(5px);
}

/* Cards Relacionados Aprimorados */
.related-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(13, 167, 217, 0.1);
    position: relative;
    overflow: hidden;
}

.related-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0DA7D9, #E5D70F);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.related-card:hover::before {
    transform: scaleX(1);
}

.related-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 12px 35px rgba(13, 167, 217, 0.15),
        0 6px 20px rgba(0, 0, 0, 0.08);
    border-color: rgba(13, 167, 217, 0.2);
}

.related-card h3 {
    color: #1a1a2e;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.related-card:hover h3 {
    color: #0DA7D9;
}

/* Estados de Foco para Acessibilidade */
.btn:focus,
.btn-primary:focus,
.btn-secondary:focus,
.btn-purchase:focus,
.service-link:focus,
.related-card:focus {
    outline: 3px solid rgba(13, 167, 217, 0.5);
    outline-offset: 2px;
}

/* Animações de Loading */
.btn-purchase.loading {
    opacity: 0.8;
    pointer-events: none;
    position: relative;
}

.btn-purchase.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsividade */
@media (max-width: 768px) {
    .btn {
        padding: 0.875rem 1.75rem;
        font-size: 0.95rem;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .btn-purchase {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        width: 100%;
    }
    
    .service-link {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .btn-purchase {
        padding: 0.625rem 1rem;
        font-size: 0.85rem;
    }
}
